home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: wpclrpal.h.
- * Generated using:
- * SOM Precompiler spc: 1.22
- * SOM Emitter emith: 1.11
- */
-
- /*
- *
- * Module Header
- *
- * Module Name: WPCLRPAL
- *
- * OS/2 Presentation Manager Workplace class definitions
- *
- * Copyright (c) International Business Machines Corporation 1991, 1992
- *
- */
-
-
- #ifndef wpclrpal_h
- #define wpclrpal_h
-
-
- #include <som.h>
-
- /*
- * Define the class name as an object type
- */
- #ifndef WPColorPalette
- #define WPColorPalette SOMAny
- #endif
- #include "wppalet.h"
-
- /*
- * Passthru lines: File: "C.h", "after"
- */
-
- /* Paintpot structure */
-
- typedef struct _PAINTPOT
- {
- CELL cell; /* Size of the data that follows */
- ULONG ulRGB; /* Color of this paintpot */
- } PAINTPOT;
- typedef PAINTPOT *PPAINTPOT;
-
-
- #define WPColorPalette_MajorVersion 1
- #define WPColorPalette_MinorVersion 2
-
- /*
- * External name shortening if required
- */
- #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
- #define WPColorPaletteNewClass wpclrc
- #pragma linkage(wpclrc, system)
- #define WPColorPaletteClassData wpclrd
- #define WPColorPaletteCClassData wpclrx
- #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
- /*--------------Migration------------*/
- #define WPColorPalette_classObj WPColorPaletteClassData.classObject
- #define _WPColorPalette WPColorPalette_classObj
-
- /*
- * New and Renew macros for WPColorPalette
- */
- #define _WPColorPaletteNew() (_somNew(WPColorPaletteClassData.classObject))
- #define WPColorPaletteNew() \
- ( WPColorPaletteClassData.classObject \
- ? _WPColorPaletteNew() \
- : ( WPColorPaletteNewClass(WPColorPalette_MajorVersion, WPColorPalette_MinorVersion), _WPColorPaletteNew() ) )
- #define WPColorPaletteRenew(buf) \
- ( _somRenew(WPColorPaletteClassData.classObject, buf) )
-
- /*
- * Override method: wpPaintCell
- */
- #define WPColorPalette_wpPaintCell(somSelf,pCell,hps,prcl,fHilite) \
- WPPalette_wpPaintCell(somSelf,pCell,hps,prcl,fHilite)
-
- /*
- * Override method: wpEditCell
- */
- #define WPColorPalette_wpEditCell(somSelf,pCell,hwndPal) \
- WPPalette_wpEditCell(somSelf,pCell,hwndPal)
-
- /*
- * Override method: wpDragCell
- */
- #define WPColorPalette_wpDragCell(somSelf,pCell,hwndPal,ptlDrag) \
- WPPalette_wpDragCell(somSelf,pCell,hwndPal,ptlDrag)
-
- /*
- * Override method: wpQueryPaletteHelp
- */
- #define WPColorPalette_wpQueryPaletteHelp(somSelf) \
- WPPalette_wpQueryPaletteHelp(somSelf)
-
- /*
- * Override method: wpSetup
- */
- #define WPColorPalette_wpSetup(somSelf,pszSetupString) \
- WPObject_wpSetup(somSelf,pszSetupString)
-
- /*
- * Override method: wpMenuItemHelpSelected
- */
- #define WPColorPalette_wpMenuItemHelpSelected(somSelf,MenuId) \
- WPObject_wpMenuItemHelpSelected(somSelf,MenuId)
-
- /*
- * Override method: wpInitData
- */
- #define WPColorPalette_wpInitData(somSelf) \
- WPObject_wpInitData(somSelf)
-
- /*
- * Declare the class creation procedure
- */
- SOMEXTERN SOMAny * SOMLINK WPColorPaletteNewClass(integer4 scemajorVersion,
- integer4 sceminorVersion);
- #pragma linkage(WPColorPaletteNewClass, system)
-
- /*
- * Declare the class data structure
- */
- SOMEXTERN struct WPColorPaletteClassDataStructure {
- SOMAny *classObject;
- } WPColorPaletteClassData;
-
- /*
- * Declare the C specific class data structure
- */
- SOMEXTERN struct WPColorPaletteCClassDataStructure {
- somMethodTab *parentMtab;
- somDToken instanceDataToken;
- } WPColorPaletteCClassData;
-
- #endif /* wpclrpal_h */
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: wpclrpal.h.
- * Generated using:
- * SOM Precompiler spc: 1.22
- * SOM Emitter emith: 1.11
- */
-
- #ifndef wpclrpal_mh
- #define wpclrpal_mh
-
-
- /*
- * Define the class name as an object type
- */
- #ifndef M_WPColorPalette
- #define M_WPColorPalette SOMAny
- #endif
-
- #define M_WPColorPalette_MajorVersion 1
- #define M_WPColorPalette_MinorVersion 2
-
- /*
- * External name shortening if required
- */
- #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
- #define M_WPColorPaletteNewClass wpclrc
- #pragma linkage(wpclrc, system)
- #define M_WPColorPaletteClassData wpclrd
- #define M_WPColorPaletteCClassData wpclrx
- #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
- /*--------------Migration------------*/
- #define M_WPColorPalette_classObj M_WPColorPaletteClassData.classObject
- #define _M_WPColorPalette M_WPColorPalette_classObj
-
- /*
- * New and Renew macros for M_WPColorPalette
- */
- #define _M_WPColorPaletteNew() (_somNew(M_WPColorPaletteClassData.classObject))
- #define M_WPColorPaletteNew() \
- ( M_WPColorPaletteClassData.classObject \
- ? _M_WPColorPaletteNew() \
- : ( M_WPColorPaletteNewClass(M_WPColorPalette_MajorVersion, M_WPColorPalette_MinorVersion), _M_WPColorPaletteNew() ) )
- #define M_WPColorPaletteRenew(buf) \
- ( _somRenew(M_WPColorPaletteClassData.classObject, buf) )
-
- /*
- * Override method: wpclsQueryEditString
- */
- #define M_WPColorPalette_wpclsQueryEditString(somSelf) \
- M_WPPalette_wpclsQueryEditString(somSelf)
-
- /*
- * Override method: wpclsQueryTitle
- */
- #define M_WPColorPalette_wpclsQueryTitle(somSelf) \
- M_WPObject_wpclsQueryTitle(somSelf)
-
- /*
- * Override method: wpclsQueryStyle
- */
- #define M_WPColorPalette_wpclsQueryStyle(somSelf) \
- M_WPObject_wpclsQueryStyle(somSelf)
-
- /*
- * Override method: wpclsQueryDefaultHelp
- */
- #define M_WPColorPalette_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) \
- M_WPObject_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary)
-
- /*
- * Override method: wpclsQueryIconData
- */
- #define M_WPColorPalette_wpclsQueryIconData(somSelf,pIconInfo) \
- M_WPObject_wpclsQueryIconData(somSelf,pIconInfo)
-
- /*
- * Declare the class creation procedure
- */
- SOMEXTERN SOMAny * SOMLINK M_WPColorPaletteNewClass(integer4 scemajorVersion,
- integer4 sceminorVersion);
- #pragma linkage(M_WPColorPaletteNewClass, system)
-
- /*
- * Declare the class data structure
- */
- SOMEXTERN struct M_WPColorPaletteClassDataStructure {
- SOMAny *classObject;
- } M_WPColorPaletteClassData;
-
- /*
- * Declare the C specific class data structure
- */
- SOMEXTERN struct M_WPColorPaletteCClassDataStructure {
- somMethodTab *parentMtab;
- somDToken instanceDataToken;
- } M_WPColorPaletteCClassData;
-
- #endif /* wpclrpal_h */
-