
/*
 * This file was generated by the SOM Compiler.
 * FileName: \odwin\h\MENUBARB.h.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.3
 *     SOM Emitter emith.dll: 2.41
 */

/*
 * 
 *  Classes defined in this interface
 * 
 */


#ifndef SOM_ODBaseMenuBar_h
#define SOM_ODBaseMenuBar_h


#include <som.h>

/*
 * -- This emitter treats Method Tokens as Thunks by default.
 * -- Use the sc modifier "nothunks" to change this default
 */
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))



/*
 * Define class data structures as resolution macros
 */
#define ODBaseMenuBarClassData (*resolve_ODBaseMenuBarClassData())
#define ODBaseMenuBarCClassData (*resolve_ODBaseMenuBarCClassData())

/*
 * Define the class name as an object type
 */
#ifndef ODBaseMenuBar
#define ODBaseMenuBar SOMObject
#endif
#include <RefCtObj.h>

/*
 * Start of user-defined types:
 */
#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef ODObject
    #define ODObject SOMObject
#endif /* ODObject */
#ifndef ODExtension
    #define ODExtension SOMObject
#endif /* ODExtension */
#ifndef ODRefCntObject
    #define ODRefCntObject SOMObject
#endif /* ODRefCntObject */
#ifndef ODBaseMenuBar
    #define ODBaseMenuBar SOMObject
#endif /* ODBaseMenuBar */
#ifndef ODMenuBar
    #define ODMenuBar SOMObject
#endif /* ODMenuBar */
#ifndef ODSession
    #define ODSession SOMObject
#endif /* ODSession */
#ifndef ODPart
    #define ODPart SOMObject
#endif /* ODPart */

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

#define ODBaseMenuBar_MajorVersion 1
#define ODBaseMenuBar_MinorVersion 0

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ODBaseMenuBarNewClass c
#define ODBaseMenuBarClassData d
#define ODBaseMenuBarCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ODBaseMenuBar_classObj ODBaseMenuBarClassData.classObject
#define _ODBaseMenuBar ODBaseMenuBar_classObj

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMClass * SOMLINK ODBaseMenuBarNewClass(integer4 somntmajorVersion,
		integer4 somntminorVersion);

/*
 * Declare the class data structure
 */
SOMEXTERN struct ODBaseMenuBarClassDataStructure {
	SOMClass *classObject;
	somMToken Display;
	somMToken Copy;
	somMToken AddMenuLast;
	somMToken AddMenuBefore;
	somMToken RemoveMenu;
	somMToken GetMenu;
	somMToken IsValid;
	somMToken InitBaseMenuBar;
	somMToken SetGeneration;
	somMToken GetGeneration;
}  _ODBaseMenuBarClassData;
SOMEXTERN struct ODBaseMenuBarClassDataStructure * SOMLINK resolve_ODBaseMenuBarClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct ODBaseMenuBarCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _ODBaseMenuBarCClassData;
SOMEXTERN struct ODBaseMenuBarCClassDataStructure * SOMLINK resolve_ODBaseMenuBarCClassData(void);

/*
 * New and Renew macros for ODBaseMenuBar
 */
#define ODBaseMenuBarNew() \
   (_somNew(_ODBaseMenuBar ? _ODBaseMenuBar : ODBaseMenuBarNewClass(ODBaseMenuBar_MajorVersion, ODBaseMenuBar_MinorVersion)))
#define ODBaseMenuBarRenew(buf) \
   (_somRenew(_ODBaseMenuBar ? _ODBaseMenuBar : ODBaseMenuBarNewClass(ODBaseMenuBar_MajorVersion, ODBaseMenuBar_MinorVersion), buf))

/*
 * Override method: somInit
 */
#define ODBaseMenuBar_somInit(somSelf) \
	SOMObject_somInit(somSelf)

/*
 * Override method: somUninit
 */
#define ODBaseMenuBar_somUninit(somSelf) \
	SOMObject_somUninit(somSelf)

/*
 * Override method: Release
 */
#define ODBaseMenuBar_Release(somSelf,ev) \
	ODRefCntObject_Release(somSelf,ev)

