
/*
 * This file was generated by the SOM Compiler.
 * FileName: F:\wpwpsh\rel\ppc\include\os2\wppalet.h.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.3
 *     SOM Emitter emith: 2.41
 */

/*
 *   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 bindings for IDL types
 */

#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef WPFolder
    #define WPFolder SOMObject
#endif /* WPFolder */
#ifndef M_WPObject
    #define M_WPObject SOMObject
#endif /* M_WPObject */
#ifndef WPObject
    #define WPObject SOMObject
#endif /* WPObject */
#ifndef M_WPAbstract
    #define M_WPAbstract SOMObject
#endif /* M_WPAbstract */
#ifndef M_WPPalette
    #define M_WPPalette SOMObject
#endif /* M_WPPalette */

/*
 * End of bindings for IDL 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      13                                           //jrb79998
      #define DEF_YCELLCOUNT      9                                            //jrb79998

      /*
       *  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    10                                             //jrb88724
      #define DEF_YCELLHEIGHT   6                                              //jrb88724
      #define DEF_XCELLGAP      4                                              //jrb88724
      #define DEF_YCELLGAP      4                                              //jrb88724



#define WPPalette_MajorVersion 1
#define WPPalette_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define WPPaletteNewClass wppalc
#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);

/*
 * Declare the class data structure
 */
SOMEXTERN struct WPPaletteClassDataStructure {
	SOMClass *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;
	somMToken wpSaveCellData;
	somMToken wpRestoreCellData;
} SOMDLINK WPPaletteClassData;

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct WPPaletteCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOMDLINK WPPaletteCClassData;

/*
 * New and Renew macros for WPPalette
 */
#define WPPaletteNew() \
   (_somNew(_WPPalette ? _WPPalette : WPPaletteNewClass(WPPalette_MajorVersion, WPPalette_MinorVersion)))
#define WPPaletteRenew(buf) \
   (_somRenew(_WPPalette ? _WPPalette : WPPaletteNewClass(WPPalette_MajorVersion, WPPalette_MinorVersion), 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)

/*
 * Override method: somDefaultInit
 */
#define WPPalette_somDefaultInit(somSelf,ctrl) \
	SOMObject_somDefaultInit(somSelf,ctrl)

/*
 * Override method: somDestruct
 */
#define WPPalette_somDestruct(somSelf,doFree,ctrl) \
	SOMObject_somDestruct(somSelf,doFree,ctrl)

/*
 * New Method: wpPaintCell
 */
typedef void   SOMLINK somTP_WPPalette_wpPaintCell(WPPalette *somSelf, 
		PCELL pCell, 
		HPS hps, 
		PRECTL prcl, 
		BOOL fHilite);
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);
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);
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);
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);
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);
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);
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);
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 */

/*
 * New Method: wpSelectCell
 */
typedef void   SOMLINK somTP_WPPalette_wpSelectCell(WPPalette *somSelf, 
		HWND hwndPal, 
		PCELL pCell);
typedef somTP_WPPalette_wpSelectCell *somTD_WPPalette_wpSelectCell;
#define somMD_WPPalette_wpSelectCell "::WPPalette::wpSelectCell"
#define WPPalette_wpSelectCell(somSelf,hwndPal,pCell) \
    (SOM_Resolve(somSelf, WPPalette, wpSelectCell) \
	(somSelf,hwndPal,pCell))
#ifndef SOMGD_wpSelectCell
    #if (defined(_wpSelectCell) || defined(__wpSelectCell))
        #undef _wpSelectCell
        #undef __wpSelectCell
        #define SOMGD_wpSelectCell 1
    #else
        #define _wpSelectCell WPPalette_wpSelectCell
    #endif /* _wpSelectCell */
#endif /* SOMGD_wpSelectCell */

/*
 * New Method: wpPaintPalette
 */
typedef void   SOMLINK somTP_WPPalette_wpPaintPalette(WPPalette *somSelf, 
		HPS hps, 
		PRECTL prcl);
typedef somTP_WPPalette_wpPaintPalette *somTD_WPPalette_wpPaintPalette;
#define somMD_WPPalette_wpPaintPalette "::WPPalette::wpPaintPalette"
#define WPPalette_wpPaintPalette(somSelf,hps,prcl) \
    (SOM_Resolve(somSelf, WPPalette, wpPaintPalette) \
	(somSelf,hps,prcl))
#ifndef SOMGD_wpPaintPalette
    #if (defined(_wpPaintPalette) || defined(__wpPaintPalette))
        #undef _wpPaintPalette
        #undef __wpPaintPalette
        #define SOMGD_wpPaintPalette 1
    #else
        #define _wpPaintPalette WPPalette_wpPaintPalette
    #endif /* _wpPaintPalette */
#endif /* SOMGD_wpPaintPalette */

/*
 * New Method: wpInitCellStructs
 */
