home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / os2tk20 / c / os2h / wpclrpal.h__ / WPCLRPAL.H
Encoding:
C/C++ Source or Header  |  1992-10-05  |  6.0 KB  |  237 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.  * Declare the class creation procedure
  116.  */
  117. SOMEXTERN SOMAny * SOMLINK WPColorPaletteNewClass(integer4 scemajorVersion,
  118.         integer4 sceminorVersion);
  119. #pragma linkage(WPColorPaletteNewClass, system)
  120.  
  121. /*
  122.  * Declare the class data structure
  123.  */
  124. SOMEXTERN struct WPColorPaletteClassDataStructure {
  125.     SOMAny *classObject;
  126. } WPColorPaletteClassData;
  127.  
  128. /*
  129.  * Declare the C specific class data structure
  130.  */
  131. SOMEXTERN struct WPColorPaletteCClassDataStructure {
  132.     somMethodTab *parentMtab;
  133.     somDToken instanceDataToken;
  134. } WPColorPaletteCClassData;
  135.  
  136. #endif       /* wpclrpal_h */
  137.  
  138. /*
  139.  * This file was generated by the SOM Compiler.
  140.  * FileName: wpclrpal.h.
  141.  * Generated using:
  142.  *     SOM Precompiler spc: 1.22
  143.  *     SOM Emitter emith: 1.11
  144.  */
  145.  
  146. #ifndef wpclrpal_mh
  147. #define wpclrpal_mh
  148.  
  149.  
  150. /*
  151.  * Define the class name as an object type
  152.  */
  153. #ifndef M_WPColorPalette
  154. #define M_WPColorPalette SOMAny
  155. #endif
  156.  
  157. #define M_WPColorPalette_MajorVersion 1
  158. #define M_WPColorPalette_MinorVersion 2
  159.  
  160. /*
  161.  * External name shortening if required
  162.  */
  163. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  164. #define M_WPColorPaletteNewClass wpclrc
  165. #pragma linkage(wpclrc, system)
  166. #define M_WPColorPaletteClassData wpclrd
  167. #define M_WPColorPaletteCClassData wpclrx
  168. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  169. /*--------------Migration------------*/
  170. #define M_WPColorPalette_classObj M_WPColorPaletteClassData.classObject
  171. #define _M_WPColorPalette M_WPColorPalette_classObj
  172.  
  173. /*
  174.  * New and Renew macros for M_WPColorPalette
  175.  */
  176. #define _M_WPColorPaletteNew() (_somNew(M_WPColorPaletteClassData.classObject))
  177. #define M_WPColorPaletteNew() \
  178.     ( M_WPColorPaletteClassData.classObject \
  179.         ? _M_WPColorPaletteNew() \
  180.         : ( M_WPColorPaletteNewClass(M_WPColorPalette_MajorVersion, M_WPColorPalette_MinorVersion), _M_WPColorPaletteNew() ) )
  181. #define M_WPColorPaletteRenew(buf) \
  182.     ( _somRenew(M_WPColorPaletteClassData.classObject, buf) )
  183.  
  184. /*
  185.  * Override method: wpclsQueryEditString
  186.  */
  187. #define M_WPColorPalette_wpclsQueryEditString(somSelf) \
  188.     M_WPPalette_wpclsQueryEditString(somSelf)
  189.  
  190. /*
  191.  * Override method: wpclsQueryTitle
  192.  */
  193. #define M_WPColorPalette_wpclsQueryTitle(somSelf) \
  194.     M_WPObject_wpclsQueryTitle(somSelf)
  195.  
  196. /*
  197.  * Override method: wpclsQueryStyle
  198.  */
  199. #define M_WPColorPalette_wpclsQueryStyle(somSelf) \
  200.     M_WPObject_wpclsQueryStyle(somSelf)
  201.  
  202. /*
  203.  * Override method: wpclsQueryDefaultHelp
  204.  */
  205. #define M_WPColorPalette_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) \
  206.     M_WPObject_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary)
  207.  
  208. /*
  209.  * Override method: wpclsQueryIconData
  210.  */
  211. #define M_WPColorPalette_wpclsQueryIconData(somSelf,pIconInfo) \
  212.     M_WPObject_wpclsQueryIconData(somSelf,pIconInfo)
  213.  
  214. /*
  215.  * Declare the class creation procedure
  216.  */
  217. SOMEXTERN SOMAny * SOMLINK M_WPColorPaletteNewClass(integer4 scemajorVersion,
  218.         integer4 sceminorVersion);
  219. #pragma linkage(M_WPColorPaletteNewClass, system)
  220.  
  221. /*
  222.  * Declare the class data structure
  223.  */
  224. SOMEXTERN struct M_WPColorPaletteClassDataStructure {
  225.     SOMAny *classObject;
  226. } M_WPColorPaletteClassData;
  227.  
  228. /*
  229.  * Declare the C specific class data structure
  230.  */
  231. SOMEXTERN struct M_WPColorPaletteCClassDataStructure {
  232.     somMethodTab *parentMtab;
  233.     somDToken instanceDataToken;
  234. } M_WPColorPaletteCClassData;
  235.  
  236. #endif       /* wpclrpal_h */
  237.