home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / POPUP.IDL < prev    next >
Text File  |  1995-12-13  |  3KB  |  107 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. #ifndef _POPUP_
  15. #define _POPUP_
  16.  
  17. #ifndef _MENUBAR_
  18. #include "MenuBar.idl"
  19. #endif
  20.  
  21. #ifndef _ODTYPESM_
  22. #include "odtypesm.idl"
  23. #endif
  24.  
  25. //======================================================================
  26. // Classes defined in this interface
  27. //======================================================================
  28.  
  29. interface  ODPopup;
  30.  
  31. //======================================================================
  32. // Classes used by this interface
  33. //======================================================================
  34.  
  35. interface  ODSession;
  36. interface  ODPart;
  37. interface  ODFrame;
  38. interface  ODMenuBar;
  39.  
  40. //======================================================================
  41. // Class ODPopupMenu
  42. //======================================================================
  43.  
  44. interface ODPopup :  ODMenuBar
  45. {
  46.  
  47.    ODPopup CopyPopup();
  48.  
  49.    ODBoolean AddDefaultMenuItemBefore(in ODMenuItemID menuItemID,
  50.                                       in ODMenuItemID beforeID);
  51.  
  52.    ODBoolean AddDefaultMenuItemLast(in ODMenuItemID menuItemID);
  53.  
  54.  
  55. #ifdef __SOMIDL__
  56.   implementation
  57.   {
  58.      functionprefix = ODPopup;
  59.  
  60.      override:
  61.          somInit,
  62.          somUninit,
  63.          Purge,
  64.          Release,
  65.          Display,
  66.          AddMenuLast,
  67.          AddMenuBefore,
  68.          RemoveMenu,
  69.          GetMenu,
  70.       #ifndef _PLATFORM_OS2_
  71.          IsValid,
  72.       #endif  //PLATFORM_OS2
  73.          Copy,
  74.          SetMenuItemText,
  75.          GetMenuItemText,
  76.          SetHideMenuItem,
  77.          SetShowMenuItem,
  78.          CheckMenuItem,
  79.          EnableMenuItem,
  80.          AddMenuItemBefore,
  81.          AddMenuItemLast,
  82.          InsertSubmenu,
  83.          Exists,
  84.          IsItemEnabled,
  85.          AddToAccelTable,
  86.          RestoreAccelTable,
  87.          IsItemChecked,
  88.          RemoveMenuItem,
  89.          GetMenuItem,
  90.          SetMenuItemStatusText,
  91.          GetMenuItemStatusText;
  92.  
  93.      releaseorder:
  94.         CopyPopup,
  95.         AddDefaultMenuItemBefore,
  96.         AddDefaultMenuItemLast,
  97.         reserved1,
  98.         reserved2;
  99.  
  100.      majorversion = 1; minorversion = 0;
  101.  
  102.  
  103.   };
  104. #endif // __SOMIDL__
  105. };
  106. #endif // _POPUP_
  107.