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

#ifndef SOM_ODMenuBar_xh
#define SOM_ODMenuBar_xh

class ODMenuBar;

#define ODMenuBar_MajorVersion 1
#define ODMenuBar_MinorVersion 0

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

/* C++ parent defs */
#ifndef SOM_ODRefCntObject_xh
#include <RefCtObj.xh>
#endif

#ifndef ODMenuBar_API
#define ODMenuBar_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;

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

/* A procedure to create the ODMenuBar Class */
SOMEXTERN
#if (defined(SOM_Module_MenuBar_Source) || defined(ODMenuBar_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODMenuBar))
WIN32_DLLEXPORT
#else
WIN32_DLLIMPORT
#endif
SOMClass * SOMLINK ODMenuBarNewClass(
		integer4,
		integer4 );

/* The API to the ODMenuBar class object, and the methods it introduces. */
SOMEXTERN struct ODMenuBarClassDataStructure {
	SOMClass *classObject;
	somMToken Display;
	somMToken Copy;
	somMToken AddMenuLast;
	somMToken AddMenuBefore;
	somMToken RemoveMenu;
	somMToken GetMenu;
	somMToken IsValid;
	somMToken GetMenuText;
	somMToken SetMenuText;
	somMToken GetMenuItemText;
	somMToken SetMenuItemText;
	somMToken SetHideMenuItem;
	somMToken SetShowMenuItem;
	somMToken CheckMenuItem;
	somMToken EnableMenu;
	somMToken EnableMenuItem;
	somMToken AddMenuItemBefore;
	somMToken AddMenuItemLast;
	somMToken InsertSubmenu;
	somMToken AddSubMenuBefore;
	somMToken AddSubMenuLast;
	somMToken MenuExists;
	somMToken IsMenuEnabled;
	somMToken MenuItemExists;
	somMToken Exists;
	somMToken IsItemEnabled;
	somMToken IsItemChecked;
	somMToken IsItemHidden;
	somMToken RemoveMenuItem;
	somMToken GetMenuItem;
	somMToken AddToAccelTable;
	somMToken RestoreAccelTable;
	somMToken reserved2;
	somMToken reserved3;
	somMToken reserved4;
	somMToken reserved5;
	somMToken reserved6;
	somMToken AddMenuLastEx;
	somMToken AddMenuBeforeEx;
	somMToken AddSubMenuBeforeEx;
	somMToken AddSubMenuLastEx;
	somMToken reserved7;
	somMToken reserved8;
	somMToken reserved9;
	somMToken reserved10;
	somMToken GetMenuAndItem;
}
#if !(defined(SOM_Module_MenuBar_Source) || defined(ODMenuBar_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODMenuBar))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODMenuBarClassData;
#define _ODMenuBar ODMenuBarClassData.classObject

/* The API to parentMtabs for ODMenuBar, and the instance data it introduces. */
SOMEXTERN struct ODMenuBarCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken              instanceDataToken;
}
#if !(defined(SOM_Module_MenuBar_Source) || defined(ODMenuBar_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODMenuBar))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODMenuBarCClassData;

/*
 * -- Typedefs for ODMenuBar Method Procedures
 */
