home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
wpobj.zip
/
CLRPALET.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-10
|
7KB
|
243 lines
/*
* This file was generated by the SOM Compiler.
* FileName: clrpalet.h.
* Generated using:
* SOM Precompiler spc: 1.22
* SOM Emitter emith: 1.11
*/
/*
*
*
* MODULE NAME: ClrPalet.CSC
*
* DESCRIPTION:
* Object class definition file for ColorPalette object class.
*/
#ifndef clrpalet_h
#define clrpalet_h
#include <som.h>
/*
* Define the class name as an object type
*/
#ifndef ColorPalette
#define ColorPalette SOMAny
#endif
#include "wpclrpal.h"
/*
* Passthru lines: File: "C.h", "after"
*/
#define ColorPalette_MajorVersion 1
#define ColorPalette_MinorVersion 2
/*
* External name shortening if required
*/
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ColorPaletteNewClass clrpc
#pragma linkage(clrpc, system)
#define ColorPaletteClassData clrpd
#define ColorPaletteCClassData clrpx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ColorPalette_classObj ColorPaletteClassData.classObject
#define _ColorPalette ColorPalette_classObj
/*
* New and Renew macros for ColorPalette
*/
#define _ColorPaletteNew() (_somNew(ColorPaletteClassData.classObject))
#define ColorPaletteNew() \
( ColorPaletteClassData.classObject \
? _ColorPaletteNew() \
: ( ColorPaletteNewClass(ColorPalette_MajorVersion, ColorPalette_MinorVersion), _ColorPaletteNew() ) )
#define ColorPaletteRenew(buf) \
( _somRenew(ColorPaletteClassData.classObject, buf) )
/*
* Override method: wpPaintCell
*/
#define ColorPalette_wpPaintCell(somSelf,pCell,hps,prcl,fHilite) \
WPPalette_wpPaintCell(somSelf,pCell,hps,prcl,fHilite)
/*
* Override method: wpEditCell
*/
#define ColorPalette_wpEditCell(somSelf,pCell,hwndPal) \
WPPalette_wpEditCell(somSelf,pCell,hwndPal)
/*
* Override method: wpRedrawCell
*/
#define ColorPalette_wpRedrawCell(somSelf,pCell) \
WPPalette_wpRedrawCell(somSelf,pCell)
/*
* Override method: wpSetup
*/
#define ColorPalette_wpSetup(somSelf,pszSetupString) \
WPObject_wpSetup(somSelf,pszSetupString)
/*
* New Method: SetEditDlgHandle
*/
typedef BOOL SOMLINK somTP_ColorPalette_SetEditDlgHandle(ColorPalette *somSelf,
HWND hwndEditDlg);
#pragma linkage(somTP_ColorPalette_SetEditDlgHandle, system)
typedef somTP_ColorPalette_SetEditDlgHandle *somTD_ColorPalette_SetEditDlgHandle;
#define somMD_ColorPalette_SetEditDlgHandle "----"
#define ColorPalette_SetEditDlgHandle(somSelf,hwndEditDlg) \
(SOM_Resolve(somSelf, ColorPalette, SetEditDlgHandle) \
(somSelf,hwndEditDlg))
#define _SetEditDlgHandle ColorPalette_SetEditDlgHandle
/*
* New Method: QueryEditDlgHandle
*/
typedef HWND SOMLINK somTP_ColorPalette_QueryEditDlgHandle(ColorPalette *somSelf);
#pragma linkage(somTP_ColorPalette_QueryEditDlgHandle, system)
typedef somTP_ColorPalette_QueryEditDlgHandle *somTD_ColorPalette_QueryEditDlgHandle;
#define somMD_ColorPalette_QueryEditDlgHandle "----"
#define ColorPalette_QueryEditDlgHandle(somSelf) \
(SOM_Resolve(somSelf, ColorPalette, QueryEditDlgHandle) \
(somSelf))
#define _QueryEditDlgHandle ColorPalette_QueryEditDlgHandle
/*
* New Method: QuerySampleShape
*/
typedef BOOL SOMLINK somTP_ColorPalette_QuerySampleShape(ColorPalette *somSelf,
PPOINTL pPoints,
PULONG pcPoints);
#pragma linkage(somTP_ColorPalette_QuerySampleShape, system)
typedef somTP_ColorPalette_QuerySampleShape *somTD_ColorPalette_QuerySampleShape;
#define somMD_ColorPalette_QuerySampleShape "----"
#define ColorPalette_QuerySampleShape(somSelf,pPoints,pcPoints) \
(SOM_Resolve(somSelf, ColorPalette, QuerySampleShape) \
(somSelf,pPoints,pcPoints))
#define _QuerySampleShape ColorPalette_QuerySampleShape
/*
* Declare the class creation procedure
*/
SOMEXTERN SOMAny * SOMLINK ColorPaletteNewClass(integer4 scemajorVersion,
integer4 sceminorVersion);
#pragma linkage(ColorPaletteNewClass, system)
/*
* Declare the class data structure
*/
SOMEXTERN struct ColorPaletteClassDataStructure {
SOMAny *classObject;
somMToken SetEditDlgHandle;
somMToken QueryEditDlgHandle;
somMToken QuerySampleShape;
} ColorPaletteClassData;
/*
* Declare the C specific class data structure
*/
SOMEXTERN struct ColorPaletteCClassDataStructure {
somMethodTab *parentMtab;
somDToken instanceDataToken;
} ColorPaletteCClassData;
#endif /* clrpalet_h */
/*
* This file was generated by the SOM Compiler.
* FileName: clrpalet.h.
* Generated using:
* SOM Precompiler spc: 1.22
* SOM Emitter emith: 1.11
*/
#ifndef clrpalet_mh
#define clrpalet_mh
/*
* Define the class name as an object type
*/
#ifndef M_ColorPalette
#define M_ColorPalette SOMAny
#endif
#define M_ColorPalette_MajorVersion 1
#define M_ColorPalette_MinorVersion 2
/*
* External name shortening if required
*/
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define M_ColorPaletteNewClass clrpc
#pragma linkage(clrpc, system)
#define M_ColorPaletteClassData clrpd
#define M_ColorPaletteCClassData clrpx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define M_ColorPalette_classObj M_ColorPaletteClassData.classObject
#define _M_ColorPalette M_ColorPalette_classObj
/*
* New and Renew macros for M_ColorPalette
*/
#define _M_ColorPaletteNew() (_somNew(M_ColorPaletteClassData.classObject))
#define M_ColorPaletteNew() \
( M_ColorPaletteClassData.classObject \
? _M_ColorPaletteNew() \
: ( M_ColorPaletteNewClass(M_ColorPalette_MajorVersion, M_ColorPalette_MinorVersion), _M_ColorPaletteNew() ) )
#define M_ColorPaletteRenew(buf) \
( _somRenew(M_ColorPaletteClassData.classObject, buf) )
/*
* Override method: wpclsInitData
*/
#define M_ColorPalette_wpclsInitData(somSelf) \
M_WPObject_wpclsInitData(somSelf)
/*
* Override method: wpclsQueryIconData
*/
#define M_ColorPalette_wpclsQueryIconData(somSelf,pIconInfo) \
M_WPObject_wpclsQueryIconData(somSelf,pIconInfo)
/*
* Override method: wpclsQueryStyle
*/
#define M_ColorPalette_wpclsQueryStyle(somSelf) \
M_WPObject_wpclsQueryStyle(somSelf)
/*
* Declare the class creation procedure
*/
SOMEXTERN SOMAny * SOMLINK M_ColorPaletteNewClass(integer4 scemajorVersion,
integer4 sceminorVersion);
#pragma linkage(M_ColorPaletteNewClass, system)
/*
* Declare the class data structure
*/
SOMEXTERN struct M_ColorPaletteClassDataStructure {
SOMAny *classObject;
} M_ColorPaletteClassData;
/*
* Declare the C specific class data structure
*/
SOMEXTERN struct M_ColorPaletteCClassDataStructure {
somMethodTab *parentMtab;
somDToken instanceDataToken;
} M_ColorPaletteCClassData;
#endif /* clrpalet_h */