
/*
 * This file was generated by the SOM Compiler.
 * FileName: F:\BUILD\NT\ship\include\Popup.xh.
 * Generated using:
 *     SOM Precompiler somipc: Development
 *     SOM Emitter emitxh.dll: Development
 */

#ifndef SOM_ODPopup_xh
#define SOM_ODPopup_xh

class ODPopup;

#define ODPopup_MajorVersion 1
#define ODPopup_MinorVersion 0

/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>

/* C++ parent defs */
#ifndef SOM_ODMenuBar_xh
#include <MenuBar.xh>
#endif

#ifndef ODPopup_API
#define ODPopup_API
/*
 * -- The Class API
 */

/*
 * Start of user-defined types:
 */
class SOMClass;
class SOMObject;
class ODFrame;
class ODFacet;
class ODPlatformCanvas;
class ODObject;
class ODExtension;
class ODRefCntObject;
class ODMenuBar;
class ODPart;
class ODPopup;
class ODSession;

/*
 * End of user-defined types.
 */

/* A procedure to create the ODPopup Class */
SOMEXTERN
#if (defined(SOM_Module_Popup_Source) || defined(ODPopup_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODPopup))
WIN32_DLLEXPORT
#else
WIN32_DLLIMPORT
#endif
SOMClass * SOMLINK ODPopupNewClass(
		integer4,
		integer4 );

/* The API to the ODPopup class object, and the methods it introduces. */
SOMEXTERN struct ODPopupClassDataStructure {
	SOMClass *classObject;
	somMToken AddDefaultMenuItemBefore;
	somMToken AddDefaultMenuItemLast;
	somMToken reserved1;
	somMToken reserved2;
	somMToken reserved3;
}
#if !(defined(SOM_Module_Popup_Source) || defined(ODPopup_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODPopup))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODPopupClassData;
#define _ODPopup ODPopupClassData.classObject

/* The API to parentMtabs for ODPopup, and the instance data it introduces. */
SOMEXTERN struct ODPopupCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken              instanceDataToken;
}
#if !(defined(SOM_Module_Popup_Source) || defined(ODPopup_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODPopup))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODPopupCClassData;

/*
 * -- Typedefs for ODPopup Method Procedures
 */