/*
 * New Method: Display
 */
typedef void   (SOMLINK * somTD_ODBaseMenuBar_Display)(ODBaseMenuBar *somSelf, Environment *ev);
#define somMD_ODBaseMenuBar_Display "::ODBaseMenuBar::Display"
#define ODBaseMenuBar_Display(somSelf,ev) \
    (SOM_Resolve(somSelf, ODBaseMenuBar, Display) \
	(somSelf,ev))
#ifndef SOMGD_Display
    #if (defined(_Display) || defined(__Display))
        #undef _Display
        #undef __Display
        #define SOMGD_Display 1
    #else
        #define _Display ODBaseMenuBar_Display
    #endif /* _Display */
#endif /* SOMGD_Display */

/*
 * New Method: Copy
 */
typedef ODMenuBar*   (SOMLINK * somTD_ODBaseMenuBar_Copy)(ODBaseMenuBar *somSelf, Environment *ev);
#define somMD_ODBaseMenuBar_Copy "::ODBaseMenuBar::Copy"
#define ODBaseMenuBar_Copy(somSelf,ev) \
    (SOM_Resolve(somSelf, ODBaseMenuBar, Copy) \
	(somSelf,ev))
#ifndef SOMGD_Copy
    #if (defined(_Copy) || defined(__Copy))
        #undef _Copy
        #undef __Copy
        #define SOMGD_Copy 1
    #else
        #define _Copy ODBaseMenuBar_Copy
    #endif /* _Copy */
#endif /* SOMGD_Copy */

/*
 * New Method: AddMenuLast
 */
typedef void   (SOMLINK * somTD_ODBaseMenuBar_AddMenuLast)(ODBaseMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODPlatformMenu* menu,
		ODPart* part);
#define somMD_ODBaseMenuBar_AddMenuLast "::ODBaseMenuBar::AddMenuLast"
#define ODBaseMenuBar_AddMenuLast(somSelf,ev,menuID,menu,part) \
    (SOM_Resolve(somSelf, ODBaseMenuBar, AddMenuLast) \
	(somSelf,ev,menuID,menu,part))
#ifndef SOMGD_AddMenuLast
    #if (defined(_AddMenuLast) || defined(__AddMenuLast))
        #undef _AddMenuLast
        #undef __AddMenuLast
        #define SOMGD_AddMenuLast 1
    #else
        #define _AddMenuLast ODBaseMenuBar_AddMenuLast
    #endif /* _AddMenuLast */
#endif /* SOMGD_AddMenuLast */

/*
 * New Method: AddMenuBefore
 */
typedef void   (SOMLINK * somTD_ODBaseMenuBar_AddMenuBefore)(ODBaseMenuBar *somSelf, Environment *ev,
		ODMenuID menuID,
		ODPlatformMenu* menu,
		ODPart* part,
		ODMenuID beforeID);
#define somMD_ODBaseMenuBar_AddMenuBefore "::ODBaseMenuBar::AddMenuBefore"
#define ODBaseMenuBar_AddMenuBefore(somSelf,ev,menuID,menu,part,beforeID) \
    (SOM_Resolve(somSelf, ODBaseMenuBar, AddMenuBefore) \
	(somSelf,ev,menuID,menu,part,beforeID))
#ifndef SOMGD_AddMenuBefore
    #if (defined(_AddMenuBefore) || defined(__AddMenuBefore))
        #undef _AddMenuBefore
        #undef __AddMenuBefore
        #define SOMGD_AddMenuBefore 1
    #else
        #define _AddMenuBefore ODBaseMenuBar_AddMenuBefore
    #endif /* _AddMenuBefore */
#endif /* SOMGD_AddMenuBefore */

/*
 * New Method: RemoveMenu
 */
typedef void   (SOMLINK * somTD_ODBaseMenuBar_RemoveMenu)(ODBaseMenuBar *somSelf, Environment *ev,
		ODMenuID menu);
