home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / bento / headers / dragdrop.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-02  |  2.2 KB  |  90 lines

  1. /*
  2.     File:        DragDrop.h
  3.  
  4.     Contains:    Class definition for Drag and Drop.
  5.  
  6.     Written by:    Vincent Lo
  7.  
  8.     Copyright:    ⌐ 1993 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <12>      2/4/94    VL        Moved to PPC Header and code cleanup.
  13.         <11>    10/12/93    PH        Change DragItemIter constructor
  14.          <9>     9/30/93    PH        Add support for multiple drag items
  15.          <8>      7/1/93    VL        Included XMPObj.h.
  16.          <7>      7/1/93    PH        Separate Abstract/Concrete classes
  17.          <6>     6/29/93    RCR        Removed #include Container
  18.          <5>     4/29/93    VL        8.3 Name Change.
  19.          <4>     4/23/93    VL        Purge needs a ;
  20.          <3>     4/23/93    VL        Added Initialize and Purge.
  21.          <2>      4/9/93    VL        Updated comments.
  22.          <1>      4/9/93    VL        first checked in
  23.  
  24.     To Do:
  25. */
  26.  
  27. #ifndef _DRAGDROP_
  28. #define _DRAGDROP_
  29.  
  30. #ifndef _XMPTYPES_
  31. #include "XMPTypes.h"
  32. #endif
  33.  
  34. #ifndef _XMPOBJ_
  35. #include "XMPObj.h"
  36. #endif
  37.  
  38. //=====================================================================================
  39. // Classes defined in this interface
  40. //=====================================================================================
  41. class XMPAbsDragAndDrop;
  42.  
  43. //=====================================================================================
  44. // Classes used by this interface
  45. //=====================================================================================
  46. class XMPPart;
  47. class XMPFrame;
  48. class XMPSession;
  49. class XMPStorageUnit;
  50.  
  51. //=====================================================================================
  52. // XMPAbsDragAndDrop
  53. //=====================================================================================
  54.  
  55. class XMPAbsDragAndDrop : public XMPObject
  56. {
  57. public:
  58.     
  59.     XMPAbsDragAndDrop(XMPSession* session) {XMPUnused(session);}
  60.         
  61.     XMPVMethod ~XMPAbsDragAndDrop() {}
  62.         
  63.     XMPVMethod void InitDragAndDrop()
  64.         = 0;
  65.  
  66.     XMPVMethod XMPSize Purge(XMPSize size)
  67.         = 0;
  68.     
  69.     XMPVMethod void Clear()
  70.         = 0;
  71.         
  72.     XMPVMethod XMPStorageUnit* GetStorageUnit()
  73.         = 0;
  74.         
  75.     XMPVMethod XMPDropResult StartDrag(XMPFrame* srcFrame,
  76.                                     XMPValueType imageType,
  77.                                     XMPPtr image,
  78.                                     XMPPart** destPart,
  79.                                     XMPPtr refCon)
  80.         = 0;
  81. };
  82.  
  83. #ifdef PLATFORM_MACINTOSH
  84. #ifndef _DRAGDRPM_
  85. #include "DragDrpM.h"
  86. #endif
  87. #endif
  88.  
  89. #endif // _DRAGDROP_ 
  90.