home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / idmcnrit.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.5 KB  |  71 lines

  1. #ifndef _IDMCNRIT_
  2. #define _IDMCNRIT_
  3. /*******************************************************************************
  4. * FILE NAME: idmcnrit.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IDMCnrItem                                                               *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #include <idmitem.hpp>
  19.  
  20. class IContainerControl;
  21. class IContainerObject;
  22. class IDMCnrItemData;
  23.  
  24. #pragma pack(4)
  25.  
  26. class IDMCnrItem : public IDMItem  {
  27. typedef IDMItem
  28.   Inherited;
  29. public:
  30.  
  31. /*------------------------------- Constructors -------------------------------*/
  32.   IDMCnrItem  ( IContainerControl*     container,
  33.                 IContainerObject*      object,
  34.                 IDMSourceOperation*    sourceOperation,
  35.                 const ISize&           imageOffset);
  36.  
  37.   IDMCnrItem  ( const IDMItem::Handle& dragItem );
  38.  
  39. virtual
  40.   ~IDMCnrItem ( );
  41.  
  42.  
  43. /*------------------------------ Source Items --------------------------------*/
  44. static Boolean
  45.   generateSourceItems ( IDMSourceOperation* sourceOperation );
  46.  
  47. virtual unsigned long
  48.   containerId         ( ) const;
  49.  
  50. virtual IContainerControl
  51.  *sourceContainer     ( ) const;
  52.  
  53. /*------------------------------ Drop Processing -----------------------------*/
  54. virtual Boolean
  55.   targetDrop ( IDMTargetDropEvent& event );
  56.  
  57. private:
  58. /*--------------------------------- Private ----------------------------------*/
  59.  
  60. IContainerControl
  61.  *pContainerCtl;
  62.  
  63. IDMCnrItemData
  64.  *fDMCnrItemData;
  65.  
  66. }; // IDMCnrItem
  67.  
  68. #pragma pack()
  69.  
  70. #endif // _IDMCNRIT_
  71.