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

  1. /*
  2.     File:        MenuBar.h
  3.  
  4.     Contains:    Interface to XMPMenuBar class
  5.  
  6.     Written by:    Richard Rodseth
  7.  
  8.     Copyright:    ⌐ 1993-94 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <7>      2/9/94    NP        Tiger Team cleanup.
  13.          <6>      2/7/94    NP        Tiger Team doings.
  14.          <5>      2/7/94    NP        Tiger Team doings.
  15.          <4>     1/21/94    RR        Misc. cleanup
  16.          <3>     12/8/93    RR        Cleanup XMPMethod and forward declarations
  17.          <2>     9/22/93    RR        Move methods from MenuBarM.h. Derive from
  18.                                     RefCntObj
  19.          <1>      9/9/93    RR        first checked in
  20.  
  21.     To Do:
  22. */
  23.  
  24. // MenuBar.h
  25.  
  26. #ifndef _MENUBAR_
  27. #define _MENUBAR_
  28.  
  29. #ifndef _REFCTOBJ_
  30. #include "RefCtObj.h"
  31. #endif    
  32.  
  33. #ifndef _XMPTYPES_
  34. #include "XMPTypes.h"
  35. #endif
  36.  
  37. //=====================================================================================
  38. // Classes defined in this interface
  39. //=====================================================================================
  40.  
  41. class XMPMenuBar;    
  42.  
  43. //=====================================================================================
  44. // Classes used by this interface
  45. //=====================================================================================
  46.  
  47. class XMPPart;
  48.  
  49. //=====================================================================================
  50. // Class XMPAbsMenuBar
  51. //=====================================================================================
  52.  
  53. class XMPAbsMenuBar : public XMPRefCntObject
  54. {
  55. public:
  56.     XMPAbsMenuBar() {}
  57.     XMPVMethod ~XMPAbsMenuBar() {}
  58.     
  59.     XMPVMethod void    Release()
  60.         = 0;
  61.         
  62.     XMPVMethod void Display()
  63.         = 0;
  64.  
  65.     XMPVMethod XMPMenuBar* Copy()
  66.         = 0;    
  67.  
  68.     XMPVMethod void AddMenuLast(XMPMenuID menuID, XMPPlatformMenu menu, XMPPart* part)
  69.         = 0;
  70.  
  71.     XMPVMethod void AddMenuBefore(XMPMenuID menuID, 
  72.                                   XMPPlatformMenu menu, 
  73.                                   XMPPart* part, 
  74.                                   XMPMenuID beforeID)
  75.         = 0;
  76.         
  77.     XMPVMethod void RemoveMenu(XMPMenuID menu)
  78.         = 0;    
  79.  
  80.     XMPVMethod XMPPlatformMenu GetMenu(XMPMenuID menu)
  81.         = 0;    
  82.  
  83. };
  84.  
  85. #ifdef PLATFORM_MACINTOSH
  86. #ifndef _MENUBARM_
  87. #include "MenuBarM.h"
  88. #endif
  89. #endif
  90.  
  91. #endif // _MENUBAR_
  92.