home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ibmodf.zip
/
CNTNRPRT.ZIP
/
CNTNRPUM.XIH
< prev
next >
Wrap
Text File
|
1995-04-13
|
19KB
|
482 lines
/*
* This file was generated by the SOM Compiler.
* FileName: CntnrPUM.xih.
* Generated using:
* SOM Precompiler somipc: 2.29.1.2
* SOM Emitter emitxih: 2.41
*/
/*
*
* Classes defined in this interface
*
*/
/*
* -- By default, for classes declared using IDL,
* -- this emitter doesn't define redispatch/apply stubs.
* -- Instead, it requests that the SOM kernel produce them.
* -- To override this default, use the "notc" modifier.
*/
#ifndef SOM_ODPopupContainerMenu_xih
#define SOM_ODPopupContainerMenu_xih
#include <somcls.xh>
#include <somcm.xh>
#ifndef SOM_ODPopupContainerMenu_xh
#include <CntnrPUM.xh>
#endif
/*
* Set the scope of methods functions
*/
#ifndef SOM_Scope
#define SOM_Scope extern "C"
#endif
#define ODPopupContainerMenu_MaxNoMethods 1
/*
* -- Instance Data
*/
typedef struct {
ODFrame* fOwnerFrame;
HWND fMenuHwnd;
HWND fObjectHwnd;
} ODPopupContainerMenuData;
/*
* -- Getdata Macro
*/
/*
* -- This emitter treats Data Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to override this default.
*/
typedef ODPopupContainerMenuData* (SOMLINK * somTD_ODPopupContainerMenu_DataThunk)(void*);
#define ODPopupContainerMenuGetData(somSelf) \
(((somTD_ODPopupContainerMenu_DataThunk)(ODPopupContainerMenuCClassData.instanceDataToken))(somSelf))
/*
* -- Instance Data Access Macros for use in Method Procedures
*/
#ifdef VARIABLE_MACROS
#define _fOwnerFrame (somThis->fOwnerFrame)
#define _fMenuHwnd (somThis->fMenuHwnd)
#define _fObjectHwnd (somThis->fObjectHwnd)
#endif
/*
* -- Primary Implementation File Support
*/
#if (defined(ODPopupContainerMenu_Class_Source) || defined(SOM_Module_cntnrpum_Source))
/*
* Trace/Debug macro
*/
#ifndef ODPopupContainerMenuMethodDebug
#define ODPopupContainerMenuMethodDebug(c,m) SOMMethodDebug(c,m)
#endif
/*
* -- Method Macros for use in Method Procedures
*/
#ifdef METHOD_MACROS
#define _SetDependeeMenuBar somSelf->SetDependeeMenuBar
#define _SetOwner somSelf->SetOwner
#define _GetDependeeMenuBar somSelf->GetDependeeMenuBar
#define _AdjustMenus somSelf->AdjustMenus
#define _InitMenuBar somSelf->InitMenuBar
#define _AddMenuAfter somSelf->AddMenuAfter
#define _AddItemBefore somSelf->AddItemBefore
#define _AddItemLast somSelf->AddItemLast
#define _AddMenuBBefore somSelf->AddMenuBBefore
#define _AddMenuBLast somSelf->AddMenuBLast
#define _HandleEvent somSelf->HandleEvent
#define _CheckItem somSelf->CheckItem
#define _EnableItem somSelf->EnableItem
#define _Exists somSelf->Exists
#define _GetChangeNumber somSelf->GetChangeNumber
#define _GetItem somSelf->GetItem
#define _GetItemChecked somSelf->GetItemChecked
#define _GetItemEnabled somSelf->GetItemEnabled
#define _GetItemString somSelf->GetItemString
#define _GetOldMenuID somSelf->GetOldMenuID
#define _GetPromptString somSelf->GetPromptString
#define _GetFirstMenuID somSelf->GetFirstMenuID
#define _GetNextMenuID somSelf->GetNextMenuID
#define _GetLastMenuID somSelf->GetLastMenuID
#define _RemapIDs somSelf->RemapIDs
#define _SetItemString somSelf->SetItemString
#define _UpdateMenuDependencyChain somSelf->UpdateMenuDependencyChain
#define _DependentMenuBarRemoved somSelf->DependentMenuBarRemoved
#define _DependentMenuBarAdded somSelf->DependentMenuBarAdded
#define _UpdateMenuWindowTree somSelf->UpdateMenuWindowTree
#define _Display somSelf->Display
#define _Copy somSelf->Copy
#define _AddMenuLast somSelf->AddMenuLast
#define _AddMenuBefore somSelf->AddMenuBefore
#define _RemoveMenu somSelf->RemoveMenu
#define _GetMenu somSelf->GetMenu
#define _InitRefCntObject somSelf->InitRefCntObject
#define _IncrementRefCount somSelf->IncrementRefCount
#define _Release somSelf->Release
#define _GetRefCount somSelf->GetRefCount
#define _InitObject somSelf->InitObject
#define _IsInitialized somSelf->IsInitialized
#define _HasExtension somSelf->HasExtension
#define _GetExtension somSelf->GetExtension
#define _ReleaseExtension somSelf->ReleaseExtension
#define _Purge somSelf->Purge
#define _SubClassResponsibility somSelf->SubClassResponsibility
#define _somDefaultInit somSelf->somDefaultInit
#define _somDestruct somSelf->somDestruct
#define _somDefaultCopyInit somSelf->somDefaultCopyInit
#define _somDefaultAssign somSelf->somDefaultAssign
#define _somDefaultConstCopyInit somSelf->somDefaultConstCopyInit
#define _somDefaultVCopyInit somSelf->somDefaultVCopyInit
#define _somDefaultConstVCopyInit somSelf->somDefaultConstVCopyInit
#define _somDefaultConstAssign somSelf->somDefaultConstAssign
#define _somDefaultVAssign somSelf->somDefaultVAssign
#define _somDefaultConstVAssign somSelf->somDefaultConstVAssign
#define _somInit somSelf->somInit
#define _somFree somSelf->somFree
#define _somUninit somSelf->somUninit
#define _somGetClass somSelf->somGetClass
#define _somGetClassName somSelf->somGetClassName
#define _somGetSize somSelf->somGetSize
#define _somIsA somSelf->somIsA
#define _somIsInstanceOf somSelf->somIsInstanceOf
#define _somRespondsTo somSelf->somRespondsTo
#define _somDispatch somSelf->somDispatch
#define _somClassDispatch somSelf->somClassDispatch
#define _somCastObj somSelf->somCastObj
#define _somResetObj somSelf->somResetObj
#define _somDispatchV somSelf->somDispatchV
#define _somDispatchL somSelf->somDispatchL
#define _somDispatchA somSelf->somDispatchA
#define _somDispatchD somSelf->somDispatchD
#define _somPrintSelf somSelf->somPrintSelf
#define _somDumpSelf somSelf->somDumpSelf
#define _somDumpSelfInt somSelf->somDumpSelfInt
#define _InitPopupContainerMenu somSelf->InitPopupContainerMenu
#define _somInit somSelf->somInit
#define _UpdateMenuDependencyChain somSelf->UpdateMenuDependencyChain
#define _Display somSelf->Display
#define _somUninit somSelf->somUninit
#endif
/*
* -- The ODPopupContainerMenu ClassData Structure
*/
SOMEXTERN struct ODPopupContainerMenuClassDataStructure SOMDLINK ODPopupContainerMenuClassData = {(SOMClass *) NULL};
/*
* -- The auxiliary ODPopupContainerMenu ClassData structure
*/
SOMEXTERN struct ODPopupContainerMenuCClassDataStructure SOMDLINK ODPopupContainerMenuCClassData = {(somMethodTabs) NULL};
/*
* -- Apply Stubs for New Methods
*/
static void SOMLINK somAP_ODPopupContainerMenuInitPopupContainerMenu(ODPopupContainerMenu *somSelf,
void *__retVal,
somMethodProc *__methodPtr,
va_list __ap)
{
somSelf = va_arg(__ap, ODPopupContainerMenu*);
Environment *ev = va_arg(__ap, Environment*);
ODSession* session = va_arg(__ap, ODSession*);
ODFrame* frame = va_arg(__ap, ODFrame*);
SOM_IgnoreWarning(__retVal);
((somTD_ODPopupContainerMenu_InitPopupContainerMenu) __methodPtr) (somSelf, ev, session,frame);
}
/*
* New Method: InitPopupContainerMenu
*/
SOM_Scope void SOMLINK ODPopupContainerMenuInitPopupContainerMenu(ODPopupContainerMenu *somSelf, Environment *ev,
ODSession* session,
ODFrame* frame);
#ifndef somMN_InitPopupContainerMenu_defined
#define somMN_InitPopupContainerMenu_defined
static char *somMN_InitPopupContainerMenu = "InitPopupContainerMenu";
static somId somId_InitPopupContainerMenu = &somMN_InitPopupContainerMenu;
#endif /* somMN_InitPopupContainerMenu_defined */
#ifndef somDS_InitPopupContainerMenu_defined
#define somDS_InitPopupContainerMenu_defined
static char *somDS_InitPopupContainerMenu = "::ODPopupContainerMenu::InitPopupContainerMenu";
static somId somDI_InitPopupContainerMenu = &somDS_InitPopupContainerMenu;
#endif /* somDS_InitPopupContainerMenu_defined */
static void SOMLINK somRD_ODPopupContainerMenuInitPopupContainerMenu(ODPopupContainerMenu *somSelf, Environment *ev,
ODSession* session,
ODFrame* frame)
{
void* __retVal;
somSelf->somDispatch((void **)&__retVal, somId_InitPopupContainerMenu, somSelf , ev
,session,frame);
}
/*
* Overridden method: somInit
*/
SOM_Scope void SOMLINK ODPopupContainerMenusomInit(ODPopupContainerMenu *somSelf);
static char *somMN_ODPopupContainerMenusomInit = "SOMObject::somInit";
static somId somId_ODPopupContainerMenusomInit = &somMN_ODPopupContainerMenusomInit;
#ifdef somId_somInit
#undef somId_somInit
#else
#define somId_somInit somId_ODPopupContainerMenusomInit
#endif
typedef void (SOMLINK * somTD_xih_ODPopupContainerMenu_somInit)(ODPopupContainerMenu *somSelf);
/* define the parent method call macro */
#define ODPopupContainerMenu_parent_ODActiveFrameMenuBar_somInit(__somSelf) \
somSelf = (__somSelf,somSelf) /* pcalls for somInit/somUninit turned off */
/* define a variety of (possibly ambiguous) short forms */
#ifndef SOMGD_pmc_parent_somInit
#ifdef parent_somInit
#define SOMGD_pmc_parent_somInit
#undef parent_somInit
#else
#define parent_somInit ODPopupContainerMenu_parent_ODActiveFrameMenuBar_somInit
#endif
#endif
#ifndef SOMGD_pmc_parent_ODActiveFrameMenuBar_somInit
#ifdef parent_ODActiveFrameMenuBar_somInit
#define SOMGD_pmc_parent_ODActiveFrameMenuBar_somInit
#undef parent_ODActiveFrameMenuBar_somInit
#else
#define parent_ODActiveFrameMenuBar_somInit ODPopupContainerMenu_parent_ODActiveFrameMenuBar_somInit
#endif
#endif
#define ODPopupContainerMenu_parents_somInit(somSelf) (somSelf)
/*
* Overridden method: UpdateMenuDependencyChain
*/
SOM_Scope void SOMLINK ODPopupContainerMenuUpdateMenuDependencyChain(ODPopupContainerMenu *somSelf, Environment *ev,
ODMenuID menuID);
static char *somMN_ODPopupContainerMenuUpdateMenuDependencyChain = "ODMenuBar::UpdateMenuDependencyChain";
static somId somId_ODPopupContainerMenuUpdateMenuDependencyChain = &somMN_ODPopupContainerMenuUpdateMenuDependencyChain;
#ifdef somId_UpdateMenuDependencyChain
#undef somId_UpdateMenuDependencyChain
#else
#define somId_UpdateMenuDependencyChain somId_ODPopupContainerMenuUpdateMenuDependencyChain
#endif
typedef void (SOMLINK * somTD_xih_ODPopupContainerMenu_UpdateMenuDependencyChain)(ODPopupContainerMenu *somSelf, Environment *ev,
ODMenuID menuID);
/* define the parent method call macro */
static somMethodProc* ODPopupContainerMenu_parent_ODActiveFrameMenuBar_UpdateMenuDependencyChain_resolved = 0;
#define ODPopupContainerMenu_parent_ODActiveFrameMenuBar_UpdateMenuDependencyChain(somSelf,ev,menuID) \
((( somTD_xih_ODPopupContainerMenu_UpdateMenuDependencyChain ) \
((ODPopupContainerMenu_parent_ODActiveFrameMenuBar_UpdateMenuDependencyChain_resolved)? \
ODPopupContainerMenu_parent_ODActiveFrameMenuBar_UpdateMenuDependencyChain_resolved : \
(ODPopupContainerMenu_parent_ODActiveFrameMenuBar_UpdateMenuDependencyChain_resolved = \
somParentNumResolve(ODPopupContainerMenuCClassData.parentMtab, 1, ODMenuBarClassData.UpdateMenuDependencyChain)))) \
(somSelf,ev,menuID))
/* define a variety of (possibly ambiguous) short forms */
#ifndef SOMGD_pmc_parent_UpdateMenuDependencyChain
#ifdef parent_UpdateMenuDependencyChain
#define SOMGD_pmc_parent_UpdateMenuDependencyChain
#undef parent_UpdateMenuDependencyChain
#else
#define parent_UpdateMenuDependencyChain ODPopupContainerMenu_parent_ODActiveFrameMenuBar_UpdateMenuDependencyChain
#endif
#endif
#ifndef SOMGD_pmc_parent_ODActiveFrameMenuBar_UpdateMenuDependencyChain
#ifdef parent_ODActiveFrameMenuBar_UpdateMenuDependencyChain
#define SOMGD_pmc_parent_ODActiveFrameMenuBar_UpdateMenuDependencyChain
#undef parent_ODActiveFrameMenuBar_UpdateMenuDependencyChain
#else
#define parent_ODActiveFrameMenuBar_UpdateMenuDependencyChain ODPopupContainerMenu_parent_ODActiveFrameMenuBar_UpdateMenuDependencyChain
#endif
#endif
#define ODPopupContainerMenu_parents_UpdateMenuDependencyChain(arg0,arg1) (\
ODPopupContainerMenu_parent_ODActiveFrameMenuBar_UpdateMenuDependencyChain(arg0,arg1))
/*
* Overridden method: Display
*/
SOM_Scope void SOMLINK ODPopupContainerMenuDisplay(ODPopupContainerMenu *somSelf, Environment *ev);
static char *somMN_ODPopupContainerMenuDisplay = "ODBaseMenuBar::Display";
static somId somId_ODPopupContainerMenuDisplay = &somMN_ODPopupContainerMenuDisplay;
#ifdef somId_Display
#undef somId_Display
#else
#define somId_Display somId_ODPopupContainerMenuDisplay
#endif
typedef void (SOMLINK * somTD_xih_ODPopupContainerMenu_Display)(ODPopupContainerMenu *somSelf, Environment *ev);
/* define the parent method call macro */
static somMethodProc* ODPopupContainerMenu_parent_ODActiveFrameMenuBar_Display_resolved = 0;
#define ODPopupContainerMenu_parent_ODActiveFrameMenuBar_Display(somSelf,ev) \
((( somTD_xih_ODPopupContainerMenu_Display ) \
((ODPopupContainerMenu_parent_ODActiveFrameMenuBar_Display_resolved)? \
ODPopupContainerMenu_parent_ODActiveFrameMenuBar_Display_resolved : \
(ODPopupContainerMenu_parent_ODActiveFrameMenuBar_Display_resolved = \
somParentNumResolve(ODPopupContainerMenuCClassData.parentMtab, 1, ODBaseMenuBarClassData.Display)))) \
(somSelf,ev))
/* define a variety of (possibly ambiguous) short forms */
#ifndef SOMGD_pmc_parent_Display
#ifdef parent_Display
#define SOMGD_pmc_parent_Display
#undef parent_Display
#else
#define parent_Display ODPopupContainerMenu_parent_ODActiveFrameMenuBar_Display
#endif
#endif
#ifndef SOMGD_pmc_parent_ODActiveFrameMenuBar_Display
#ifdef parent_ODActiveFrameMenuBar_Display
#define SOMGD_pmc_parent_ODActiveFrameMenuBar_Display
#undef parent_ODActiveFrameMenuBar_Display
#else
#define parent_ODActiveFrameMenuBar_Display ODPopupContainerMenu_parent_ODActiveFrameMenuBar_Display
#endif
#endif
#define ODPopupContainerMenu_parents_Display(arg0) (\
ODPopupContainerMenu_parent_ODActiveFrameMenuBar_Display(arg0))
/*
* Overridden method: somUninit
*/
SOM_Scope void SOMLINK ODPopupContainerMenusomUninit(ODPopupContainerMenu *somSelf);
static char *somMN_ODPopupContainerMenusomUninit = "SOMObject::somUninit";
static somId somId_ODPopupContainerMenusomUninit = &somMN_ODPopupContainerMenusomUninit;
#ifdef somId_somUninit
#undef somId_somUninit
#else
#define somId_somUninit somId_ODPopupContainerMenusomUninit
#endif
typedef void (SOMLINK * somTD_xih_ODPopupContainerMenu_somUninit)(ODPopupContainerMenu *somSelf);
/* define the parent method call macro */
#define ODPopupContainerMenu_parent_ODActiveFrameMenuBar_somUninit(__somSelf) \
somSelf = (__somSelf,somSelf) /* pcalls for somInit/somUninit turned off */
/* define a variety of (possibly ambiguous) short forms */
#ifndef SOMGD_pmc_parent_somUninit
#ifdef parent_somUninit
#define SOMGD_pmc_parent_somUninit
#undef parent_somUninit
#else
#define parent_somUninit ODPopupContainerMenu_parent_ODActiveFrameMenuBar_somUninit
#endif
#endif
#ifndef SOMGD_pmc_parent_ODActiveFrameMenuBar_somUninit
#ifdef parent_ODActiveFrameMenuBar_somUninit
#define SOMGD_pmc_parent_ODActiveFrameMenuBar_somUninit
#undef parent_ODActiveFrameMenuBar_somUninit
#else
#define parent_ODActiveFrameMenuBar_somUninit ODPopupContainerMenu_parent_ODActiveFrameMenuBar_somUninit
#endif
#endif
#define ODPopupContainerMenu_parents_somUninit(somSelf) (somSelf)
/*
* -- Routines and Structures to create the class object
*/
/*
* Declare the Static Methods table.
*/
static somStaticMethod_t ODPopupContainerMenuSM[] = {
{ &ODPopupContainerMenuClassData.InitPopupContainerMenu,
&somId_InitPopupContainerMenu,
&somDI_InitPopupContainerMenu,
(somMethodProc *) ODPopupContainerMenuInitPopupContainerMenu,
(somMethodProc *) somRD_ODPopupContainerMenuInitPopupContainerMenu,
(somMethodProc *) somAP_ODPopupContainerMenuInitPopupContainerMenu },
};
/*
* Declare the Override Methods table.
*/
static somOverrideMethod_t ODPopupContainerMenuOM[] = {
{ &somId_ODPopupContainerMenusomInit,
(somMethodProc *) ODPopupContainerMenusomInit },
{ &somId_ODPopupContainerMenuUpdateMenuDependencyChain,
(somMethodProc *) ODPopupContainerMenuUpdateMenuDependencyChain },
{ &somId_ODPopupContainerMenuDisplay,
(somMethodProc *) ODPopupContainerMenuDisplay },
{ &somId_ODPopupContainerMenusomUninit,
(somMethodProc *) ODPopupContainerMenusomUninit },
};
/*
* class Ids
*/
static char * somCN_ODPopupContainerMenu = "ODPopupContainerMenu";
static char * somPCN_ODPopupContainerMenu_ODActiveFrameMenuBar = "ODActiveFrameMenuBar";
static somId somPCODPopupContainerMenu[] = {
&somPCN_ODPopupContainerMenu_ODActiveFrameMenuBar,
};
static somStaticClassInfo ODPopupContainerMenuSCI = {
4, 1, 4, 0, 0, 0, /* layout version 4 */
ODPopupContainerMenu_MajorVersion, ODPopupContainerMenu_MinorVersion,
sizeof(ODPopupContainerMenuData), ODPopupContainerMenu_MaxNoMethods, 1,
&somCN_ODPopupContainerMenu,
(somId) NULL, 1,
somPCODPopupContainerMenu,
(somClassDataStructure *) &ODPopupContainerMenuClassData,
(somCClassDataStructure *) &ODPopupContainerMenuCClassData,
ODPopupContainerMenuSM, ODPopupContainerMenuOM,
(char *) NULL,
(somNonInternalData_t *) NULL,
(somProcMethods_t *) NULL,
(somVarargsFuncs_t *) NULL,
(somTP_somClassInitFunc *) NULL,
0, /* default alignment */
-1, /* use parents as DirectInitClasses */
0, /* no explicit DirectInitClasses */
0, /* number of general methods */
(somMethods_t *) NULL,
0, /* no public data offset */
0, /* no sci development level check */
0, /* number of SelectInheritedMethods */
0, /* no SelectInheritedMethods */
1, /* number of classdata entries */
0, /* no list provided currently */
0, /* number of migrated methods */
0, /* no migrated method implementations */
0, /* number of initializers */
0, /* no initializers */
0, /* not a DTS class */
0, /* no dynamically computed info */
};
/*
* Class Creation and Initialization
*/
SOMClass * SOMLINK ODPopupContainerMenuNewClass (integer4 somtmajorVersion,
integer4 somtminorVersion)
{
ODActiveFrameMenuBarNewClass(ODActiveFrameMenuBar_MajorVersion,ODActiveFrameMenuBar_MinorVersion); /* static reference */
return (SOMClass*) ((void*)(somBuildClass(1,&ODPopupContainerMenuSCI, somtmajorVersion, somtminorVersion)));
}
/*
* Functions for attributes.
*/
/*
* Macros for initializer/destructor entry/exit
*/
#endif /* Primary Implementation Support */
#endif /* SOM_ODPopupContainerMenu_xih */