
/*
 * This file was generated by the SOM Compiler.
 * FileName: wpfntpal.h.
 * Generated using:
 *     SOM Precompiler spc: 1.22
 *     SOM Emitter emith: 1.11
 */

/*
 * 
 *  Module Header
 * 
 *  Module Name: WPFNTPAL
 * 
 *  OS/2 Presentation Manager Workplace class definitions
 * 
 *  Copyright (c) International Business Machines Corporation 1991, 1992
 * 
 */


#ifndef wpfntpal_h
#define wpfntpal_h


#include <som.h>

/*
 * Define the class name as an object type
 */
#ifndef WPFontPalette
#define WPFontPalette SOMAny
#endif
#include "wppalet.h"

/*
 * Passthru lines: File: "C.h", "after"
 */

   #define CCHFONTNAME   80

      /* Fontpot structure */

      typedef struct _FONTPOT
      {
         CELL        cell;     /* Size of the data that follows */
         FATTRS      fAttrs;   /* fattrs from WinFontDlg/wpfattrsfrompsz */
         CHAR        szFont[CCHFONTNAME+1];
      } FONTPOT;
      typedef FONTPOT *PFONTPOT;


#define WPFontPalette_MajorVersion 1
#define WPFontPalette_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define WPFontPaletteNewClass wpfonc
#pragma linkage(wpfonc, system)
#define WPFontPaletteClassData wpfond
#define WPFontPaletteCClassData wpfonx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define WPFontPalette_classObj WPFontPaletteClassData.classObject
#define _WPFontPalette WPFontPalette_classObj

/*
 * New and Renew macros for WPFontPalette
 */
#define _WPFontPaletteNew() (_somNew(WPFontPaletteClassData.classObject))
#define WPFontPaletteNew() \
	( WPFontPaletteClassData.classObject \
		? _WPFontPaletteNew() \
		: ( WPFontPaletteNewClass(WPFontPalette_MajorVersion, WPFontPalette_MinorVersion), _WPFontPaletteNew() ) )
#define WPFontPaletteRenew(buf) \
	( _somRenew(WPFontPaletteClassData.classObject, buf) )

/*
 * Override method: wpPaintCell
 */
#define WPFontPalette_wpPaintCell(somSelf,pCell,hps,prcl,fHilite) \
	WPPalette_wpPaintCell(somSelf,pCell,hps,prcl,fHilite)

/*
 * Override method: wpEditCell
 */
#define WPFontPalette_wpEditCell(somSelf,pCell,hwndPal) \
	WPPalette_wpEditCell(somSelf,pCell,hwndPal)

/*
 * Override method: wpSetupCell
 */
#define WPFontPalette_wpSetupCell(somSelf,pCellData,cb,x,y) \
	WPPalette_wpSetupCell(somSelf,pCellData,cb,x,y)

/*
 * Override method: wpDragCell
 */
#define WPFontPalette_wpDragCell(somSelf,pCell,hwndPal,ptlDrag) \
	WPPalette_wpDragCell(somSelf,pCell,hwndPal,ptlDrag)

/*
 * Override method: wpQueryPaletteHelp
 */
#define WPFontPalette_wpQueryPaletteHelp(somSelf) \
	WPPalette_wpQueryPaletteHelp(somSelf)

/*
 * Override method: wpSetup
 */
#define WPFontPalette_wpSetup(somSelf,pszSetupString) \
	WPObject_wpSetup(somSelf,pszSetupString)

/*
 * Override method: wpMenuItemHelpSelected
 */
#define WPFontPalette_wpMenuItemHelpSelected(somSelf,MenuId) \
	WPObject_wpMenuItemHelpSelected(somSelf,MenuId)

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMAny * SOMLINK WPFontPaletteNewClass(integer4 scemajorVersion,
		integer4 sceminorVersion);
#pragma linkage(WPFontPaletteNewClass, system)

/*
 * Declare the class data structure
 */
SOMEXTERN struct WPFontPaletteClassDataStructure {
	SOMAny *classObject;
	somMToken wpGetFattrsFromPsz;
} WPFontPaletteClassData;

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct WPFontPaletteCClassDataStructure {
	somMethodTab *parentMtab;
	somDToken instanceDataToken;
} WPFontPaletteCClassData;

#endif       /* wpfntpal_h */

/*
 * This file was generated by the SOM Compiler.
 * FileName: wpfntpal.h.
 * Generated using:
 *     SOM Precompiler spc: 1.22
 *     SOM Emitter emith: 1.11
 */

#ifndef wpfntpal_mh
#define wpfntpal_mh


/*
 * Define the class name as an object type
 */
#ifndef M_WPFontPalette
#define M_WPFontPalette SOMAny
#endif

#define M_WPFontPalette_MajorVersion 1
#define M_WPFontPalette_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define M_WPFontPaletteNewClass wpfonc
#pragma linkage(wpfonc, system)
#define M_WPFontPaletteClassData wpfond
#define M_WPFontPaletteCClassData wpfonx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define M_WPFontPalette_classObj M_WPFontPaletteClassData.classObject
#define _M_WPFontPalette M_WPFontPalette_classObj

/*
 * New and Renew macros for M_WPFontPalette
 */
#define _M_WPFontPaletteNew() (_somNew(M_WPFontPaletteClassData.classObject))
#define M_WPFontPaletteNew() \
	( M_WPFontPaletteClassData.classObject \
		? _M_WPFontPaletteNew() \
		: ( M_WPFontPaletteNewClass(M_WPFontPalette_MajorVersion, M_WPFontPalette_MinorVersion), _M_WPFontPaletteNew() ) )
#define M_WPFontPaletteRenew(buf) \
	( _somRenew(M_WPFontPaletteClassData.classObject, buf) )

/*
 * Override method: wpclsQueryEditString
 */
#define M_WPFontPalette_wpclsQueryEditString(somSelf) \
	M_WPPalette_wpclsQueryEditString(somSelf)

/*
 * Override method: wpclsQueryTitle
 */
#define M_WPFontPalette_wpclsQueryTitle(somSelf) \
	M_WPObject_wpclsQueryTitle(somSelf)

/*
 * Override method: wpclsQueryIconData
 */
#define M_WPFontPalette_wpclsQueryIconData(somSelf,pIconInfo) \
	M_WPObject_wpclsQueryIconData(somSelf,pIconInfo)

/*
 * Override method: wpclsQueryStyle
 */
#define M_WPFontPalette_wpclsQueryStyle(somSelf) \
	M_WPObject_wpclsQueryStyle(somSelf)

/*
 * Override method: wpclsQueryDefaultHelp
 */
#define M_WPFontPalette_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) \
	M_WPObject_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary)

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMAny * SOMLINK M_WPFontPaletteNewClass(integer4 scemajorVersion,
		integer4 sceminorVersion);
#pragma linkage(M_WPFontPaletteNewClass, system)

/*
 * Declare the class data structure
 */
SOMEXTERN struct M_WPFontPaletteClassDataStructure {
	SOMAny *classObject;
} M_WPFontPaletteClassData;

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct M_WPFontPaletteCClassDataStructure {
	somMethodTab *parentMtab;
	somDToken instanceDataToken;
} M_WPFontPaletteCClassData;

#endif       /* wpfntpal_h */
