home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / DRAGDRP.IDL < prev    next >
Text File  |  1995-12-13  |  5KB  |  185 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 _DRAGDROP_
  16. #define _DRAGDROP_
  17.  
  18. #ifndef _DRAGDRPB_
  19. #include "DragDrpB.idl"
  20. #endif
  21.  
  22. #ifndef _ODTYPESM_
  23. #include "odtypesm.idl"
  24. #endif
  25.  
  26. //=====================================================================================
  27. // Classes defined in this interface
  28. //=====================================================================================
  29.  
  30. interface  ODDragAndDrop;
  31.  
  32. //=====================================================================================
  33. // Classes used by this interface
  34. //=====================================================================================
  35.  
  36. interface  ODSession;
  37. interface  ODPart;
  38. interface  ODStorageUnit;
  39. interface  ODFacet;
  40. interface  ODFrame;
  41. interface  ODStorageSystem;
  42. interface  ODWindow;
  43. interface  ODWindowState;
  44. interface  ODDragItemIterator;
  45. interface  ODStorageUnitView;
  46.  
  47. //=====================================================================================
  48. // Implementation Types
  49. //=====================================================================================
  50.  
  51.  
  52. //=====================================================================================
  53. // ODDragAndDrop
  54. //=====================================================================================
  55.  
  56. #if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_OS2_)
  57.  
  58. interface ODDragAndDrop :  ODBaseDragAndDrop
  59. {
  60.  
  61. #if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_OS2_)
  62.   ODBoolean ShowPasteAsDialog(
  63.           in    ODBoolean        canPasteLink,
  64.           in    ODPasteAsMergeSetting mergeSetting,
  65.           in    ODFacet          facet,
  66.           in    ODTypeToken        viewType,
  67.           in    ODStorageUnit       contentSU,
  68.           out   ODPasteAsResult      theResult);
  69.  
  70.   ODULong GetDragAttributes();
  71.  
  72.   ODPlatformDragReference GetDragReference();
  73. #endif
  74.  
  75. #ifdef _PLATFORM_OS2_
  76.   ODUShort GetDragOperation();
  77.  
  78.   ODBoolean GetDataFromDragManager( in ODStorageUnitView theSUView,    // [140007] removed szSelectedRMF
  79.                                     out ODStorageUnit    renderedSU );
  80.  
  81.   void InitDragAndDrop(in ODSession session);
  82.  
  83.   void GetPromiseFromDragManager(in ODPart sourcePart,
  84.                   in  ODStorageUnitView destSUView);
  85.  
  86.   ODBoolean DispatchHandler(in ODEventData evt, in ODFacet targetfacet);// [138899] - ced
  87.   ODBoolean CanEmbed(in ODStorageUnit dropSU);                          // [140007]
  88.   ODBoolean CanIncorporate(in ODStorageUnit dropSU, in ODType kind);    // [140007]
  89. #endif
  90.  
  91. #ifdef __SOMIDL__
  92.   implementation
  93.   {
  94.     functionprefix = ODDragAndDrop;
  95.     override:
  96.       somInit,
  97.       somUninit,
  98.       Clear,
  99.       GetContentStorageUnit,
  100.       StartDrag;
  101.  
  102.     releaseorder:
  103. #if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_OS2_)
  104.       ShowPasteAsDialog,
  105.       GetDragAttributes,
  106.       GetDragReference,
  107. #endif
  108. #ifdef _PLATFORM_OS2_    // [138826]
  109.       GetDataFromDragManager,
  110.       InitDragAndDrop,
  111.       DispatchHandler,
  112.       GetPromiseFromDragManager,
  113.       GetDragOperation,
  114.       CanEmbed,
  115.       CanIncorporate,
  116. #endif // _PLATFORM_OS2_
  117.       reserved1,
  118.       reserved2,
  119.       reserved3,
  120.       reserved4,
  121.       reserved5,
  122.       reserved6,
  123.       reserved7,
  124.       reserved8,
  125.       reserved9,
  126.       reserved10,
  127.       reserved11,
  128.       reserved12,
  129.       reserved13,
  130.       reserved14,
  131.       reserved15,
  132.       reserved16,
  133.       reserved17,
  134.       reserved18,
  135.       reserved19,
  136.       reserved20,
  137.       reserved21,
  138.       reserved22,
  139.       reserved23,
  140.       reserved24,
  141.       reserved25,
  142.       reserved26,
  143.       reserved27,
  144.       reserved28,
  145.       reserved29,
  146.       reserved30,
  147.       reserved31,
  148.       reserved32,
  149.       reserved33,
  150.       reserved34
  151. #ifdef _PLATFORM_OS2_
  152.      ,reserved35
  153. #endif
  154.       ;
  155.  
  156.       majorversion = 1; minorversion = 0;
  157.  
  158.       passthru C_h =
  159.         ""
  160.         "#ifndef _PLATFORM_OS2_"
  161.         "#ifndef __DRAG__"
  162.         "#include <Drag.h>"
  163.         "#endif"
  164.         "#endif"
  165.         "";
  166.  
  167.       passthru C_xh =
  168.         ""
  169.         "#ifndef _PLATFORM_OS2_"
  170.         "#ifndef __DRAG__"
  171.         "#include <Drag.h>"
  172.         "#endif"
  173.         "#endif"
  174.         "";
  175.  
  176.  
  177. };
  178. #endif // __SOMIDL__
  179.  
  180. };
  181.  
  182. #endif // _PLATFORM_MACINTOSH || _PLATFORM_OS2
  183.  
  184. #endif // _DRAGDROP_
  185.