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

CP_ViewContent_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_ViewContent_TV_DataBrowser_Doc (CPLAT::CP_ScriptableObject *inContainer, CPLAT::FourCharCode inDocType)
 Constructor.
virtual ~CP_ViewContent_TV_DataBrowser_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 Attributes

CP_ViewContentDataSourcefViewContentDataSource

Private Types

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

Private Member Functions

void HandleHelperViewCreated (CPLAT::CP_DataValueHolder &inValue, CPLAT::OSStatus &)
void HandlePopupCommand (CPLAT::OSStatus &inOutStatus, CPLAT::CP_CommandNo &inCommandNo)
void ControlClicked (CPLAT::CP_DataValueHolder &inValue, CPLAT::OSStatus &inOutStatus)


Member Typedef Documentation

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


Constructor & Destructor Documentation

CP_ViewContent_TV_DataBrowser_Doc::CP_ViewContent_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_ViewContent_TV_DataBrowser_Doc::~CP_ViewContent_TV_DataBrowser_Doc  )  throw () [virtual]
 

Destructor.

Exceptions:
none 


Member Function Documentation

CPLAT::CP_Document_Base * CP_ViewContent_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

void CP_ViewContent_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.

Exceptions:
none 
Returns:
void

void CP_ViewContent_TV_DataBrowser_Doc::HandleHelperViewCreated CPLAT::CP_DataValueHolder &  inValue,
CPLAT::OSStatus & 
[private]
 

Slot called when the TV_DataBrowser has created a helper view. These are the views like edit fields, check boxes, popup menus, etc that implement display of data by using another CP_View object.

Parameters:
inValue CP_S_TV_DB_ParamBlock containing data from the data browser view.
inOutStatus Not used.
Exceptions:
none 
Returns:
void

void CP_ViewContent_TV_DataBrowser_Doc::HandlePopupCommand CPLAT::OSStatus &  inOutStatus,
CPLAT::CP_CommandNo inCommandNo
[private]
 

Slot called when a menu command from a popup menu is issued.

Parameters:
inOutStatus Not used.
inCommandNo Not used.
Exceptions:
none 
Returns:
void

void CP_ViewContent_TV_DataBrowser_Doc::ControlClicked CPLAT::CP_DataValueHolder &  inValue,
CPLAT::OSStatus &  inOutStatus
[private]
 

Generic slot that gets called when controls are clicked. This will post an alert that displies the value of the control, along with the command that the sending control used when calling this slot.

Returns:
inValue Holds a CP_S_ControlClickedInfo structure that describes information about the sending control and value from the control that was clicked.

inOutStatus Not used.

Exceptions:
none 
Returns:
void


Member Data Documentation

CP_ViewContentDataSource* CP_ViewContent_TV_DataBrowser_Doc::fViewContentDataSource [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