home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Draw / Sources / ClipCmds.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  2.1 KB  |  78 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                ClipCmds.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef CLIPCMDS_H
  13. #define CLIPCMDS_H
  14.  
  15. // ----- Part Layer -----
  16.  
  17. #ifndef FWCLPCMD_H
  18. #include "FWClpCmd.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. // Forward Declaration
  23. //========================================================================================
  24.  
  25. class CDrawPart;
  26. class CDrawFrame;
  27. class CDrawSelection;
  28. class CDrawSubscribeLink;
  29. class CDrawLinkManager;
  30. class CBaseShape;
  31. class CDrawUndoContent;
  32.  
  33. //========================================================================================
  34. // CDrawClipboardCommand
  35. //========================================================================================
  36.  
  37. class CDrawClipboardCommand : public FW_CClipboardCommand
  38. {
  39. public:
  40.  
  41.       FW_DECLARE_AUTO(CDrawClipboardCommand)
  42.  
  43.     CDrawClipboardCommand(Environment* ev, 
  44.                          ODCommandID commandID,
  45.                          CDrawPart* part, 
  46.                          CDrawFrame* frame, 
  47.                          CDrawSelection* selection,
  48.                          FW_Boolean canUndo);
  49.  
  50.     virtual ~ CDrawClipboardCommand();
  51.  
  52.     // --- FW_CCommand overrides
  53.     virtual void         UndoIt(Environment* ev);
  54.     virtual void         RedoIt(Environment* ev);
  55.     virtual void        CommitDone(Environment* ev);
  56.     virtual void         CommitUndone(Environment* ev);
  57.     virtual void         SaveUndoState(Environment* ev);
  58.     virtual void         SaveRedoState(Environment* ev);
  59.     virtual void         FreeUndoState(Environment* ev);
  60.     virtual void         FreeRedoState(Environment* ev);
  61.  
  62.     // ----- FW_CClipboardCommand overrides -----
  63.     virtual void        PreCommand(Environment* ev);
  64.     virtual void         CommandDone(Environment* ev);
  65.  
  66. private:
  67.     CDrawLinkManager*     GetDrawLinkManager(Environment* ev) const;
  68.     FW_Boolean             IsPasteWithoutLink(Environment* ev) const;
  69.  
  70. private:
  71.     CDrawPart*            fDrawPart;
  72.     CDrawSelection*        fDrawSelection;
  73.     CDrawUndoContent*    fUndoContent;
  74.     CDrawSubscribeLink*    fSavedLink;
  75. };
  76.  
  77. #endif
  78.