home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / UNDO.IDL < prev    next >
Text File  |  1995-12-13  |  3KB  |  99 lines

  1. /********************************************************************/
  2. /*  Licensed Materials - Property of IBM                            */
  3. /*                                                                  */
  4. /*                                                                  */
  5. /* Copyright (C) International Business Machines Corp., 1994.       */
  6. /* Copyright (C) Apple Computer, Inc., 1994                         */
  7. /*                                                                  */
  8. /*  US Government Users Restricted Rights -                         */
  9. /*  Use, duplication, or disclosure restricted                      */
  10. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  11. /*                                                                  */
  12. /*                                                                  */
  13. /********************************************************************/
  14.  
  15. #ifndef _UNDO_
  16. #define _UNDO_
  17.  
  18. #ifndef _ODOBJECT_
  19. #include "ODObject.idl"
  20. #endif
  21.  
  22. //==============================================================================
  23. // Classes defined in this interface
  24. //==============================================================================
  25.  
  26. interface  ODUndo;
  27.  
  28. //==============================================================================
  29. // Classes used by this interface
  30. //==============================================================================
  31.  
  32. interface  ODPart;
  33.  
  34.  
  35. //==============================================================================
  36. // ODUndo
  37. //==============================================================================
  38.  
  39. interface ODUndo :  ODObject
  40. {
  41.  
  42.  
  43.    void AddActionToHistory(in ODPart whichPart,
  44.                   in ODActionData actionData,
  45.                in ODActionType actionType,
  46.                in ODName undoActionLabel,
  47.                in ODName redoActionLabel);
  48.  
  49.    void Undo();
  50.  
  51.    void Redo();
  52.  
  53.    void MarkActionHistory();
  54.  
  55.    void ClearActionHistory(in ODRespectMarksChoices respectMarks);
  56.  
  57.    void ClearRedoHistory();
  58.  
  59.    ODBoolean PeekUndoHistory(out ODPart part,
  60.                   out ODActionData actionData,
  61.                out ODActionType actionType,
  62.                out ODName actionLabel);
  63.  
  64.    ODBoolean PeekRedoHistory(out ODPart part,
  65.                   out ODActionData actionData,
  66.                out ODActionType actionType,
  67.                out ODName actionLabel);
  68.  
  69.   void AbortCurrentTransaction();           
  70.  
  71. #ifdef __SOMIDL__
  72.   implementation
  73.   {
  74.       functionprefix = ODUndo;
  75.  
  76.   override:
  77.     somInit,
  78.     somUninit,
  79.     Purge;
  80.  
  81.     releaseorder:
  82.         InitUndo,
  83.         AddActionToHistory,
  84.         Undo,
  85.         Redo,
  86.         MarkActionHistory,
  87.         ClearActionHistory,
  88.         ClearRedoHistory,
  89.         PeekUndoHistory,
  90.         PeekRedoHistory,
  91.         AbortCurrentTransaction;
  92.  
  93.  
  94.   };
  95. #endif
  96. };
  97.  
  98. #endif // _UNDO_
  99.