// $Revision: 1.9 $ //------------------------------------------------------------------------------ // // Copyright (C) 1994, 1995 Taligent, Inc. All rights reserved. // // Project: StockBrowser // File: SetGraphConstructorCommand.h // Build/Version: 1.0.0 // // Description: TSetGraphConstructorCommand replaces the presenter state's // graph constructor object with a new one and sends out a // notification of the change. // //------------------------------------------------------------------------------ #ifndef TaligentSamples_SETGRAPHCONSTRUCTORCOMMAND #define TaligentSamples_SETGRAPHCONSTRUCTORCOMMAND class TStockGraphConstructor; #ifndef Taligent_BASICDOCUMENTCOMMAND #include #endif class TPresenterStateSelection; //============================================================================== // TSetGraphConstructorCommand class TSetGraphConstructorCommand : public TCommandOn { public: TaligentTypeExtensionDeclarationsMacro(TSetGraphConstructorCommand) public: TSetGraphConstructorCommand( const TSetGraphConstructorCommand& source); TSetGraphConstructorCommand( TStockGraphConstructor* adoptedNewConstructor); virtual ~TSetGraphConstructorCommand(); TSetGraphConstructorCommand& operator=(const TSetGraphConstructorCommand& source); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); protected: TSetGraphConstructorCommand(); virtual void HandleDoBegin(TPresenterStateSelection& target); virtual void HandleUndo(TPresenterStateSelection& target); virtual void HandleRedo(TPresenterStateSelection& target); private: enum {kOriginalVersion}; TDeleterFor fConstructor; }; #endif