extern "C" {
typedef void   SOMLINK somTP_ODMenuBar_Display(ODMenuBar *somSelf, Environment *ev);
typedef somTP_ODMenuBar_Display *somTD_ODMenuBar_Display;
typedef ODMenuBar*   SOMLINK somTP_ODMenuBar_Copy(ODMenuBar *somSelf, Environment *ev);
typedef somTP_ODMenuBar_Copy *somTD_ODMenuBar_Copy;
typedef void   SOMLINK somTP_ODMenuBar_AddMenuLast(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODPlatformMenu menu,
		ODPart* part);
typedef somTP_ODMenuBar_AddMenuLast *somTD_ODMenuBar_AddMenuLast;
typedef void   SOMLINK somTP_ODMenuBar_AddMenuBefore(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODPlatformMenu menu,
		ODPart* part,
		ODMenuID beforeID);
typedef somTP_ODMenuBar_AddMenuBefore *somTD_ODMenuBar_AddMenuBefore;
typedef void   SOMLINK somTP_ODMenuBar_RemoveMenu(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menu);
typedef somTP_ODMenuBar_RemoveMenu *somTD_ODMenuBar_RemoveMenu;
typedef ODPlatformMenu   SOMLINK somTP_ODMenuBar_GetMenu(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menu);
typedef somTP_ODMenuBar_GetMenu *somTD_ODMenuBar_GetMenu;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_IsValid(ODMenuBar *somSelf, Environment *ev);
typedef somTP_ODMenuBar_IsValid *somTD_ODMenuBar_IsValid;
typedef ODUShort   SOMLINK somTP_ODMenuBar_GetMenuText(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		string* menuString);
typedef somTP_ODMenuBar_GetMenuText *somTD_ODMenuBar_GetMenuText;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_SetMenuText(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		string menuString);
typedef somTP_ODMenuBar_SetMenuText *somTD_ODMenuBar_SetMenuText;
typedef ODUShort   SOMLINK somTP_ODMenuBar_GetMenuItemText(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID,
		string* menuItemString);
typedef somTP_ODMenuBar_GetMenuItemText *somTD_ODMenuBar_GetMenuItemText;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_SetMenuItemText(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID,
		string menuItemString);
typedef somTP_ODMenuBar_SetMenuItemText *somTD_ODMenuBar_SetMenuItemText;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_SetHideMenuItem(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID);
typedef somTP_ODMenuBar_SetHideMenuItem *somTD_ODMenuBar_SetHideMenuItem;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_SetShowMenuItem(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID);
typedef somTP_ODMenuBar_SetShowMenuItem *somTD_ODMenuBar_SetShowMenuItem;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_CheckMenuItem(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID,
		ODBoolean check);
typedef somTP_ODMenuBar_CheckMenuItem *somTD_ODMenuBar_CheckMenuItem;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_EnableMenu(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODBoolean enable);
typedef somTP_ODMenuBar_EnableMenu *somTD_ODMenuBar_EnableMenu;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_EnableMenuItem(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID,
		ODBoolean enable);
typedef somTP_ODMenuBar_EnableMenuItem *somTD_ODMenuBar_EnableMenuItem;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_AddMenuItemBefore(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID itemID,
		ODPlatformMenuItem* menuItem,
		ODMenuItemID beforeID);
typedef somTP_ODMenuBar_AddMenuItemBefore *somTD_ODMenuBar_AddMenuItemBefore;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_AddMenuItemLast(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID itemID,
		ODPlatformMenuItem* menuItem);
typedef somTP_ODMenuBar_AddMenuItemLast *somTD_ODMenuBar_AddMenuItemLast;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_AddSubMenuBefore(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID subMenuItemID,
		ODPlatformMenu newSubMenu,
		ODMenuItemID beforeID);
typedef somTP_ODMenuBar_AddSubMenuBefore *somTD_ODMenuBar_AddSubMenuBefore;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_AddSubMenuLast(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID subMenuItemID,
		ODPlatformMenu newSubMenu);
typedef somTP_ODMenuBar_AddSubMenuLast *somTD_ODMenuBar_AddSubMenuLast;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_InsertSubmenu(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID subMenuID,
		ODPlatformMenu newSubmenu);
typedef somTP_ODMenuBar_InsertSubmenu *somTD_ODMenuBar_InsertSubmenu;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_MenuExists(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID);
typedef somTP_ODMenuBar_MenuExists *somTD_ODMenuBar_MenuExists;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_IsMenuEnabled(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID);
typedef somTP_ODMenuBar_IsMenuEnabled *somTD_ODMenuBar_IsMenuEnabled;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_MenuItemExists(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID);
typedef somTP_ODMenuBar_MenuItemExists *somTD_ODMenuBar_MenuItemExists;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_Exists(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID);
typedef somTP_ODMenuBar_Exists *somTD_ODMenuBar_Exists;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_IsItemEnabled(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID);
typedef somTP_ODMenuBar_IsItemEnabled *somTD_ODMenuBar_IsItemEnabled;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_IsItemChecked(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID);
typedef somTP_ODMenuBar_IsItemChecked *somTD_ODMenuBar_IsItemChecked;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_IsItemHidden(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID);
typedef somTP_ODMenuBar_IsItemHidden *somTD_ODMenuBar_IsItemHidden;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_RemoveMenuItem(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID);
typedef somTP_ODMenuBar_RemoveMenuItem *somTD_ODMenuBar_RemoveMenuItem;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_GetMenuItem(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID,
		ODPlatformMenuItem* menuItem);
typedef somTP_ODMenuBar_GetMenuItem *somTD_ODMenuBar_GetMenuItem;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_AddToAccelTable(ODMenuBar *somSelf, Environment *ev,
		ODULong ulNumberofAccels,
		ODACCEL* NewAccels);
typedef somTP_ODMenuBar_AddToAccelTable *somTD_ODMenuBar_AddToAccelTable;
typedef void   SOMLINK somTP_ODMenuBar_RestoreAccelTable(ODMenuBar *somSelf, Environment *ev);
typedef somTP_ODMenuBar_RestoreAccelTable *somTD_ODMenuBar_RestoreAccelTable;
typedef void   SOMLINK somTP_ODMenuBar_GetMenuAndItem(ODMenuBar *somSelf, Environment *ev,
		ODCommandID command,
		ODMenuID* menu,
		ODMenuItemID* menuItem);
typedef somTP_ODMenuBar_GetMenuAndItem *somTD_ODMenuBar_GetMenuAndItem;
typedef void   SOMLINK somTP_ODMenuBar_AddMenuLastEx(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODPlatformMenu menu,
		ODPart* part,
		ODUShort subMenuIDcount,
		ODMenuIDInfo* subMenuIDinfo);
typedef somTP_ODMenuBar_AddMenuLastEx *somTD_ODMenuBar_AddMenuLastEx;
typedef void   SOMLINK somTP_ODMenuBar_AddMenuBeforeEx(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODPlatformMenu menu,
		ODPart* part,
		ODMenuID beforeID,
		ODUShort subMenuIDcount,
		ODMenuIDInfo* subMenuIDinfo);
typedef somTP_ODMenuBar_AddMenuBeforeEx *somTD_ODMenuBar_AddMenuBeforeEx;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_AddSubMenuBeforeEx(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID subMenuItemID,
		ODPlatformMenu newSubMenu,
		ODMenuID beforeID,
		ODUShort subMenuIDcount,
		ODMenuIDInfo* subMenuIDinfo);
typedef somTP_ODMenuBar_AddSubMenuBeforeEx *somTD_ODMenuBar_AddSubMenuBeforeEx;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_AddSubMenuLastEx(ODMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODMenuItemID subMenuItemID,
		ODPlatformMenu newSubMenu,
		ODUShort subMenuIDcount,
		ODMenuIDInfo* subMenuIDinfo);
typedef somTP_ODMenuBar_AddSubMenuLastEx *somTD_ODMenuBar_AddSubMenuLastEx;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_ODMenuBar_InitRefCntObject(ODMenuBar *somSelf, Environment *ev);
typedef somTP_ODMenuBar_InitRefCntObject *somTD_ODMenuBar_InitRefCntObject;
typedef void   SOMLINK somTP_ODMenuBar_Acquire(ODMenuBar *somSelf, Environment *ev);
typedef somTP_ODMenuBar_Acquire *somTD_ODMenuBar_Acquire;
typedef void   SOMLINK somTP_ODMenuBar_Release(ODMenuBar *somSelf, Environment *ev);
typedef somTP_ODMenuBar_Release *somTD_ODMenuBar_Release;
typedef ODULong   SOMLINK somTP_ODMenuBar_GetRefCount(ODMenuBar *somSelf, Environment *ev);
typedef somTP_ODMenuBar_GetRefCount *somTD_ODMenuBar_GetRefCount;
typedef void   SOMLINK somTP_ODMenuBar_somUninit(ODMenuBar *somSelf);
typedef somTP_ODMenuBar_somUninit *somTD_ODMenuBar_somUninit;
typedef void   SOMLINK somTP_ODMenuBar_InitObject(ODMenuBar *somSelf, Environment *ev);
typedef somTP_ODMenuBar_InitObject *somTD_ODMenuBar_InitObject;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_HasExtension(ODMenuBar *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODMenuBar_HasExtension *somTD_ODMenuBar_HasExtension;
typedef ODExtension*   SOMLINK somTP_ODMenuBar_AcquireExtension(ODMenuBar *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODMenuBar_AcquireExtension *somTD_ODMenuBar_AcquireExtension;
typedef void   SOMLINK somTP_ODMenuBar_ReleaseExtension(ODMenuBar *somSelf, Environment *ev,
		ODExtension* extension);
typedef somTP_ODMenuBar_ReleaseExtension *somTD_ODMenuBar_ReleaseExtension;
typedef ODSize   SOMLINK somTP_ODMenuBar_Purge(ODMenuBar *somSelf, Environment *ev,
		ODSize size);
typedef somTP_ODMenuBar_Purge *somTD_ODMenuBar_Purge;
typedef ODBoolean   SOMLINK somTP_ODMenuBar_IsEqualTo(ODMenuBar *somSelf, Environment *ev,
		ODObject* object);
typedef somTP_ODMenuBar_IsEqualTo *somTD_ODMenuBar_IsEqualTo;
typedef void   SOMLINK somTP_ODMenuBar_SubClassResponsibility(ODMenuBar *somSelf, Environment *ev);
typedef somTP_ODMenuBar_SubClassResponsibility *somTD_ODMenuBar_SubClassResponsibility;
typedef void   SOMLINK somTP_ODMenuBar_somInit(ODMenuBar *somSelf);
typedef somTP_ODMenuBar_somInit *somTD_ODMenuBar_somInit;
typedef void   SOMLINK somTP_ODMenuBar_somDefaultInit(ODMenuBar *somSelf,
		somInitCtrl* ctrl);
typedef somTP_ODMenuBar_somDefaultInit *somTD_ODMenuBar_somDefaultInit;
typedef void   SOMLINK somTP_ODMenuBar_somDestruct(ODMenuBar *somSelf,
		octet doFree,
		somDestructCtrl* ctrl);
typedef somTP_ODMenuBar_somDestruct *somTD_ODMenuBar_somDestruct;
typedef void   SOMLINK somTP_ODMenuBar_somDefaultCopyInit(ODMenuBar *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODMenuBar_somDefaultCopyInit *somTD_ODMenuBar_somDefaultCopyInit;
typedef ODMenuBar*   SOMLINK somTP_ODMenuBar_somDefaultAssign(ODMenuBar *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODMenuBar_somDefaultAssign *somTD_ODMenuBar_somDefaultAssign;
typedef void   SOMLINK somTP_ODMenuBar_somDefaultConstCopyInit(ODMenuBar *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODMenuBar_somDefaultConstCopyInit *somTD_ODMenuBar_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_ODMenuBar_somDefaultVCopyInit(ODMenuBar *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODMenuBar_somDefaultVCopyInit *somTD_ODMenuBar_somDefaultVCopyInit;
typedef void   SOMLINK somTP_ODMenuBar_somDefaultConstVCopyInit(ODMenuBar *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODMenuBar_somDefaultConstVCopyInit *somTD_ODMenuBar_somDefaultConstVCopyInit;
typedef ODMenuBar*   SOMLINK somTP_ODMenuBar_somDefaultConstAssign(ODMenuBar *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODMenuBar_somDefaultConstAssign *somTD_ODMenuBar_somDefaultConstAssign;
typedef ODMenuBar*   SOMLINK somTP_ODMenuBar_somDefaultVAssign(ODMenuBar *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODMenuBar_somDefaultVAssign *somTD_ODMenuBar_somDefaultVAssign;
typedef ODMenuBar*   SOMLINK somTP_ODMenuBar_somDefaultConstVAssign(ODMenuBar *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODMenuBar_somDefaultConstVAssign *somTD_ODMenuBar_somDefaultConstVAssign;
typedef void   SOMLINK somTP_ODMenuBar_somFree(ODMenuBar *somSelf);
typedef somTP_ODMenuBar_somFree *somTD_ODMenuBar_somFree;
typedef SOMClass*   SOMLINK somTP_ODMenuBar_somGetClass(ODMenuBar *somSelf);
typedef somTP_ODMenuBar_somGetClass *somTD_ODMenuBar_somGetClass;
typedef string   SOMLINK somTP_ODMenuBar_somGetClassName(ODMenuBar *somSelf);
typedef somTP_ODMenuBar_somGetClassName *somTD_ODMenuBar_somGetClassName;
typedef long   SOMLINK somTP_ODMenuBar_somGetSize(ODMenuBar *somSelf);
typedef somTP_ODMenuBar_somGetSize *somTD_ODMenuBar_somGetSize;
typedef boolean   SOMLINK somTP_ODMenuBar_somIsA(ODMenuBar *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODMenuBar_somIsA *somTD_ODMenuBar_somIsA;
typedef boolean   SOMLINK somTP_ODMenuBar_somIsInstanceOf(ODMenuBar *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODMenuBar_somIsInstanceOf *somTD_ODMenuBar_somIsInstanceOf;
typedef boolean   SOMLINK somTP_ODMenuBar_somRespondsTo(ODMenuBar *somSelf,
		somId mId);
typedef somTP_ODMenuBar_somRespondsTo *somTD_ODMenuBar_somRespondsTo;
typedef boolean   SOMLINK somTP_ODMenuBar_somDispatch(ODMenuBar *somSelf,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODMenuBar_somDispatch *somTD_ODMenuBar_somDispatch;
typedef boolean   SOMLINK somTP_ODMenuBar_somClassDispatch(ODMenuBar *somSelf,
		SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODMenuBar_somClassDispatch *somTD_ODMenuBar_somClassDispatch;
typedef boolean   SOMLINK somTP_ODMenuBar_somCastObj(ODMenuBar *somSelf,
		SOMClass* cls);
typedef somTP_ODMenuBar_somCastObj *somTD_ODMenuBar_somCastObj;
typedef boolean   SOMLINK somTP_ODMenuBar_somResetObj(ODMenuBar *somSelf);
typedef somTP_ODMenuBar_somResetObj *somTD_ODMenuBar_somResetObj;
typedef SOMObject*   SOMLINK somTP_ODMenuBar_somPrintSelf(ODMenuBar *somSelf);
typedef somTP_ODMenuBar_somPrintSelf *somTD_ODMenuBar_somPrintSelf;
typedef void   SOMLINK somTP_ODMenuBar_somDumpSelf(ODMenuBar *somSelf,
		long level);
typedef somTP_ODMenuBar_somDumpSelf *somTD_ODMenuBar_somDumpSelf;
typedef void   SOMLINK somTP_ODMenuBar_somDumpSelfInt(ODMenuBar *somSelf,
		long level);
typedef somTP_ODMenuBar_somDumpSelfInt *somTD_ODMenuBar_somDumpSelfInt;
}

#endif /* ODMenuBar_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 ODMenuBar
 */
class ODMenuBar : public ODRefCntObject
{
public:

// ODMenuBar::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 (!_ODMenuBar) ODMenuBarNewClass(ODMenuBar_MajorVersion,ODMenuBar_MinorVersion);
   return (void*)
      SOM_Resolve(_ODMenuBar,SOMClass,somNewNoInit)
         ((SOMClass *)((void*)_ODMenuBar));
}

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

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

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

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


/* method: Display */
void   Display(Environment *ev)
{
   SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,ODMenuBar,Copy)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,ODMenuBar,Copy)
	(this, ev);
#endif
}


/* method: AddMenuLast */
void   AddMenuLast(Environment *ev,
		ODMenuID menuID,
		ODPlatformMenu menu,
		ODPart* part)
{
   SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,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,ODMenuBar,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,ODMenuBar,ODMenuBar,GetMenu)
	(this, ev,menu);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,ODMenuBar,GetMenu)
	(this, ev,menu);
#endif
}


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


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


/* method: SetMenuText */
ODBoolean   SetMenuText(Environment *ev,
		ODMenuID menuID,
		string menuString)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODMenuBar,ODMenuBar,SetMenuText)
	(this, ev,menuID,menuString);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,ODMenuBar,GetMenuItemText)
	(this, ev,menuID,menuItemID,menuItemString);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,ODMenuBar,SetMenuItemText)
	(this, ev,menuID,menuItemID,menuItemString);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,ODMenuBar,SetHideMenuItem)
	(this, ev,menuID,menuItemID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,ODMenuBar,SetHideMenuItem)
	(this, ev,menuID,menuItemID);
#endif
}


/* method: SetShowMenuItem */
ODBoolean   SetShowMenuItem(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODMenuBar,ODMenuBar,SetShowMenuItem)
	(this, ev,menuID,menuItemID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,ODMenuBar,CheckMenuItem)
	(this, ev,menuID,menuItemID,check);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,ODMenuBar,EnableMenu)
	(this, ev,menuID,enable);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,ODMenuBar,EnableMenuItem)
	(this, ev,menuID,menuItemID,enable);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,ODMenuBar,AddMenuItemBefore)
	(this, ev,menuID,itemID,menuItem,beforeID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,ODMenuBar,AddMenuItemLast)
	(this, ev,menuID,itemID,menuItem);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,ODMenuBar,AddSubMenuBefore)
	(this, ev,menuID,subMenuItemID,newSubMenu,beforeID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,ODMenuBar,AddSubMenuLast)
	(this, ev,menuID,subMenuItemID,newSubMenu);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,ODMenuBar,InsertSubmenu)
	(this, ev,menuID,subMenuID,newSubmenu);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,ODMenuBar,InsertSubmenu)
	(this, ev,menuID,subMenuID,newSubmenu);
