home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12otk1.exe / include / Undo.idl < prev    next >
Text File  |  1997-04-02  |  4KB  |  116 lines

  1. /* @(#)Z 1.4 com/src/ui/idl/Undo.idl, odui, od96os2, odos29712d 97/03/21 17:20:48 (96/07/15 18:29:02) */
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: odui
  6. //#
  7. //#   CLASSES: none
  8. //#
  9. //#   ORIGINS: 82,27
  10. //#
  11. //#
  12. //#   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13. //#   All Rights Reserved
  14. //#   Licensed Materials - Property of IBM
  15. //#   US Government Users Restricted Rights - Use, duplication or
  16. //#   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17. //#       
  18. //#   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. //#   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20. //#   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21. //#   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22. //#   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. //#   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24. //#   OR PERFORMANCE OF THIS SOFTWARE.
  25. //#
  26. //#====END_GENERATED_PROLOG========================================
  27. //#
  28. //#     Copyright:      (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  29.  
  30. #ifndef _UNDO_
  31. #define _UNDO_
  32.  
  33. #ifndef _ODOBJECT_
  34. #include "ODObject.idl"
  35. #endif
  36.  
  37. //==============================================================================
  38. // Classes defined in this interface
  39. //==============================================================================
  40.  
  41. interface  ODUndo;
  42.  
  43. //==============================================================================
  44. // Classes used by this interface
  45. //==============================================================================
  46.  
  47. interface  ODPart;
  48.  
  49.  
  50. //==============================================================================
  51. // ODUndo
  52. //==============================================================================
  53.  
  54. interface ODUndo :  ODObject
  55. {
  56.  
  57.  
  58.    void AddActionToHistory      (in  ODPart whichPart,
  59.                                  in  ODActionData actionData,
  60.                                  in  ODActionType actionType,
  61.                                  in  ODName undoActionLabel,
  62.                                  in  ODName redoActionLabel);
  63.  
  64.    void Undo                    ();
  65.  
  66.    void Redo                    ();
  67.  
  68.    void MarkActionHistory       ();
  69.  
  70.    void ClearActionHistory      (in  ODRespectMarksChoices respectMarks);
  71.  
  72.    void ClearRedoHistory        ();
  73.  
  74.    ODBoolean PeekUndoHistory    (out ODPart part,
  75.                                  out ODActionData actionData,
  76.                                  out ODActionType actionType,
  77.                                  out ODName actionLabel);
  78.  
  79.    ODBoolean PeekRedoHistory    (out ODPart part,
  80.                                  out ODActionData actionData,
  81.                                  out ODActionType actionType,
  82.                                  out ODName actionLabel);
  83.  
  84.    void AbortCurrentTransaction ();
  85.  
  86. #ifdef __SOMIDL__
  87.         implementation
  88.         {
  89.                 majorversion = 1; minorversion = 0;  // BRR 2/20/96 - New for DR4
  90.  
  91.                 functionprefix = ODUndo;
  92.  
  93.                 override:
  94.                         Purge,
  95.                         somUninit;
  96.  
  97.                 releaseorder:
  98.                         InitUndo,
  99.                         AddActionToHistory,
  100.                         Undo,
  101.                         Redo,
  102.                         MarkActionHistory,
  103.                         ClearActionHistory,
  104.                         ClearRedoHistory,
  105.                         PeekUndoHistory,
  106.                         PeekRedoHistory,
  107.                         AbortCurrentTransaction ;
  108.  
  109.         };
  110. #endif
  111. };
  112.  
  113. #endif // _UNDO_
  114.  
  115.  
  116.