1 /***********************************************************************/ 2 /* Open Visualization Data Explorer */ 3 /* (C) Copyright IBM Corp. 1989,1999 */ 4 /* ALL RIGHTS RESERVED */ 5 /* This code licensed under the */ 6 /* "IBM PUBLIC LICENSE - Open Visualization Data Explorer" */ 7 /***********************************************************************/ 8 9 #include <dxconfig.h> 10 #include "../base/defines.h" 11 12 13 14 15 #ifndef _NoUndoAnchorCommand_h 16 #define _NoUndoAnchorCommand_h 17 18 19 #include "NoUndoCommand.h" 20 21 typedef long AnchorCommandType; 22 23 // 24 // Class name definition: 25 // 26 #define ClassNoUndoAnchorCommand "NoUndoAnchorCommand" 27 28 class DXAnchorWindow; 29 30 // 31 // NoUndoAnchorCommand class definition: 32 // 33 class NoUndoAnchorCommand : public NoUndoCommand 34 { 35 36 protected: 37 // 38 // Protected member data: 39 // 40 DXAnchorWindow *anchorWindow; 41 AnchorCommandType commandType; 42 43 virtual boolean doIt(CommandInterface *ci); 44 45 public: 46 // 47 // Constructor: 48 // 49 NoUndoAnchorCommand(const char* name, 50 CommandScope *scope, 51 boolean active, 52 DXAnchorWindow *fw, 53 AnchorCommandType comType); 54 55 // 56 // Destructor: 57 // ~NoUndoAnchorCommand()58 ~NoUndoAnchorCommand(){} 59 60 // 61 // These are the various operations that the NoUndoAnchorCommand can 62 // implement on behalf of a DXAnchorWidnow. 63 // 64 enum { 65 OpenVPE = 4 // Open an editor on theDXApplication->network 66 }; 67 // 68 // Returns a pointer to the class name. 69 // getClassName()70 const char* getClassName() 71 { 72 return ClassNoUndoAnchorCommand; 73 } 74 }; 75 76 77 #endif // _NoUndoAnchorCommand_h 78