Public Member Functions | |
Constructor / Destructor | |
Undo_Doc (CPLAT::CP_ScriptableObject *inContainer, CPLAT::FourCharCode inDocType) | |
Constructor. | |
virtual | ~Undo_Doc () throw () |
Document UI | |
virtual void | HandleCreateDocumentUI (SInt32 inPostCreateFlags=CP_E_Doc_Create_DoNothing) |
Static Public Member Functions | |
Creator | |
static CPLAT::CP_Document_Base * | DocumentCreator (CPLAT::CP_ScriptableObject *inContainer, CPLAT::FourCharCode inDocumentClass) |
Protected Member Functions | |
Persistance | |
void | CreateWriter (CPLAT::CP_PersistantWriter **inReturnWriter, CPLAT::FourCharCode inOSType) |
virtual void | GetFileTypeInfo (const CPLAT::CP_FileSystemSpec &inFileSpec, CPLAT::FourCharCode *inOutCreator, CPLAT::FourCharCode *inOutType, CPLAT::CP_String *inOutFileExtension) |
Private Types | |
typedef CPLAT::CP_Document< CPLAT::CP_UndoPolicy_Multi, CPLAT::CP_PrintPolicy_None > | inherited |
|
|
|
Constructor.
|
|
Destructor.
|
|
Called when some action has requested we create a new document object. This is usually called from the CP_DocumentFactoryManager when it needs to create a new document.
|
|
Called when the document wants to create the main user interface for the document. In this demo we create a window, with a CP_TextView in it.
|
|
Called when the document is being saved. This will create a return a CP_PersistantWriter object that is used to save the actual data.
|
|
Called when we need to get the file type information for our documents file. In this demo, we supply the creator as the applications creator code, and the files extensio as 'txt' for a text file.
|