// $Revision: 1.5 $ #ifndef TaligentSamples_FOLLOWURLCOMMAND #define TaligentSamples_FOLLOWURLCOMMAND //----------------------------------------------------------------------------- // // Copyright (C) 1995 Taligent, Inc. All rights reserved. // // Project: WebRunner Sample // File: FollowURLCommand.h // Build/Version: 1.0.0 // //----------------------------------------------------------------------------- #ifndef Taligent_BASICDOCUMENTCOMMAND #include #endif #ifndef Taligent_COMPOUNDDOCUMENT #include #endif #ifndef TaligentSamples_URL #include "URL.h" #endif //============================================================================= // TFollowURLCommand class TFollowURLCommand : public TCommandOn { public: MCollectibleDeclarationsMacro(TFollowURLCommand); public: TFollowURLCommand(const TURL& destination); TFollowURLCommand(const TFollowURLCommand& source); virtual ~TFollowURLCommand(); TFollowURLCommand& operator=(const TFollowURLCommand& source); virtual TStream& operator>>=(TStream& toStream) const; virtual TStream& operator<<=(TStream& fromStream); protected: virtual void HandleDoBegin(TModelSelection &selection); virtual void HandleUndo(TModelSelection &selection); virtual void HandleRedo(TModelSelection &selection); private: TFollowURLCommand(); enum {kOriginalVersion}; TURL fDestination; TURL fPreviousURL; }; #endif