extern "C" {
typedef ODBoolean   SOMLINK somTP_ODPopup_AddDefaultMenuItemBefore(ODPopup *somSelf, Environment *ev,
		ODMenuItemID menuItemID,
		ODMenuItemID beforeID);
typedef somTP_ODPopup_AddDefaultMenuItemBefore *somTD_ODPopup_AddDefaultMenuItemBefore;
typedef ODBoolean   SOMLINK somTP_ODPopup_AddDefaultMenuItemLast(ODPopup *somSelf, Environment *ev,
		ODMenuItemID menuItemID);
typedef somTP_ODPopup_AddDefaultMenuItemLast *somTD_ODPopup_AddDefaultMenuItemLast;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_ODPopup_Display(ODPopup *somSelf, Environment *ev);
typedef somTP_ODPopup_Display *somTD_ODPopup_Display;
typedef ODMenuBar*   SOMLINK somTP_ODPopup_Copy(ODPopup *somSelf, Environment *ev);
typedef somTP_ODPopup_Copy *somTD_ODPopup_Copy;
typedef void   SOMLINK somTP_ODPopup_AddMenuLast(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODPlatformMenu menu,
		ODPart* part);
typedef somTP_ODPopup_AddMenuLast *somTD_ODPopup_AddMenuLast;
typedef void   SOMLINK somTP_ODPopup_AddMenuBefore(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODPlatformMenu menu,
		ODPart* part,
		ODMenuID beforeID);
typedef somTP_ODPopup_AddMenuBefore *somTD_ODPopup_AddMenuBefore;
typedef void   SOMLINK somTP_ODPopup_RemoveMenu(ODPopup *somSelf, Environment *ev,
		ODMenuID menu);
typedef somTP_ODPopup_RemoveMenu *somTD_ODPopup_RemoveMenu;
typedef ODPlatformMenu   SOMLINK somTP_ODPopup_GetMenu(ODPopup *somSelf, Environment *ev,
		ODMenuID menu);
typedef somTP_ODPopup_GetMenu *somTD_ODPopup_GetMenu;
typedef ODBoolean   SOMLINK somTP_ODPopup_IsValid(ODPopup *somSelf, Environment *ev);
typedef somTP_ODPopup_IsValid *somTD_ODPopup_IsValid;
typedef ODUShort   SOMLINK somTP_ODPopup_GetMenuText(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		string* menuString);
typedef somTP_ODPopup_GetMenuText *somTD_ODPopup_GetMenuText;
typedef ODBoolean   SOMLINK somTP_ODPopup_SetMenuText(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		string menuString);
typedef somTP_ODPopup_SetMenuText *somTD_ODPopup_SetMenuText;
typedef ODUShort   SOMLINK somTP_ODPopup_GetMenuItemText(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID,
		string* menuItemString);
typedef somTP_ODPopup_GetMenuItemText *somTD_ODPopup_GetMenuItemText;
typedef ODBoolean   SOMLINK somTP_ODPopup_SetMenuItemText(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID,
		string menuItemString);
typedef somTP_ODPopup_SetMenuItemText *somTD_ODPopup_SetMenuItemText;
typedef ODBoolean   SOMLINK somTP_ODPopup_SetHideMenuItem(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID);
typedef somTP_ODPopup_SetHideMenuItem *somTD_ODPopup_SetHideMenuItem;
typedef ODBoolean   SOMLINK somTP_ODPopup_SetShowMenuItem(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID);
typedef somTP_ODPopup_SetShowMenuItem *somTD_ODPopup_SetShowMenuItem;
typedef ODBoolean   SOMLINK somTP_ODPopup_CheckMenuItem(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID,
		ODBoolean check);
typedef somTP_ODPopup_CheckMenuItem *somTD_ODPopup_CheckMenuItem;
typedef ODBoolean   SOMLINK somTP_ODPopup_EnableMenu(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODBoolean enable);
typedef somTP_ODPopup_EnableMenu *somTD_ODPopup_EnableMenu;
typedef ODBoolean   SOMLINK somTP_ODPopup_EnableMenuItem(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID,
		ODBoolean enable);
typedef somTP_ODPopup_EnableMenuItem *somTD_ODPopup_EnableMenuItem;
typedef ODBoolean   SOMLINK somTP_ODPopup_AddMenuItemBefore(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID itemID,
		ODPlatformMenuItem* menuItem,
		ODMenuItemID beforeID);
typedef somTP_ODPopup_AddMenuItemBefore *somTD_ODPopup_AddMenuItemBefore;
typedef ODBoolean   SOMLINK somTP_ODPopup_AddMenuItemLast(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID itemID,
		ODPlatformMenuItem* menuItem);
typedef somTP_ODPopup_AddMenuItemLast *somTD_ODPopup_AddMenuItemLast;
typedef ODBoolean   SOMLINK somTP_ODPopup_AddSubMenuBefore(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID subMenuItemID,
		ODPlatformMenu newSubMenu,
		ODMenuItemID beforeID);
typedef somTP_ODPopup_AddSubMenuBefore *somTD_ODPopup_AddSubMenuBefore;
typedef ODBoolean   SOMLINK somTP_ODPopup_AddSubMenuLast(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID subMenuItemID,
		ODPlatformMenu newSubMenu);
typedef somTP_ODPopup_AddSubMenuLast *somTD_ODPopup_AddSubMenuLast;
typedef ODBoolean   SOMLINK somTP_ODPopup_InsertSubmenu(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID subMenuID,
		ODPlatformMenu newSubmenu);
typedef somTP_ODPopup_InsertSubmenu *somTD_ODPopup_InsertSubmenu;
typedef ODBoolean   SOMLINK somTP_ODPopup_MenuExists(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID);
typedef somTP_ODPopup_MenuExists *somTD_ODPopup_MenuExists;
typedef ODBoolean   SOMLINK somTP_ODPopup_IsMenuEnabled(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID);
typedef somTP_ODPopup_IsMenuEnabled *somTD_ODPopup_IsMenuEnabled;
typedef ODBoolean   SOMLINK somTP_ODPopup_MenuItemExists(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID);
typedef somTP_ODPopup_MenuItemExists *somTD_ODPopup_MenuItemExists;
typedef ODBoolean   SOMLINK somTP_ODPopup_Exists(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID);
typedef somTP_ODPopup_Exists *somTD_ODPopup_Exists;
typedef ODBoolean   SOMLINK somTP_ODPopup_IsItemEnabled(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID);
typedef somTP_ODPopup_IsItemEnabled *somTD_ODPopup_IsItemEnabled;
typedef ODBoolean   SOMLINK somTP_ODPopup_IsItemChecked(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID);
typedef somTP_ODPopup_IsItemChecked *somTD_ODPopup_IsItemChecked;
typedef ODBoolean   SOMLINK somTP_ODPopup_IsItemHidden(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID);
typedef somTP_ODPopup_IsItemHidden *somTD_ODPopup_IsItemHidden;
typedef ODBoolean   SOMLINK somTP_ODPopup_RemoveMenuItem(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID);
typedef somTP_ODPopup_RemoveMenuItem *somTD_ODPopup_RemoveMenuItem;
typedef ODBoolean   SOMLINK somTP_ODPopup_GetMenuItem(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID,
		ODPlatformMenuItem* menuItem);
typedef somTP_ODPopup_GetMenuItem *somTD_ODPopup_GetMenuItem;
typedef ODBoolean   SOMLINK somTP_ODPopup_AddToAccelTable(ODPopup *somSelf, Environment *ev,
		ODULong ulNumberofAccels,
		ODACCEL* NewAccels);
typedef somTP_ODPopup_AddToAccelTable *somTD_ODPopup_AddToAccelTable;
typedef void   SOMLINK somTP_ODPopup_RestoreAccelTable(ODPopup *somSelf, Environment *ev);
typedef somTP_ODPopup_RestoreAccelTable *somTD_ODPopup_RestoreAccelTable;
typedef void   SOMLINK somTP_ODPopup_GetMenuAndItem(ODPopup *somSelf, Environment *ev,
		ODCommandID command,
		ODMenuID* menu,
		ODMenuItemID* menuItem);
typedef somTP_ODPopup_GetMenuAndItem *somTD_ODPopup_GetMenuAndItem;
typedef void   SOMLINK somTP_ODPopup_AddMenuLastEx(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODPlatformMenu menu,
		ODPart* part,
		ODUShort subMenuIDcount,
		ODMenuIDInfo* subMenuIDinfo);
typedef somTP_ODPopup_AddMenuLastEx *somTD_ODPopup_AddMenuLastEx;
typedef void   SOMLINK somTP_ODPopup_AddMenuBeforeEx(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODPlatformMenu menu,
		ODPart* part,
		ODMenuID beforeID,
		ODUShort subMenuIDcount,
		ODMenuIDInfo* subMenuIDinfo);
typedef somTP_ODPopup_AddMenuBeforeEx *somTD_ODPopup_AddMenuBeforeEx;
typedef ODBoolean   SOMLINK somTP_ODPopup_AddSubMenuBeforeEx(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID subMenuItemID,
		ODPlatformMenu newSubMenu,
		ODMenuID beforeID,
		ODUShort subMenuIDcount,
		ODMenuIDInfo* subMenuIDinfo);
typedef somTP_ODPopup_AddSubMenuBeforeEx *somTD_ODPopup_AddSubMenuBeforeEx;
typedef ODBoolean   SOMLINK somTP_ODPopup_AddSubMenuLastEx(ODPopup *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID subMenuItemID,
		ODPlatformMenu newSubMenu,
		ODUShort subMenuIDcount,
		ODMenuIDInfo* subMenuIDinfo);
typedef somTP_ODPopup_AddSubMenuLastEx *somTD_ODPopup_AddSubMenuLastEx;
typedef void   SOMLINK somTP_ODPopup_somInit(ODPopup *somSelf);
typedef somTP_ODPopup_somInit *somTD_ODPopup_somInit;
typedef void   SOMLINK somTP_ODPopup_somUninit(ODPopup *somSelf);
typedef somTP_ODPopup_somUninit *somTD_ODPopup_somUninit;
typedef ODSize   SOMLINK somTP_ODPopup_Purge(ODPopup *somSelf, Environment *ev,
		ODSize size);
typedef somTP_ODPopup_Purge *somTD_ODPopup_Purge;
typedef void   SOMLINK somTP_ODPopup_Release(ODPopup *somSelf, Environment *ev);
typedef somTP_ODPopup_Release *somTD_ODPopup_Release;
typedef void   SOMLINK somTP_ODPopup_InitRefCntObject(ODPopup *somSelf, Environment *ev);
typedef somTP_ODPopup_InitRefCntObject *somTD_ODPopup_InitRefCntObject;
typedef void   SOMLINK somTP_ODPopup_Acquire(ODPopup *somSelf, Environment *ev);
typedef somTP_ODPopup_Acquire *somTD_ODPopup_Acquire;
typedef ODULong   SOMLINK somTP_ODPopup_GetRefCount(ODPopup *somSelf, Environment *ev);
typedef somTP_ODPopup_GetRefCount *somTD_ODPopup_GetRefCount;
typedef void   SOMLINK somTP_ODPopup_InitObject(ODPopup *somSelf, Environment *ev);
typedef somTP_ODPopup_InitObject *somTD_ODPopup_InitObject;
typedef ODBoolean   SOMLINK somTP_ODPopup_HasExtension(ODPopup *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODPopup_HasExtension *somTD_ODPopup_HasExtension;
typedef ODExtension*   SOMLINK somTP_ODPopup_AcquireExtension(ODPopup *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODPopup_AcquireExtension *somTD_ODPopup_AcquireExtension;
typedef void   SOMLINK somTP_ODPopup_ReleaseExtension(ODPopup *somSelf, Environment *ev,
		ODExtension* extension);
typedef somTP_ODPopup_ReleaseExtension *somTD_ODPopup_ReleaseExtension;
typedef ODBoolean   SOMLINK somTP_ODPopup_IsEqualTo(ODPopup *somSelf, Environment *ev,
		ODObject* object);
typedef somTP_ODPopup_IsEqualTo *somTD_ODPopup_IsEqualTo;
typedef void   SOMLINK somTP_ODPopup_SubClassResponsibility(ODPopup *somSelf, Environment *ev);
typedef somTP_ODPopup_SubClassResponsibility *somTD_ODPopup_SubClassResponsibility;
typedef void   SOMLINK somTP_ODPopup_somDefaultInit(ODPopup *somSelf,
		somInitCtrl* ctrl);
typedef somTP_ODPopup_somDefaultInit *somTD_ODPopup_somDefaultInit;
typedef void   SOMLINK somTP_ODPopup_somDestruct(ODPopup *somSelf,
		octet doFree,
		somDestructCtrl* ctrl);
typedef somTP_ODPopup_somDestruct *somTD_ODPopup_somDestruct;
typedef void   SOMLINK somTP_ODPopup_somDefaultCopyInit(ODPopup *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODPopup_somDefaultCopyInit *somTD_ODPopup_somDefaultCopyInit;
typedef ODPopup*   SOMLINK somTP_ODPopup_somDefaultAssign(ODPopup *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODPopup_somDefaultAssign *somTD_ODPopup_somDefaultAssign;
typedef void   SOMLINK somTP_ODPopup_somDefaultConstCopyInit(ODPopup *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODPopup_somDefaultConstCopyInit *somTD_ODPopup_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_ODPopup_somDefaultVCopyInit(ODPopup *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODPopup_somDefaultVCopyInit *somTD_ODPopup_somDefaultVCopyInit;
typedef void   SOMLINK somTP_ODPopup_somDefaultConstVCopyInit(ODPopup *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODPopup_somDefaultConstVCopyInit *somTD_ODPopup_somDefaultConstVCopyInit;
typedef ODPopup*   SOMLINK somTP_ODPopup_somDefaultConstAssign(ODPopup *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODPopup_somDefaultConstAssign *somTD_ODPopup_somDefaultConstAssign;
typedef ODPopup*   SOMLINK somTP_ODPopup_somDefaultVAssign(ODPopup *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODPopup_somDefaultVAssign *somTD_ODPopup_somDefaultVAssign;
typedef ODPopup*   SOMLINK somTP_ODPopup_somDefaultConstVAssign(ODPopup *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODPopup_somDefaultConstVAssign *somTD_ODPopup_somDefaultConstVAssign;
typedef void   SOMLINK somTP_ODPopup_somFree(ODPopup *somSelf);
typedef somTP_ODPopup_somFree *somTD_ODPopup_somFree;
typedef SOMClass*   SOMLINK somTP_ODPopup_somGetClass(ODPopup *somSelf);
typedef somTP_ODPopup_somGetClass *somTD_ODPopup_somGetClass;
typedef string   SOMLINK somTP_ODPopup_somGetClassName(ODPopup *somSelf);
typedef somTP_ODPopup_somGetClassName *somTD_ODPopup_somGetClassName;
typedef long   SOMLINK somTP_ODPopup_somGetSize(ODPopup *somSelf);
typedef somTP_ODPopup_somGetSize *somTD_ODPopup_somGetSize;
typedef boolean   SOMLINK somTP_ODPopup_somIsA(ODPopup *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODPopup_somIsA *somTD_ODPopup_somIsA;
typedef boolean   SOMLINK somTP_ODPopup_somIsInstanceOf(ODPopup *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODPopup_somIsInstanceOf *somTD_ODPopup_somIsInstanceOf;
typedef boolean   SOMLINK somTP_ODPopup_somRespondsTo(ODPopup *somSelf,
		somId mId);
typedef somTP_ODPopup_somRespondsTo *somTD_ODPopup_somRespondsTo;
typedef boolean   SOMLINK somTP_ODPopup_somDispatch(ODPopup *somSelf,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODPopup_somDispatch *somTD_ODPopup_somDispatch;
typedef boolean   SOMLINK somTP_ODPopup_somClassDispatch(ODPopup *somSelf,
		SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODPopup_somClassDispatch *somTD_ODPopup_somClassDispatch;
typedef boolean   SOMLINK somTP_ODPopup_somCastObj(ODPopup *somSelf,
		SOMClass* cls);
typedef somTP_ODPopup_somCastObj *somTD_ODPopup_somCastObj;
typedef boolean   SOMLINK somTP_ODPopup_somResetObj(ODPopup *somSelf);
typedef somTP_ODPopup_somResetObj *somTD_ODPopup_somResetObj;
typedef SOMObject*   SOMLINK somTP_ODPopup_somPrintSelf(ODPopup *somSelf);
typedef somTP_ODPopup_somPrintSelf *somTD_ODPopup_somPrintSelf;
typedef void   SOMLINK somTP_ODPopup_somDumpSelf(ODPopup *somSelf,
		long level);
typedef somTP_ODPopup_somDumpSelf *somTD_ODPopup_somDumpSelf;
typedef void   SOMLINK somTP_ODPopup_somDumpSelfInt(ODPopup *somSelf,
		long level);
typedef somTP_ODPopup_somDumpSelfInt *somTD_ODPopup_somDumpSelfInt;
}

#endif /* ODPopup_API */


/*
 * -- This emitter believes that method thunks are unavailable,
 * -- so somResolve will be called.
 */
#undef somresolve_
#define somresolve_(obj,mToken) (somResolve(obj,mToken))

/*
 * -- The C++ Wrapper Class for ODPopup
 */
class ODPopup : public ODMenuBar
{
public:

// ODPopup::new creates the class object if necessary, and then uses somNewNoInit
// to allocate memory and create the object. Initialization is in ctors.
void *operator new(size_t)
{
   if (!_ODPopup) ODPopupNewClass(ODPopup_MajorVersion,ODPopup_MinorVersion);
   return (void*)
      SOM_Resolve(_ODPopup,SOMClass,somNewNoInit)
         ((SOMClass *)((void*)_ODPopup));
}

// ODPopup::delete uses somDestruct.
void operator delete(void * obj)
{
   if (obj && *(void**)obj) {
      SOM_Resolve(obj,SOMObject,somDestruct)
         ((SOMObject*)obj, 1, 0);
   }
}

ODPopup()
{
   if (*(void**)this != 
       ((somParentMtabStructPtr)
        (ODPopupCClassData.parentMtab))->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultInit(0);
}

ODPopup(ODPopup* fromObj)
{
   if (*(void**)this != 
       ((somParentMtabStructPtr)
        (ODPopupCClassData.parentMtab))->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
}

ODPopup(const ODPopup* fromObj)
{
   if (*(void**)this != 
       ((somParentMtabStructPtr)
        (ODPopupCClassData.parentMtab))->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
}


/* method: AddDefaultMenuItemBefore */
ODBoolean   AddDefaultMenuItemBefore(Environment *ev,
		ODMenuItemID menuItemID,
		ODMenuItemID beforeID)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODPopup,AddDefaultMenuItemBefore)
	(this, ev,menuItemID,beforeID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODPopup,AddDefaultMenuItemBefore)
	(this, ev,menuItemID,beforeID);
#endif
}


/* method: AddDefaultMenuItemLast */
ODBoolean   AddDefaultMenuItemLast(Environment *ev,
		ODMenuItemID menuItemID)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODPopup,AddDefaultMenuItemLast)
	(this, ev,menuItemID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODPopup,AddDefaultMenuItemLast)
	(this, ev,menuItemID);
#endif
}


/*
 * Reintroduce inherited methods
 */

/* method: Display */
void   Display(Environment *ev)
{
   SOM_ResolveD(this,ODPopup,ODMenuBar,Display)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: Copy */
ODMenuBar*   Copy(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   ODMenuBar* __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,Copy)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,Copy)
	(this, ev);
#endif
}


/* method: AddMenuLast */
void   AddMenuLast(Environment *ev,
		ODMenuID menuID,
		ODPlatformMenu menu,
		ODPart* part)
{
   SOM_ResolveD(this,ODPopup,ODMenuBar,AddMenuLast)
	(this, ev,menuID,menu,part);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: AddMenuBefore */
void   AddMenuBefore(Environment *ev,
		ODMenuID menuID,
		ODPlatformMenu menu,
		ODPart* part,
		ODMenuID beforeID)
{
   SOM_ResolveD(this,ODPopup,ODMenuBar,AddMenuBefore)
	(this, ev,menuID,menu,part,beforeID);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: RemoveMenu */
void   RemoveMenu(Environment *ev,
		ODMenuID menu)
{
   SOM_ResolveD(this,ODPopup,ODMenuBar,RemoveMenu)
	(this, ev,menu);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: GetMenu */
ODPlatformMenu   GetMenu(Environment *ev,
		ODMenuID menu)
{
#ifdef SOMCHKEXCEPT
   ODPlatformMenu __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,GetMenu)
	(this, ev,menu);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,GetMenu)
	(this, ev,menu);
#endif
}


/* method: IsValid */
ODBoolean   IsValid(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,IsValid)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,IsValid)
	(this, ev);
#endif
}


/* method: GetMenuText */
ODUShort   GetMenuText(Environment *ev,
		ODMenuID menuID,
		string* menuString)
{
#ifdef SOMCHKEXCEPT
   ODUShort __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,GetMenuText)
	(this, ev,menuID,menuString);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,GetMenuText)
	(this, ev,menuID,menuString);
#endif
}


/* method: SetMenuText */
ODBoolean   SetMenuText(Environment *ev,
		ODMenuID menuID,
		string menuString)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,SetMenuText)
	(this, ev,menuID,menuString);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,SetMenuText)
	(this, ev,menuID,menuString);
#endif
}


/* method: GetMenuItemText */
ODUShort   GetMenuItemText(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID,
		string* menuItemString)
{
#ifdef SOMCHKEXCEPT
   ODUShort __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,GetMenuItemText)
	(this, ev,menuID,menuItemID,menuItemString);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,GetMenuItemText)
	(this, ev,menuID,menuItemID,menuItemString);
#endif
}


/* method: SetMenuItemText */
ODBoolean   SetMenuItemText(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID,
		string menuItemString)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,SetMenuItemText)
	(this, ev,menuID,menuItemID,menuItemString);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,SetMenuItemText)
	(this, ev,menuID,menuItemID,menuItemString);
#endif
}


/* method: SetHideMenuItem */
ODBoolean   SetHideMenuItem(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,SetHideMenuItem)
	(this, ev,menuID,menuItemID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,SetHideMenuItem)
	(this, ev,menuID,menuItemID);
#endif
}


/* method: SetShowMenuItem */
ODBoolean   SetShowMenuItem(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,SetShowMenuItem)
	(this, ev,menuID,menuItemID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,SetShowMenuItem)
	(this, ev,menuID,menuItemID);
#endif
}


