// $Revision: 1.10 $ //------------------------------------------------------------------------------ // // Copyright (C) 1994, 1995 Taligent, Inc. All rights reserved. // // Project: StockBrowser // File: ViewerPresenterState.h // Build/Version: 1.0.0 // // Description: TViewerPresenterState holds a persistent graph constructor // object. // //------------------------------------------------------------------------------ #ifndef TaligentSamples_VIEWERPRESENTERSTATE #define TaligentSamples_VIEWERPRESENTERSTATE class TViewerPresenterState; #ifndef Taligent_GUICOMPOUNDDOCUMENT #include #endif class TStockGraphConstructor; //============================================================================== // TViewerPresenterState class TViewerPresenterState : public TGUIPresenterState { public: TaligentTypeExtensionDeclarationsMacro(TViewerPresenterState) public: TViewerPresenterState(); TViewerPresenterState(const TViewerPresenterState& presenterState); TViewerPresenterState(const TModelReference& model); virtual ~TViewerPresenterState(); TViewerPresenterState& operator=(const TViewerPresenterState& source); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); virtual void AdoptGraphConstructor(TStockGraphConstructor* adopted); virtual TStockGraphConstructor* OrphanGraphConstructor(); virtual TStockGraphConstructor* GetGraphConstructor(); virtual TModelPresenterStateInterest GetNewGraphConstructorInterest() const; //.......................................................................... // Lookup functions static TViewerPresenterState* LookupForWriting(const TPresenterStateReference& presenterState); static const TViewerPresenterState* LookupForReading(const TPresenterStateReference& presenterState); protected: //.......................................................................... // TGUIPresenterState override virtual TGUIPresenter* HandleCreatePresenter(const TGUIBundle& theGUIBundle) const; private: enum {kOriginalVersion}; TStockGraphConstructor* fGraphConstructor; }; #endif