#endif
}


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


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


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


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


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


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


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


/* method: RemoveMenuItem */
ODBoolean   RemoveMenuItem(Environment *ev,
		ODMenuID menuID,
		ODMenuItemID menuItemID)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODMenuBar,ODMenuBar,RemoveMenuItem)
	(this, ev,menuID,menuItemID);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,ODMenuBar,GetMenuItem)
	(this, ev,menuID,menuItemID,menuItem);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,ODMenuBar,AddToAccelTable)
	(this, ev,ulNumberofAccels,NewAccels);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,ODMenuBar,AddToAccelTable)
	(this, ev,ulNumberofAccels,NewAccels);
#endif
}


/* method: RestoreAccelTable */
void   RestoreAccelTable(Environment *ev)
{
   SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,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,ODMenuBar,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,ODMenuBar,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,ODMenuBar,ODMenuBar,AddSubMenuBeforeEx)
	(this, ev,menuID,subMenuItemID,newSubMenu,beforeID,subMenuIDcount,subMenuIDinfo);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,ODMenuBar,AddSubMenuLastEx)
	(this, ev,menuID,subMenuItemID,newSubMenu,subMenuIDcount,subMenuIDinfo);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,ODMenuBar,AddSubMenuLastEx)
	(this, ev,menuID,subMenuItemID,newSubMenu,subMenuIDcount,subMenuIDinfo);
#endif
}


/*
 * Reintroduce inherited methods
 */

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


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


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


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


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


/* method: InitObject */
void   InitObject(Environment *ev)
{
   SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,ODObject,HasExtension)
	(this, ev,extensionName);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODMenuBar,ODObject,HasExtension)
	(this, ev,extensionName);
#endif
}


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


/* va_list method: somDispatch */
/* the va_list invocation form */
boolean   ODMenuBar_somDispatch(somToken* retValue,
		somId methodId,
		va_list ap)
{
return SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,SOMObject,somDispatch)
	(this,retValue,methodId,ap);
   va_end(ap);
   return __somResult;
}


/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean   ODMenuBar_somClassDispatch(SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap)
{
return SOM_ResolveD(this,ODMenuBar,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,ODMenuBar,SOMObject,somClassDispatch)
	(this,clsObj,retValue,methodId,ap);
   va_end(ap);
   return __somResult;
}


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


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


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


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


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



};   /* ODMenuBar */



#endif       /* SOM_ODMenuBar_xh */