/* method: CheckMenuItem */
ODBoolean   CheckMenuItem(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID,
		ODBoolean check)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,CheckMenuItem)
	(this, ev,menuID,menuItemID,check);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,CheckMenuItem)
	(this, ev,menuID,menuItemID,check);
#endif
}


/* method: EnableMenu */
ODBoolean   EnableMenu(Environment *ev,
		ODMenuID menuID,
		ODBoolean enable)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,EnableMenu)
	(this, ev,menuID,enable);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,EnableMenu)
	(this, ev,menuID,enable);
#endif
}


/* method: EnableMenuItem */
ODBoolean   EnableMenuItem(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID,
		ODBoolean enable)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,EnableMenuItem)
	(this, ev,menuID,menuItemID,enable);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,EnableMenuItem)
	(this, ev,menuID,menuItemID,enable);
#endif
}


/* method: AddMenuItemBefore */
ODBoolean   AddMenuItemBefore(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID itemID,
		ODPlatformMenuItem* menuItem,
		ODMenuItemID beforeID)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,AddMenuItemBefore)
	(this, ev,menuID,itemID,menuItem,beforeID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,AddMenuItemBefore)
	(this, ev,menuID,itemID,menuItem,beforeID);
#endif
}


/* method: AddMenuItemLast */
ODBoolean   AddMenuItemLast(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID itemID,
		ODPlatformMenuItem* menuItem)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,AddMenuItemLast)
	(this, ev,menuID,itemID,menuItem);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,AddMenuItemLast)
	(this, ev,menuID,itemID,menuItem);
