home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / toolkt21 / c / os2h / wpclrpal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-01  |  6.1 KB  |  243 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: wpclrpal.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: WPCLRPAL
  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 wpclrpal_h
  24. #define wpclrpal_h
  25.  
  26.  
  27. #include <som.h>
  28.  
  29. /*
  30.  * Define the class name as an object type
  31.  */
  32. #ifndef WPColorPalette
  33. #define WPColorPalette SOMAny
  34. #endif
  35. #include "wppalet.h"
  36.  
  37. /*
  38.  * Passthru lines: File: "C.h", "after"
  39.  */
  40.  
  41.       /* Paintpot structure */
  42.  
  43.       typedef struct _PAINTPOT
  44.       {
  45.          CELL        cell;     /* Size of the data that follows */
  46.          ULONG       ulRGB;    /* Color of this paintpot */
  47.       } PAINTPOT;
  48.       typedef PAINTPOT *PPAINTPOT;
  49.  
  50.  
  51. #define WPColorPalette_MajorVersion 1
  52. #define WPColorPalette_MinorVersion 2
  53.  
  54. /*
  55.  * External name shortening if required
  56.  */
  57. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  58. #define WPColorPaletteNewClass wpclrc
  59. #pragma linkage(wpclrc, system)
  60. #define WPColorPaletteClassData wpclrd
  61. #define WPColorPaletteCClassData wpclrx
  62. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  63. /*--------------Migration------------*/
  64. #define WPColorPalette_classObj WPColorPaletteClassData.classObject
  65. #define _WPColorPalette WPColorPalette_classObj
  66.  
  67. /*
  68.  * New and Renew macros for WPColorPalette
  69.  */
  70. #define _WPColorPaletteNew() (_somNew(WPColorPaletteClassData.classObject))
  71. #define WPColorPaletteNew() \
  72.     ( WPColorPaletteClassData.classObject \
  73.         ? _WPColorPaletteNew() \
  74.         : ( WPColorPaletteNewClass(WPColorPalette_MajorVersion, WPColorPalette_MinorVersion), _WPColorPaletteNew() ) )
  75. #define WPColorPaletteRenew(buf) \
  76.     ( _somRenew(WPColorPaletteClassData.classObject, buf) )
  77.  
  78. /*
  79.  * Override method: wpPaintCell
  80.  */
  81. #define WPColorPalette_wpPaintCell(somSelf,pCell,hps,prcl,fHilite) \
  82.     WPPalette_wpPaintCell(somSelf,pCell,hps,prcl,fHilite)
  83.  
  84. /*
  85.  * Override method: wpEditCell
  86.  */
  87. #define WPColorPalette_wpEditCell(somSelf,pCell,hwndPal) \
  88.     WPPalette_wpEditCell(somSelf,pCell,hwndPal)
  89.  
  90. /*
  91.  * Override method: wpDragCell
  92.  */
  93. #define WPColorPalette_wpDragCell(somSelf,pCell,hwndPal,ptlDrag) \
  94.     WPPalette_wpDragCell(somSelf,pCell,hwndPal,ptlDrag)
  95.  
  96. /*
  97.  * Override method: wpQueryPaletteHelp
  98.  */
  99. #define WPColorPalette_wpQueryPaletteHelp(somSelf) \
  100.     WPPalette_wpQueryPaletteHelp(somSelf)
  101.  
  102. /*
  103.  * Override method: wpSetup
  104.  */
  105. #define WPColorPalette_wpSetup(somSelf,pszSetupString) \
  106.     WPObject_wpSetup(somSelf,pszSetupString)
  107.  
  108. /*
  109.  * Override method: wpMenuItemHelpSelected
  110.  */
  111. #define WPColorPalette_wpMenuItemHelpSelected(somSelf,MenuId) \
  112.     WPObject_wpMenuItemHelpSelected(somSelf,MenuId)
  113.  
  114. /*
  115.  * Override method: wpInitData
  116.  */
  117. #define WPColorPalette_wpInitData(somSelf) \
  118.     WPObject_wpInitData(somSelf)
  119.  
  120. /*
  121.  * Declare the class creation procedure
  122.  */
  123. SOMEXTERN SOMAny * SOMLINK WPColorPaletteNewClass(integer4 scemajorVersion,
  124.         integer4 sceminorVersion);
  125. #pragma linkage(WPColorPaletteNewClass, system)
  126.  
  127. /*
  128.  * Declare the class data structure
  129.  */
  130. SOMEXTERN struct WPColorPaletteClassDataStructure {
  131.     SOMAny *classObject;
  132. } WPColorPaletteClassData;
  133.  
  134. /*
  135.  * Declare the C specific class data structure
  136.  */
  137. SOMEXTERN struct WPColorPaletteCClassDataStructure {
  138.     somMethodTab *parentMtab;
  139.     somDToken instanceDataToken;
  140. } WPColorPaletteCClassData;
  141.  
  142. #endif       /* wpclrpal_h */
  143.  
  144. /*
  145.  * This file was generated by the SOM Compiler.
  146.  * FileName: wpclrpal.h.
  147.  * Generated using:
  148.  *     SOM Precompiler spc: 1.22
  149.  *     SOM Emitter emith: 1.11
  150.  */
  151.  
  152. #ifndef wpclrpal_mh
  153. #define wpclrpal_mh
  154.  
  155.  
  156. /*
  157.  * Define the class name as an object type
  158.  */
  159. #ifndef M_WPColorPalette
  160. #define M_WPColorPalette SOMAny
  161. #endif
  162.  
  163. #define M_WPColorPalette_MajorVersion 1
  164. #define M_WPColorPalette_MinorVersion 2
  165.  
  166. /*
  167.  * External name shortening if required
  168.  */
  169. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  170. #define M_WPColorPaletteNewClass wpclrc
  171. #pragma linkage(wpclrc, system)
  172. #define M_WPColorPaletteClassData wpclrd
  173. #define M_WPColorPaletteCClassData wpclrx
  174. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  175. /*--------------Migration------------*/
  176. #define M_WPColorPalette_classObj M_WPColorPaletteClassData.classObject
  177. #define _M_WPColorPalette M_WPColorPalette_classObj
  178.  
  179. /*
  180.  * New and Renew macros for M_WPColorPalette
  181.  */
  182. #define _M_WPColorPaletteNew() (_somNew(M_WPColorPaletteClassData.classObject))
  183. #define M_WPColorPaletteNew() \
  184.     ( M_WPColorPaletteClassData.classObject \
  185.         ? _M_WPColorPaletteNew() \
  186.         : ( M_WPColorPaletteNewClass(M_WPColorPalette_MajorVersion, M_WPColorPalette_MinorVersion), _M_WPColorPaletteNew() ) )
  187. #define M_WPColorPaletteRenew(buf) \
  188.     ( _somRenew(M_WPColorPaletteClassData.classObject, buf) )
  189.  
  190. /*
  191.  * Override method: wpclsQueryEditString
  192.  */
  193. #define M_WPColorPalette_wpclsQueryEditString(somSelf) \
  194.     M_WPPalette_wpclsQueryEditString(somSelf)
  195.  
  196. /*
  197.  * Override method: wpclsQueryTitle
  198.  */
  199. #define M_WPColorPalette_wpclsQueryTitle(somSelf) \
  200.     M_WPObject_wpclsQueryTitle(somSelf)
  201.  
  202. /*
  203.  * Override method: wpclsQueryStyle
  204.  */
  205. #define M_WPColorPalette_wpclsQueryStyle(somSelf) \
  206.     M_WPObject_wpclsQueryStyle(somSelf)
  207.  
  208. /*
  209.  * Override method: wpclsQueryDefaultHelp
  210.  */
  211. #define M_WPColorPalette_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) \
  212.     M_WPObject_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary)
  213.  
  214. /*
  215.  * Override method: wpclsQueryIconData
  216.  */
  217. #define M_WPColorPalette_wpclsQueryIconData(somSelf,pIconInfo) \
  218.     M_WPObject_wpclsQueryIconData(somSelf,pIconInfo)
  219.  
  220. /*
  221.  * Declare the class creation procedure
  222.  */
  223. SOMEXTERN SOMAny * SOMLINK M_WPColorPaletteNewClass(integer4 scemajorVersion,
  224.         integer4 sceminorVersion);
  225. #pragma linkage(M_WPColorPaletteNewClass, system)
  226.  
  227. /*
  228.  * Declare the class data structure
  229.  */
  230. SOMEXTERN struct M_WPColorPaletteClassDataStructure {
  231.     SOMAny *classObject;
  232. } M_WPColorPaletteClassData;
  233.  
  234. /*
  235.  * Declare the C specific class data structure
  236.  */
  237. SOMEXTERN struct M_WPColorPaletteCClassDataStructure {
  238.     somMethodTab *parentMtab;
  239.     somDToken instanceDataToken;
  240. } M_WPColorPaletteCClassData;
  241.  
  242. #endif       /* wpclrpal_h */
  243.