home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / CLIPBD.IDL < prev    next >
Text File  |  1995-12-13  |  6KB  |  188 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.  
  16. #ifndef _CLIPBD_
  17. #define _CLIPBD_
  18.  
  19. #ifndef _ODOBJECT_
  20. #include "ODObject.idl"
  21. #endif
  22.  
  23. //=====================================================================================
  24. // Classes defined in this interface
  25. //=====================================================================================
  26. interface  ODClipboard;
  27.  
  28. //=====================================================================================
  29. // Classes used by this interface
  30. //=====================================================================================
  31. interface  ODStorageUnit;
  32. interface  ODDraft;
  33. interface  ODPlatformTypeList;
  34. interface  ODFacet;
  35. #ifdef _PLATFORM_OS2_
  36. interface  ODTypeList;
  37. interface  ODPart;
  38. interface OrderedCollection;
  39. #endif
  40.  
  41. #ifdef _PLATFORM_OS2_
  42. //=====================================================================================
  43. // Implementation Types
  44. //=====================================================================================
  45.  
  46.  
  47. #endif  // _PLATFORM_OS2_
  48.  
  49. //=====================================================================================
  50. // ODClipboard
  51. //=====================================================================================
  52.  
  53. // #ifdef _PLATFORM_MACINTOSH_
  54. #if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_OS2_)
  55.  
  56. interface ODClipboard :  ODObject
  57. {
  58.   ODUpdateID GetUpdateID();
  59.  
  60.   void Clear();
  61.  
  62.   ODStorageUnit GetContentStorageUnit();
  63.  
  64.   ODUpdateID ActionDone(in ODCloneKind cloneKind);
  65.  
  66.   void ActionUndone(in ODUpdateID update, in ODCloneKind originalCloneKind);
  67.  
  68.   void ActionRedone(in ODUpdateID update, in ODCloneKind originalCloneKind);
  69.  
  70.   void SetPlatformClipboard(in ODPlatformTypeList typeList);
  71.  
  72.   void ExportClipboard();
  73.  
  74.   void DraftSaved(in ODDraft draft);
  75.  
  76.   void DraftClosing(in ODDraft draft);
  77.  
  78. #if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_OS2_)
  79.   ODBoolean ShowPasteAsDialog(
  80.           in    ODBoolean        canPasteLink,
  81.           in    ODPasteAsMergeSetting  mergeSetting,
  82.           in    ODFacet          facet,
  83.           in    ODTypeToken        viewType,
  84.           out    ODPasteAsResult      theResult);
  85. #endif
  86.  
  87. #ifdef _PLATFORM_OS2_
  88.   ODBoolean RegisterClipboardFormat(in ODType odType,
  89.                                     in ODPlatformType odPlatformType,
  90.                                     in ODULong formatInfo );
  91.  
  92.   ODBoolean DeregisterClipboardFormat(in ODType odType );
  93.   ODBoolean CanEmbed();                         // [140007]
  94.   ODBoolean CanIncorporate(in ODType kind);     // [140007]
  95. #endif
  96.  
  97.  
  98. #ifdef __SOMIDL__
  99.   implementation
  100.   {
  101.     functionprefix = ODClipboard;
  102.     override:
  103. #ifdef _PLATFORM_OS2_
  104.       somInit,
  105. #endif
  106.       somUninit,
  107.       Purge;
  108.  
  109.     releaseorder:
  110.       GetUpdateID,
  111.       Clear,
  112.       GetContentStorageUnit,
  113.       ActionDone,
  114.       ActionUndone,
  115.       ActionRedone,
  116.       SetPlatformClipboard,
  117.       ExportClipboard,
  118.       DraftSaved,
  119.       DraftClosing,
  120. #if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_OS2_)
  121.       ShowPasteAsDialog,
  122. #endif
  123. #ifdef _PLATFORM_OS2_
  124.       RegisterClipboardFormat,
  125.       DeregisterClipboardFormat,
  126.       CanEmbed,
  127.       CanIncorporate,
  128. #endif
  129.       reserved1,
  130.       reserved2,
  131.       reserved3,
  132.       reserved4,
  133.       reserved5,
  134.       reserved6,
  135.       reserved7,
  136.       reserved8
  137. #ifdef _PLATFORM_OS2_
  138.       ,reserved9
  139.       ,reserved10
  140. #endif
  141.     ;
  142.     majorversion = 1; minorversion = 0;
  143.  
  144.  
  145. passthru C_xh = ""
  146.         "#ifdef _PLATFORM_OS2_"
  147.         "#define INCL_WINATOM"
  148.         "#include <os2.h>"
  149.         ""
  150.         "#define kCF_OPENDOCDOCUMENT \"CF_OPENDOCDOCUMENT\""
  151.         "#define CF_OPENDOCDOCUMENT  WinFindAtom(WinQuerySystemAtomTable(),kCF_OPENDOCDOCUMENT)"
  152.         "#define kCF_OPENDOCOWNERID \"CF_OPENDOCOWNERID\""
  153.         "#define CF_OPENDOCOWNERID   WinFindAtom(WinQuerySystemAtomTable(),kCF_OPENDOCOWNERID)"
  154.         "#endif // _PLATFORM_OS2_"
  155.         "";
  156.  
  157. passthru C_hh = ""
  158.         "#ifdef _PLATFORM_OS2_"
  159.         "#define INCL_WINATOM"
  160.         "#include <os2.h>"
  161.         ""
  162.         "#define kCF_OPENDOCDOCUMENT \"CF_OPENDOCDOCUMENT\""
  163.         "#define CF_OPENDOCDOCUMENT  WinFindAtom(WinQuerySystemAtomTable(),kCF_OPENDOCDOCUMENT)"
  164.         "#define kCF_OPENDOCOWNERID \"CF_OPENDOCOWNERID\""
  165.         "#define CF_OPENDOCOWNERID   WinFindAtom(WinQuerySystemAtomTable(),kCF_OPENDOCOWNERID)"
  166.         "#endif // _PLATFORM_OS2_"
  167.         "";
  168.  
  169. passthru C_h = ""
  170.         "#ifdef _PLATFORM_OS2_"
  171.         "#define INCL_WINATOM"
  172.         "#include <os2.h>"
  173.         ""
  174.         "#define kCF_OPENDOCDOCUMENT \"CF_OPENDOCDOCUMENT\""
  175.         "#define CF_OPENDOCDOCUMENT  WinFindAtom(WinQuerySystemAtomTable(),kCF_OPENDOCDOCUMENT)"
  176.         "#define kCF_OPENDOCOWNERID \"CF_OPENDOCOWNERID\""
  177.         "#define CF_OPENDOCOWNERID   WinFindAtom(WinQuerySystemAtomTable(),kCF_OPENDOCOWNERID)"
  178.         "#endif // _PLATFORM_OS2_"
  179.         "";
  180.  
  181.   };
  182. #endif
  183. };
  184.  
  185. #endif // _PLATFORM_MACINTOSH_
  186.  
  187. #endif // _CLIPBD_
  188.