#endif
}


/* method: AddSubMenuBefore */
ODBoolean   AddSubMenuBefore(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID subMenuItemID,
		ODPlatformMenu newSubMenu,
		ODMenuItemID beforeID)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,AddSubMenuBefore)
	(this, ev,menuID,subMenuItemID,newSubMenu,beforeID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,AddSubMenuBefore)
	(this, ev,menuID,subMenuItemID,newSubMenu,beforeID);
#endif
}


/* method: AddSubMenuLast */
ODBoolean   AddSubMenuLast(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID subMenuItemID,
		ODPlatformMenu newSubMenu)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,AddSubMenuLast)
	(this, ev,menuID,subMenuItemID,newSubMenu);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,AddSubMenuLast)
	(this, ev,menuID,subMenuItemID,newSubMenu);
#endif
}


/* method: InsertSubmenu */
ODBoolean   InsertSubmenu(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID subMenuID,
		ODPlatformMenu newSubmenu)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,InsertSubmenu)
	(this, ev,menuID,subMenuID,newSubmenu);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,InsertSubmenu)
	(this, ev,menuID,subMenuID,newSubmenu);
#endif
}


/* method: MenuExists */
ODBoolean   MenuExists(Environment *ev,
		ODMenuID menuID)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,MenuExists)
	(this, ev,menuID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,MenuExists)
	(this, ev,menuID);
