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

  1. #ifndef _IDMMENIT_
  2. #define _IDMMENIT_
  3. /*******************************************************************************
  4. * FILE NAME: idmmenit.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IDMMenuItem                                                              *
  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. #ifndef IC_WIN_FLAGNOP
  19. #include <idmitem.hpp>
  20.  
  21. class IDMSourceOperation;
  22. class IDMMenuItemData;
  23.  
  24. #pragma pack(4)
  25.  
  26. class IDMMenuItem : public IDMItem {
  27. typedef IDMItem
  28.   Inherited;
  29. public:
  30.  
  31. /*------------------------------- Constructors -------------------------------*/
  32.   IDMMenuItem  ( IDMSourceOperation*    sourceOperation );
  33.  
  34.   IDMMenuItem  ( const IDMItem::Handle& dragItem );
  35.  
  36. virtual
  37.   ~IDMMenuItem ( );
  38.  
  39.  
  40. /*--------------------------- Menu Item Operations ---------------------------*/
  41. virtual unsigned long
  42.   supportedOperationsFor ( const IString& selectedRMFs ) const;
  43.  
  44. /*------------------------------ Menu Cleanup --------------------------------*/
  45. virtual Boolean
  46.   sourceEnd ( IDMSourceEndEvent& event );
  47.  
  48. /*------------------------------ Source Items --------------------------------*/
  49. static Boolean
  50.   generateSourceItems ( IDMSourceOperation* sourceOperation );
  51.  
  52. private:
  53. /*--------------------------------- Private ----------------------------------*/
  54. Boolean
  55.   fNoDismiss;
  56.  
  57. IDMMenuItem
  58.  &dismissMenu ( );
  59.  
  60. IDMMenuItemData
  61.  *fDMMenuItemData;
  62.  
  63. }; // IDMMenuItem
  64.  
  65. #pragma pack()
  66. #endif // IC_WIN_FLAGNOP
  67.  
  68. #endif // _IDMMENIT_
  69.