/* @(#)Z 1.17 com/src/ui/idl/Popup.idl, odui, od96nt, odnt9712d 97/03/21 17:13:05 (96/10/15 18:14:20) */


#ifndef _POPUP_
#define _POPUP_

#ifndef _MENUBAR_
#include "MenuBar.idl"
#endif

#ifndef _ODTYPESM_
#include "ODTypesM.idl"
#endif

//======================================================================
// Classes defined in this interface
//======================================================================

interface  ODPopup;

//======================================================================
// Classes used by this interface
//======================================================================

interface  ODSession;
interface  ODPart;
interface  ODFrame;
interface  ODMenuBar;

//======================================================================
// Class ODPopupMenu
//======================================================================

interface ODPopup :  ODMenuBar
{

    ODBoolean AddDefaultMenuItemBefore	(in ODMenuItemID menuItemID,
					 in ODMenuItemID beforeID);

    ODBoolean AddDefaultMenuItemLast	(in ODMenuItemID menuItemID);


#ifdef __SOMIDL__
    implementation
    {
	majorversion = 1;
	minorversion = 0;

	functionprefix = ODPopup;

	override:
		somInit,
		somUninit,
		Display,
		Copy,
		AddMenuLast,
		AddMenuBefore,
		RemoveMenu,
		GetMenu,
		IsValid,
		GetMenuText,
		SetMenuText,
		GetMenuItemText,
		SetMenuItemText,
		SetHideMenuItem,
		SetShowMenuItem,
		CheckMenuItem,
		EnableMenu,
		EnableMenuItem,
		AddMenuItemBefore,
		AddMenuItemLast,
		InsertSubmenu,
		AddSubMenuBefore,
		AddSubMenuLast,
		MenuExists,
		IsMenuEnabled,
		MenuItemExists,
		Exists,
		IsItemEnabled,
		IsItemChecked,
		IsItemHidden,
		RemoveMenuItem,

	#ifdef _PLATFORM_WIN32_
		AddMenuLastEx,
		AddMenuBeforeEx,
		AddSubMenuBeforeEx,
		AddSubMenuLastEx,
	#endif // PLATFORM_WIN32

        #ifdef _PLATFORM_AIX_
                CreateX11PlatformMenu,
                DestroyX11PlatformMenu,
        #endif // PLATFORM_AIX

		GetMenuItem;

	releaseorder:
		AddDefaultMenuItemBefore,
		AddDefaultMenuItemLast,

	#ifdef _PLATFORM_WIN32_
		reserved1,
	#endif // PLATFORM_WIN32

		reserved2,
		reserved3;


    };
#endif // __SOMIDL__

};

#endif // _POPUP_
