home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / os2tk21j / c / os2h / wpstart.h__ / wpstart.h
Encoding:
C/C++ Source or Header  |  1993-04-26  |  4.7 KB  |  199 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: wpstart.h.
  5.  * Generated using:
  6.  *     SOM Precompiler spc: 1.22
  7.  *     SOM Emitter emith: 1.11
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Module Header
  13.  * 
  14.  *  Module Name: WPSTART
  15.  * 
  16.  *  OS/2 Presentation Manager Workplace class definitions
  17.  * 
  18.  *  Copyright (c) International Business Machines Corporation 1991, 1992
  19.  * 
  20.  */
  21.  
  22.  
  23. #ifndef wpstart_h
  24. #define wpstart_h
  25.  
  26.  
  27. #include <som.h>
  28.  
  29. /*
  30.  * Define the class name as an object type
  31.  */
  32. #ifndef WPStartup
  33. #define WPStartup SOMAny
  34. #endif
  35. #include "wpfolder.h"
  36.  
  37. #define WPStartup_MajorVersion 1
  38. #define WPStartup_MinorVersion 2
  39.  
  40. /*
  41.  * External name shortening if required
  42.  */
  43. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  44. #define WPStartupNewClass WPStartc
  45. #pragma linkage(WPStartc, system)
  46. #define WPStartupClassData WPStartd
  47. #define WPStartupCClassData WPStartx
  48. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  49. /*--------------Migration------------*/
  50. #define WPStartup_classObj WPStartupClassData.classObject
  51. #define _WPStartup WPStartup_classObj
  52.  
  53. /*
  54.  * New and Renew macros for WPStartup
  55.  */
  56. #define _WPStartupNew() (_somNew(WPStartupClassData.classObject))
  57. #define WPStartupNew() \
  58.     ( WPStartupClassData.classObject \
  59.         ? _WPStartupNew() \
  60.         : ( WPStartupNewClass(WPStartup_MajorVersion, WPStartup_MinorVersion), _WPStartupNew() ) )
  61. #define WPStartupRenew(buf) \
  62.     ( _somRenew(WPStartupClassData.classObject, buf) )
  63.  
  64. /*
  65.  * Override method: wpSetup
  66.  */
  67. #define WPStartup_wpSetup(somSelf,pszSetupString) \
  68.     WPObject_wpSetup(somSelf,pszSetupString)
  69.  
  70. /*
  71.  * Override method: wpRestoreState
  72.  */
  73. #define WPStartup_wpRestoreState(somSelf,ulReserved) \
  74.     WPObject_wpRestoreState(somSelf,ulReserved)
  75.  
  76. /*
  77.  * Override method: wpFree
  78.  */
  79. #define WPStartup_wpFree(somSelf) \
  80.     WPObject_wpFree(somSelf)
  81.  
  82. /*
  83.  * Declare the class creation procedure
  84.  */
  85. SOMEXTERN SOMAny * SOMLINK WPStartupNewClass(integer4 scemajorVersion,
  86.         integer4 sceminorVersion);
  87. #pragma linkage(WPStartupNewClass, system)
  88.  
  89. /*
  90.  * Declare the class data structure
  91.  */
  92. SOMEXTERN struct WPStartupClassDataStructure {
  93.     SOMAny *classObject;
  94. } WPStartupClassData;
  95.  
  96. /*
  97.  * Declare the C specific class data structure
  98.  */
  99. SOMEXTERN struct WPStartupCClassDataStructure {
  100.     somMethodTab *parentMtab;
  101.     somDToken instanceDataToken;
  102. } WPStartupCClassData;
  103.  
  104. #endif       /* wpstart_h */
  105.  
  106. /*
  107.  * This file was generated by the SOM Compiler.
  108.  * FileName: wpstart.h.
  109.  * Generated using:
  110.  *     SOM Precompiler spc: 1.22
  111.  *     SOM Emitter emith: 1.11
  112.  */
  113.  
  114. #ifndef wpstart_mh
  115. #define wpstart_mh
  116.  
  117.  
  118. /*
  119.  * Define the class name as an object type
  120.  */
  121. #ifndef M_WPStartup
  122. #define M_WPStartup SOMAny
  123. #endif
  124.  
  125. #define M_WPStartup_MajorVersion 1
  126. #define M_WPStartup_MinorVersion 2
  127.  
  128. /*
  129.  * External name shortening if required
  130.  */
  131. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  132. #define M_WPStartupNewClass WPStartc
  133. #pragma linkage(WPStartc, system)
  134. #define M_WPStartupClassData WPStartd
  135. #define M_WPStartupCClassData WPStartx
  136. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  137. /*--------------Migration------------*/
  138. #define M_WPStartup_classObj M_WPStartupClassData.classObject
  139. #define _M_WPStartup M_WPStartup_classObj
  140.  
  141. /*
  142.  * New and Renew macros for M_WPStartup
  143.  */
  144. #define _M_WPStartupNew() (_somNew(M_WPStartupClassData.classObject))
  145. #define M_WPStartupNew() \
  146.     ( M_WPStartupClassData.classObject \
  147.         ? _M_WPStartupNew() \
  148.         : ( M_WPStartupNewClass(M_WPStartup_MajorVersion, M_WPStartup_MinorVersion), _M_WPStartupNew() ) )
  149. #define M_WPStartupRenew(buf) \
  150.     ( _somRenew(M_WPStartupClassData.classObject, buf) )
  151.  
  152. /*
  153.  * Override method: wpclsQueryDefaultHelp
  154.  */
  155. #define M_WPStartup_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) \
  156.     M_WPObject_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary)
  157.  
  158. /*
  159.  * Override method: wpclsQueryTitle
  160.  */
  161. #define M_WPStartup_wpclsQueryTitle(somSelf) \
  162.     M_WPObject_wpclsQueryTitle(somSelf)
  163.  
  164. /*
  165.  * Override method: wpclsQueryIconData
  166.  */
  167. #define M_WPStartup_wpclsQueryIconData(somSelf,pIconInfo) \
  168.     M_WPObject_wpclsQueryIconData(somSelf,pIconInfo)
  169.  
  170. /*
  171.  * Override method: wpclsQueryStyle
  172.  */
  173. #define M_WPStartup_wpclsQueryStyle(somSelf) \
  174.     M_WPObject_wpclsQueryStyle(somSelf)
  175.  
  176. /*
  177.  * Declare the class creation procedure
  178.  */
  179. SOMEXTERN SOMAny * SOMLINK M_WPStartupNewClass(integer4 scemajorVersion,
  180.         integer4 sceminorVersion);
  181. #pragma linkage(M_WPStartupNewClass, system)
  182.  
  183. /*
  184.  * Declare the class data structure
  185.  */
  186. SOMEXTERN struct M_WPStartupClassDataStructure {
  187.     SOMAny *classObject;
  188. } M_WPStartupClassData;
  189.  
  190. /*
  191.  * Declare the C specific class data structure
  192.  */
  193. SOMEXTERN struct M_WPStartupCClassDataStructure {
  194.     somMethodTab *parentMtab;
  195.     somDToken instanceDataToken;
  196. } M_WPStartupCClassData;
  197.  
  198. #endif       /* wpstart_h */
  199.