home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wpobj.zip / CLRPALET.H < prev    next >
C/C++ Source or Header  |  1993-11-10  |  7KB  |  243 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: clrpalet.h.
  5.  * Generated using:
  6.  *     SOM Precompiler spc: 1.22
  7.  *     SOM Emitter emith: 1.11
  8.  */
  9.  
  10. /*
  11.  * 
  12.  * 
  13.  * MODULE NAME: ClrPalet.CSC
  14.  * 
  15.  * DESCRIPTION:
  16.  *   Object class definition file for ColorPalette object class.
  17.  */
  18.  
  19.  
  20. #ifndef clrpalet_h
  21. #define clrpalet_h
  22.  
  23.  
  24. #include <som.h>
  25.  
  26. /*
  27.  * Define the class name as an object type
  28.  */
  29. #ifndef ColorPalette
  30. #define ColorPalette SOMAny
  31. #endif
  32. #include "wpclrpal.h"
  33.  
  34. /*
  35.  * Passthru lines: File: "C.h", "after"
  36.  */
  37.  
  38.  
  39. #define ColorPalette_MajorVersion 1
  40. #define ColorPalette_MinorVersion 2
  41.  
  42. /*
  43.  * External name shortening if required
  44.  */
  45. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  46. #define ColorPaletteNewClass clrpc
  47. #pragma linkage(clrpc, system)
  48. #define ColorPaletteClassData clrpd
  49. #define ColorPaletteCClassData clrpx
  50. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  51. /*--------------Migration------------*/
  52. #define ColorPalette_classObj ColorPaletteClassData.classObject
  53. #define _ColorPalette ColorPalette_classObj
  54.  
  55. /*
  56.  * New and Renew macros for ColorPalette
  57.  */
  58. #define _ColorPaletteNew() (_somNew(ColorPaletteClassData.classObject))
  59. #define ColorPaletteNew() \
  60.     ( ColorPaletteClassData.classObject \
  61.         ? _ColorPaletteNew() \
  62.         : ( ColorPaletteNewClass(ColorPalette_MajorVersion, ColorPalette_MinorVersion), _ColorPaletteNew() ) )
  63. #define ColorPaletteRenew(buf) \
  64.     ( _somRenew(ColorPaletteClassData.classObject, buf) )
  65.  
  66. /*
  67.  * Override method: wpPaintCell
  68.  */
  69. #define ColorPalette_wpPaintCell(somSelf,pCell,hps,prcl,fHilite) \
  70.     WPPalette_wpPaintCell(somSelf,pCell,hps,prcl,fHilite)
  71.  
  72. /*
  73.  * Override method: wpEditCell
  74.  */
  75. #define ColorPalette_wpEditCell(somSelf,pCell,hwndPal) \
  76.     WPPalette_wpEditCell(somSelf,pCell,hwndPal)
  77.  
  78. /*
  79.  * Override method: wpRedrawCell
  80.  */
  81. #define ColorPalette_wpRedrawCell(somSelf,pCell) \
  82.     WPPalette_wpRedrawCell(somSelf,pCell)
  83.  
  84. /*
  85.  * Override method: wpSetup
  86.  */
  87. #define ColorPalette_wpSetup(somSelf,pszSetupString) \
  88.     WPObject_wpSetup(somSelf,pszSetupString)
  89.  
  90. /*
  91.  * New Method: SetEditDlgHandle
  92.  */
  93. typedef BOOL    SOMLINK somTP_ColorPalette_SetEditDlgHandle(ColorPalette *somSelf,
  94.         HWND hwndEditDlg);
  95. #pragma linkage(somTP_ColorPalette_SetEditDlgHandle, system)
  96. typedef somTP_ColorPalette_SetEditDlgHandle *somTD_ColorPalette_SetEditDlgHandle;
  97. #define somMD_ColorPalette_SetEditDlgHandle "----"
  98. #define ColorPalette_SetEditDlgHandle(somSelf,hwndEditDlg) \
  99.     (SOM_Resolve(somSelf, ColorPalette, SetEditDlgHandle) \
  100.     (somSelf,hwndEditDlg))
  101. #define _SetEditDlgHandle ColorPalette_SetEditDlgHandle
  102.  
  103. /*
  104.  * New Method: QueryEditDlgHandle
  105.  */
  106. typedef HWND    SOMLINK somTP_ColorPalette_QueryEditDlgHandle(ColorPalette *somSelf);
  107. #pragma linkage(somTP_ColorPalette_QueryEditDlgHandle, system)
  108. typedef somTP_ColorPalette_QueryEditDlgHandle *somTD_ColorPalette_QueryEditDlgHandle;
  109. #define somMD_ColorPalette_QueryEditDlgHandle "----"
  110. #define ColorPalette_QueryEditDlgHandle(somSelf) \
  111.     (SOM_Resolve(somSelf, ColorPalette, QueryEditDlgHandle) \
  112.     (somSelf))
  113. #define _QueryEditDlgHandle ColorPalette_QueryEditDlgHandle
  114.  
  115. /*
  116.  * New Method: QuerySampleShape
  117.  */
  118. typedef BOOL    SOMLINK somTP_ColorPalette_QuerySampleShape(ColorPalette *somSelf,
  119.         PPOINTL pPoints,
  120.         PULONG pcPoints);
  121. #pragma linkage(somTP_ColorPalette_QuerySampleShape, system)
  122. typedef somTP_ColorPalette_QuerySampleShape *somTD_ColorPalette_QuerySampleShape;
  123. #define somMD_ColorPalette_QuerySampleShape "----"
  124. #define ColorPalette_QuerySampleShape(somSelf,pPoints,pcPoints) \
  125.     (SOM_Resolve(somSelf, ColorPalette, QuerySampleShape) \
  126.     (somSelf,pPoints,pcPoints))
  127. #define _QuerySampleShape ColorPalette_QuerySampleShape
  128.  
  129. /*
  130.  * Declare the class creation procedure
  131.  */
  132. SOMEXTERN SOMAny * SOMLINK ColorPaletteNewClass(integer4 scemajorVersion,
  133.         integer4 sceminorVersion);
  134. #pragma linkage(ColorPaletteNewClass, system)
  135.  
  136. /*
  137.  * Declare the class data structure
  138.  */
  139. SOMEXTERN struct ColorPaletteClassDataStructure {
  140.     SOMAny *classObject;
  141.     somMToken SetEditDlgHandle;
  142.     somMToken QueryEditDlgHandle;
  143.     somMToken QuerySampleShape;
  144. } ColorPaletteClassData;
  145.  
  146. /*
  147.  * Declare the C specific class data structure
  148.  */
  149. SOMEXTERN struct ColorPaletteCClassDataStructure {
  150.     somMethodTab *parentMtab;
  151.     somDToken instanceDataToken;
  152. } ColorPaletteCClassData;
  153.  
  154. #endif       /* clrpalet_h */
  155.  
  156. /*
  157.  * This file was generated by the SOM Compiler.
  158.  * FileName: clrpalet.h.
  159.  * Generated using:
  160.  *     SOM Precompiler spc: 1.22
  161.  *     SOM Emitter emith: 1.11
  162.  */
  163.  
  164. #ifndef clrpalet_mh
  165. #define clrpalet_mh
  166.  
  167.  
  168. /*
  169.  * Define the class name as an object type
  170.  */
  171. #ifndef M_ColorPalette
  172. #define M_ColorPalette SOMAny
  173. #endif
  174.  
  175. #define M_ColorPalette_MajorVersion 1
  176. #define M_ColorPalette_MinorVersion 2
  177.  
  178. /*
  179.  * External name shortening if required
  180.  */
  181. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  182. #define M_ColorPaletteNewClass clrpc
  183. #pragma linkage(clrpc, system)
  184. #define M_ColorPaletteClassData clrpd
  185. #define M_ColorPaletteCClassData clrpx
  186. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  187. /*--------------Migration------------*/
  188. #define M_ColorPalette_classObj M_ColorPaletteClassData.classObject
  189. #define _M_ColorPalette M_ColorPalette_classObj
  190.  
  191. /*
  192.  * New and Renew macros for M_ColorPalette
  193.  */
  194. #define _M_ColorPaletteNew() (_somNew(M_ColorPaletteClassData.classObject))
  195. #define M_ColorPaletteNew() \
  196.     ( M_ColorPaletteClassData.classObject \
  197.         ? _M_ColorPaletteNew() \
  198.         : ( M_ColorPaletteNewClass(M_ColorPalette_MajorVersion, M_ColorPalette_MinorVersion), _M_ColorPaletteNew() ) )
  199. #define M_ColorPaletteRenew(buf) \
  200.     ( _somRenew(M_ColorPaletteClassData.classObject, buf) )
  201.  
  202. /*
  203.  * Override method: wpclsInitData
  204.  */
  205. #define M_ColorPalette_wpclsInitData(somSelf) \
  206.     M_WPObject_wpclsInitData(somSelf)
  207.  
  208. /*
  209.  * Override method: wpclsQueryIconData
  210.  */
  211. #define M_ColorPalette_wpclsQueryIconData(somSelf,pIconInfo) \
  212.     M_WPObject_wpclsQueryIconData(somSelf,pIconInfo)
  213.  
  214. /*
  215.  * Override method: wpclsQueryStyle
  216.  */
  217. #define M_ColorPalette_wpclsQueryStyle(somSelf) \
  218.     M_WPObject_wpclsQueryStyle(somSelf)
  219.  
  220. /*
  221.  * Declare the class creation procedure
  222.  */
  223. SOMEXTERN SOMAny * SOMLINK M_ColorPaletteNewClass(integer4 scemajorVersion,
  224.         integer4 sceminorVersion);
  225. #pragma linkage(M_ColorPaletteNewClass, system)
  226.  
  227. /*
  228.  * Declare the class data structure
  229.  */
  230. SOMEXTERN struct M_ColorPaletteClassDataStructure {
  231.     SOMAny *classObject;
  232. } M_ColorPaletteClassData;
  233.  
  234. /*
  235.  * Declare the C specific class data structure
  236.  */
  237. SOMEXTERN struct M_ColorPaletteCClassDataStructure {
  238.     somMethodTab *parentMtab;
  239.     somDToken instanceDataToken;
  240. } M_ColorPaletteCClassData;
  241.  
  242. #endif       /* clrpalet_h */
  243.