Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TDocumentComponentStationery
Inherited By:
None.
Purpose:
This template takes a model class and a presenter state class as its arguments. The AModel class must have a public empty constructor (i.e. the AModel constructor will be called by CreateModel). The presenter state class must have a public empty constructor (i.e. the APresenterState constructor will be called by CreatePresenterState).
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
Do not derive from this class; rather, derive from the basic TCompoundDocumentStationery instead.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
Other Considerations:
This class has no dependencies on the rest of the presentation framework, and should be moved down into the document framework.
- TGUIComponentStationeryFor ()
- TGUIComponentStationeryFor (const TGUIComponentStationeryFor < AModel, APresenterState >&)
Interface Category:
API.
Purpose:
- Default constructor.
- Creates a component stationery object for the model and presenter state specified.
Calling Context:
- Called by the stream-in operators.
- Called by the Presentation framework.
Parameters:
- Takes no parameters.
- const TGUIComponentStationeryFor < AModel -The model for which to create the new stationery object.
- APresenterState >& -The presenter state for which to create the new stationery object.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual ~ TGUIComponentStationeryFor ()
Interface Category:
API.
Purpose:
Destructor.
Calling Context:
Called to destroy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
- TDocumentComponent * CreateComponent ()
- TDocumentComponent * CreateComponent (AModel * theModelTemplateToAdopt, APresenterState * thePSTemplateToAdopt)
Interface Category:
API.
Purpose:
- Creates a document component appropriate for this object's model and view.
- Creates a document component appropriate for this object's model and view.
Calling Context:
- Called by the Presentation framework.
- Called by the Presentation framework.
Parameters:
- Takes no parameters.
- AModel * theModelTemplateToAdopt -The model to adopt.
- APresenterState * thePSTemplateToAdopt -The presenter state to adopt.
Return Value:
Returns the new document component.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TModelPresenterState * CreateModelPresenterState ()
Interface Category:
API.
Purpose:
Creates a TModelPresenterState appropriate for this object's presenter.
Calling Context:
You can call this function directly.
Parameters:
Return Value:
Returns the new model presenter state.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TModel * CreateModel ()
Interface Category:
API.
Purpose:
Creates the root model for documents created from this stationery.
Calling Context:
Called by TDocumentComponentStationery.
Parameters:
Return Value:
Returns the root model.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.