#endif
}


/* method: IsMenuEnabled */
ODBoolean   IsMenuEnabled(Environment *ev,
		ODMenuID menuID)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,IsMenuEnabled)
	(this, ev,menuID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,IsMenuEnabled)
	(this, ev,menuID);
#endif
}


/* method: MenuItemExists */
ODBoolean   MenuItemExists(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,MenuItemExists)
	(this, ev,menuID,menuItemID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,MenuItemExists)
	(this, ev,menuID,menuItemID);
#endif
}


/* method: Exists */
ODBoolean   Exists(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,Exists)
	(this, ev,menuID,menuItemID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,Exists)
	(this, ev,menuID,menuItemID);
#endif
}


/* method: IsItemEnabled */
ODBoolean   IsItemEnabled(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,IsItemEnabled)
	(this, ev,menuID,menuItemID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,IsItemEnabled)
	(this, ev,menuID,menuItemID);
#endif
}


/* method: IsItemChecked */
ODBoolean   IsItemChecked(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,IsItemChecked)
	(this, ev,menuID,menuItemID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,IsItemChecked)
	(this, ev,menuID,menuItemID);
#endif
}


/* method: IsItemHidden */
ODBoolean   IsItemHidden(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,IsItemHidden)
	(this, ev,menuID,menuItemID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,IsItemHidden)
	(this, ev,menuID,menuItemID);
