home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
wpentk.zip
/
WBPENTK2.DSK
/
OEM.IH
< prev
next >
Wrap
Text File
|
1994-10-07
|
12KB
|
427 lines
/*
* This file was generated by the SOM Compiler.
* FileName: oem.ih.
* Generated using:
* SOM Precompiler somopc: 2.7
* SOM Emitter emitih: 2.22
*/
/*
*
*
* File Name : OEM.CSC
*
* Description : Sample sublcass
*
* Function: This is a sample of a subclass of PenLocatorPen
*
* Copyright (C) 1993 IBM Corporation
*
* DISCLAIMER OF WARRANTIES. The following [enclosed] code is
* sample code created by IBM Corporation. This sample code is not
* part of any standard or IBM product and is provided to you solely
* for the purpose of assisting you in the development of your
* applications. The code is provided "AS IS", without
* warranty of any kind. IBM shall not be liable for any damages
* arising out of your use of the sample code, even if they have been
* advised of the possibility of such damages.
*
*/
#ifndef SOM_oem_ih
#define SOM_oem_ih
#pragma checkout(suspend)
#include <oem.h>
/*
* Set the scope of methods functions
*/
#ifndef SOM_Scope
#define SOM_Scope static
#endif /* SOM_Scope */
#ifndef SOM_CurrentClass
#define SOM_CurrentClass oemCClassData.parentMtab
#endif /* SOM_CurrentClass */
#define oem_MaxNoMethods 1
/*
* Instance data
*/
typedef void oemData;
/*
* Begin stuff that only goes in the primary file
*/
#if (defined(oem_Class_Source) || defined(SOM_Module_oem_Source))
/*
* Trace/Debug macro
*/
#ifndef oemMethodDebug
#define oemMethodDebug(c,m) SOMMethodDebug(c,m)
#endif /* oemMethodDebug */
/*
* Current class macros for Instance and Meta classes.
*/
#undef SOMMeta
#define SOMMeta M_oemCClassData.parentMtab
#undef SOMInstance
#define SOMInstance oemCClassData.parentMtab
#ifndef M_oem_Class_Source
#define M_oem_Class_Source
#endif /* M_oem_Class_Source */
/*
* Generate the Apply Stubs.
*/
#pragma linkage(somAP_AddUserTypePage, system)
static void SOMLINK somAP_AddUserTypePage(oem *somSelf,
ULONG *__retVal,
somMethodProc *__methodPtr,
va_list __ap)
{
void *__somSelf = va_arg(__ap, void*);
HWND hwndOem = va_arg(__ap, HWND);
*__retVal = ((somTD_oem_AddUserTypePage) __methodPtr) (somSelf, hwndOem);
}
/*
* Overridden method: wpAddSettingsPages
*/
#pragma linkage(wpAddSettingsPages, system)
SOM_Scope BOOL SOMLINK wpAddSettingsPages(oem *somSelf,
HWND hwndNotebook);
#ifndef somMN_wpAddSettingsPages_defined
#define somMN_wpAddSettingsPages_defined
static char *somMN_wpAddSettingsPages = "wpAddSettingsPages";
static somId somId_wpAddSettingsPages = &somMN_wpAddSettingsPages;
#endif /* somMN_wpAddSettingsPages_defined */
#define oem_parent_PenLocatorPen_wpAddSettingsPages(somSelf,hwndNotebook) \
((SOM_ParentNumResolve(WPObject, 1, oemCClassData.parentMtab, wpAddSettingsPages)) \
(somSelf,hwndNotebook))
#ifndef SOMGD_pmc_PenLocatorPen_wpAddSettingsPages
#ifdef parent_PenLocatorPen_wpAddSettingsPages
#undef parent_PenLocatorPen_wpAddSettingsPages
#define SOMGD_pmc_PenLocatorPen_wpAddSettingsPages 1
#else
#define parent_PenLocatorPen_wpAddSettingsPages oem_parent_PenLocatorPen_wpAddSettingsPages
#endif /* parent_PenLocatorPen_wpAddSettingsPages */
#endif /* SOMGD_pmc_PenLocatorPen_wpAddSettingsPages */
#ifndef parent_wpAddSettingsPages
#define parent_wpAddSettingsPages(somSelf,hwndNotebook) \
((SOM_ParentNumResolve(WPObject, 1, SOM_CurrentClass, wpAddSettingsPages)) \
(somSelf,hwndNotebook))
#endif /* parent_wpAddSettingsPages */
#define oem_parents_wpAddSettingsPages(arg0,arg1) \
(void) oem_parent_PenLocatorPen_wpAddSettingsPages(arg0,arg1);
/*
* Initialize the class data structure
*/
struct oemClassDataStructure oemClassData = {(SOMAny *) NULL};
/*
* Define the C class data structure
*/
struct oemCClassDataStructure oemCClassData = {(somMethodTabs) NULL};
/*
* New Method: AddUserTypePage
*/
#pragma linkage(AddUserTypePage, system)
SOM_Scope ULONG SOMLINK AddUserTypePage(oem *somSelf,
HWND hwndOem);
#ifndef somMN_AddUserTypePage_defined
#define somMN_AddUserTypePage_defined
static char *somMN_AddUserTypePage = "AddUserTypePage";
static somId somId_AddUserTypePage = &somMN_AddUserTypePage;
#endif /* somMN_AddUserTypePage_defined */
#ifndef somDS_AddUserTypePage_defined
#define somDS_AddUserTypePage_defined
static char *somDS_AddUserTypePage = somMD_oem_AddUserTypePage;
static somId somDI_AddUserTypePage = &somDS_AddUserTypePage;
#endif /* somDS_AddUserTypePage_defined */
#pragma linkage(somRD_AddUserTypePage, system)
static ULONG SOMLINK somRD_AddUserTypePage(oem *somSelf,
HWND hwndOem)
{
ULONG __retVal;
va_somDispatch(somSelf, (void **)&__retVal, somId_AddUserTypePage, somSelf
,hwndOem);
return __retVal;
}
/*
* Routines and Structures to create the class object
*/
/*
* Declare the Static Methods table.
*/
static somStaticMethod_t oemSM[] = {
{ &oemClassData.AddUserTypePage,
&somId_AddUserTypePage,
&somDI_AddUserTypePage,
(somMethodProc *) AddUserTypePage,
(somMethodProc *) somRD_AddUserTypePage,
(somMethodProc *) somAP_AddUserTypePage },
};
/*
* Declare the Override Methods table.
*/
static somOverrideMethod_t oemOM[] = {
{ &somId_wpAddSettingsPages,
(somMethodProc *) wpAddSettingsPages },
};
/*
* Initializers for class Ids
*/
static char * somCN_oem = "oem";
#ifndef somEMC_M_oem_defined
#define somEMC_M_oem_defined
static char * somEMC_M_oem = "M_oem";
#endif
static char * somPCN_oem_PenLocatorPen = "PenLocatorPen";
static somId somPCoem[] = {
&somPCN_oem_PenLocatorPen,
};
static somStaticClassInfo oemSCI = {
3, 1, 1, 0, 0, 0,
oem_MajorVersion, oem_MinorVersion,
0, oem_MaxNoMethods, 1,
&somCN_oem,
&somEMC_M_oem, 0,
somPCoem,
(somClassDataStructure *) &oemClassData,
(somCClassDataStructure *) &oemCClassData,
oemSM, oemOM,
(char *) NULL,
(somNonInternalData_t *) NULL, (somProcMethods_t *) NULL,
(somVarargsFuncs_t *) NULL,
(somTP_somClassInitFunc *) NULL,
0,
0, /* old style class, zero directinitclasses */
0, /* no directinitclasses */
0, /* number of methods */
0, /* methods of the class */
0, /* dataOffset1 */
0, /* dataOffset2 */
0, /* number of SelectInheritedMethods */
0, /* SelectInheritedMethods */
0, /* number of releaseorder entries */
0, /* ReleaseOrder */
0, /* number of migrated methods */
0, /* migrated method implementations */
0, /* number of initializers */
0, /* initializers */
0, /* used to identify a DTS class */
0, /* used to register dynamically computed info */
};
oem * SOMLINK oemNewClass (integer4 somtmajorVersion,
integer4 somtminorVersion)
{
PenLocatorPenNewClass(PenLocatorPen_MajorVersion,PenLocatorPen_MinorVersion); /* static reference */
/* Explicit metaclass, so get it */
M_oemNewClass(M_oem_MajorVersion,M_oem_MinorVersion); /* static reference */
return (somBuildClass(1,&oemSCI, somtmajorVersion, somtminorVersion));
}
/*
* Functions for attributes.
*/
#endif /* oem_Class_Source */
#pragma checkout(resume)
#endif /* SOM_oem_ih */
#ifndef SOM_M_M_oem_mih
#define SOM_M_M_oem_mih
#pragma checkout(suspend)
/*
* Set the scope of methods functions
*/
#ifndef SOM_Scope
#define SOM_Scope static
#endif /* SOM_Scope */
#ifndef SOM_CurrentClass
#define SOM_CurrentClass M_oemCClassData.parentMtab
#endif /* SOM_CurrentClass */
#define M_oem_MaxNoMethods 0
/*
* Instance data
*/
typedef void M_oemData;
/*
* Begin stuff that only goes in the primary file
*/
#if (defined(M_oem_Class_Source) || defined(SOM_Module_oem_Source))
/*
* Trace/Debug macro
*/
#ifndef M_oemMethodDebug
#define M_oemMethodDebug(c,m) SOMMethodDebug(c,m)
#endif /* M_oemMethodDebug */
/*
* Current class macros for Instance and Meta classes.
*/
/*
* Generate the Apply Stubs.
*/
/*
* Overridden method: wpclsQueryTitle
*/
#pragma linkage(oemM_wpclsQueryTitle, system)
SOM_Scope PSZ SOMLINK oemM_wpclsQueryTitle(M_oem *somSelf);
#ifndef somMN_wpclsQueryTitle_defined
#define somMN_wpclsQueryTitle_defined
static char *somMN_wpclsQueryTitle = "wpclsQueryTitle";
static somId somId_wpclsQueryTitle = &somMN_wpclsQueryTitle;
#endif /* somMN_wpclsQueryTitle_defined */
#define parent_oemM_wpclsQueryTitle(somSelf) \
((SOM_ParentNumResolve(M_WPObject, 1, M_oemCClassData.parentMtab, wpclsQueryTitle)) \
(somSelf))
#ifndef parent_wpclsQueryTitle
#define parent_wpclsQueryTitle(somSelf) \
((SOM_ParentNumResolve(M_WPObject, 1, SOM_CurrentClass, wpclsQueryTitle)) \
(somSelf))
#endif /* parent_wpclsQueryTitle */
#define M_oem_parents_oemM_wpclsQueryTitle(arg0) \
(void) parent_oemM_wpclsQueryTitle(arg0);
/*
* Overridden method: wpclsQueryIconData
*/
#pragma linkage(oemM_wpclsQueryIconData, system)
SOM_Scope ULONG SOMLINK oemM_wpclsQueryIconData(M_oem *somSelf,
PICONINFO pIconInfo);
#ifndef somMN_wpclsQueryIconData_defined
#define somMN_wpclsQueryIconData_defined
static char *somMN_wpclsQueryIconData = "wpclsQueryIconData";
static somId somId_wpclsQueryIconData = &somMN_wpclsQueryIconData;
#endif /* somMN_wpclsQueryIconData_defined */
#define parent_oemM_wpclsQueryIconData(somSelf,pIconInfo) \
((SOM_ParentNumResolve(M_WPObject, 1, M_oemCClassData.parentMtab, wpclsQueryIconData)) \
(somSelf,pIconInfo))
#ifndef parent_wpclsQueryIconData
#define parent_wpclsQueryIconData(somSelf,pIconInfo) \
((SOM_ParentNumResolve(M_WPObject, 1, SOM_CurrentClass, wpclsQueryIconData)) \
(somSelf,pIconInfo))
#endif /* parent_wpclsQueryIconData */
#define M_oem_parents_oemM_wpclsQueryIconData(arg0,arg1) \
(void) parent_oemM_wpclsQueryIconData(arg0,arg1);
/*
* Initialize the class data structure
*/
struct M_oemClassDataStructure M_oemClassData = {(SOMAny *) NULL};
/*
* Define the C class data structure
*/
struct M_oemCClassDataStructure M_oemCClassData = {(somMethodTabs) NULL};
/*
* Routines and Structures to create the class object
*/
/*
* Declare the Override Methods table.
*/
static somOverrideMethod_t M_oemOM[] = {
{ &somId_wpclsQueryTitle,
(somMethodProc *) oemM_wpclsQueryTitle },
{ &somId_wpclsQueryIconData,
(somMethodProc *) oemM_wpclsQueryIconData },
};
/*
* Initializers for class Ids
*/
static char * somCN_M_oem = "M_oem";
static char * somPCN_M_oem_M_PenLocatorPen = "M_PenLocatorPen";
static somId somPCM_oem[] = {
&somPCN_M_oem_M_PenLocatorPen,
};
static somStaticClassInfo M_oemSCI = {
3, 0, 2, 0, 0, 0,
M_oem_MajorVersion, M_oem_MinorVersion,
0, M_oem_MaxNoMethods, 1,
&somCN_M_oem,
(somId) NULL, 1,
somPCM_oem,
(somClassDataStructure *) &M_oemClassData,
(somCClassDataStructure *) &M_oemCClassData,
(somStaticMethod_t *) NULL, M_oemOM,
(char *) NULL,
(somNonInternalData_t *) NULL, (somProcMethods_t *) NULL,
(somVarargsFuncs_t *) NULL,
(somTP_somClassInitFunc *) NULL,
0,
0, /* old style class, zero directinitclasses */
0, /* no directinitclasses */
0, /* number of methods */
0, /* methods of the class */
0, /* dataOffset1 */
0, /* dataOffset2 */
0, /* number of SelectInheritedMethods */
0, /* SelectInheritedMethods */
0, /* number of releaseorder entries */
0, /* ReleaseOrder */
0, /* number of migrated methods */
0, /* migrated method implementations */
0, /* number of initializers */
0, /* initializers */
0, /* used to identify a DTS class */
0, /* used to register dynamically computed info */
};
M_oem * SOMLINK M_oemNewClass (integer4 somtmajorVersion,
integer4 somtminorVersion)
{
M_PenLocatorPenNewClass(M_PenLocatorPen_MajorVersion,M_PenLocatorPen_MinorVersion); /* static reference */
return (somBuildClass(1,&M_oemSCI, somtmajorVersion, somtminorVersion));
}
/*
* Functions for attributes.
*/
#endif /* M_oem_Class_Source */
#pragma checkout(resume)
#endif /* SOM_M_M_oem_mih */