typedef BOOL   SOMLINK somTP_WPPalette_wpInitCellStructs(WPPalette *somSelf);
typedef somTP_WPPalette_wpInitCellStructs *somTD_WPPalette_wpInitCellStructs;
#define somMD_WPPalette_wpInitCellStructs "::WPPalette::wpInitCellStructs"
#define WPPalette_wpInitCellStructs(somSelf) \
    (SOM_Resolve(somSelf, WPPalette, wpInitCellStructs) \
	(somSelf))
#ifndef SOMGD_wpInitCellStructs
    #if (defined(_wpInitCellStructs) || defined(__wpInitCellStructs))
        #undef _wpInitCellStructs
        #undef __wpInitCellStructs
        #define SOMGD_wpInitCellStructs 1
    #else
        #define _wpInitCellStructs WPPalette_wpInitCellStructs
    #endif /* _wpInitCellStructs */
#endif /* SOMGD_wpInitCellStructs */

/*
 * New Method: wpSaveCellData
 */
typedef BOOL   SOMLINK somTP_WPPalette_wpSaveCellData(WPPalette *somSelf, 
		PCELL pCell, 
		ULONG ulIndex);
typedef somTP_WPPalette_wpSaveCellData *somTD_WPPalette_wpSaveCellData;
#define somMD_WPPalette_wpSaveCellData "::WPPalette::wpSaveCellData"
#define WPPalette_wpSaveCellData(somSelf,pCell,ulIndex) \
    (SOM_Resolve(somSelf, WPPalette, wpSaveCellData) \
	(somSelf,pCell,ulIndex))
#ifndef SOMGD_wpSaveCellData
    #if (defined(_wpSaveCellData) || defined(__wpSaveCellData))
        #undef _wpSaveCellData
        #undef __wpSaveCellData
        #define SOMGD_wpSaveCellData 1
    #else
        #define _wpSaveCellData WPPalette_wpSaveCellData
    #endif /* _wpSaveCellData */
#endif /* SOMGD_wpSaveCellData */

/*
 * New Method: wpRestoreCellData
 */
typedef BOOL   SOMLINK somTP_WPPalette_wpRestoreCellData(WPPalette *somSelf, 
		PCELL* pCell, 
		ULONG ulIndex, 
		ULONG ulCellSize);
typedef somTP_WPPalette_wpRestoreCellData *somTD_WPPalette_wpRestoreCellData;
#define somMD_WPPalette_wpRestoreCellData "::WPPalette::wpRestoreCellData"
#define WPPalette_wpRestoreCellData(somSelf,pCell,ulIndex,ulCellSize) \
    (SOM_Resolve(somSelf, WPPalette, wpRestoreCellData) \
	(somSelf,pCell,ulIndex,ulCellSize))
#ifndef SOMGD_wpRestoreCellData
    #if (defined(_wpRestoreCellData) || defined(__wpRestoreCellData))
        #undef _wpRestoreCellData
        #undef __wpRestoreCellData
        #define SOMGD_wpRestoreCellData 1
    #else
        #define _wpRestoreCellData WPPalette_wpRestoreCellData
    #endif /* _wpRestoreCellData */
#endif /* SOMGD_wpRestoreCellData */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define WPPalette_wpAddObjectGeneralPage WPObject_wpAddObjectGeneralPage
#define WPPalette_wpAddObjectGeneralPage2 WPObject_wpAddObjectGeneralPage2
#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_wpDisplayMenu WPObject_wpDisplayMenu
#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_wpSetFolder WPObject_wpSetFolder
#define WPPalette_wpQueryFolder WPObject_wpQueryFolder
#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_wpSetIconHandle WPObject_wpSetIconHandle
#define WPPalette_wpQueryScreenGroupID WPObject_wpQueryScreenGroupID
#define WPPalette_wpSetupOnce WPObject_wpSetupOnce
#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_wpObjectReady WPObject_wpObjectReady
#define WPPalette_wpIsObjectInitialized WPObject_wpIsObjectInitialized
#define WPPalette_wpCreateShadowObjectExt WPObject_wpCreateShadowObjectExt
#define WPPalette_wpCnrDeleteUseItem WPObject_wpCnrDeleteUseItem
#define WPPalette_wpIsDeleteable WPObject_wpIsDeleteable
#define WPPalette_wpQueryCoreRecord WPObject_wpQueryCoreRecord
#define WPPalette_wpSetObjectID WPObject_wpSetObjectID
#define WPPalette_wpQueryObjectID WPObject_wpQueryObjectID
#define WPPalette_wpSetDefaultIconPos WPObject_wpSetDefaultIconPos
#define WPPalette_wpQueryDefaultIconPos WPObject_wpQueryDefaultIconPos
#define WPPalette_wpCnrRefreshDetails WPObject_wpCnrRefreshDetails
#define WPPalette_wpFindViewItem WPObject_wpFindViewItem
#define WPPalette_wpLockObject WPObject_wpLockObject
#define WPPalette_wpIsLocked WPObject_wpIsLocked
#define WPPalette_wpQueryContainerFlagPtr WPObject_wpQueryContainerFlagPtr
#define WPPalette_wpWaitForClose WPObject_wpWaitForClose
#define WPPalette_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define WPPalette_somDefaultAssign SOMObject_somDefaultAssign
#define WPPalette_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define WPPalette_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define WPPalette_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define WPPalette_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define WPPalette_somDefaultVAssign SOMObject_somDefaultVAssign
#define WPPalette_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define WPPalette_somInit SOMObject_somInit
#define WPPalette_somFree SOMObject_somFree
#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_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 bindings for IDL types
 */


