home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: wppalet.h.
- * Generated using:
- * SOM Precompiler somipc: 2.2
- * SOM Emitter emith: 2.7
- */
-
- /*
- * Module Header
- *
- * Module Name: WPPALET
- *
- * OS/2 Presentation Manager Workplace class definitions
- *
- * Copyright (c) International Business Machines Corporation 1991, 1992
- *
- */
-
-
- #ifndef SOM_WPPalette_h
- #define SOM_WPPalette_h
-
-
- #include <som.h>
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * Define the class name as an object type
- */
- #ifndef WPPalette
- #define WPPalette SOMObject
- #endif
- #include <wpabs.h>
-
- /*
- * Start of user-defined types:
- */
- #ifndef WPFolder
- #define WPFolder SOMObject
- #endif /* WPFolder */
-
- /*
- * End of user-defined types.
- */
-
- /*
- * Passthru lines: File: "C.h", "after"
- */
-
- /*
- * Open view for the wpOpen() method
- */
-
- #define OPEN_PALETTE 121
-
- /*
- * Palette save-restore keys
- */
-
- #define IDKEY_PALXCELLCOUNT 1000
- #define IDKEY_PALYCELLCOUNT 1001
- #define IDKEY_PALXCELLWIDTH 1002
- #define IDKEY_PALYCELLHEIGHT 1003
- #define IDKEY_PALXGAP 1004
- #define IDKEY_PALYGAP 1005
- #define IDKEY_PALSCREENSIZEX 1006
- #define IDKEY_PALSCREENSIZEY 1007
- #define IDKEY_PALCELLDATA_FIRST 1050
-
- /*
- * Default palette information
- */
-
- #define DEF_XCELLCOUNT 6
- #define DEF_YCELLCOUNT 5
-
- /*
- * Variables kept for each open palette window as
- * a structure pointed to by the QWL_USER window
- * word ...
- */
-
- typedef struct _CELL
- {
- ULONG cbData; /* Size of the data that follows */
-
- /* Class specific cell data follows immediately afterwards -
- * for example the font palette would store the ASCII name of
- * the font, and the color palette would store the RGB color
- * of the cell.
- */
- } CELL;
- typedef CELL *PCELL;
-
- typedef struct _PALINFO
- {
- ULONG xCellCount; /* Number of columns of cells */
- ULONG yCellCount; /* Number of rows of cells */
- ULONG xCursor; /* Cursor location (readonly) */
- ULONG yCursor; /* Cursor location (readonly) */
- ULONG xCellWidth; /* Width of each cell */
- ULONG yCellHeight; /* Height of each cell */
- ULONG xGap; /* X separation of cells */
- ULONG yGap; /* Y separation of cells */
- } PALINFO;
- typedef PALINFO *PPALINFO;
-
- #define SetPaletteDataPtr( hwnd, pPaletteData ) "
- WinSetWindowULong( hwnd, QWL_USER, (ULONG)pPaletteData )
-
- #define QueryPaletteDataPtr( hwnd ) "
- (PPALETTEDATA)WinQueryWindowULong( hwnd, QWL_USER )
-
- typedef struct _PALETTEDATA
- {
- WPFolder *Palette; /* Folder object for this window */
- USEITEM UseItem; /* Folder object's INUSE list item */
- VIEWITEM ViewItem;
- ULONG xCursor;
- ULONG yCursor;
- } PALETTEDATA;
- typedef PALETTEDATA *PPALETTEDATA;
-
- typedef struct _CELLSTRUCT
- {
- RECTL rclCell; /* Cell coordinates */
- PCELL pCell; /* Cell data pointer */
- } CELLSTRUCT;
- typedef CELLSTRUCT *PCELLSTRUCT;
- /*
- * Miscellaneous
- */
-
- #define PM_INVALIDATECELL WM_USER+1000
-
- /* Macros that act on a PALINFO...
- */
- #define PALETTE_WIDTH(p) ( p.xCellCount*(p.xCellWidth+p.xGap) )
- #define PALETTE_HEIGHT(p) ( p.yCellCount*(p.yCellHeight+p.yGap) )
- #define ID_PALSCROLLHORZ 8091
- #define ID_PALSCROLLVERT 8092
-
- /* Coordinates (these are in DIALOG UNITS)
- */
- #define CXBUTTON 12 /* Width of a button (with no text) */
- #define CYBUTTON 12 /* Height of a button */
- #define XBUTTONGAP 6
- #define YBUTTONGAP 4
- #define CYBUTTONAREA (CYBUTTON + 2*YBUTTONGAP)
- #define DEF_XCELLWIDTH 22
- #define DEF_YCELLHEIGHT 16
- #define DEF_XCELLGAP 4
- #define DEF_YCELLGAP 4
-
-
-
- #define WPPalette_MajorVersion 1
- #define WPPalette_MinorVersion 2
-
- /*
- * External name shortening if required
- */
- #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
- #define WPPaletteNewClass wppalc
- #pragma linkage(wppalc, system)
- #define WPPaletteClassData wppald
- #define WPPaletteCClassData wppalx
- #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
-
- /*
- * Include the meta class file
- */
- #include <wppalet.h>
- /*--------------Migration------------*/
- #define WPPalette_classObj WPPaletteClassData.classObject
- #define _WPPalette WPPalette_classObj
-
- /*
- * Declare the class creation procedure
- */
- SOMEXTERN SOMClass * SOMLINK WPPaletteNewClass(integer4 somtmajorVersion,
- integer4 somtminorVersion);
- #pragma linkage(WPPaletteNewClass, system)
-
- /*
- * Declare the class data structure
- */
- SOMEXTERN struct WPPaletteClassDataStructure {
- SOMAny *classObject;
- somMToken wpPaintCell;
- somMToken wpSelectCell;
- somMToken wpSetupCell;
- somMToken wpQueryPaletteInfo;
- somMToken wpSetPaletteInfo;
- somMToken wpEditCell;
- somMToken wpDragCell;
- somMToken withdrawn;
- somMToken wpInitCellStructs;
- somMToken wpRedrawCell;
- somMToken wpPaintPalette;
- somMToken wpMouseAction;
- somMToken wpQueryPaletteHelp;
- somMToken wpShowPalettePointer;
- } WPPaletteClassData;
-
- /*
- * Declare the C specific class data structure
- */
- SOMEXTERN struct WPPaletteCClassDataStructure {
- somMethodTabs parentMtab;
- somDToken instanceDataToken;
- } WPPaletteCClassData;
-
- /*
- * New and Renew macros for WPPalette
- */
- #define WPPaletteNew() \
- ( WPPaletteClassData.classObject \
- ? (_somNew(WPPaletteClassData.classObject)) \
- : ( WPPaletteNewClass(WPPalette_MajorVersion, WPPalette_MinorVersion), (_somNew(WPPaletteClassData.classObject)) ) )
- #define WPPaletteRenew(buf) \
- ( _somRenew(WPPaletteClassData.classObject, buf) )
-
- /*
- * Override method: wpInitData
- */
- #define WPPalette_wpInitData(somSelf) \
- WPObject_wpInitData(somSelf)
-
- /*
- * Override method: wpUnInitData
- */
- #define WPPalette_wpUnInitData(somSelf) \
- WPObject_wpUnInitData(somSelf)
-
- /*
- * Override method: wpSetup
- */
- #define WPPalette_wpSetup(somSelf,pszSetupString) \
- WPObject_wpSetup(somSelf,pszSetupString)
-
- /*
- * Override method: wpSaveState
- */
- #define WPPalette_wpSaveState(somSelf) \
- WPObject_wpSaveState(somSelf)
-
- /*
- * Override method: wpRestoreState
- */
- #define WPPalette_wpRestoreState(somSelf,ulReserved) \
- WPObject_wpRestoreState(somSelf,ulReserved)
-
- /*
- * Override method: wpMenuItemSelected
- */
- #define WPPalette_wpMenuItemSelected(somSelf,hwndFrame,ulMenuId) \
- WPObject_wpMenuItemSelected(somSelf,hwndFrame,ulMenuId)
-
- /*
- * Override method: wpModifyPopupMenu
- */
- #define WPPalette_wpModifyPopupMenu(somSelf,hwndMenu,hwndCnr,iPosition) \
- WPObject_wpModifyPopupMenu(somSelf,hwndMenu,hwndCnr,iPosition)
-
- /*
- * Override method: wpFilterPopupMenu
- */
- #define WPPalette_wpFilterPopupMenu(somSelf,ulFlags,hwndCnr,fMultiSelect) \
- WPObject_wpFilterPopupMenu(somSelf,ulFlags,hwndCnr,fMultiSelect)
-
- /*
- * Override method: wpOpen
- */
- #define WPPalette_wpOpen(somSelf,hwndCnr,ulView,param) \
- WPObject_wpOpen(somSelf,hwndCnr,ulView,param)
-
- /*
- * Override method: wpMenuItemHelpSelected
- */
- #define WPPalette_wpMenuItemHelpSelected(somSelf,MenuId) \
- WPObject_wpMenuItemHelpSelected(somSelf,MenuId)
-
- /*
- * New Method: wpPaintCell
- */
- typedef void SOMLINK somTP_WPPalette_wpPaintCell(WPPalette *somSelf,
- PCELL pCell,
- HPS hps,
- PRECTL prcl,
- BOOL fHilite);
- #pragma linkage(somTP_WPPalette_wpPaintCell, system)
- typedef somTP_WPPalette_wpPaintCell *somTD_WPPalette_wpPaintCell;
- #define somMD_WPPalette_wpPaintCell "::WPPalette::wpPaintCell"
- #define WPPalette_wpPaintCell(somSelf,pCell,hps,prcl,fHilite) \
- (SOM_Resolve(somSelf, WPPalette, wpPaintCell) \
- (somSelf,pCell,hps,prcl,fHilite))
- #ifndef SOMGD_wpPaintCell
- #if (defined(_wpPaintCell) || defined(__wpPaintCell))
- #undef _wpPaintCell
- #undef __wpPaintCell
- #define SOMGD_wpPaintCell 1
- #else
- #define _wpPaintCell WPPalette_wpPaintCell
- #endif /* _wpPaintCell */
- #endif /* SOMGD_wpPaintCell */
-
- /*
- * New Method: wpSetupCell
- */
- typedef BOOL SOMLINK somTP_WPPalette_wpSetupCell(WPPalette *somSelf,
- PVOID pCellData,
- ULONG cb,
- ULONG x,
- ULONG y);
- #pragma linkage(somTP_WPPalette_wpSetupCell, system)
- typedef somTP_WPPalette_wpSetupCell *somTD_WPPalette_wpSetupCell;
- #define somMD_WPPalette_wpSetupCell "::WPPalette::wpSetupCell"
- #define WPPalette_wpSetupCell(somSelf,pCellData,cb,x,y) \
- (SOM_Resolve(somSelf, WPPalette, wpSetupCell) \
- (somSelf,pCellData,cb,x,y))
- #ifndef SOMGD_wpSetupCell
- #if (defined(_wpSetupCell) || defined(__wpSetupCell))
- #undef _wpSetupCell
- #undef __wpSetupCell
- #define SOMGD_wpSetupCell 1
- #else
- #define _wpSetupCell WPPalette_wpSetupCell
- #endif /* _wpSetupCell */
- #endif /* SOMGD_wpSetupCell */
-
- /*
- * New Method: wpRedrawCell
- */
- typedef BOOL SOMLINK somTP_WPPalette_wpRedrawCell(WPPalette *somSelf,
- PCELL pCell);
- #pragma linkage(somTP_WPPalette_wpRedrawCell, system)
- typedef somTP_WPPalette_wpRedrawCell *somTD_WPPalette_wpRedrawCell;
- #define somMD_WPPalette_wpRedrawCell "::WPPalette::wpRedrawCell"
- #define WPPalette_wpRedrawCell(somSelf,pCell) \
- (SOM_Resolve(somSelf, WPPalette, wpRedrawCell) \
- (somSelf,pCell))
- #ifndef SOMGD_wpRedrawCell
- #if (defined(_wpRedrawCell) || defined(__wpRedrawCell))
- #undef _wpRedrawCell
- #undef __wpRedrawCell
- #define SOMGD_wpRedrawCell 1
- #else
- #define _wpRedrawCell WPPalette_wpRedrawCell
- #endif /* _wpRedrawCell */
- #endif /* SOMGD_wpRedrawCell */
-
- /*
- * New Method: wpQueryPaletteInfo
- */
- typedef BOOL SOMLINK somTP_WPPalette_wpQueryPaletteInfo(WPPalette *somSelf,
- PPALINFO pPalInfo);
- #pragma linkage(somTP_WPPalette_wpQueryPaletteInfo, system)
- typedef somTP_WPPalette_wpQueryPaletteInfo *somTD_WPPalette_wpQueryPaletteInfo;
- #define somMD_WPPalette_wpQueryPaletteInfo "::WPPalette::wpQueryPaletteInfo"
- #define WPPalette_wpQueryPaletteInfo(somSelf,pPalInfo) \
- (SOM_Resolve(somSelf, WPPalette, wpQueryPaletteInfo) \
- (somSelf,pPalInfo))
- #ifndef SOMGD_wpQueryPaletteInfo
- #if (defined(_wpQueryPaletteInfo) || defined(__wpQueryPaletteInfo))
- #undef _wpQueryPaletteInfo
- #undef __wpQueryPaletteInfo
- #define SOMGD_wpQueryPaletteInfo 1
- #else
- #define _wpQueryPaletteInfo WPPalette_wpQueryPaletteInfo
- #endif /* _wpQueryPaletteInfo */
- #endif /* SOMGD_wpQueryPaletteInfo */
-
- /*
- * New Method: wpSetPaletteInfo
- */
- typedef BOOL SOMLINK somTP_WPPalette_wpSetPaletteInfo(WPPalette *somSelf,
- PPALINFO pPalInfo);
- #pragma linkage(somTP_WPPalette_wpSetPaletteInfo, system)
- typedef somTP_WPPalette_wpSetPaletteInfo *somTD_WPPalette_wpSetPaletteInfo;
- #define somMD_WPPalette_wpSetPaletteInfo "::WPPalette::wpSetPaletteInfo"
- #define WPPalette_wpSetPaletteInfo(somSelf,pPalInfo) \
- (SOM_Resolve(somSelf, WPPalette, wpSetPaletteInfo) \
- (somSelf,pPalInfo))
- #ifndef SOMGD_wpSetPaletteInfo
- #if (defined(_wpSetPaletteInfo) || defined(__wpSetPaletteInfo))
- #undef _wpSetPaletteInfo
- #undef __wpSetPaletteInfo
- #define SOMGD_wpSetPaletteInfo 1
- #else
- #define _wpSetPaletteInfo WPPalette_wpSetPaletteInfo
- #endif /* _wpSetPaletteInfo */
- #endif /* SOMGD_wpSetPaletteInfo */
-
- /*
- * New Method: wpEditCell
- */
- typedef BOOL SOMLINK somTP_WPPalette_wpEditCell(WPPalette *somSelf,
- PCELL pCell,
- HWND hwndPal);
- #pragma linkage(somTP_WPPalette_wpEditCell, system)
- typedef somTP_WPPalette_wpEditCell *somTD_WPPalette_wpEditCell;
- #define somMD_WPPalette_wpEditCell "::WPPalette::wpEditCell"
- #define WPPalette_wpEditCell(somSelf,pCell,hwndPal) \
- (SOM_Resolve(somSelf, WPPalette, wpEditCell) \
- (somSelf,pCell,hwndPal))
- #ifndef SOMGD_wpEditCell
- #if (defined(_wpEditCell) || defined(__wpEditCell))
- #undef _wpEditCell
- #undef __wpEditCell
- #define SOMGD_wpEditCell 1
- #else
- #define _wpEditCell WPPalette_wpEditCell
- #endif /* _wpEditCell */
- #endif /* SOMGD_wpEditCell */
-
- /*
- * New Method: wpDragCell
- */
- typedef BOOL SOMLINK somTP_WPPalette_wpDragCell(WPPalette *somSelf,
- PCELL pCell,
- HWND hwndPal,
- PPOINTL ptlDrag);
- #pragma linkage(somTP_WPPalette_wpDragCell, system)
- typedef somTP_WPPalette_wpDragCell *somTD_WPPalette_wpDragCell;
- #define somMD_WPPalette_wpDragCell "::WPPalette::wpDragCell"
- #define WPPalette_wpDragCell(somSelf,pCell,hwndPal,ptlDrag) \
- (SOM_Resolve(somSelf, WPPalette, wpDragCell) \
- (somSelf,pCell,hwndPal,ptlDrag))
- #ifndef SOMGD_wpDragCell
- #if (defined(_wpDragCell) || defined(__wpDragCell))
- #undef _wpDragCell
- #undef __wpDragCell
- #define SOMGD_wpDragCell 1
- #else
- #define _wpDragCell WPPalette_wpDragCell
- #endif /* _wpDragCell */
- #endif /* SOMGD_wpDragCell */
-
- /*
- * New Method: wpQueryPaletteHelp
- */
- typedef ULONG SOMLINK somTP_WPPalette_wpQueryPaletteHelp(WPPalette *somSelf);
- #pragma linkage(somTP_WPPalette_wpQueryPaletteHelp, system)
- typedef somTP_WPPalette_wpQueryPaletteHelp *somTD_WPPalette_wpQueryPaletteHelp;
- #define somMD_WPPalette_wpQueryPaletteHelp "::WPPalette::wpQueryPaletteHelp"
- #define WPPalette_wpQueryPaletteHelp(somSelf) \
- (SOM_Resolve(somSelf, WPPalette, wpQueryPaletteHelp) \
- (somSelf))
- #ifndef SOMGD_wpQueryPaletteHelp
- #if (defined(_wpQueryPaletteHelp) || defined(__wpQueryPaletteHelp))
- #undef _wpQueryPaletteHelp
- #undef __wpQueryPaletteHelp
- #define SOMGD_wpQueryPaletteHelp 1
- #else
- #define _wpQueryPaletteHelp WPPalette_wpQueryPaletteHelp
- #endif /* _wpQueryPaletteHelp */
- #endif /* SOMGD_wpQueryPaletteHelp */
- #ifndef SOM_DONT_USE_INHERITED_MACROS
- #define WPPalette_wpQueryHandle WPObject_wpQueryHandle
- #define WPPalette_wpSaveImmediate WPObject_wpSaveImmediate
- #define WPPalette_wpSetTitle WPObject_wpSetTitle
- #define WPPalette_wpCopyObject WPObject_wpCopyObject
- #define WPPalette_wpMoveObject WPObject_wpMoveObject
- #define WPPalette_wpQueryIconData WPObject_wpQueryIconData
- #define WPPalette_wpSetIconData WPObject_wpSetIconData
- #define WPPalette_wpDragOver WPObject_wpDragOver
- #define WPPalette_wpReplaceObject WPObject_wpReplaceObject
- #define WPPalette_wpQueryNameClashOptions WPObject_wpQueryNameClashOptions
- #define WPPalette_wpAddObjectGeneralPage WPObject_wpAddObjectGeneralPage
- #define WPPalette_wpAddObjectWindowPage WPObject_wpAddObjectWindowPage
- #define WPPalette_wpAddSettingsPages WPObject_wpAddSettingsPages
- #define WPPalette_wpAddToObjUseList WPObject_wpAddToObjUseList
- #define WPPalette_wpAllocMem WPObject_wpAllocMem
- #define WPPalette_wpAppendObject WPObject_wpAppendObject
- #define WPPalette_wpAssertObjectMutexSem WPObject_wpAssertObjectMutexSem
- #define WPPalette_wpClose WPObject_wpClose
- #define WPPalette_wpCnrInsertObject WPObject_wpCnrInsertObject
- #define WPPalette_wpCnrRemoveObject WPObject_wpCnrRemoveObject
- #define WPPalette_wpCnrSetEmphasis WPObject_wpCnrSetEmphasis
- #define WPPalette_wpConfirmDelete WPObject_wpConfirmDelete
- #define WPPalette_wpConfirmObjectTitle WPObject_wpConfirmObjectTitle
- #define WPPalette_wpCopiedFromTemplate WPObject_wpCopiedFromTemplate
- #define WPPalette_wpCopyObject WPObject_wpCopyObject
- #define WPPalette_wpCreateAnother WPObject_wpCreateAnother
- #define WPPalette_wpCreateFromTemplate WPObject_wpCreateFromTemplate
- #define WPPalette_wpCreateShadowObject WPObject_wpCreateShadowObject
- #define WPPalette_wpDelete WPObject_wpDelete
- #define WPPalette_wpDeleteFromObjUseList WPObject_wpDeleteFromObjUseList
- #define WPPalette_wpDisplayHelp WPObject_wpDisplayHelp
- #define WPPalette_wpDoesObjectMatch WPObject_wpDoesObjectMatch
- #define WPPalette_wpDraggedOverObject WPObject_wpDraggedOverObject
- #define WPPalette_wpDragOver WPObject_wpDragOver
- #define WPPalette_wpDrop WPObject_wpDrop
- #define WPPalette_wpDroppedOnObject WPObject_wpDroppedOnObject
- #define WPPalette_wpEndConversation WPObject_wpEndConversation
- #define WPPalette_wpFindUseItem WPObject_wpFindUseItem
- #define WPPalette_wpFormatDragItem WPObject_wpFormatDragItem
- #define WPPalette_wpFree WPObject_wpFree
- #define WPPalette_wpFreeMem WPObject_wpFreeMem
- #define WPPalette_wpHide WPObject_wpHide
- #define WPPalette_wpInsertPopupMenuItems WPObject_wpInsertPopupMenuItems
- #define WPPalette_wpInsertSettingsPage WPObject_wpInsertSettingsPage
- #define WPPalette_wpMoveObject WPObject_wpMoveObject
- #define WPPalette_wpPrintObject WPObject_wpPrintObject
- #define WPPalette_wpQueryConcurrentView WPObject_wpQueryConcurrentView
- #define WPPalette_wpQueryButtonAppearance WPObject_wpQueryButtonAppearance
- #define WPPalette_wpQueryConfirmations WPObject_wpQueryConfirmations
- #define WPPalette_wpQueryDefaultHelp WPObject_wpQueryDefaultHelp
- #define WPPalette_wpQueryDefaultView WPObject_wpQueryDefaultView
- #define WPPalette_wpQueryDetailsData WPObject_wpQueryDetailsData
- #define WPPalette_wpQueryError WPObject_wpQueryError
- #define WPPalette_wpQueryIcon WPObject_wpQueryIcon
- #define WPPalette_wpQueryIconData WPObject_wpQueryIconData
- #define WPPalette_wpQueryMinWindow WPObject_wpQueryMinWindow
- #define WPPalette_wpQueryNameClashOptions WPObject_wpQueryNameClashOptions
- #define WPPalette_wpQueryStyle WPObject_wpQueryStyle
- #define WPPalette_wpSetTaskRec WPObject_wpSetTaskRec
- #define WPPalette_wpFindTaskRec WPObject_wpFindTaskRec
- #define WPPalette_wpQueryTitle WPObject_wpQueryTitle
- #define WPPalette_wpRegisterView WPObject_wpRegisterView
- #define WPPalette_wpReleaseObjectMutexSem WPObject_wpReleaseObjectMutexSem
- #define WPPalette_wpRender WPObject_wpRender
- #define WPPalette_wpRenderComplete WPObject_wpRenderComplete
- #define WPPalette_wpReplaceObject WPObject_wpReplaceObject
- #define WPPalette_wpRequestObjectMutexSem WPObject_wpRequestObjectMutexSem
- #define WPPalette_wpRestore WPObject_wpRestore
- #define WPPalette_wpRestoreData WPObject_wpRestoreData
- #define WPPalette_wpRestoreLong WPObject_wpRestoreLong
- #define WPPalette_wpRestoreString WPObject_wpRestoreString
- #define WPPalette_wpSaveData WPObject_wpSaveData
- #define WPPalette_wpSaveImmediate WPObject_wpSaveImmediate
- #define WPPalette_wpSaveDeferred WPObject_wpSaveDeferred
- #define WPPalette_wpSaveLong WPObject_wpSaveLong
- #define WPPalette_wpSaveString WPObject_wpSaveString
- #define WPPalette_wpScanSetupString WPObject_wpScanSetupString
- #define WPPalette_wpSetConcurrentView WPObject_wpSetConcurrentView
- #define WPPalette_wpSetButtonAppearance WPObject_wpSetButtonAppearance
- #define WPPalette_wpSetDefaultHelp WPObject_wpSetDefaultHelp
- #define WPPalette_wpSetDefaultView WPObject_wpSetDefaultView
- #define WPPalette_wpSetError WPObject_wpSetError
- #define WPPalette_wpSetIcon WPObject_wpSetIcon
- #define WPPalette_wpSetIconData WPObject_wpSetIconData
- #define WPPalette_wpSetMinWindow WPObject_wpSetMinWindow
- #define WPPalette_wpSetStyle WPObject_wpSetStyle
- #define WPPalette_wpModifyStyle WPObject_wpModifyStyle
- #define WPPalette_wpSetTitle WPObject_wpSetTitle
- #define WPPalette_wpSwitchTo WPObject_wpSwitchTo
- #define WPPalette_wpViewObject WPObject_wpViewObject
- #define WPPalette_wpQueryTrueStyle WPObject_wpQueryTrueStyle
- #define WPPalette_wpQueryHandle WPObject_wpQueryHandle
- #define WPPalette_wpUnlockObject WPObject_wpUnlockObject
- #define WPPalette_somInit SOMObject_somInit
- #define WPPalette_somUninit SOMObject_somUninit
- #define WPPalette_somFree SOMObject_somFree
- #define WPPalette_somDefaultInit SOMObject_somDefaultInit
- #define WPPalette_somDestruct SOMObject_somDestruct
- #define WPPalette_somInit SOMObject_somInit
- #define WPPalette_somUninit SOMObject_somUninit
- #define WPPalette_somGetClass SOMObject_somGetClass
- #define WPPalette_somGetClassName SOMObject_somGetClassName
- #define WPPalette_somGetSize SOMObject_somGetSize
- #define WPPalette_somIsA SOMObject_somIsA
- #define WPPalette_somIsInstanceOf SOMObject_somIsInstanceOf
- #define WPPalette_somRespondsTo SOMObject_somRespondsTo
- #define WPPalette_somComputeForwardVisitMask SOMObject_somComputeForwardVisitMask
- #define WPPalette_somComputeReverseVisitMask SOMObject_somComputeReverseVisitMask
- #define WPPalette_somDispatchV SOMObject_somDispatchV
- #define WPPalette_somDispatchL SOMObject_somDispatchL
- #define WPPalette_somDispatchA SOMObject_somDispatchA
- #define WPPalette_somDispatchD SOMObject_somDispatchD
- #define WPPalette_somDispatch SOMObject_somDispatch
- #define WPPalette_somClassDispatch SOMObject_somClassDispatch
- #define WPPalette_somCastObj SOMObject_somCastObj
- #define WPPalette_somResetObj SOMObject_somResetObj
- #define WPPalette_somPrintSelf SOMObject_somPrintSelf
- #define WPPalette_somDumpSelf SOMObject_somDumpSelf
- #define WPPalette_somDumpSelfInt SOMObject_somDumpSelfInt
- #endif /* SOM_DONT_USE_INHERITED_MACROS */
-
- #endif /* SOM_WPPalette_h */
-
- #ifndef SOM_M_WPPalette_h
- #define SOM_M_WPPalette_h
-
-
- #include <som.h>
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * Define the class name as an object type
- */
- #ifndef M_WPPalette
- #define M_WPPalette SOMObject
- #endif
- #include <wpabs.h>
-
- /*
- * Start of user-defined types:
- */
- #ifndef WPFolder
- #define WPFolder SOMObject
- #endif /* WPFolder */
-
- /*
- * End of user-defined types.
- */
-
- #define M_WPPalette_MajorVersion 1
- #define M_WPPalette_MinorVersion 2
-
- /*
- * External name shortening if required
- */
- #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
- #define M_WPPaletteNewClass wppalc
- #pragma linkage(wppalc, system)
- #define M_WPPaletteClassData wppald
- #define M_WPPaletteCClassData wppalx
- #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
- /*--------------Migration------------*/
- #define M_WPPalette_classObj M_WPPaletteClassData.classObject
- #define _M_WPPalette M_WPPalette_classObj
-
- /*
- * Declare the class creation procedure
- */
- SOMEXTERN SOMClass * SOMLINK M_WPPaletteNewClass(integer4 somtmajorVersion,
- integer4 somtminorVersion);
- #pragma linkage(M_WPPaletteNewClass, system)
-
- /*
- * Declare the class data structure
- */
- SOMEXTERN struct M_WPPaletteClassDataStructure {
- SOMAny *classObject;
- somMToken wpclsQueryEditString;
- } M_WPPaletteClassData;
-
- /*
- * Declare the C specific class data structure
- */
- SOMEXTERN struct M_WPPaletteCClassDataStructure {
- somMethodTabs parentMtab;
- somDToken instanceDataToken;
- } M_WPPaletteCClassData;
-
- /*
- * New and Renew macros for M_WPPalette
- */
- #define M_WPPaletteNew() \
- ( M_WPPaletteClassData.classObject \
- ? (_somNew(M_WPPaletteClassData.classObject)) \
- : ( M_WPPaletteNewClass(M_WPPalette_MajorVersion, M_WPPalette_MinorVersion), (_somNew(M_WPPaletteClassData.classObject)) ) )
- #define M_WPPaletteRenew(buf) \
- ( _somRenew(M_WPPaletteClassData.classObject, buf) )
-
- /*
- * Override method: wpclsQueryTitle
- */
- #define M_WPPalette_wpclsQueryTitle(somSelf) \
- M_WPObject_wpclsQueryTitle(somSelf)
-
- /*
- * Override method: wpclsQueryStyle
- */
- #define M_WPPalette_wpclsQueryStyle(somSelf) \
- M_WPObject_wpclsQueryStyle(somSelf)
-
- /*
- * Override method: wpclsQueryDefaultView
- */
- #define M_WPPalette_wpclsQueryDefaultView(somSelf) \
- M_WPObject_wpclsQueryDefaultView(somSelf)
-
- /*
- * Override method: wpclsQueryDefaultHelp
- */
- #define M_WPPalette_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) \
- M_WPObject_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary)
-
- /*
- * New Method: wpclsQueryEditString
- */
- typedef PSZ SOMLINK somTP_M_WPPalette_wpclsQueryEditString(M_WPPalette *somSelf);
- #pragma linkage(somTP_M_WPPalette_wpclsQueryEditString, system)
- typedef somTP_M_WPPalette_wpclsQueryEditString *somTD_M_WPPalette_wpclsQueryEditString;
- #define somMD_M_WPPalette_wpclsQueryEditString "::M_WPPalette::wpclsQueryEditString"
- #define M_WPPalette_wpclsQueryEditString(somSelf) \
- (SOM_Resolve(somSelf, M_WPPalette, wpclsQueryEditString) \
- (somSelf))
- #ifndef SOMGD_wpclsQueryEditString
- #if (defined(_wpclsQueryEditString) || defined(__wpclsQueryEditString))
- #undef _wpclsQueryEditString
- #undef __wpclsQueryEditString
- #define SOMGD_wpclsQueryEditString 1
- #else
- #define _wpclsQueryEditString M_WPPalette_wpclsQueryEditString
- #endif /* _wpclsQueryEditString */
- #endif /* SOMGD_wpclsQueryEditString */
- #ifndef SOM_DONT_USE_INHERITED_MACROS
- #define M_WPPalette_wpclsCreateDefaultTemplates M_WPObject_wpclsCreateDefaultTemplates
- #define M_WPPalette_wpclsInitData M_WPObject_wpclsInitData
- #define M_WPPalette_wpclsMakeAwake M_WPObject_wpclsMakeAwake
- #define M_WPPalette_wpclsNew M_WPObject_wpclsNew
- #define M_WPPalette_wpclsQueryDetails M_WPObject_wpclsQueryDetails
- #define M_WPPalette_wpclsQueryDetailsInfo M_WPObject_wpclsQueryDetailsInfo
- #define M_WPPalette_wpclsQueryExtendedCriteria M_WPObject_wpclsQueryExtendedCriteria
- #define M_WPPalette_wpclsQueryFolder M_WPObject_wpclsQueryFolder
- #define M_WPPalette_wpclsQueryIcon M_WPObject_wpclsQueryIcon
- #define M_WPPalette_wpclsQuerySearchInfo M_WPObject_wpclsQuerySearchInfo
- #define M_WPPalette_wpclsUnInitData M_WPObject_wpclsUnInitData
- #define M_WPPalette_wpclsFindObjectFirst M_WPObject_wpclsFindObjectFirst
- #define M_WPPalette_wpclsFindObjectNext M_WPObject_wpclsFindObjectNext
- #define M_WPPalette_wpclsFindObjectEnd M_WPObject_wpclsFindObjectEnd
- #define M_WPPalette_wpclsSetError M_WPObject_wpclsSetError
- #define M_WPPalette_wpclsQueryError M_WPObject_wpclsQueryError
- #define M_WPPalette_wpclsQuerySettingsPageSize M_WPObject_wpclsQuerySettingsPageSize
- #define M_WPPalette_wpclsQueryIconData M_WPObject_wpclsQueryIconData
- #define M_WPPalette_wpclsQueryObject M_WPObject_wpclsQueryObject
- #define M_WPPalette_wpclsQueryButtonAppearance M_WPObject_wpclsQueryButtonAppearance
- #define M_WPPalette_somUninit SOMObject_somUninit
- #define M_WPPalette_somInitClass SOMClass_somInitClass
- #define M_WPPalette_somNew SOMClass_somNew
- #define M_WPPalette_somRenew SOMClass_somRenew
- #define M_WPPalette__get_somDirectInitClasses SOMClass__get_somDirectInitClasses
- #define M_WPPalette__set_somDirectInitClasses SOMClass__set_somDirectInitClasses
- #define M_WPPalette_somGetInstanceInitMask SOMClass_somGetInstanceInitMask
- #define M_WPPalette_somGetInstanceDestructionMask SOMClass_somGetInstanceDestructionMask
- #define M_WPPalette_somGetInitMaskOffset SOMClass_somGetInitMaskOffset
- #define M_WPPalette_somGetDestructionMaskOffset SOMClass_somGetDestructionMaskOffset
- #define M_WPPalette_somShouldCallInit SOMClass_somShouldCallInit
- #define M_WPPalette_somAllocate SOMClass_somAllocate
- #define M_WPPalette_somDeallocate SOMClass_somDeallocate
- #define M_WPPalette_somNew SOMClass_somNew
- #define M_WPPalette_somNewNoInit SOMClass_somNewNoInit
- #define M_WPPalette_somRenew SOMClass_somRenew
- #define M_WPPalette_somRenewNoInit SOMClass_somRenewNoInit
- #define M_WPPalette_somRenewNoZero SOMClass_somRenewNoZero
- #define M_WPPalette_somRenewNoInitNoZero SOMClass_somRenewNoInitNoZero
- #define M_WPPalette_somInitClass SOMClass_somInitClass
- #define M_WPPalette_somInitMIClass SOMClass_somInitMIClass
- #define M_WPPalette_somAddStaticMethod SOMClass_somAddStaticMethod
- #define M_WPPalette_somAddMethod SOMClass_somAddMethod
- #define M_WPPalette_somRegLPMToken SOMClass_somRegLPMToken
- #define M_WPPalette_somAddDynamicMethod SOMClass_somAddDynamicMethod
- #define M_WPPalette_somClassReady SOMClass_somClassReady
- #define M_WPPalette_somOverrideSMethod SOMClass_somOverrideSMethod
- #define M_WPPalette_somGetApplyStub SOMClass_somGetApplyStub
- #define M_WPPalette_somGetClassData SOMClass_somGetClassData
- #define M_WPPalette_somSetClassData SOMClass_somSetClassData
- #define M_WPPalette_somGetClassMtab SOMClass_somGetClassMtab
- #define M_WPPalette_somGetInstanceOffset SOMClass_somGetInstanceOffset
- #define M_WPPalette_somGetInstancePartSize SOMClass_somGetInstancePartSize
- #define M_WPPalette_somGetInstanceSize SOMClass_somGetInstanceSize
- #define M_WPPalette_somGetDataAlignment SOMClass_somGetDataAlignment
- #define M_WPPalette_somGetInstanceToken SOMClass_somGetInstanceToken
- #define M_WPPalette_somGetMemberToken SOMClass_somGetMemberToken
- #define M_WPPalette_somGetMethodData SOMClass_somGetMethodData
- #define M_WPPalette_somGetRdStub SOMClass_somGetRdStub
- #define M_WPPalette_somGetMethodDescriptor SOMClass_somGetMethodDescriptor
- #define M_WPPalette_somGetMethodIndex SOMClass_somGetMethodIndex
- #define M_WPPalette_somGetMethodOffset SOMClass_somGetMethodOffset
- #define M_WPPalette_somGetMethodToken SOMClass_somGetMethodToken
- #define M_WPPalette_somGetName SOMClass_somGetName
- #define M_WPPalette_somGetNthMethodData SOMClass_somGetNthMethodData
- #define M_WPPalette_somGetNthMethodInfo SOMClass_somGetNthMethodInfo
- #define M_WPPalette_somGetNumMethods SOMClass_somGetNumMethods
- #define M_WPPalette_somGetNumStaticMethods SOMClass_somGetNumStaticMethods
- #define M_WPPalette_somGetParent SOMClass_somGetParent
- #define M_WPPalette_somGetParents SOMClass_somGetParents
- #define M_WPPalette_somGetPClsMtab SOMClass_somGetPClsMtab
- #define M_WPPalette_somGetPClsMtabs SOMClass_somGetPClsMtabs
- #define M_WPPalette_somGetVersionNumbers SOMClass_somGetVersionNumbers
- #define M_WPPalette_somSetMethodDescriptor SOMClass_somSetMethodDescriptor
- #define M_WPPalette_somCheckVersion SOMClass_somCheckVersion
- #define M_WPPalette_somDescendedFrom SOMClass_somDescendedFrom
- #define M_WPPalette_somSupportsMethod SOMClass_somSupportsMethod
- #define M_WPPalette__get_somReleaseOrder SOMClass__get_somReleaseOrder
- #define M_WPPalette__set_somReleaseOrder SOMClass__set_somReleaseOrder
- #define M_WPPalette_somGetClassDataEntry SOMClass_somGetClassDataEntry
- #define M_WPPalette_somSetClassDataEntry SOMClass_somSetClassDataEntry
- #define M_WPPalette_somDefinedMethod SOMClass_somDefinedMethod
- #define M_WPPalette_somCastObjCls SOMClass_somCastObjCls
- #define M_WPPalette_somResetObjCls SOMClass_somResetObjCls
- #define M_WPPalette__get_trueClass SOMClass__get_trueClass
- #define M_WPPalette__get_castedClass SOMClass__get_castedClass
- #define M_WPPalette_somCloneClass SOMClass_somCloneClass
- #define M_WPPalette_somFindMethod SOMClass_somFindMethod
- #define M_WPPalette_somFindMethodOk SOMClass_somFindMethodOk
- #define M_WPPalette_somFindSMethod SOMClass_somFindSMethod
- #define M_WPPalette_somFindSMethodOk SOMClass_somFindSMethodOk
- #define M_WPPalette_somLookupMethod SOMClass_somLookupMethod
- #define M_WPPalette_somOverrideMtab SOMClass_somOverrideMtab
- #define M_WPPalette__get_somInstanceDataOffsets SOMClass__get_somInstanceDataOffsets
- #define M_WPPalette__get_somMethodOffsets SOMClass__get_somMethodOffsets
- #define M_WPPalette_somInit SOMObject_somInit
- #define M_WPPalette_somUninit SOMObject_somUninit
- #define M_WPPalette_somDumpSelfInt SOMObject_somDumpSelfInt
- #define M_WPPalette_somPrintSelf SOMObject_somPrintSelf
- #define M_WPPalette_somFree SOMObject_somFree
- #define M_WPPalette_somDefaultInit SOMObject_somDefaultInit
- #define M_WPPalette_somDestruct SOMObject_somDestruct
- #define M_WPPalette_somInit SOMObject_somInit
- #define M_WPPalette_somUninit SOMObject_somUninit
- #define M_WPPalette_somGetClass SOMObject_somGetClass
- #define M_WPPalette_somGetClassName SOMObject_somGetClassName
- #define M_WPPalette_somGetSize SOMObject_somGetSize
- #define M_WPPalette_somIsA SOMObject_somIsA
- #define M_WPPalette_somIsInstanceOf SOMObject_somIsInstanceOf
- #define M_WPPalette_somRespondsTo SOMObject_somRespondsTo
- #define M_WPPalette_somComputeForwardVisitMask SOMObject_somComputeForwardVisitMask
- #define M_WPPalette_somComputeReverseVisitMask SOMObject_somComputeReverseVisitMask
- #define M_WPPalette_somDispatchV SOMObject_somDispatchV
- #define M_WPPalette_somDispatchL SOMObject_somDispatchL
- #define M_WPPalette_somDispatchA SOMObject_somDispatchA
- #define M_WPPalette_somDispatchD SOMObject_somDispatchD
- #define M_WPPalette_somDispatch SOMObject_somDispatch
- #define M_WPPalette_somClassDispatch SOMObject_somClassDispatch
- #define M_WPPalette_somCastObj SOMObject_somCastObj
- #define M_WPPalette_somResetObj SOMObject_somResetObj
- #define M_WPPalette_somPrintSelf SOMObject_somPrintSelf
- #define M_WPPalette_somDumpSelf SOMObject_somDumpSelf
- #define M_WPPalette_somDumpSelfInt SOMObject_somDumpSelfInt
- #endif /* SOM_DONT_USE_INHERITED_MACROS */
-
- #endif /* SOM_M_WPPalette_h */
-