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

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: wpfntpal.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: WPFNTPAL
  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 wpfntpal_h
  24. #define wpfntpal_h
  25.  
  26.  
  27. #include <som.h>
  28.  
  29. /*
  30.  * Define the class name as an object type
  31.  */
  32. #ifndef WPFontPalette
  33. #define WPFontPalette SOMAny
  34. #endif
  35. #include "wppalet.h"
  36.  
  37. /*
  38.  * Passthru lines: File: "C.h", "after"
  39.  */
  40.  
  41.    #define CCHFONTNAME   80
  42.  
  43.       /* Fontpot structure */
  44.  
  45.       typedef struct _FONTPOT
  46.       {
  47.          CELL        cell;     /* Size of the data that follows */
  48.          FATTRS      fAttrs;   /* fattrs from WinFontDlg/wpfattrsfrompsz */
  49.          CHAR        szFont[CCHFONTNAME+1];
  50.       } FONTPOT;
  51.       typedef FONTPOT *PFONTPOT;
  52.  
  53.  
  54. #define WPFontPalette_MajorVersion 1
  55. #define WPFontPalette_MinorVersion 2
  56.  
  57. /*
  58.  * External name shortening if required
  59.  */
  60. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  61. #define WPFontPaletteNewClass wpfonc
  62. #pragma linkage(wpfonc, system)
  63. #define WPFontPaletteClassData wpfond
  64. #define WPFontPaletteCClassData wpfonx
  65. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  66. /*--------------Migration------------*/
  67. #define WPFontPalette_classObj WPFontPaletteClassData.classObject
  68. #define _WPFontPalette WPFontPalette_classObj
  69.  
  70. /*
  71.  * New and Renew macros for WPFontPalette
  72.  */
  73. #define _WPFontPaletteNew() (_somNew(WPFontPaletteClassData.classObject))
  74. #define WPFontPaletteNew() \
  75.     ( WPFontPaletteClassData.classObject \
  76.         ? _WPFontPaletteNew() \
  77.         : ( WPFontPaletteNewClass(WPFontPalette_MajorVersion, WPFontPalette_MinorVersion), _WPFontPaletteNew() ) )
  78. #define WPFontPaletteRenew(buf) \
  79.     ( _somRenew(WPFontPaletteClassData.classObject, buf) )
  80.  
  81. /*
  82.  * Override method: wpPaintCell
  83.  */
  84. #define WPFontPalette_wpPaintCell(somSelf,pCell,hps,prcl,fHilite) \
  85.     WPPalette_wpPaintCell(somSelf,pCell,hps,prcl,fHilite)
  86.  
  87. /*
  88.  * Override method: wpEditCell
  89.  */
  90. #define WPFontPalette_wpEditCell(somSelf,pCell,hwndPal) \
  91.     WPPalette_wpEditCell(somSelf,pCell,hwndPal)
  92.  
  93. /*
  94.  * Override method: wpSetupCell
  95.  */
  96. #define WPFontPalette_wpSetupCell(somSelf,pCellData,cb,x,y) \
  97.     WPPalette_wpSetupCell(somSelf,pCellData,cb,x,y)
  98.  
  99. /*
  100.  * Override method: wpDragCell
  101.  */
  102. #define WPFontPalette_wpDragCell(somSelf,pCell,hwndPal,ptlDrag) \
  103.     WPPalette_wpDragCell(somSelf,pCell,hwndPal,ptlDrag)
  104.  
  105. /*
  106.  * Override method: wpQueryPaletteHelp
  107.  */
  108. #define WPFontPalette_wpQueryPaletteHelp(somSelf) \
  109.     WPPalette_wpQueryPaletteHelp(somSelf)
  110.  
  111. /*
  112.  * Override method: wpSetup
  113.  */
  114. #define WPFontPalette_wpSetup(somSelf,pszSetupString) \
  115.     WPObject_wpSetup(somSelf,pszSetupString)
  116.  
  117. /*
  118.  * Override method: wpMenuItemHelpSelected
  119.  */
  120. #define WPFontPalette_wpMenuItemHelpSelected(somSelf,MenuId) \
  121.     WPObject_wpMenuItemHelpSelected(somSelf,MenuId)
  122.  
  123. /*
  124.  * Declare the class creation procedure
  125.  */
  126. SOMEXTERN SOMAny * SOMLINK WPFontPaletteNewClass(integer4 scemajorVersion,
  127.         integer4 sceminorVersion);
  128. #pragma linkage(WPFontPaletteNewClass, system)
  129.  
  130. /*
  131.  * Declare the class data structure
  132.  */
  133. SOMEXTERN struct WPFontPaletteClassDataStructure {
  134.     SOMAny *classObject;
  135.     somMToken wpGetFattrsFromPsz;
  136. } WPFontPaletteClassData;
  137.  
  138. /*
  139.  * Declare the C specific class data structure
  140.  */
  141. SOMEXTERN struct WPFontPaletteCClassDataStructure {
  142.     somMethodTab *parentMtab;
  143.     somDToken instanceDataToken;
  144. } WPFontPaletteCClassData;
  145.  
  146. #endif       /* wpfntpal_h */
  147.  
  148. /*
  149.  * This file was generated by the SOM Compiler.
  150.  * FileName: wpfntpal.h.
  151.  * Generated using:
  152.  *     SOM Precompiler spc: 1.22
  153.  *     SOM Emitter emith: 1.11
  154.  */
  155.  
  156. #ifndef wpfntpal_mh
  157. #define wpfntpal_mh
  158.  
  159.  
  160. /*
  161.  * Define the class name as an object type
  162.  */
  163. #ifndef M_WPFontPalette
  164. #define M_WPFontPalette SOMAny
  165. #endif
  166.  
  167. #define M_WPFontPalette_MajorVersion 1
  168. #define M_WPFontPalette_MinorVersion 2
  169.  
  170. /*
  171.  * External name shortening if required
  172.  */
  173. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  174. #define M_WPFontPaletteNewClass wpfonc
  175. #pragma linkage(wpfonc, system)
  176. #define M_WPFontPaletteClassData wpfond
  177. #define M_WPFontPaletteCClassData wpfonx
  178. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  179. /*--------------Migration------------*/
  180. #define M_WPFontPalette_classObj M_WPFontPaletteClassData.classObject
  181. #define _M_WPFontPalette M_WPFontPalette_classObj
  182.  
  183. /*
  184.  * New and Renew macros for M_WPFontPalette
  185.  */
  186. #define _M_WPFontPaletteNew() (_somNew(M_WPFontPaletteClassData.classObject))
  187. #define M_WPFontPaletteNew() \
  188.     ( M_WPFontPaletteClassData.classObject \
  189.         ? _M_WPFontPaletteNew() \
  190.         : ( M_WPFontPaletteNewClass(M_WPFontPalette_MajorVersion, M_WPFontPalette_MinorVersion), _M_WPFontPaletteNew() ) )
  191. #define M_WPFontPaletteRenew(buf) \
  192.     ( _somRenew(M_WPFontPaletteClassData.classObject, buf) )
  193.  
  194. /*
  195.  * Override method: wpclsQueryEditString
  196.  */
  197. #define M_WPFontPalette_wpclsQueryEditString(somSelf) \
  198.     M_WPPalette_wpclsQueryEditString(somSelf)
  199.  
  200. /*
  201.  * Override method: wpclsQueryTitle
  202.  */
  203. #define M_WPFontPalette_wpclsQueryTitle(somSelf) \
  204.     M_WPObject_wpclsQueryTitle(somSelf)
  205.  
  206. /*
  207.  * Override method: wpclsQueryIconData
  208.  */
  209. #define M_WPFontPalette_wpclsQueryIconData(somSelf,pIconInfo) \
  210.     M_WPObject_wpclsQueryIconData(somSelf,pIconInfo)
  211.  
  212. /*
  213.  * Override method: wpclsQueryStyle
  214.  */
  215. #define M_WPFontPalette_wpclsQueryStyle(somSelf) \
  216.     M_WPObject_wpclsQueryStyle(somSelf)
  217.  
  218. /*
  219.  * Override method: wpclsQueryDefaultHelp
  220.  */
  221. #define M_WPFontPalette_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) \
  222.     M_WPObject_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary)
  223.  
  224. /*
  225.  * Declare the class creation procedure
  226.  */
  227. SOMEXTERN SOMAny * SOMLINK M_WPFontPaletteNewClass(integer4 scemajorVersion,
  228.         integer4 sceminorVersion);
  229. #pragma linkage(M_WPFontPaletteNewClass, system)
  230.  
  231. /*
  232.  * Declare the class data structure
  233.  */
  234. SOMEXTERN struct M_WPFontPaletteClassDataStructure {
  235.     SOMAny *classObject;
  236. } M_WPFontPaletteClassData;
  237.  
  238. /*
  239.  * Declare the C specific class data structure
  240.  */
  241. SOMEXTERN struct M_WPFontPaletteCClassDataStructure {
  242.     somMethodTab *parentMtab;
  243.     somDToken instanceDataToken;
  244. } M_WPFontPaletteCClassData;
  245.  
  246. #endif       /* wpfntpal_h */
  247.