home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ibmodf.zip / CNTNRPRT.ZIP / CNTNRRMB.XIH < prev    next >
Text File  |  1995-04-13  |  13KB  |  341 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: CntnrRMB.xih.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.29.1.2
  7.  *     SOM Emitter emitxih: 2.41
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Classes defined in this interface
  13.  * 
  14.  */
  15.  
  16.  
  17. /*
  18.  * -- By default, for classes declared using IDL,
  19.  * -- this emitter doesn't define redispatch/apply stubs.
  20.  * -- Instead, it requests that the SOM kernel produce them.
  21.  * -- To override this default, use the "notc" modifier.
  22.  */
  23.  
  24. #ifndef SOM_ODContainerRootFrameMenuBar_xih
  25. #define SOM_ODContainerRootFrameMenuBar_xih
  26.  
  27. #include <somcls.xh>
  28. #include <somcm.xh>
  29.  
  30. #ifndef SOM_ODContainerRootFrameMenuBar_xh
  31. #include <CntnrRMB.xh>
  32. #endif
  33.  
  34. /*
  35.  * Set the scope of methods functions
  36.  */
  37. #ifndef SOM_Scope
  38. #define SOM_Scope extern "C"
  39. #endif
  40.  
  41. #define ODContainerRootFrameMenuBar_MaxNoMethods 0
  42.  
  43. /*
  44.  * -- Instance Data
  45.  */
  46. typedef struct {
  47.     long DemoOpenCount;
  48. } ODContainerRootFrameMenuBarData;
  49.  
  50. /*
  51.  * -- Getdata Macro
  52.  */
  53.  
  54. /*
  55.  * -- This emitter treats Data Tokens as Thunks by default.
  56.  * -- Use the sc modifier "nothunks" to override this default.
  57.  */
  58. typedef ODContainerRootFrameMenuBarData* (SOMLINK * somTD_ODContainerRootFrameMenuBar_DataThunk)(void*);
  59. #define ODContainerRootFrameMenuBarGetData(somSelf) \
  60.    (((somTD_ODContainerRootFrameMenuBar_DataThunk)(ODContainerRootFrameMenuBarCClassData.instanceDataToken))(somSelf))
  61.  
  62. /*
  63.  * -- Instance Data Access Macros for use in Method Procedures
  64.  */
  65. #ifdef VARIABLE_MACROS
  66.   #define _DemoOpenCount (somThis->DemoOpenCount)
  67. #endif
  68.  
  69.  
  70. /*
  71.  * -- Primary Implementation File Support
  72.  */
  73. #if (defined(ODContainerRootFrameMenuBar_Class_Source) || defined(SOM_Module_cntnrrmb_Source))
  74.  
  75. /*
  76.  * Trace/Debug macro
  77.  */
  78. #ifndef ODContainerRootFrameMenuBarMethodDebug
  79.    #define ODContainerRootFrameMenuBarMethodDebug(c,m) SOMMethodDebug(c,m)
  80. #endif
  81.  
  82. /*
  83.  * -- Method Macros for use in Method Procedures
  84.  */
  85. #ifdef METHOD_MACROS
  86.   #define _SetDependeeMenuBar somSelf->SetDependeeMenuBar
  87.   #define _GetDependeeMenuBar somSelf->GetDependeeMenuBar
  88.   #define _SetOwner somSelf->SetOwner
  89.   #define _AdjustRootMenus somSelf->AdjustRootMenus
  90.   #define _InitMenuBar somSelf->InitMenuBar
  91.   #define _AddMenuAfter somSelf->AddMenuAfter
  92.   #define _AddItemBefore somSelf->AddItemBefore
  93.   #define _AddItemLast somSelf->AddItemLast
  94.   #define _AddMenuBBefore somSelf->AddMenuBBefore
  95.   #define _AddMenuBLast somSelf->AddMenuBLast
  96.   #define _HandleEvent somSelf->HandleEvent
  97.   #define _CheckItem somSelf->CheckItem
  98.   #define _EnableItem somSelf->EnableItem
  99.   #define _Exists somSelf->Exists
  100.   #define _GetChangeNumber somSelf->GetChangeNumber
  101.   #define _GetItem somSelf->GetItem
  102.   #define _GetItemChecked somSelf->GetItemChecked
  103.   #define _GetItemEnabled somSelf->GetItemEnabled
  104.   #define _GetItemString somSelf->GetItemString
  105.   #define _GetOldMenuID somSelf->GetOldMenuID
  106.   #define _GetPromptString somSelf->GetPromptString
  107.   #define _GetFirstMenuID somSelf->GetFirstMenuID
  108.   #define _GetNextMenuID somSelf->GetNextMenuID
  109.   #define _GetLastMenuID somSelf->GetLastMenuID
  110.   #define _RemapIDs somSelf->RemapIDs
  111.   #define _SetItemString somSelf->SetItemString
  112.   #define _UpdateMenuDependencyChain somSelf->UpdateMenuDependencyChain
  113.   #define _DependentMenuBarRemoved somSelf->DependentMenuBarRemoved
  114.   #define _DependentMenuBarAdded somSelf->DependentMenuBarAdded
  115.   #define _UpdateMenuWindowTree somSelf->UpdateMenuWindowTree
  116.   #define _Display somSelf->Display
  117.   #define _Copy somSelf->Copy
  118.   #define _AddMenuLast somSelf->AddMenuLast
  119.   #define _AddMenuBefore somSelf->AddMenuBefore
  120.   #define _RemoveMenu somSelf->RemoveMenu
  121.   #define _GetMenu somSelf->GetMenu
  122.   #define _InitRefCntObject somSelf->InitRefCntObject
  123.   #define _IncrementRefCount somSelf->IncrementRefCount
  124.   #define _Release somSelf->Release
  125.   #define _GetRefCount somSelf->GetRefCount
  126.   #define _InitObject somSelf->InitObject
  127.   #define _IsInitialized somSelf->IsInitialized
  128.   #define _HasExtension somSelf->HasExtension
  129.   #define _GetExtension somSelf->GetExtension
  130.   #define _ReleaseExtension somSelf->ReleaseExtension
  131.   #define _Purge somSelf->Purge
  132.   #define _SubClassResponsibility somSelf->SubClassResponsibility
  133.   #define _somDefaultInit somSelf->somDefaultInit
  134.   #define _somDestruct somSelf->somDestruct
  135.   #define _somDefaultCopyInit somSelf->somDefaultCopyInit
  136.   #define _somDefaultAssign somSelf->somDefaultAssign
  137.   #define _somDefaultConstCopyInit somSelf->somDefaultConstCopyInit
  138.   #define _somDefaultVCopyInit somSelf->somDefaultVCopyInit
  139.   #define _somDefaultConstVCopyInit somSelf->somDefaultConstVCopyInit
  140.   #define _somDefaultConstAssign somSelf->somDefaultConstAssign
  141.   #define _somDefaultVAssign somSelf->somDefaultVAssign
  142.   #define _somDefaultConstVAssign somSelf->somDefaultConstVAssign
  143.   #define _somInit somSelf->somInit
  144.   #define _somFree somSelf->somFree
  145.   #define _somUninit somSelf->somUninit
  146.   #define _somGetClass somSelf->somGetClass
  147.   #define _somGetClassName somSelf->somGetClassName
  148.   #define _somGetSize somSelf->somGetSize
  149.   #define _somIsA somSelf->somIsA
  150.   #define _somIsInstanceOf somSelf->somIsInstanceOf
  151.   #define _somRespondsTo somSelf->somRespondsTo
  152.   #define _somDispatch somSelf->somDispatch
  153.   #define _somClassDispatch somSelf->somClassDispatch
  154.   #define _somCastObj somSelf->somCastObj
  155.   #define _somResetObj somSelf->somResetObj
  156.   #define _somDispatchV somSelf->somDispatchV
  157.   #define _somDispatchL somSelf->somDispatchL
  158.   #define _somDispatchA somSelf->somDispatchA
  159.   #define _somDispatchD somSelf->somDispatchD
  160.   #define _somPrintSelf somSelf->somPrintSelf
  161.   #define _somDumpSelf somSelf->somDumpSelf
  162.   #define _somDumpSelfInt somSelf->somDumpSelfInt
  163.   #define _somInit somSelf->somInit
  164.   #define _AdjustRootMenus somSelf->AdjustRootMenus
  165. #endif
  166.  
  167.  
  168. /*
  169.  * -- The ODContainerRootFrameMenuBar ClassData Structure
  170.  */
  171. SOMEXTERN struct ODContainerRootFrameMenuBarClassDataStructure SOMDLINK ODContainerRootFrameMenuBarClassData = {(SOMClass *) NULL};
  172.  
  173. /*
  174.  * -- The auxiliary ODContainerRootFrameMenuBar ClassData structure
  175.  */
  176. SOMEXTERN struct ODContainerRootFrameMenuBarCClassDataStructure SOMDLINK ODContainerRootFrameMenuBarCClassData = {(somMethodTabs) NULL};
  177.  
  178.  
  179. /*
  180.  * Overridden method: somInit
  181.  */
  182. SOM_Scope void  SOMLINK ODContainerRootFrameMenuBarsomInit(ODContainerRootFrameMenuBar *somSelf);
  183. static char *somMN_ODContainerRootFrameMenuBarsomInit = "SOMObject::somInit";
  184. static somId somId_ODContainerRootFrameMenuBarsomInit = &somMN_ODContainerRootFrameMenuBarsomInit;
  185. #ifdef somId_somInit
  186. #undef somId_somInit
  187. #else
  188. #define somId_somInit somId_ODContainerRootFrameMenuBarsomInit
  189. #endif
  190. typedef void   (SOMLINK * somTD_xih_ODContainerRootFrameMenuBar_somInit)(ODContainerRootFrameMenuBar *somSelf);
  191. /* define the parent method call macro */
  192. #define ODContainerRootFrameMenuBar_parent_ODRootFrameMenuBar_somInit(__somSelf) \
  193.     somSelf = (__somSelf,somSelf) /* pcalls for somInit/somUninit turned off */
  194. /* define a variety of (possibly ambiguous) short forms */
  195. #ifndef SOMGD_pmc_parent_somInit
  196.   #ifdef parent_somInit
  197.     #define SOMGD_pmc_parent_somInit
  198.     #undef parent_somInit
  199.   #else
  200. #define parent_somInit ODContainerRootFrameMenuBar_parent_ODRootFrameMenuBar_somInit
  201.   #endif
  202. #endif
  203. #ifndef SOMGD_pmc_parent_ODRootFrameMenuBar_somInit
  204.   #ifdef parent_ODRootFrameMenuBar_somInit
  205.     #define SOMGD_pmc_parent_ODRootFrameMenuBar_somInit
  206.     #undef parent_ODRootFrameMenuBar_somInit
  207.   #else
  208.     #define parent_ODRootFrameMenuBar_somInit ODContainerRootFrameMenuBar_parent_ODRootFrameMenuBar_somInit
  209.   #endif
  210. #endif
  211. #define ODContainerRootFrameMenuBar_parents_somInit(somSelf) (somSelf)
  212.  
  213. /*
  214.  * Overridden method: AdjustRootMenus
  215.  */
  216. SOM_Scope void  SOMLINK ODContainerRootFrameMenuBarAdjustRootMenus(ODContainerRootFrameMenuBar *somSelf, Environment *ev,
  217.         ODMenuID menuID,
  218.         ODFrame* frame);
  219. static char *somMN_ODContainerRootFrameMenuBarAdjustRootMenus = "ODRootFrameMenuBar::AdjustRootMenus";
  220. static somId somId_ODContainerRootFrameMenuBarAdjustRootMenus = &somMN_ODContainerRootFrameMenuBarAdjustRootMenus;
  221. #ifdef somId_AdjustRootMenus
  222. #undef somId_AdjustRootMenus
  223. #else
  224. #define somId_AdjustRootMenus somId_ODContainerRootFrameMenuBarAdjustRootMenus
  225. #endif
  226. typedef void   (SOMLINK * somTD_xih_ODContainerRootFrameMenuBar_AdjustRootMenus)(ODContainerRootFrameMenuBar *somSelf, Environment *ev,
  227.         ODMenuID menuID,
  228.         ODFrame* frame);
  229. /* define the parent method call macro */
  230. static somMethodProc* ODContainerRootFrameMenuBar_parent_ODRootFrameMenuBar_AdjustRootMenus_resolved = 0;
  231. #define ODContainerRootFrameMenuBar_parent_ODRootFrameMenuBar_AdjustRootMenus(somSelf,ev,menuID,frame) \
  232.   ((( somTD_xih_ODContainerRootFrameMenuBar_AdjustRootMenus ) \
  233.     ((ODContainerRootFrameMenuBar_parent_ODRootFrameMenuBar_AdjustRootMenus_resolved)? \
  234.       ODContainerRootFrameMenuBar_parent_ODRootFrameMenuBar_AdjustRootMenus_resolved : \
  235.       (ODContainerRootFrameMenuBar_parent_ODRootFrameMenuBar_AdjustRootMenus_resolved = \
  236.           somParentNumResolve(ODContainerRootFrameMenuBarCClassData.parentMtab, 1, ODRootFrameMenuBarClassData.AdjustRootMenus)))) \
  237.    (somSelf,ev,menuID,frame))
  238. /* define a variety of (possibly ambiguous) short forms */
  239. #ifndef SOMGD_pmc_parent_AdjustRootMenus
  240.   #ifdef parent_AdjustRootMenus
  241.     #define SOMGD_pmc_parent_AdjustRootMenus
  242.     #undef parent_AdjustRootMenus
  243.   #else
  244. #define parent_AdjustRootMenus ODContainerRootFrameMenuBar_parent_ODRootFrameMenuBar_AdjustRootMenus
  245.   #endif
  246. #endif
  247. #ifndef SOMGD_pmc_parent_ODRootFrameMenuBar_AdjustRootMenus
  248.   #ifdef parent_ODRootFrameMenuBar_AdjustRootMenus
  249.     #define SOMGD_pmc_parent_ODRootFrameMenuBar_AdjustRootMenus
  250.     #undef parent_ODRootFrameMenuBar_AdjustRootMenus
  251.   #else
  252.     #define parent_ODRootFrameMenuBar_AdjustRootMenus ODContainerRootFrameMenuBar_parent_ODRootFrameMenuBar_AdjustRootMenus
  253.   #endif
  254. #endif
  255. #define ODContainerRootFrameMenuBar_parents_AdjustRootMenus(arg0,arg1,arg2) (\
  256.    ODContainerRootFrameMenuBar_parent_ODRootFrameMenuBar_AdjustRootMenus(arg0,arg1,arg2))
  257.  
  258. /*
  259.  * -- Routines and Structures to create the class object
  260.  */
  261.  
  262.  
  263. /*
  264.  * Declare the Override Methods table.
  265.  */
  266. static somOverrideMethod_t ODContainerRootFrameMenuBarOM[] = {
  267.     {    &somId_ODContainerRootFrameMenuBarsomInit,
  268.          (somMethodProc *) ODContainerRootFrameMenuBarsomInit  },
  269.     {    &somId_ODContainerRootFrameMenuBarAdjustRootMenus,
  270.          (somMethodProc *) ODContainerRootFrameMenuBarAdjustRootMenus  },
  271. };
  272.  
  273.  
  274. /*
  275.  *  class Ids
  276.  */
  277. static char * somCN_ODContainerRootFrameMenuBar = "ODContainerRootFrameMenuBar";
  278. static char * somPCN_ODContainerRootFrameMenuBar_ODRootFrameMenuBar = "ODRootFrameMenuBar";
  279.  
  280. static somId somPCODContainerRootFrameMenuBar[] = {
  281.     &somPCN_ODContainerRootFrameMenuBar_ODRootFrameMenuBar,
  282. };
  283.  
  284. static somStaticClassInfo ODContainerRootFrameMenuBarSCI = {
  285.     4, 0, 2, 0, 0, 0, /* layout version 4 */ 
  286.     ODContainerRootFrameMenuBar_MajorVersion, ODContainerRootFrameMenuBar_MinorVersion,
  287.     sizeof(ODContainerRootFrameMenuBarData), ODContainerRootFrameMenuBar_MaxNoMethods, 1,
  288.     &somCN_ODContainerRootFrameMenuBar,
  289.     (somId) NULL, 1,
  290.     somPCODContainerRootFrameMenuBar,
  291.     (somClassDataStructure *) &ODContainerRootFrameMenuBarClassData,
  292.     (somCClassDataStructure *) &ODContainerRootFrameMenuBarCClassData,
  293.     (somStaticMethod_t *) NULL, ODContainerRootFrameMenuBarOM,
  294.     (char *) NULL,
  295.     (somNonInternalData_t *) NULL,
  296.    (somProcMethods_t *) NULL,
  297.     (somVarargsFuncs_t *) NULL,
  298.     (somTP_somClassInitFunc *) NULL,
  299.     0, /* default alignment */
  300.     -1, /* use parents as DirectInitClasses */
  301.     0, /* no explicit DirectInitClasses */
  302.     0, /* number of general methods */
  303.     (somMethods_t *) NULL,
  304.     0, /* no public data offset */
  305.     0, /* no sci development level check */
  306.     0, /* number of SelectInheritedMethods */
  307.     0, /* no SelectInheritedMethods */
  308.     0, /* number of classdata entries */
  309.     0, /* no list provided currently */
  310.     0, /* number of migrated methods */
  311.     0, /* no migrated method implementations */
  312.     0, /* number of initializers */
  313.     0, /* no initializers */
  314.     0, /* not a DTS class */
  315.     0, /* no dynamically computed info */
  316. };
  317.  
  318.  
  319. /*
  320.  * Class Creation and Initialization
  321.  */
  322.  
  323. SOMClass * SOMLINK ODContainerRootFrameMenuBarNewClass (integer4 somtmajorVersion,
  324.         integer4 somtminorVersion)
  325. {
  326.     ODRootFrameMenuBarNewClass(ODRootFrameMenuBar_MajorVersion,ODRootFrameMenuBar_MinorVersion);    /* static reference */
  327.     return (SOMClass*) ((void*)(somBuildClass(1,&ODContainerRootFrameMenuBarSCI, somtmajorVersion, somtminorVersion)));
  328. }
  329.  
  330. /*
  331.  * Functions for attributes.
  332.  */
  333.  
  334. /*
  335.  * Macros for initializer/destructor entry/exit
  336.  */
  337.  
  338. #endif /* Primary Implementation Support */
  339.  
  340. #endif       /* SOM_ODContainerRootFrameMenuBar_xih */
  341.