#endif
}


/* method: RemoveMenuItem */
ODBoolean   RemoveMenuItem(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,RemoveMenuItem)
	(this, ev,menuID,menuItemID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,RemoveMenuItem)
	(this, ev,menuID,menuItemID);
#endif
}


/* method: GetMenuItem */
ODBoolean   GetMenuItem(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID,
		ODPlatformMenuItem* menuItem)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,GetMenuItem)
	(this, ev,menuID,menuItemID,menuItem);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,GetMenuItem)
	(this, ev,menuID,menuItemID,menuItem);
#endif
}


/* method: AddToAccelTable */
ODBoolean   AddToAccelTable(Environment *ev,
		ODULong ulNumberofAccels,
		ODACCEL* NewAccels)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,AddToAccelTable)
	(this, ev,ulNumberofAccels,NewAccels);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,AddToAccelTable)
	(this, ev,ulNumberofAccels,NewAccels);
#endif
}


/* method: RestoreAccelTable */
void   RestoreAccelTable(Environment *ev)
{
   SOM_ResolveD(this,ODPopup,ODMenuBar,RestoreAccelTable)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: GetMenuAndItem */
void   GetMenuAndItem(Environment *ev,
		ODCommandID command,
		ODMenuID* menu,
		ODMenuItemID* menuItem)
{
   SOM_ResolveD(this,ODPopup,ODMenuBar,GetMenuAndItem)
	(this, ev,command,menu,menuItem);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: AddMenuLastEx */
void   AddMenuLastEx(Environment *ev,
		ODMenuID menuID,
		ODPlatformMenu menu,
		ODPart* part,
		ODUShort subMenuIDcount,
		ODMenuIDInfo* subMenuIDinfo)
{
   SOM_ResolveD(this,ODPopup,ODMenuBar,AddMenuLastEx)
	(this, ev,menuID,menu,part,subMenuIDcount,subMenuIDinfo);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: AddMenuBeforeEx */
void   AddMenuBeforeEx(Environment *ev,
		ODMenuID menuID,
		ODPlatformMenu menu,
		ODPart* part,
		ODMenuID beforeID,
		ODUShort subMenuIDcount,
		ODMenuIDInfo* subMenuIDinfo)
{
   SOM_ResolveD(this,ODPopup,ODMenuBar,AddMenuBeforeEx)
	(this, ev,menuID,menu,part,beforeID,subMenuIDcount,subMenuIDinfo);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: AddSubMenuBeforeEx */
ODBoolean   AddSubMenuBeforeEx(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID subMenuItemID,
		ODPlatformMenu newSubMenu,
		ODMenuID beforeID,
		ODUShort subMenuIDcount,
		ODMenuIDInfo* subMenuIDinfo)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,AddSubMenuBeforeEx)
	(this, ev,menuID,subMenuItemID,newSubMenu,beforeID,subMenuIDcount,subMenuIDinfo);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,AddSubMenuBeforeEx)
	(this, ev,menuID,subMenuItemID,newSubMenu,beforeID,subMenuIDcount,subMenuIDinfo);
#endif
}


/* method: AddSubMenuLastEx */
ODBoolean   AddSubMenuLastEx(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID subMenuItemID,
		ODPlatformMenu newSubMenu,
		ODUShort subMenuIDcount,
		ODMenuIDInfo* subMenuIDinfo)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODMenuBar,AddSubMenuLastEx)
	(this, ev,menuID,subMenuItemID,newSubMenu,subMenuIDcount,subMenuIDinfo);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODMenuBar,AddSubMenuLastEx)
	(this, ev,menuID,subMenuItemID,newSubMenu,subMenuIDcount,subMenuIDinfo);
