// $Revision: 1.11 $ //------------------------------------------------------------------------------ // // Copyright (C) 1994, 1995 Taligent, Inc. All rights reserved. // // Project: StockBrowser // File: ViewerStationery.h // Build/Version: 1.0.0 // // Description: TViewerStationery creates a model and presenter state // which compose the root component of a Stock Viewer // document. // //------------------------------------------------------------------------------ #ifndef TaligentSamples_VIEWERSTATIONERY #define TaligentSamples_VIEWERSTATIONERY class TViewerStationery; #ifndef Taligent_COMPOUNDDOCUMENT #include #endif class TStockData; class TStockGraphConstructor; class TRandomInteger; //============================================================================== // TViewerStationery class TViewerStationery : public TDocumentComponentStationery { public: TaligentTypeExtensionDeclarationsMacro(TViewerStationery) public: TViewerStationery(); TViewerStationery(const TViewerStationery& source); virtual ~TViewerStationery(); protected: virtual TStockData* CreateDefaultStockData() const; virtual TStockGraphConstructor* CreateDefaultStockGraphConstructor() const; //.......................................................................... // TDocumentComponentStationery overrides virtual TModel* CreateModel(); virtual TModelPresenterState* CreateModelPresenterState(); private: long GetRandomLong(TRandomInteger& randomGenerator, long min, long max) const; enum {kOriginalVersion}; }; #endif