/*
 * End of bindings for IDL 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
#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);

/*
 * Declare the class data structure
 */
SOMEXTERN struct M_WPPaletteClassDataStructure {
	SOMClass *classObject;
	somMToken wpclsQueryEditString;
} SOMDLINK M_WPPaletteClassData;

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct M_WPPaletteCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOMDLINK M_WPPaletteCClassData;

/*
 * New and Renew macros for M_WPPalette
 */
#define M_WPPaletteNew() \
   (_somNew(_M_WPPalette ? _M_WPPalette : M_WPPaletteNewClass(M_WPPalette_MajorVersion, M_WPPalette_MinorVersion)))
#define M_WPPaletteRenew(buf) \
   (_somRenew(_M_WPPalette ? _M_WPPalette : M_WPPaletteNewClass(M_WPPalette_MajorVersion, M_WPPalette_MinorVersion), 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);
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_wpclsQuerySetting M_WPAbstract_wpclsQuerySetting
#define M_WPPalette_wpclsSetSetting M_WPAbstract_wpclsSetSetting
#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_wpclsDecUsage M_WPObject_wpclsDecUsage
#define M_WPPalette_wpclsIncUsage M_WPObject_wpclsIncUsage
#define M_WPPalette_wpclsInsertMultipleObjects M_WPObject_wpclsInsertMultipleObjects
#define M_WPPalette_wpclsFindOneObject M_WPObject_wpclsFindOneObject
#define M_WPPalette_wpclsSetSettingsPageSize M_WPObject_wpclsSetSettingsPageSize
#define M_WPPalette_wpclsSetIconData M_WPObject_wpclsSetIconData
#define M_WPPalette_wpclsSetIcon M_WPObject_wpclsSetIcon
#define M_WPPalette_wpclsObjectFromHandle M_WPObject_wpclsObjectFromHandle
#define M_WPPalette_wpclsRemoveObjects M_WPObject_wpclsRemoveObjects
#define M_WPPalette__get_somDataAlignment SOMClass__get_somDataAlignment
#define M_WPPalette__get_somInstanceDataOffsets SOMClass__get_somInstanceDataOffsets
#define M_WPPalette__get_somDirectInitClasses SOMClass__get_somDirectInitClasses
#define M_WPPalette__set_somDirectInitClasses SOMClass__set_somDirectInitClasses
#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_somAllocate SOMClass_somAllocate
#define M_WPPalette_somDeallocate SOMClass_somDeallocate
#define M_WPPalette_somGetInstanceInitMask SOMClass_somGetInstanceInitMask
#define M_WPPalette_somGetInstanceDestructionMask SOMClass_somGetInstanceDestructionMask
#define M_WPPalette_somGetInstanceAssignmentMask SOMClass_somGetInstanceAssignmentMask
#define M_WPPalette_somInitClass SOMClass_somInitClass
#define M_WPPalette_somInitMIClass SOMClass_somInitMIClass
#define M_WPPalette_somAddStaticMethod SOMClass_somAddStaticMethod
#define M_WPPalette_somAddDynamicMethod SOMClass_somAddDynamicMethod
#define M_WPPalette_somOverrideSMethod SOMClass_somOverrideSMethod
#define M_WPPalette_somClassReady SOMClass_somClassReady
#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_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_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_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_somCheckVersion SOMClass_somCheckVersion
#define M_WPPalette_somDescendedFrom SOMClass_somDescendedFrom
#define M_WPPalette_somSupportsMethod SOMClass_somSupportsMethod
#define M_WPPalette_somDefinedMethod SOMClass_somDefinedMethod
#define M_WPPalette_somOverrideMtab SOMClass_somOverrideMtab
#define M_WPPalette_somDefaultInit SOMObject_somDefaultInit
#define M_WPPalette_somDestruct SOMObject_somDestruct
#define M_WPPalette_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define M_WPPalette_somDefaultAssign SOMObject_somDefaultAssign
#define M_WPPalette_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define M_WPPalette_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define M_WPPalette_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define M_WPPalette_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define M_WPPalette_somDefaultVAssign SOMObject_somDefaultVAssign
#define M_WPPalette_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define M_WPPalette_somInit SOMObject_somInit
#define M_WPPalette_somFree SOMObject_somFree
#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_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 */