#endif
}


/* method: somInit */
void   somInit()
{
   SOM_ResolveD(this,ODPopup,SOMObject,somInit)
	(this);
}


/* method: somUninit */
void   somUninit()
{
   SOM_ResolveD(this,ODPopup,SOMObject,somUninit)
	(this);
}


/* method: Purge */
ODSize   Purge(Environment *ev,
		ODSize size)
{
#ifdef SOMCHKEXCEPT
   ODSize __somResult = 
      SOM_ResolveD(this,ODPopup,ODObject,Purge)
	(this, ev,size);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODObject,Purge)
	(this, ev,size);
#endif
}


/* method: Release */
void   Release(Environment *ev)
{
   SOM_ResolveD(this,ODPopup,ODRefCntObject,Release)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: InitRefCntObject */
void   InitRefCntObject(Environment *ev)
{
   SOM_ResolveD(this,ODPopup,ODRefCntObject,InitRefCntObject)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: Acquire */
void   Acquire(Environment *ev)
{
   SOM_ResolveD(this,ODPopup,ODRefCntObject,Acquire)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: GetRefCount */
ODULong   GetRefCount(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   ODULong __somResult = 
      SOM_ResolveD(this,ODPopup,ODRefCntObject,GetRefCount)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODRefCntObject,GetRefCount)
	(this, ev);
#endif
}


/* method: InitObject */
void   InitObject(Environment *ev)
{
   SOM_ResolveD(this,ODPopup,ODObject,InitObject)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: HasExtension */
ODBoolean   HasExtension(Environment *ev,
		ODType extensionName)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODObject,HasExtension)
	(this, ev,extensionName);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODObject,HasExtension)
	(this, ev,extensionName);
#endif
}


/* method: AcquireExtension */
ODExtension*   AcquireExtension(Environment *ev,
		ODType extensionName)
{
#ifdef SOMCHKEXCEPT
   ODExtension* __somResult = 
      SOM_ResolveD(this,ODPopup,ODObject,AcquireExtension)
	(this, ev,extensionName);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODObject,AcquireExtension)
	(this, ev,extensionName);
#endif
}


/* method: ReleaseExtension */
void   ReleaseExtension(Environment *ev,
		ODExtension* extension)
{
   SOM_ResolveD(this,ODPopup,ODObject,ReleaseExtension)
	(this, ev,extension);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: IsEqualTo */
ODBoolean   IsEqualTo(Environment *ev,
		ODObject* object)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPopup,ODObject,IsEqualTo)
	(this, ev,object);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPopup,ODObject,IsEqualTo)
	(this, ev,object);
#endif
}


