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

  1. /* @(#)Z 1.20 com/src/storage/idl/Clipbd.idl, oddataxfer, od96os2, odos29712d 97/03/21 17:20:07 (96/10/29 09:32:09) */
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: oddataxfer
  6. //#
  7. //#   CLASSES: none
  8. //#
  9. //#   ORIGINS: 82,27,94
  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.  
  29. //#    Copyright:    (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  30.  
  31. #ifndef _CLIPBD_
  32. #define _CLIPBD_
  33.  
  34. #ifndef _ODOBJECT_
  35. #include "ODObject.idl"
  36. #endif
  37.  
  38. //=====================================================================================
  39. // Classes defined in this interface
  40. //=====================================================================================
  41. interface  ODClipboard;
  42.  
  43. //=====================================================================================
  44. // Classes used by this interface
  45. //=====================================================================================
  46. interface  ODStorageUnit;
  47. interface  ODDraft;
  48. interface  ODPlatformTypeList;
  49. #if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_OS2_) || defined(_PLATFORM_WIN32_) || defined(_PLATFORM_AIX_)
  50. interface  ODFacet;
  51. interface  ODTypeList;
  52. #endif //# _PLATFORM_MACINTOSH_ or OS/2 or WIN32
  53. #ifdef _PLATFORM_OS2_
  54. interface  ODTypeList;
  55. interface  ODPart;
  56. interface OrderedCollection;
  57. #endif
  58.  
  59. //=====================================================================================
  60. // Implementation Types
  61. //=====================================================================================
  62. #define PROMISEKEEPER
  63. #ifdef _PLATFORM_WIN32_
  64. #ifdef PROMISEKEEPER
  65. typedef somToken OLEPromiseKeeper;
  66. #endif
  67. typedef somToken DWORD;
  68. //typedef somToken HWND;
  69. typedef somToken LPVOID;
  70. typedef somToken POINTL;
  71. typedef somToken Handle;
  72. typedef somToken ODOLEManager;
  73. #endif //# _PLATFORM_WIN32_
  74. #ifdef _PLATFORM_OS2_
  75. #endif
  76.  
  77. //=====================================================================================
  78. // ODClipboard
  79. //=====================================================================================
  80.  
  81.  
  82. interface ODClipboard :  ODObject
  83. {
  84.     ODUpdateID GetUpdateID();
  85.                           
  86.     void Clear();
  87.     
  88.     ODStorageUnit GetContentStorageUnit();
  89.  
  90.     ODUpdateID ActionDone(in ODCloneKind cloneKind);
  91.  
  92.     void ActionUndone(in ODUpdateID update, in ODCloneKind originalCloneKind);
  93.  
  94.     void ActionRedone(in ODUpdateID update, in ODCloneKind originalCloneKind);
  95.  
  96.     void SetPlatformClipboard(in ODPlatformTypeList typeList);
  97.     
  98.     void ExportClipboard();
  99.  
  100.     void DraftSaved(in ODDraft draft);
  101.  
  102.     void DraftClosing(in ODDraft draft);
  103. #if defined(_PLATFORM_WIN32_) || defined(_PLATFORM_AIX_)
  104.     ODBoolean CanEmbed();
  105. #endif
  106.  
  107. #if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_WIN32_) || defined(_PLATFORM_OS2_) || defined(_PLATFORM_AIX_)
  108.  
  109.     ODBoolean ShowPasteAsDialog(
  110.                     in        ODBoolean                canPasteLink,
  111.                     in        ODPasteAsMergeSetting    mergeSetting,
  112.                     in        ODFacet                    facet,
  113.                     in        ODTypeToken                viewType,
  114.                     out        ODPasteAsResult            theResult);
  115.  
  116. #endif //# _PLATFORM_MACINTOSH_  or _PLATFORM_WIN32_ or _PLATFORM_OS2_
  117.  
  118. #ifdef _PLATFORM_OS2_
  119.         ODBoolean RegisterClipboardFormat(in ODType odType,
  120.                                     in ODPlatformType odPlatformType,
  121.                                     in ODULong formatInfo );
  122.  
  123.         ODBoolean DeregisterClipboardFormat(in ODType odType );
  124.         ODBoolean CanEmbed();                         // [140007]
  125.         ODBoolean CanIncorporate(in ODType kind);     // [140007]
  126. #endif
  127.  
  128. #ifdef __SOMIDL__
  129. #if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_WIN32_) || defined(_PLATFORM_OS2_) || defined(_PLATFORM_AIX_)
  130.     implementation
  131.     {
  132.         majorversion = 1; minorversion = 0;
  133.             
  134.         functionprefix = ODClipboard;
  135.  
  136.         override:
  137.             somUninit,
  138.             Purge;
  139.  
  140.         releaseorder:
  141.             GetUpdateID,
  142.             Clear,
  143.             GetContentStorageUnit,
  144.             ActionDone,
  145.             ActionUndone,         
  146.             ActionRedone,
  147.             SetPlatformClipboard,
  148.             ExportClipboard,
  149.             DraftSaved,
  150.             DraftClosing,
  151.             ShowPasteAsDialog,
  152.                 #ifdef _PLATFORM_WIN32_
  153.                         PlatformClipboardHasType,
  154.                         ClipboardChanged,
  155.             CanEmbed,
  156.                         ReservedA,
  157.                         ReservedB,
  158.                 #endif // _PLATFORM_WIN32_
  159.                 #ifdef _PLATFORM_OS2_
  160.                         RegisterClipboardFormat,
  161.                         DeregisterClipboardFormat,
  162.                         CanEmbed,
  163.                         CanIncorporate,
  164.                         PutContentOnPlatformClipboard,
  165.                 #endif // _PLATFORM_OS2_
  166.                 #if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_AIX_)
  167.                         PutContentOnPlatformClipboard,
  168.                         CanEmbed,
  169.                         ReservedA,
  170.                         ReservedB,
  171.                         ReservedC,
  172.                 #endif // MAC or AIX
  173.             reserved1,
  174.             reserved2,
  175.             reserved3,
  176.             reserved4,
  177.             reserved5,
  178.             reserved6,
  179.             reserved7,
  180.             reserved8,
  181.             reserved9,
  182.             reserved10;
  183.         
  184.  
  185.   };
  186. #endif //# _PLATFORM_MACINTOSH_ or WIN32 or OS2
  187. #endif //# __SOMIDL__
  188. };
  189.  
  190. #endif // _CLIPBD_
  191.