// Copyright (C) 1995 Taligent, Inc. All rights reserved. #if 0 --------------------------------------------------------------------------- > Class: | TGraphicDocumentStationery > Taxonomy Category: | Documented Samples | WebRunner Sample > Interface Category: | Sample. > Inherits From: | TDocumentComponentStationery > Inherited By: | None. > Purpose: | This simple stationery is used to create a document or component out of an MGraphic. > Instantiation: | Allocate on the heap or the stack. > Deriving Classes: | No special considerations. > Concurrency: | _Not_ multithread safe. > Resource Use: | No special requirements. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TGraphicDocumentStationery::TGraphicDocumentStationery ; | 1. TGraphicDocumentStationery () | 2. TGraphicDocumentStationery (MGraphic * adoptGraphic) > Interface Category: | Sample. > Purpose: | 1. Default constructor. | 2. Creates a stationery for a specific graphic. > Calling Context: | 1. Called by the stream-in operators. | 2. Called by clients who want to open a document for a graphic. > Parameters: = 1. Takes no parameters. = 2. MGraphic * adoptGraphic -The graphic to display in the document. > Return Value: | None. > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TGraphicDocumentStationery::~ TGraphicDocumentStationery ; | virtual ~ TGraphicDocumentStationery () > Interface Category: | Sample. > Purpose: | Destructor. > Calling Context: | Called to destroy an object. > Parameters: = Takes no parameters. > Return Value: | None. > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TGraphicDocumentStationery::OpenGraphicDocument ; | static TDocumentReference OpenGraphicDocument (MGraphic * adoptGraphic, const TFileSystemEntityName & documentName) > Interface Category: | Sample. > Purpose: | This static function is the easiest way to open a graphic document. It provides a single function to encapsulate all of the document creation, storing, and opening. The user just provides the graphic to display and the name of the document. > Calling Context: | Called by clients of this class to create a document. > Parameters: = MGraphic * adoptGraphic -The graphic to display. = const TFileSystemEntityName & documentName -The name of the document. > Return Value: | Returns a reference to the opened document. If this was unable to open the document for any reason, the returned reference is not valid. (For example, it returns false to the IsValid member function.) > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TGraphicDocumentStationery::CreateModel ; | virtual TModel * CreateModel () > Interface Category: | Sample. > Purpose: | Creates a model out of this stationery's graphic. > Calling Context: | Called by the Document framework. > Parameters: = Takes no parameters. > Return Value: | Returns the created model. > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif #if 0 --------------------------------------------------------------------------- > Member Function: TGraphicDocumentStationery::CreateModelPresenterState ; | virtual TModelPresenterState * CreateModelPresenterState () > Interface Category: | Sample. > Purpose: | Creates a presenter state capable of displaying the graphic model. > Calling Context: | Called by the Document framework. > Parameters: = Takes no parameters. > Return Value: | Returns the created presenter state. > Exceptions: | Throws no exceptions, passes all exceptions through. > Concurrency: | _Not_ multithread safe. > Other Considerations: | None. --------------------------------------------------------------------------- #endif