#define somMD_ODBaseMenuBar_RemoveMenu "::ODBaseMenuBar::RemoveMenu"
#define ODBaseMenuBar_RemoveMenu(somSelf,ev,menu) \
    (SOM_Resolve(somSelf, ODBaseMenuBar, RemoveMenu) \
	(somSelf,ev,menu))
#ifndef SOMGD_RemoveMenu
    #if (defined(_RemoveMenu) || defined(__RemoveMenu))
        #undef _RemoveMenu
        #undef __RemoveMenu
        #define SOMGD_RemoveMenu 1
    #else
        #define _RemoveMenu ODBaseMenuBar_RemoveMenu
    #endif /* _RemoveMenu */
#endif /* SOMGD_RemoveMenu */

/*
 * New Method: GetMenu
 */
typedef ODPlatformMenuBar   (SOMLINK * somTD_ODBaseMenuBar_GetMenu)(ODBaseMenuBar *somSelf, Environment *ev,
		ODMenuID menu);
#define somMD_ODBaseMenuBar_GetMenu "::ODBaseMenuBar::GetMenu"
#define ODBaseMenuBar_GetMenu(somSelf,ev,menu) \
    (SOM_Resolve(somSelf, ODBaseMenuBar, GetMenu) \
	(somSelf,ev,menu))
#ifndef SOMGD_GetMenu
    #if (defined(_GetMenu) || defined(__GetMenu))
        #undef _GetMenu
        #undef __GetMenu
        #define SOMGD_GetMenu 1
    #else
        #define _GetMenu ODBaseMenuBar_GetMenu
    #endif /* _GetMenu */
#endif /* SOMGD_GetMenu */

/*
 * New Method: IsValid
 */
typedef ODBoolean   (SOMLINK * somTD_ODBaseMenuBar_IsValid)(ODBaseMenuBar *somSelf, Environment *ev);
#define somMD_ODBaseMenuBar_IsValid "::ODBaseMenuBar::IsValid"
#define ODBaseMenuBar_IsValid(somSelf,ev) \
    (SOM_Resolve(somSelf, ODBaseMenuBar, IsValid) \
	(somSelf,ev))
#ifndef SOMGD_IsValid
    #if (defined(_IsValid) || defined(__IsValid))
        #undef _IsValid
        #undef __IsValid
        #define SOMGD_IsValid 1
    #else
        #define _IsValid ODBaseMenuBar_IsValid
    #endif /* _IsValid */
#endif /* SOMGD_IsValid */

/*
 * New Method: InitBaseMenuBar
 */
typedef void   (SOMLINK * somTD_ODBaseMenuBar_InitBaseMenuBar)(ODBaseMenuBar *somSelf, Environment *ev,
		ODSession* session,
		ODPlatformMenuBar menuBar);
#define somMD_ODBaseMenuBar_InitBaseMenuBar "::ODBaseMenuBar::InitBaseMenuBar"
#define ODBaseMenuBar_InitBaseMenuBar(somSelf,ev,session,menuBar) \
    (SOM_Resolve(somSelf, ODBaseMenuBar, InitBaseMenuBar) \
	(somSelf,ev,session,menuBar))
#ifndef SOMGD_InitBaseMenuBar
    #if (defined(_InitBaseMenuBar) || defined(__InitBaseMenuBar))
        #undef _InitBaseMenuBar
        #undef __InitBaseMenuBar
        #define SOMGD_InitBaseMenuBar 1
    #else
        #define _InitBaseMenuBar ODBaseMenuBar_InitBaseMenuBar
    #endif /* _InitBaseMenuBar */
#endif /* SOMGD_InitBaseMenuBar */

/*
 * New Method: SetGeneration
 */
typedef void   (SOMLINK * somTD_ODBaseMenuBar_SetGeneration)(ODBaseMenuBar *somSelf, Environment *ev,
		ODULong generation);
#define somMD_ODBaseMenuBar_SetGeneration "::ODBaseMenuBar::SetGeneration"
#define ODBaseMenuBar_SetGeneration(somSelf,ev,generation) \
    (SOM_Resolve(somSelf, ODBaseMenuBar, SetGeneration) \
	(somSelf,ev,generation))
