Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

CP_Simple_TV_DataBrowser_Doc Class Reference

CP_Document class to handle the data from the main window and reading / writing contents.

List of all members.

Public Member Functions

Constructor / Destructor
 CP_Simple_TV_DataBrowser_Doc (CPLAT::CP_ScriptableObject *inContainer, CPLAT::FourCharCode inDocType)
 Constructor.
virtual ~CP_Simple_TV_DataBrowser_Doc () throw ()
DataSource
virtual CPLAT::CP_DataValueHolder GetData (SInt32 inID)
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 Attributes

CPLAT::CP_Strings_Array fTableStrings

Private Types

typedef CPLAT::CP_Document<
CPLAT::CP_UndoPolicy_None,
CPLAT::CP_PrintPolicy_None > 
inherited

Private Member Functions

void CreateStringData ()


Member Typedef Documentation

typedef CPLAT::CP_Document<CPLAT::CP_UndoPolicy_None, CPLAT::CP_PrintPolicy_None> CP_Simple_TV_DataBrowser_Doc::inherited [private]
 


Constructor & Destructor Documentation

CP_Simple_TV_DataBrowser_Doc::CP_Simple_TV_DataBrowser_Doc CPLAT::CP_ScriptableObject *  inContainer,
CPLAT::FourCharCode  inDocType
 

Constructor.

Parameters:
inContainer The scriptable object that serves as a container for this document. In this case it will be the application object.
inDocType The documents default file type.
Exceptions:
none 

CP_Simple_TV_DataBrowser_Doc::~CP_Simple_TV_DataBrowser_Doc  )  throw () [virtual]
 

Destructor.

Exceptions:
none 


Member Function Documentation

CPLAT::CP_Document_Base * CP_Simple_TV_DataBrowser_Doc::DocumentCreator CPLAT::CP_ScriptableObject *  inContainer,
CPLAT::FourCharCode  inDocumentClass
[static]
 

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.

Parameters:
inContainer The scriptable object that serves as a container for this document. In this case it will be the application object.
inDocumentClass The documents default file type.
Exceptions:
none 
Returns:
void

CPLAT::CP_DataValueHolder CP_Simple_TV_DataBrowser_Doc::GetData SInt32  inID  )  [virtual]
 

CP_DataSource method called to get data for the passed in identifier.

Returns:
inID The identifier of the data to be retrieved.
Exceptions:
none 
Returns:
CP_DataValueHolder Contains the returned string data.

void CP_Simple_TV_DataBrowser_Doc::HandleCreateDocumentUI SInt32  inPostCreateFlags = CP_E_Doc_Create_DoNothing  )  [virtual]
 

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.

Parameters:
inPostCreateFlags Not used.
Exceptions:
none 
Returns:
void

void CP_Simple_TV_DataBrowser_Doc::CreateStringData  )  [private]
 

Called to create some strings used to popuplate the table with dummy data.

Exceptions:
none 
Returns:
void


Member Data Documentation

CPLAT::CP_Strings_Array CP_Simple_TV_DataBrowser_Doc::fTableStrings [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Sep 20 20:28:27 2005 for CPLAT_MacOS by  doxygen 1.4.0