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

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: wpicon.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: WPICON
  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 wpicon_h
  24. #define wpicon_h
  25.  
  26.  
  27. #include <som.h>
  28.  
  29. /*
  30.  * Define the class name as an object type
  31.  */
  32. #ifndef WPIcon
  33. #define WPIcon SOMAny
  34. #endif
  35. #include "wpdataf.h"
  36.  
  37. #define WPIcon_MajorVersion 1
  38. #define WPIcon_MinorVersion 2
  39.  
  40. /*
  41.  * External name shortening if required
  42.  */
  43. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  44. #define WPIconNewClass wpicoc
  45. #pragma linkage(wpicoc, system)
  46. #define WPIconClassData wpicod
  47. #define WPIconCClassData wpicox
  48. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  49. /*--------------Migration------------*/
  50. #define WPIcon_classObj WPIconClassData.classObject
  51. #define _WPIcon WPIcon_classObj
  52.  
  53. /*
  54.  * New and Renew macros for WPIcon
  55.  */
  56. #define _WPIconNew() (_somNew(WPIconClassData.classObject))
  57. #define WPIconNew() \
  58.     ( WPIconClassData.classObject \
  59.         ? _WPIconNew() \
  60.         : ( WPIconNewClass(WPIcon_MajorVersion, WPIcon_MinorVersion), _WPIconNew() ) )
  61. #define WPIconRenew(buf) \
  62.     ( _somRenew(WPIconClassData.classObject, buf) )
  63.  
  64. /*
  65.  * Override method: wpSetup
  66.  */
  67. #define WPIcon_wpSetup(somSelf,pszSetupString) \
  68.     WPObject_wpSetup(somSelf,pszSetupString)
  69.  
  70. /*
  71.  * Declare the class creation procedure
  72.  */
  73. SOMEXTERN SOMAny * SOMLINK WPIconNewClass(integer4 scemajorVersion,
  74.         integer4 sceminorVersion);
  75. #pragma linkage(WPIconNewClass, system)
  76.  
  77. /*
  78.  * Declare the class data structure
  79.  */
  80. SOMEXTERN struct WPIconClassDataStructure {
  81.     SOMAny *classObject;
  82. } WPIconClassData;
  83.  
  84. /*
  85.  * Declare the C specific class data structure
  86.  */
  87. SOMEXTERN struct WPIconCClassDataStructure {
  88.     somMethodTab *parentMtab;
  89.     somDToken instanceDataToken;
  90. } WPIconCClassData;
  91.  
  92. #endif       /* wpicon_h */
  93.  
  94. /*
  95.  * This file was generated by the SOM Compiler.
  96.  * FileName: wpicon.h.
  97.  * Generated using:
  98.  *     SOM Precompiler spc: 1.22
  99.  *     SOM Emitter emith: 1.11
  100.  */
  101.  
  102. #ifndef wpicon_mh
  103. #define wpicon_mh
  104.  
  105.  
  106. /*
  107.  * Define the class name as an object type
  108.  */
  109. #ifndef M_WPIcon
  110. #define M_WPIcon SOMAny
  111. #endif
  112.  
  113. #define M_WPIcon_MajorVersion 1
  114. #define M_WPIcon_MinorVersion 2
  115.  
  116. /*
  117.  * External name shortening if required
  118.  */
  119. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  120. #define M_WPIconNewClass wpicoc
  121. #pragma linkage(wpicoc, system)
  122. #define M_WPIconClassData wpicod
  123. #define M_WPIconCClassData wpicox
  124. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  125. /*--------------Migration------------*/
  126. #define M_WPIcon_classObj M_WPIconClassData.classObject
  127. #define _M_WPIcon M_WPIcon_classObj
  128.  
  129. /*
  130.  * New and Renew macros for M_WPIcon
  131.  */
  132. #define _M_WPIconNew() (_somNew(M_WPIconClassData.classObject))
  133. #define M_WPIconNew() \
  134.     ( M_WPIconClassData.classObject \
  135.         ? _M_WPIconNew() \
  136.         : ( M_WPIconNewClass(M_WPIcon_MajorVersion, M_WPIcon_MinorVersion), _M_WPIconNew() ) )
  137. #define M_WPIconRenew(buf) \
  138.     ( _somRenew(M_WPIconClassData.classObject, buf) )
  139.  
  140. /*
  141.  * Override method: wpclsQueryInstanceFilter
  142.  */
  143. #define M_WPIcon_wpclsQueryInstanceFilter(somSelf) \
  144.     M_WPFileSystem_wpclsQueryInstanceFilter(somSelf)
  145.  
  146. /*
  147.  * Override method: wpclsQueryInstanceType
  148.  */
  149. #define M_WPIcon_wpclsQueryInstanceType(somSelf) \
  150.     M_WPFileSystem_wpclsQueryInstanceType(somSelf)
  151.  
  152. /*
  153.  * Override method: wpclsInitData
  154.  */
  155. #define M_WPIcon_wpclsInitData(somSelf) \
  156.     M_WPObject_wpclsInitData(somSelf)
  157.  
  158. /*
  159.  * Override method: wpclsQueryTitle
  160.  */
  161. #define M_WPIcon_wpclsQueryTitle(somSelf) \
  162.     M_WPObject_wpclsQueryTitle(somSelf)
  163.  
  164. /*
  165.  * Override method: wpclsQueryDefaultHelp
  166.  */
  167. #define M_WPIcon_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) \
  168.     M_WPObject_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary)
  169.  
  170. /*
  171.  * Declare the class creation procedure
  172.  */
  173. SOMEXTERN SOMAny * SOMLINK M_WPIconNewClass(integer4 scemajorVersion,
  174.         integer4 sceminorVersion);
  175. #pragma linkage(M_WPIconNewClass, system)
  176.  
  177. /*
  178.  * Declare the class data structure
  179.  */
  180. SOMEXTERN struct M_WPIconClassDataStructure {
  181.     SOMAny *classObject;
  182. } M_WPIconClassData;
  183.  
  184. /*
  185.  * Declare the C specific class data structure
  186.  */
  187. SOMEXTERN struct M_WPIconCClassDataStructure {
  188.     somMethodTab *parentMtab;
  189.     somDToken instanceDataToken;
  190. } M_WPIconCClassData;
  191.  
  192. #endif       /* wpicon_h */
  193.