#ifndef SOMGD_SetGeneration
    #if (defined(_SetGeneration) || defined(__SetGeneration))
        #undef _SetGeneration
        #undef __SetGeneration
        #define SOMGD_SetGeneration 1
    #else
        #define _SetGeneration ODBaseMenuBar_SetGeneration
    #endif /* _SetGeneration */
#endif /* SOMGD_SetGeneration */

/*
 * New Method: GetGeneration
 */
typedef ODULong   (SOMLINK * somTD_ODBaseMenuBar_GetGeneration)(ODBaseMenuBar *somSelf, Environment *ev);
#define somMD_ODBaseMenuBar_GetGeneration "::ODBaseMenuBar::GetGeneration"
#define ODBaseMenuBar_GetGeneration(somSelf,ev) \
    (SOM_Resolve(somSelf, ODBaseMenuBar, GetGeneration) \
	(somSelf,ev))
#ifndef SOMGD_GetGeneration
    #if (defined(_GetGeneration) || defined(__GetGeneration))
        #undef _GetGeneration
        #undef __GetGeneration
        #define SOMGD_GetGeneration 1
    #else
        #define _GetGeneration ODBaseMenuBar_GetGeneration
    #endif /* _GetGeneration */
#endif /* SOMGD_GetGeneration */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ODBaseMenuBar_InitRefCntObject ODRefCntObject_InitRefCntObject
#define ODBaseMenuBar_IncrementRefCount ODRefCntObject_IncrementRefCount
#define ODBaseMenuBar_GetRefCount ODRefCntObject_GetRefCount
#define ODBaseMenuBar_InitObject ODObject_InitObject
#define ODBaseMenuBar_IsInitialized ODObject_IsInitialized
#define ODBaseMenuBar_HasExtension ODObject_HasExtension
#define ODBaseMenuBar_GetExtension ODObject_GetExtension
#define ODBaseMenuBar_ReleaseExtension ODObject_ReleaseExtension
#define ODBaseMenuBar_Purge ODObject_Purge
#define ODBaseMenuBar_IsEqualTo ODObject_IsEqualTo
#define ODBaseMenuBar_SubClassResponsibility ODObject_SubClassResponsibility
#define ODBaseMenuBar_somDefaultInit SOMObject_somDefaultInit
#define ODBaseMenuBar_somDestruct SOMObject_somDestruct
#define ODBaseMenuBar_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ODBaseMenuBar_somDefaultAssign SOMObject_somDefaultAssign
#define ODBaseMenuBar_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ODBaseMenuBar_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ODBaseMenuBar_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ODBaseMenuBar_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ODBaseMenuBar_somDefaultVAssign SOMObject_somDefaultVAssign
#define ODBaseMenuBar_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ODBaseMenuBar_somFree SOMObject_somFree
#define ODBaseMenuBar_somGetClass SOMObject_somGetClass
#define ODBaseMenuBar_somGetClassName SOMObject_somGetClassName
#define ODBaseMenuBar_somGetSize SOMObject_somGetSize
#define ODBaseMenuBar_somIsA SOMObject_somIsA
#define ODBaseMenuBar_somIsInstanceOf SOMObject_somIsInstanceOf
#define ODBaseMenuBar_somRespondsTo SOMObject_somRespondsTo
#define ODBaseMenuBar_somDispatch SOMObject_somDispatch
#define ODBaseMenuBar_somClassDispatch SOMObject_somClassDispatch
#define ODBaseMenuBar_somCastObj SOMObject_somCastObj
#define ODBaseMenuBar_somResetObj SOMObject_somResetObj
#define ODBaseMenuBar_somDispatchV SOMObject_somDispatchV
#define ODBaseMenuBar_somDispatchL SOMObject_somDispatchL
#define ODBaseMenuBar_somDispatchA SOMObject_somDispatchA
#define ODBaseMenuBar_somDispatchD SOMObject_somDispatchD
#define ODBaseMenuBar_somPrintSelf SOMObject_somPrintSelf
#define ODBaseMenuBar_somDumpSelf SOMObject_somDumpSelf
#define ODBaseMenuBar_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ODBaseMenuBar_h */