/* method: SubClassResponsibility */
void   SubClassResponsibility(Environment *ev)
{
   SOM_ResolveD(this,ODPopup,ODObject,SubClassResponsibility)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* initializer method: somDefaultInit */
void   somDefaultInit(somInitCtrl* ctrl)
{
   SOM_ResolveD(this,ODPopup,SOMObject,somDefaultInit)
	(this,ctrl);
}


/* method: somDestruct */
void   somDestruct(octet doFree,
		somDestructCtrl* ctrl)
{
   SOM_ResolveD(this,ODPopup,SOMObject,somDestruct)
	(this,doFree,ctrl);
}


/* initializer method: somDefaultCopyInit */
void   somDefaultCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODPopup,SOMObject,somDefaultCopyInit)
	(this,ctrl,fromObj);
}


/* method: somDefaultAssign */
ODPopup*  somDefaultAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODPopup,SOMObject,somDefaultAssign)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultConstCopyInit */
void   somDefaultConstCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODPopup,SOMObject,somDefaultConstCopyInit)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultVCopyInit */
void   somDefaultVCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODPopup,SOMObject,somDefaultVCopyInit)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultConstVCopyInit */
void   somDefaultConstVCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODPopup,SOMObject,somDefaultConstVCopyInit)
	(this,ctrl,fromObj);
}


/* method: somDefaultConstAssign */
ODPopup*  somDefaultConstAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODPopup,SOMObject,somDefaultConstAssign)
	(this,ctrl,fromObj);
}


/* method: somDefaultVAssign */
ODPopup*  somDefaultVAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODPopup,SOMObject,somDefaultVAssign)
	(this,ctrl,fromObj);
}


/* method: somDefaultConstVAssign */
ODPopup*  somDefaultConstVAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODPopup,SOMObject,somDefaultConstVAssign)
	(this,ctrl,fromObj);
}


/* method: somFree */
void   somFree()
{
   SOM_ResolveD(this,ODPopup,SOMObject,somFree)
	(this);
}


/* method: somGetClass */
SOMClass*   somGetClass()
{
   return SOM_ResolveD(this,ODPopup,SOMObject,somGetClass)
	(this);
}


/* method: somGetClassName */
string   somGetClassName()
{
   return SOM_ResolveD(this,ODPopup,SOMObject,somGetClassName)
	(this);
}


/* method: somGetSize */
long   somGetSize()
{
   return SOM_ResolveD(this,ODPopup,SOMObject,somGetSize)
	(this);
}


/* method: somIsA */
boolean   somIsA(SOMClass* aClassObj)
{
   return SOM_ResolveD(this,ODPopup,SOMObject,somIsA)
	(this,aClassObj);
}


/* method: somIsInstanceOf */
boolean   somIsInstanceOf(SOMClass* aClassObj)
{
   return SOM_ResolveD(this,ODPopup,SOMObject,somIsInstanceOf)
	(this,aClassObj);
}


/* method: somRespondsTo */
boolean   somRespondsTo(somId mId)
{
   return SOM_ResolveD(this,ODPopup,SOMObject,somRespondsTo)
	(this,mId);
}


/* va_list method: somDispatch */
/* the va_list invocation form */
boolean   ODPopup_somDispatch(somToken* retValue,
		somId methodId,
		va_list ap)
{
return SOM_ResolveD(this,ODPopup,SOMObject,somDispatch)
	(this,retValue,methodId,ap);
}

/* the varargs invocation form */
boolean   somDispatch(somToken* retValue,
		somId methodId,
		...)
{
   va_list ap;
   va_start(ap, methodId);
   boolean __somResult = 
      SOM_ResolveD(this,ODPopup,SOMObject,somDispatch)
	(this,retValue,methodId,ap);
   va_end(ap);
   return __somResult;
}


/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean   ODPopup_somClassDispatch(SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap)
{
return SOM_ResolveD(this,ODPopup,SOMObject,somClassDispatch)
	(this,clsObj,retValue,methodId,ap);
}

/* the varargs invocation form */
boolean   somClassDispatch(SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		...)
{
   va_list ap;
   va_start(ap, methodId);
   boolean __somResult = 
      SOM_ResolveD(this,ODPopup,SOMObject,somClassDispatch)
	(this,clsObj,retValue,methodId,ap);
   va_end(ap);
   return __somResult;
}


/* method: somCastObj */
boolean   somCastObj(SOMClass* cls)
{
   return SOM_ResolveD(this,ODPopup,SOMObject,somCastObj)
	(this,cls);
}


/* method: somResetObj */
boolean   somResetObj()
{
   return SOM_ResolveD(this,ODPopup,SOMObject,somResetObj)
	(this);
}


/* method: somPrintSelf */
SOMObject*   somPrintSelf()
{
   return SOM_ResolveD(this,ODPopup,SOMObject,somPrintSelf)
	(this);
}


/* method: somDumpSelf */
void   somDumpSelf(long level)
{
   SOM_ResolveD(this,ODPopup,SOMObject,somDumpSelf)
	(this,level);
}


/* method: somDumpSelfInt */
void   somDumpSelfInt(long level)
{
   SOM_ResolveD(this,ODPopup,SOMObject,somDumpSelfInt)
	(this,level);
}



};   /* ODPopup */



#endif       /* SOM_ODPopup_xh */
