home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / H / WPPALET.XH < prev    next >
Text File  |  1995-08-30  |  100KB  |  3,761 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: wppalet.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.29.1.2
  7.  *     SOM Emitter emitxh: 2.41
  8.  */
  9.  
  10. /*
  11.  *   Module Header
  12.  * 
  13.  *   Module Name: WPPALET
  14.  * 
  15.  *   OS/2 Presentation Manager Workplace class definitions
  16.  * 
  17.  *   Copyright (c) International Business Machines Corporation 1991, 1992
  18.  * 
  19.  */
  20.  
  21.  
  22. #ifndef SOM_WPPalette_xh
  23. #define SOM_WPPalette_xh
  24.  
  25. class WPPalette;
  26.  
  27. #define WPPalette_MajorVersion 1
  28. #define WPPalette_MinorVersion 2
  29.  
  30. /* C++ SOM defs */
  31. #include <somcls.xh>
  32. #include <somcm.xh>
  33.  
  34. /* C++ parent defs */
  35. #ifndef SOM_WPAbstract_xh
  36. #include <wpabs.xh>
  37. #endif
  38.  
  39. #ifndef WPPalette_API
  40. #define WPPalette_API
  41. /*
  42.  * -- The Class API
  43.  */
  44.  
  45. /*
  46.  * Start of user-defined types:
  47.  */
  48. class SOMClass;
  49. class SOMObject;
  50. class WPFolder;
  51. class M_WPObject;
  52. class WPObject;
  53. class M_WPAbstract;
  54. class M_WPPalette;
  55.  
  56. /*
  57.  * End of user-defined types.
  58.  */
  59.  
  60. /*
  61.  * Passthru lines: File: "C.xh", "after"
  62.  */
  63.  
  64.       /*
  65.        *  Open view for the wpOpen() method
  66.        */
  67.  
  68.       #define OPEN_PALETTE       121
  69.  
  70.       /*
  71.        *  Palette save-restore keys
  72.        */
  73.  
  74.       #define IDKEY_PALXCELLCOUNT      1000
  75.       #define IDKEY_PALYCELLCOUNT      1001
  76.       #define IDKEY_PALXCELLWIDTH      1002
  77.       #define IDKEY_PALYCELLHEIGHT     1003
  78.       #define IDKEY_PALXGAP            1004
  79.       #define IDKEY_PALYGAP            1005
  80.       #define IDKEY_PALSCREENSIZEX     1006
  81.       #define IDKEY_PALSCREENSIZEY     1007
  82.       #define IDKEY_PALCELLDATA_FIRST  1050
  83.  
  84.       /*
  85.        *  Default palette information
  86.        */
  87.  
  88.       #define DEF_XCELLCOUNT      13                                           //jrb79998
  89.       #define DEF_YCELLCOUNT      9                                            //jrb79998
  90.  
  91.       /*
  92.        *  Variables kept for each open palette window as
  93.        *  a structure pointed to by the QWL_USER window
  94.        *  word ...
  95.        */
  96.  
  97.       typedef struct _CELL
  98.       {
  99.          ULONG       cbData;           /* Size of the data that follows */
  100.  
  101.          /* Class specific cell data follows immediately afterwards -
  102.           * for example the font palette would store the ASCII name of
  103.           * the font, and the color palette would store the RGB color
  104.           * of the cell.
  105.           */
  106.       } CELL;
  107.       typedef CELL *PCELL;
  108.  
  109.       typedef struct _PALINFO
  110.       {
  111.          ULONG       xCellCount;       /* Number of columns of cells */
  112.          ULONG       yCellCount;       /* Number of rows of cells */
  113.          ULONG       xCursor;          /* Cursor location (readonly) */
  114.          ULONG       yCursor;          /* Cursor location (readonly) */
  115.          ULONG       xCellWidth;       /* Width of each cell */
  116.          ULONG       yCellHeight;      /* Height of each cell */
  117.          ULONG       xGap;             /* X separation of cells */
  118.          ULONG       yGap;             /* Y separation of cells */
  119.       } PALINFO;
  120.       typedef PALINFO *PPALINFO;
  121.  
  122.       #define SetPaletteDataPtr( hwnd, pPaletteData ) \
  123.            WinSetWindowULong( hwnd, QWL_USER, (ULONG)pPaletteData )
  124.  
  125.       #define QueryPaletteDataPtr( hwnd ) \
  126.            (PPALETTEDATA)WinQueryWindowULong( hwnd, QWL_USER )
  127.  
  128.       typedef struct _PALETTEDATA
  129.       {
  130.          WPFolder   *Palette;          /* Folder object for this window */
  131.          USEITEM     UseItem;          /* Folder object's INUSE list item */
  132.          VIEWITEM    ViewItem;
  133.          ULONG       xCursor;
  134.          ULONG       yCursor;
  135.       } PALETTEDATA;
  136.       typedef PALETTEDATA *PPALETTEDATA;
  137.  
  138.       typedef struct _CELLSTRUCT
  139.       {
  140.          RECTL       rclCell;          /* Cell coordinates */
  141.          PCELL       pCell;            /* Cell data pointer */
  142.       } CELLSTRUCT;
  143.       typedef CELLSTRUCT *PCELLSTRUCT;
  144.       /*
  145.        *  Miscellaneous
  146.        */
  147.  
  148.       #define PM_INVALIDATECELL WM_USER+1000
  149.  
  150.       /* Macros that act on a PALINFO...
  151.        */
  152.       #define PALETTE_WIDTH(p)  ( p.xCellCount*(p.xCellWidth+p.xGap) )
  153.       #define PALETTE_HEIGHT(p) ( p.yCellCount*(p.yCellHeight+p.yGap) )
  154.       #define ID_PALSCROLLHORZ     8091
  155.       #define ID_PALSCROLLVERT     8092
  156.  
  157.       /* Coordinates (these are in DIALOG UNITS)
  158.        */
  159.       #define CXBUTTON          12       /* Width of a button (with no text) */
  160.       #define CYBUTTON          12       /* Height of a button */
  161.       #define XBUTTONGAP        6
  162.       #define YBUTTONGAP        4
  163.       #define CYBUTTONAREA      (CYBUTTON + 2*YBUTTONGAP)
  164.       #define DEF_XCELLWIDTH    10                                             //jrb88724
  165.       #define DEF_YCELLHEIGHT   6                                              //jrb88724
  166.       #define DEF_XCELLGAP      4                                              //jrb88724
  167.       #define DEF_YCELLGAP      4                                              //jrb88724
  168.  
  169.  
  170.  
  171. /* A procedure to create the WPPalette Class */
  172. class M_WPPalette;
  173. SOMEXTERN M_WPPalette * SOMLINK WPPaletteNewClass(
  174.         integer4 majorVersion,
  175.         integer4 minorVersion);
  176.  
  177. /* The API to the WPPalette class object, and the methods it introduces. */
  178. SOMEXTERN struct WPPaletteClassDataStructure {
  179.     M_WPPalette *classObject;
  180.     somMToken wpPaintCell;
  181.     somMToken wpSelectCell;
  182.     somMToken wpSetupCell;
  183.     somMToken wpQueryPaletteInfo;
  184.     somMToken wpSetPaletteInfo;
  185.     somMToken wpEditCell;
  186.     somMToken wpDragCell;
  187.     somMToken withdrawn;
  188.     somMToken wpInitCellStructs;
  189.     somMToken wpRedrawCell;
  190.     somMToken wpPaintPalette;
  191.     somMToken wpMouseAction;
  192.     somMToken wpQueryPaletteHelp;
  193.     somMToken wpShowPalettePointer;
  194.     somMToken wpSaveCellData;
  195.     somMToken wpRestoreCellData;
  196. } SOMDLINK WPPaletteClassData;
  197. #define _WPPalette WPPaletteClassData.classObject
  198.  
  199. /* The API to parentMtabs for WPPalette, and the instance data it introduces. */
  200. SOMEXTERN struct WPPaletteCClassDataStructure {
  201.     somMethodTabs parentMtab;
  202.     somDToken              instanceDataToken;
  203. } SOMDLINK WPPaletteCClassData;
  204.  
  205. /*
  206.  * -- Typedefs for WPPalette Method Procedures
  207.  */
  208. SOMEXTERN {
  209. typedef void   (SOMLINK * somTD_WPPalette_wpPaintCell)(WPPalette *somSelf,
  210.         PCELL pCell,
  211.         HPS hps,
  212.         PRECTL prcl,
  213.         BOOL fHilite);
  214. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSetupCell)(WPPalette *somSelf,
  215.         PVOID pCellData,
  216.         ULONG cb,
  217.         ULONG x,
  218.         ULONG y);
  219. typedef BOOL   (SOMLINK * somTD_WPPalette_wpRedrawCell)(WPPalette *somSelf,
  220.         PCELL pCell);
  221. typedef BOOL   (SOMLINK * somTD_WPPalette_wpQueryPaletteInfo)(WPPalette *somSelf,
  222.         PPALINFO pPalInfo);
  223. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSetPaletteInfo)(WPPalette *somSelf,
  224.         PPALINFO pPalInfo);
  225. typedef BOOL   (SOMLINK * somTD_WPPalette_wpEditCell)(WPPalette *somSelf,
  226.         PCELL pCell,
  227.         HWND hwndPal);
  228. typedef BOOL   (SOMLINK * somTD_WPPalette_wpDragCell)(WPPalette *somSelf,
  229.         PCELL pCell,
  230.         HWND hwndPal,
  231.         PPOINTL ptlDrag);
  232. typedef ULONG   (SOMLINK * somTD_WPPalette_wpQueryPaletteHelp)(WPPalette *somSelf);
  233. typedef void   (SOMLINK * somTD_WPPalette_wpSelectCell)(WPPalette *somSelf,
  234.         HWND hwndPal,
  235.         PCELL pCell);
  236. typedef void   (SOMLINK * somTD_WPPalette_wpPaintPalette)(WPPalette *somSelf,
  237.         HPS hps,
  238.         PRECTL prcl);
  239. typedef BOOL   (SOMLINK * somTD_WPPalette_wpInitCellStructs)(WPPalette *somSelf);
  240. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSaveCellData)(WPPalette *somSelf,
  241.         PCELL pCell,
  242.         ULONG ulIndex);
  243. typedef BOOL   (SOMLINK * somTD_WPPalette_wpRestoreCellData)(WPPalette *somSelf,
  244.         PCELL* pCell,
  245.         ULONG ulIndex,
  246.         ULONG ulCellSize);
  247.  
  248. /*
  249.  * -- Typedefs for Reintroduced Wrapper Methods
  250.  */
  251. typedef HOBJECT   (SOMLINK * somTD_WPPalette_wpQueryHandle)(WPPalette *somSelf);
  252. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSaveImmediate)(WPPalette *somSelf);
  253. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSaveState)(WPPalette *somSelf);
  254. typedef BOOL   (SOMLINK * somTD_WPPalette_wpRestoreState)(WPPalette *somSelf,
  255.         ULONG ulReserved);
  256. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSetTitle)(WPPalette *somSelf,
  257.         PSZ pszNewTitle);
  258. typedef WPObject*   (SOMLINK * somTD_WPPalette_wpCopyObject)(WPPalette *somSelf,
  259.         WPFolder* Folder,
  260.         BOOL fLock);
  261. typedef BOOL   (SOMLINK * somTD_WPPalette_wpMoveObject)(WPPalette *somSelf,
  262.         WPFolder* Folder);
  263. typedef HPOINTER   (SOMLINK * somTD_WPPalette_wpQueryIcon)(WPPalette *somSelf);
  264. typedef ULONG   (SOMLINK * somTD_WPPalette_wpQueryIconData)(WPPalette *somSelf,
  265.         PICONINFO pIconInfo);
  266. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSetIconData)(WPPalette *somSelf,
  267.         PICONINFO pIconInfo);
  268. typedef MRESULT   (SOMLINK * somTD_WPPalette_wpDragOver)(WPPalette *somSelf,
  269.         HWND hwndCnr,
  270.         PDRAGINFO pdrgInfo);
  271. typedef BOOL32   (SOMLINK * somTD_WPPalette_wpReplaceObject)(WPPalette *somSelf,
  272.         WPObject* targetObject,
  273.         BOOL32 fMove);
  274. typedef ULONG   (SOMLINK * somTD_WPPalette_wpQueryNameClashOptions)(WPPalette *somSelf,
  275.         ULONG menuID);
  276. typedef void   (SOMLINK * somTD_WPPalette_somDefaultInit)(WPPalette *somSelf,
  277.         somInitCtrl* ctrl);
  278. typedef void   (SOMLINK * somTD_WPPalette_somDestruct)(WPPalette *somSelf,
  279.         octet doFree,
  280.         somDestructCtrl* ctrl);
  281. typedef ULONG   (SOMLINK * somTD_WPPalette_wpAddObjectGeneralPage)(WPPalette *somSelf,
  282.         HWND hwndNotebook);
  283. typedef ULONG   (SOMLINK * somTD_WPPalette_wpAddObjectGeneralPage2)(WPPalette *somSelf,
  284.         HWND hwndNotebook);
  285. typedef ULONG   (SOMLINK * somTD_WPPalette_wpAddObjectWindowPage)(WPPalette *somSelf,
  286.         HWND hwndNotebook);
  287. typedef BOOL   (SOMLINK * somTD_WPPalette_wpAddSettingsPages)(WPPalette *somSelf,
  288.         HWND hwndNotebook);
  289. typedef BOOL   (SOMLINK * somTD_WPPalette_wpAddToObjUseList)(WPPalette *somSelf,
  290.         PUSEITEM pUseItem);
  291. typedef PBYTE   (SOMLINK * somTD_WPPalette_wpAllocMem)(WPPalette *somSelf,
  292.         ULONG cbBytes,
  293.         PULONG prc);
  294. typedef BOOL32   (SOMLINK * somTD_WPPalette_wpAppendObject)(WPPalette *somSelf,
  295.         WPObject* targetObject,
  296.         BOOL32 fMove);
  297. typedef BOOL   (SOMLINK * somTD_WPPalette_wpAssertObjectMutexSem)(WPPalette *somSelf);
  298. typedef BOOL   (SOMLINK * somTD_WPPalette_wpClose)(WPPalette *somSelf);
  299. typedef PMINIRECORDCORE   (SOMLINK * somTD_WPPalette_wpCnrInsertObject)(WPPalette *somSelf,
  300.         HWND hwndCnr,
  301.         PPOINTL pptlIcon,
  302.         PMINIRECORDCORE preccParent,
  303.         PRECORDINSERT pRecInsert);
  304. typedef BOOL   (SOMLINK * somTD_WPPalette_wpCnrRemoveObject)(WPPalette *somSelf,
  305.         HWND hwndCnr);
  306. typedef BOOL   (SOMLINK * somTD_WPPalette_wpCnrSetEmphasis)(WPPalette *somSelf,
  307.         ULONG ulEmphasisAttr,
  308.         BOOL fTurnOn);
  309. typedef ULONG   (SOMLINK * somTD_WPPalette_wpConfirmDelete)(WPPalette *somSelf,
  310.         ULONG fConfirmations);
  311. typedef ULONG   (SOMLINK * somTD_WPPalette_wpConfirmObjectTitle)(WPPalette *somSelf,
  312.         WPFolder* Folder,
  313.         WPObject** ppDuplicate,
  314.         PSZ pszTitle,
  315.         ULONG cbTitle,
  316.         ULONG menuID);
  317. typedef void   (SOMLINK * somTD_WPPalette_wpCopiedFromTemplate)(WPPalette *somSelf);
  318. typedef WPObject*   (SOMLINK * somTD_WPPalette_wpCreateAnother)(WPPalette *somSelf,
  319.         PSZ pszTitle,
  320.         PSZ pszSetupEnv,
  321.         WPFolder* Folder);
  322. typedef WPObject*   (SOMLINK * somTD_WPPalette_wpCreateFromTemplate)(WPPalette *somSelf,
  323.         WPFolder* folder,
  324.         BOOL fLock);
  325. typedef WPObject*   (SOMLINK * somTD_WPPalette_wpCreateShadowObject)(WPPalette *somSelf,
  326.         WPFolder* Folder,
  327.         BOOL fLock);
  328. typedef ULONG   (SOMLINK * somTD_WPPalette_wpDelete)(WPPalette *somSelf,
  329.         ULONG fConfirmations);
  330. typedef BOOL   (SOMLINK * somTD_WPPalette_wpDeleteFromObjUseList)(WPPalette *somSelf,
  331.         PUSEITEM pUseItem);
  332. typedef BOOL   (SOMLINK * somTD_WPPalette_wpDisplayHelp)(WPPalette *somSelf,
  333.         ULONG HelpPanelId,
  334.         PSZ HelpLibrary);
  335. typedef HWND   (SOMLINK * somTD_WPPalette_wpDisplayMenu)(WPPalette *somSelf,
  336.         HWND hwndOwner,
  337.         HWND hwndClient,
  338.         POINTL* ptlPopupPt,
  339.         ULONG ulMenuType,
  340.         ULONG ulReserved);
  341. typedef BOOL   (SOMLINK * somTD_WPPalette_wpDoesObjectMatch)(WPPalette *somSelf,
  342.         PVOID pvoidExtendedCriteria);
  343. typedef MRESULT   (SOMLINK * somTD_WPPalette_wpDraggedOverObject)(WPPalette *somSelf,
  344.         WPObject* DraggedOverObject);
  345. typedef MRESULT   (SOMLINK * somTD_WPPalette_wpDrop)(WPPalette *somSelf,
  346.         HWND hwndCnr,
  347.         PDRAGINFO pdrgInfo,
  348.         PDRAGITEM pdrgItem);
  349. typedef BOOL   (SOMLINK * somTD_WPPalette_wpDroppedOnObject)(WPPalette *somSelf,
  350.         WPObject* DroppedOnObject);
  351. typedef MRESULT   (SOMLINK * somTD_WPPalette_wpEndConversation)(WPPalette *somSelf,
  352.         ULONG ulItemID,
  353.         ULONG flResult);
  354. typedef ULONG   (SOMLINK * somTD_WPPalette_wpFilterPopupMenu)(WPPalette *somSelf,
  355.         ULONG ulFlags,
  356.         HWND hwndCnr,
  357.         BOOL fMultiSelect);
  358. typedef PUSEITEM   (SOMLINK * somTD_WPPalette_wpFindUseItem)(WPPalette *somSelf,
  359.         ULONG type,
  360.         PUSEITEM pCurrentItem);
  361. typedef BOOL   (SOMLINK * somTD_WPPalette_wpFormatDragItem)(WPPalette *somSelf,
  362.         PDRAGITEM pdrgItem);
  363. typedef BOOL   (SOMLINK * somTD_WPPalette_wpFree)(WPPalette *somSelf);
  364. typedef BOOL   (SOMLINK * somTD_WPPalette_wpFreeMem)(WPPalette *somSelf,
  365.         PBYTE pByte);
  366. typedef BOOL   (SOMLINK * somTD_WPPalette_wpHide)(WPPalette *somSelf);
  367. typedef void   (SOMLINK * somTD_WPPalette_wpInitData)(WPPalette *somSelf);
  368. typedef BOOL   (SOMLINK * somTD_WPPalette_wpInsertPopupMenuItems)(WPPalette *somSelf,
  369.         HWND hwndMenu,
  370.         ULONG iPosition,
  371.         HMODULE hmod,
  372.         ULONG MenuID,
  373.         ULONG SubMenuID);
  374. typedef ULONG   (SOMLINK * somTD_WPPalette_wpInsertSettingsPage)(WPPalette *somSelf,
  375.         HWND hwndNotebook,
  376.         PPAGEINFO ppageinfo);
  377. typedef BOOL   (SOMLINK * somTD_WPPalette_wpMenuItemHelpSelected)(WPPalette *somSelf,
  378.         ULONG MenuId);
  379. typedef BOOL   (SOMLINK * somTD_WPPalette_wpMenuItemSelected)(WPPalette *somSelf,
  380.         HWND hwndFrame,
  381.         ULONG ulMenuId);
  382. typedef BOOL   (SOMLINK * somTD_WPPalette_wpModifyPopupMenu)(WPPalette *somSelf,
  383.         HWND hwndMenu,
  384.         HWND hwndCnr,
  385.         ULONG iPosition);
  386. typedef HWND   (SOMLINK * somTD_WPPalette_wpOpen)(WPPalette *somSelf,
  387.         HWND hwndCnr,
  388.         ULONG ulView,
  389.         ULONG param);
  390. typedef BOOL   (SOMLINK * somTD_WPPalette_wpPrintObject)(WPPalette *somSelf,
  391.         PPRINTDEST pPrintDest,
  392.         ULONG ulReserved);
  393. typedef ULONG   (SOMLINK * somTD_WPPalette_wpQueryConcurrentView)(WPPalette *somSelf);
  394. typedef ULONG   (SOMLINK * somTD_WPPalette_wpQueryButtonAppearance)(WPPalette *somSelf);
  395. typedef ULONG   (SOMLINK * somTD_WPPalette_wpQueryConfirmations)(WPPalette *somSelf);
  396. typedef BOOL   (SOMLINK * somTD_WPPalette_wpQueryDefaultHelp)(WPPalette *somSelf,
  397.         PULONG pHelpPanelId,
  398.         PSZ HelpLibrary);
  399. typedef ULONG   (SOMLINK * somTD_WPPalette_wpQueryDefaultView)(WPPalette *somSelf);
  400. typedef ULONG   (SOMLINK * somTD_WPPalette_wpQueryDetailsData)(WPPalette *somSelf,
  401.         PVOID* ppDetailsData,
  402.         PULONG pcp);
  403. typedef ULONG   (SOMLINK * somTD_WPPalette_wpQueryError)(WPPalette *somSelf);
  404. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSetFolder)(WPPalette *somSelf,
  405.         WPObject* container);
  406. typedef WPObject*   (SOMLINK * somTD_WPPalette_wpQueryFolder)(WPPalette *somSelf);
  407. typedef ULONG   (SOMLINK * somTD_WPPalette_wpQueryMinWindow)(WPPalette *somSelf);
  408. typedef ULONG   (SOMLINK * somTD_WPPalette_wpQueryStyle)(WPPalette *somSelf);
  409. typedef BOOL32   (SOMLINK * somTD_WPPalette_wpSetTaskRec)(WPPalette *somSelf,
  410.         PTASKREC pNew,
  411.         PTASKREC pOld);
  412. typedef PTASKREC   (SOMLINK * somTD_WPPalette_wpFindTaskRec)(WPPalette *somSelf);
  413. typedef PSZ   (SOMLINK * somTD_WPPalette_wpQueryTitle)(WPPalette *somSelf);
  414. typedef BOOL   (SOMLINK * somTD_WPPalette_wpRegisterView)(WPPalette *somSelf,
  415.         HWND hwndFrame,
  416.         PSZ pszViewTitle);
  417. typedef ULONG   (SOMLINK * somTD_WPPalette_wpReleaseObjectMutexSem)(WPPalette *somSelf);
  418. typedef MRESULT   (SOMLINK * somTD_WPPalette_wpRender)(WPPalette *somSelf,
  419.         PDRAGTRANSFER pdxfer);
  420. typedef MRESULT   (SOMLINK * somTD_WPPalette_wpRenderComplete)(WPPalette *somSelf,
  421.         PDRAGTRANSFER pdxfer,
  422.         ULONG ulResult);
  423. typedef ULONG   (SOMLINK * somTD_WPPalette_wpRequestObjectMutexSem)(WPPalette *somSelf,
  424.         ULONG ulTimeout);
  425. typedef BOOL   (SOMLINK * somTD_WPPalette_wpRestore)(WPPalette *somSelf);
  426. typedef BOOL   (SOMLINK * somTD_WPPalette_wpRestoreData)(WPPalette *somSelf,
  427.         PSZ pszClass,
  428.         ULONG ulKey,
  429.         PBYTE pValue,
  430.         PULONG pcbValue);
  431. typedef BOOL   (SOMLINK * somTD_WPPalette_wpRestoreLong)(WPPalette *somSelf,
  432.         PSZ pszClass,
  433.         ULONG ulKey,
  434.         PULONG pulValue);
  435. typedef BOOL   (SOMLINK * somTD_WPPalette_wpRestoreString)(WPPalette *somSelf,
  436.         PSZ pszClass,
  437.         ULONG ulKey,
  438.         PSZ pszValue,
  439.         PULONG pcbValue);
  440. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSaveData)(WPPalette *somSelf,
  441.         PSZ pszClass,
  442.         ULONG ulKey,
  443.         PBYTE pValue,
  444.         ULONG cbValue);
  445. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSaveDeferred)(WPPalette *somSelf);
  446. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSaveLong)(WPPalette *somSelf,
  447.         PSZ pszClass,
  448.         ULONG ulKey,
  449.         ULONG ulValue);
  450. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSaveString)(WPPalette *somSelf,
  451.         PSZ pszClass,
  452.         ULONG ulKey,
  453.         PSZ pszValue);
  454. typedef BOOL   (SOMLINK * somTD_WPPalette_wpScanSetupString)(WPPalette *somSelf,
  455.         PSZ pszSetupString,
  456.         PSZ pszKey,
  457.         PSZ pszValue,
  458.         PULONG pcbValue);
  459. typedef void   (SOMLINK * somTD_WPPalette_wpSetConcurrentView)(WPPalette *somSelf,
  460.         ULONG ulCCView);
  461. typedef void   (SOMLINK * somTD_WPPalette_wpSetButtonAppearance)(WPPalette *somSelf,
  462.         ULONG ulButtonType);
  463. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSetDefaultHelp)(WPPalette *somSelf,
  464.         ULONG HelpPanelId,
  465.         PSZ HelpLibrary);
  466. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSetDefaultView)(WPPalette *somSelf,
  467.         ULONG ulView);
  468. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSetError)(WPPalette *somSelf,
  469.         ULONG ulErrorId);
  470. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSetIconHandle)(WPPalette *somSelf,
  471.         HPOINTER hptrNewIcon);
  472. typedef USHORT   (SOMLINK * somTD_WPPalette_wpQueryScreenGroupID)(WPPalette *somSelf,
  473.         USHORT usPrevSgId);
  474. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSetupOnce)(WPPalette *somSelf,
  475.         PSZ pszSetupString);
  476. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSetIcon)(WPPalette *somSelf,
  477.         HPOINTER hptrNewIcon);
  478. typedef void   (SOMLINK * somTD_WPPalette_wpSetMinWindow)(WPPalette *somSelf,
  479.         ULONG ulMinWindow);
  480. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSetStyle)(WPPalette *somSelf,
  481.         ULONG ulNewStyle);
  482. typedef BOOL   (SOMLINK * somTD_WPPalette_wpModifyStyle)(WPPalette *somSelf,
  483.         ULONG ulStyleFlags,
  484.         ULONG ulStyleMask);
  485. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSetup)(WPPalette *somSelf,
  486.         PSZ pszSetupString);
  487. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSwitchTo)(WPPalette *somSelf,
  488.         ULONG View);
  489. typedef void   (SOMLINK * somTD_WPPalette_wpUnInitData)(WPPalette *somSelf);
  490. typedef HWND   (SOMLINK * somTD_WPPalette_wpViewObject)(WPPalette *somSelf,
  491.         HWND hwndCnr,
  492.         ULONG ulView,
  493.         ULONG param);
  494. typedef ULONG   (SOMLINK * somTD_WPPalette_wpQueryTrueStyle)(WPPalette *somSelf);
  495. typedef BOOL   (SOMLINK * somTD_WPPalette_wpUnlockObject)(WPPalette *somSelf);
  496. typedef void   (SOMLINK * somTD_WPPalette_wpObjectReady)(WPPalette *somSelf,
  497.         ULONG ulCode,
  498.         WPObject* refObject);
  499. typedef BOOL   (SOMLINK * somTD_WPPalette_wpIsObjectInitialized)(WPPalette *somSelf);
  500. typedef WPObject*   (SOMLINK * somTD_WPPalette_wpCreateShadowObjectExt)(WPPalette *somSelf,
  501.         WPFolder* Folder,
  502.         BOOL fLock,
  503.         PSZ pszSetup,
  504.         M_WPObject* shadowClass);
  505. typedef BOOL   (SOMLINK * somTD_WPPalette_wpCnrDeleteUseItem)(WPPalette *somSelf,
  506.         HWND hwndCnr);
  507. typedef BOOL   (SOMLINK * somTD_WPPalette_wpIsDeleteable)(WPPalette *somSelf);
  508. typedef PMINIRECORDCORE   (SOMLINK * somTD_WPPalette_wpQueryCoreRecord)(WPPalette *somSelf);
  509. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSetObjectID)(WPPalette *somSelf,
  510.         PSZ pszObjectID);
  511. typedef PSZ   (SOMLINK * somTD_WPPalette_wpQueryObjectID)(WPPalette *somSelf);
  512. typedef BOOL   (SOMLINK * somTD_WPPalette_wpSetDefaultIconPos)(WPPalette *somSelf,
  513.         PPOINTL pPointl);
  514. typedef BOOL   (SOMLINK * somTD_WPPalette_wpQueryDefaultIconPos)(WPPalette *somSelf,
  515.         PPOINTL pPointl);
  516. typedef void   (SOMLINK * somTD_WPPalette_wpCnrRefreshDetails)(WPPalette *somSelf);
  517. typedef PVIEWITEM   (SOMLINK * somTD_WPPalette_wpFindViewItem)(WPPalette *somSelf,
  518.         ULONG flViews,
  519.         PVIEWITEM pCurrentItem);
  520. typedef void   (SOMLINK * somTD_WPPalette_wpLockObject)(WPPalette *somSelf);
  521. typedef BOOL   (SOMLINK * somTD_WPPalette_wpIsLocked)(WPPalette *somSelf);
  522. typedef PULONG   (SOMLINK * somTD_WPPalette_wpQueryContainerFlagPtr)(WPPalette *somSelf);
  523. typedef ULONG   (SOMLINK * somTD_WPPalette_wpWaitForClose)(WPPalette *somSelf,
  524.         LHANDLE lhView,
  525.         ULONG ulViews,
  526.         long lTimeOut,
  527.         BOOL bAutoClose);
  528. typedef void   (SOMLINK * somTD_WPPalette_somInit)(WPPalette *somSelf);
  529. typedef void   (SOMLINK * somTD_WPPalette_somUninit)(WPPalette *somSelf);
  530. typedef void   (SOMLINK * somTD_WPPalette_somDefaultCopyInit)(WPPalette *somSelf,
  531.         somInitCtrl* ctrl,
  532.         SOMObject* fromObj);
  533. typedef WPPalette*   (SOMLINK * somTD_WPPalette_somDefaultAssign)(WPPalette *somSelf,
  534.         somAssignCtrl* ctrl,
  535.         SOMObject* fromObj);
  536. typedef void   (SOMLINK * somTD_WPPalette_somDefaultConstCopyInit)(WPPalette *somSelf,
  537.         somInitCtrl* ctrl,
  538.         SOMObject* fromObj);
  539. typedef void   (SOMLINK * somTD_WPPalette_somDefaultVCopyInit)(WPPalette *somSelf,
  540.         somInitCtrl* ctrl,
  541.         SOMObject* fromObj);
  542. typedef void   (SOMLINK * somTD_WPPalette_somDefaultConstVCopyInit)(WPPalette *somSelf,
  543.         somInitCtrl* ctrl,
  544.         SOMObject* fromObj);
  545. typedef WPPalette*   (SOMLINK * somTD_WPPalette_somDefaultConstAssign)(WPPalette *somSelf,
  546.         somAssignCtrl* ctrl,
  547.         SOMObject* fromObj);
  548. typedef WPPalette*   (SOMLINK * somTD_WPPalette_somDefaultVAssign)(WPPalette *somSelf,
  549.         somAssignCtrl* ctrl,
  550.         SOMObject* fromObj);
  551. typedef WPPalette*   (SOMLINK * somTD_WPPalette_somDefaultConstVAssign)(WPPalette *somSelf,
  552.         somAssignCtrl* ctrl,
  553.         SOMObject* fromObj);
  554. typedef void   (SOMLINK * somTD_WPPalette_somFree)(WPPalette *somSelf);
  555. typedef M_WPPalette*   (SOMLINK * somTD_WPPalette_somGetClass)(WPPalette *somSelf);
  556. typedef string   (SOMLINK * somTD_WPPalette_somGetClassName)(WPPalette *somSelf);
  557. typedef long   (SOMLINK * somTD_WPPalette_somGetSize)(WPPalette *somSelf);
  558. typedef boolean   (SOMLINK * somTD_WPPalette_somIsA)(WPPalette *somSelf,
  559.         SOMClass* aClassObj);
  560. typedef boolean   (SOMLINK * somTD_WPPalette_somIsInstanceOf)(WPPalette *somSelf,
  561.         SOMClass* aClassObj);
  562. typedef boolean   (SOMLINK * somTD_WPPalette_somRespondsTo)(WPPalette *somSelf,
  563.         somId mId);
  564. typedef boolean   (SOMLINK * somTD_WPPalette_somDispatch)(WPPalette *somSelf,
  565.         somToken* retValue,
  566.         somId methodId,
  567.         va_list ap);
  568. typedef boolean   (SOMLINK * somTD_WPPalette_somClassDispatch)(WPPalette *somSelf,
  569.         SOMClass* clsObj,
  570.         somToken* retValue,
  571.         somId methodId,
  572.         va_list ap);
  573. typedef boolean   (SOMLINK * somTD_WPPalette_somCastObj)(WPPalette *somSelf,
  574.         SOMClass* cls);
  575. typedef boolean   (SOMLINK * somTD_WPPalette_somResetObj)(WPPalette *somSelf);
  576. typedef void   (SOMLINK * somTD_WPPalette_somDispatchV)(WPPalette *somSelf,
  577.         somId methodId,
  578.         somId descriptor,
  579.         va_list ap);
  580. typedef long   (SOMLINK * somTD_WPPalette_somDispatchL)(WPPalette *somSelf,
  581.         somId methodId,
  582.         somId descriptor,
  583.         va_list ap);
  584. typedef void*   (SOMLINK * somTD_WPPalette_somDispatchA)(WPPalette *somSelf,
  585.         somId methodId,
  586.         somId descriptor,
  587.         va_list ap);
  588. typedef double   (SOMLINK * somTD_WPPalette_somDispatchD)(WPPalette *somSelf,
  589.         somId methodId,
  590.         somId descriptor,
  591.         va_list ap);
  592. typedef SOMObject*   (SOMLINK * somTD_WPPalette_somPrintSelf)(WPPalette *somSelf);
  593. typedef void   (SOMLINK * somTD_WPPalette_somDumpSelf)(WPPalette *somSelf,
  594.         long level);
  595. typedef void   (SOMLINK * somTD_WPPalette_somDumpSelfInt)(WPPalette *somSelf,
  596.         long level);
  597. }
  598.  
  599. #endif /* WPPalette_API */
  600.  
  601.  
  602. /*
  603.  * -- This emitter treats Method Tokens as Thunks by default.
  604.  * -- Use the sc modifier "nothunks" to change this default
  605.  */
  606. #undef somresolve_
  607. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  608.  
  609. /*
  610.  * -- The C++ Wrapper Class for WPPalette
  611.  */
  612. class WPPalette : public WPAbstract
  613. {
  614. public:
  615.  
  616. // WPPalette::new creates the class object if necessary, and then uses somNewNoInit
  617. // to allocate memory and create the object. Initialization is in ctors.
  618. void *operator new(size_t size)
  619. {
  620.    SOM_IgnoreWarning(size);
  621.    if (!_WPPalette) WPPaletteNewClass(WPPalette_MajorVersion,WPPalette_MinorVersion);
  622.    return (void*)
  623.       SOM_Resolve(_WPPalette,SOMClass,somNewNoInit)
  624.          ((SOMClass *)((void*)_WPPalette));
  625. }
  626.  
  627. // WPPalette::delete uses the default deallocator for the object's class.
  628. void operator delete(void * obj)
  629. {
  630.    somToken objCls = obj ? *(void**)obj : (somToken) NULL;
  631.    if (somIsObj(objCls)) {
  632.       SOM_Resolve(objCls,SOMClass,somDeallocate)
  633.          ((SOMClass*)objCls, (string)obj);
  634.    }
  635. }
  636.  
  637. WPPalette()
  638. {
  639.    if (*(void**)this != 
  640.        ((somParentMtabStructPtr)
  641.         (WPPaletteCClassData.parentMtab))->mtab)
  642.       return;
  643.    somDefaultInit(0);
  644. }
  645.  
  646. WPPalette(WPPalette* fromObj)
  647. {
  648.    if (*(void**)this != 
  649.        ((somParentMtabStructPtr)
  650.         (WPPaletteCClassData.parentMtab))->mtab)
  651.       return;
  652.    somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  653. }
  654.  
  655. WPPalette(const WPPalette* fromObj)
  656. {
  657.    if (*(void**)this != 
  658.        ((somParentMtabStructPtr)
  659.         (WPPaletteCClassData.parentMtab))->mtab)
  660.       return;
  661.    somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  662. }
  663.  
  664. ~WPPalette()
  665. {
  666.    if (!somIsObj(this)) return;
  667.    somDestruct(0,0);
  668.    *(void**)this = **(void***)this;
  669. }
  670.  
  671.  
  672. /* method: wpPaintCell */
  673. void   wpPaintCell(PCELL pCell,
  674.         HPS hps,
  675.         PRECTL prcl,
  676.         BOOL fHilite)
  677. {
  678.    SOM_ResolveD(this,WPPalette,WPPalette,wpPaintCell)
  679.     (this,pCell,hps,prcl,fHilite);
  680. }
  681.  
  682.  
  683. /* method: wpSetupCell */
  684. BOOL   wpSetupCell(PVOID pCellData,
  685.         ULONG cb,
  686.         ULONG x,
  687.         ULONG y)
  688. {
  689.    return SOM_ResolveD(this,WPPalette,WPPalette,wpSetupCell)
  690.     (this,pCellData,cb,x,y);
  691. }
  692.  
  693.  
  694. /* method: wpRedrawCell */
  695. BOOL   wpRedrawCell(PCELL pCell)
  696. {
  697.    return SOM_ResolveD(this,WPPalette,WPPalette,wpRedrawCell)
  698.     (this,pCell);
  699. }
  700.  
  701.  
  702. /* method: wpQueryPaletteInfo */
  703. BOOL   wpQueryPaletteInfo(PPALINFO pPalInfo)
  704. {
  705.    return SOM_ResolveD(this,WPPalette,WPPalette,wpQueryPaletteInfo)
  706.     (this,pPalInfo);
  707. }
  708.  
  709.  
  710. /* method: wpSetPaletteInfo */
  711. BOOL   wpSetPaletteInfo(PPALINFO pPalInfo)
  712. {
  713.    return SOM_ResolveD(this,WPPalette,WPPalette,wpSetPaletteInfo)
  714.     (this,pPalInfo);
  715. }
  716.  
  717.  
  718. /* method: wpEditCell */
  719. BOOL   wpEditCell(PCELL pCell,
  720.         HWND hwndPal)
  721. {
  722.    return SOM_ResolveD(this,WPPalette,WPPalette,wpEditCell)
  723.     (this,pCell,hwndPal);
  724. }
  725.  
  726.  
  727. /* method: wpDragCell */
  728. BOOL   wpDragCell(PCELL pCell,
  729.         HWND hwndPal,
  730.         PPOINTL ptlDrag)
  731. {
  732.    return SOM_ResolveD(this,WPPalette,WPPalette,wpDragCell)
  733.     (this,pCell,hwndPal,ptlDrag);
  734. }
  735.  
  736.  
  737. /* method: wpQueryPaletteHelp */
  738. ULONG   wpQueryPaletteHelp()
  739. {
  740.    return SOM_ResolveD(this,WPPalette,WPPalette,wpQueryPaletteHelp)
  741.     (this);
  742. }
  743.  
  744.  
  745. /* method: wpSelectCell */
  746. void   wpSelectCell(HWND hwndPal,
  747.         PCELL pCell)
  748. {
  749.    SOM_ResolveD(this,WPPalette,WPPalette,wpSelectCell)
  750.     (this,hwndPal,pCell);
  751. }
  752.  
  753.  
  754. /* method: wpPaintPalette */
  755. void   wpPaintPalette(HPS hps,
  756.         PRECTL prcl)
  757. {
  758.    SOM_ResolveD(this,WPPalette,WPPalette,wpPaintPalette)
  759.     (this,hps,prcl);
  760. }
  761.  
  762.  
  763. /* method: wpInitCellStructs */
  764. BOOL   wpInitCellStructs()
  765. {
  766.    return SOM_ResolveD(this,WPPalette,WPPalette,wpInitCellStructs)
  767.     (this);
  768. }
  769.  
  770.  
  771. /* method: wpSaveCellData */
  772. BOOL   wpSaveCellData(PCELL pCell,
  773.         ULONG ulIndex)
  774. {
  775.    return SOM_ResolveD(this,WPPalette,WPPalette,wpSaveCellData)
  776.     (this,pCell,ulIndex);
  777. }
  778.  
  779.  
  780. /* method: wpRestoreCellData */
  781. BOOL   wpRestoreCellData(PCELL* pCell,
  782.         ULONG ulIndex,
  783.         ULONG ulCellSize)
  784. {
  785.    return SOM_ResolveD(this,WPPalette,WPPalette,wpRestoreCellData)
  786.     (this,pCell,ulIndex,ulCellSize);
  787. }
  788.  
  789.  
  790. /*
  791.  * Reintroduce inherited methods
  792.  */
  793.  
  794. /* method: wpQueryHandle */
  795. HOBJECT   wpQueryHandle()
  796. {
  797.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryHandle)
  798.     (this);
  799. }
  800.  
  801.  
  802. /* method: wpSaveImmediate */
  803. BOOL   wpSaveImmediate()
  804. {
  805.    return SOM_ResolveD(this,WPPalette,WPObject,wpSaveImmediate)
  806.     (this);
  807. }
  808.  
  809.  
  810. /* method: wpSaveState */
  811. BOOL   wpSaveState()
  812. {
  813.    return SOM_ResolveD(this,WPPalette,WPObject,wpSaveState)
  814.     (this);
  815. }
  816.  
  817.  
  818. /* method: wpRestoreState */
  819. BOOL   wpRestoreState(ULONG ulReserved)
  820. {
  821.    return SOM_ResolveD(this,WPPalette,WPObject,wpRestoreState)
  822.     (this,ulReserved);
  823. }
  824.  
  825.  
  826. /* method: wpSetTitle */
  827. BOOL   wpSetTitle(PSZ pszNewTitle)
  828. {
  829.    return SOM_ResolveD(this,WPPalette,WPObject,wpSetTitle)
  830.     (this,pszNewTitle);
  831. }
  832.  
  833.  
  834. /* method: wpCopyObject */
  835. WPObject*   wpCopyObject(WPFolder* Folder,
  836.         BOOL fLock)
  837. {
  838.    return SOM_ResolveD(this,WPPalette,WPObject,wpCopyObject)
  839.     (this,Folder,fLock);
  840. }
  841.  
  842.  
  843. /* method: wpMoveObject */
  844. BOOL   wpMoveObject(WPFolder* Folder)
  845. {
  846.    return SOM_ResolveD(this,WPPalette,WPObject,wpMoveObject)
  847.     (this,Folder);
  848. }
  849.  
  850.  
  851. /* method: wpQueryIcon */
  852. HPOINTER   wpQueryIcon()
  853. {
  854.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryIcon)
  855.     (this);
  856. }
  857.  
  858.  
  859. /* method: wpQueryIconData */
  860. ULONG   wpQueryIconData(PICONINFO pIconInfo)
  861. {
  862.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryIconData)
  863.     (this,pIconInfo);
  864. }
  865.  
  866.  
  867. /* method: wpSetIconData */
  868. BOOL   wpSetIconData(PICONINFO pIconInfo)
  869. {
  870.    return SOM_ResolveD(this,WPPalette,WPObject,wpSetIconData)
  871.     (this,pIconInfo);
  872. }
  873.  
  874.  
  875. /* method: wpDragOver */
  876. MRESULT   wpDragOver(HWND hwndCnr,
  877.         PDRAGINFO pdrgInfo)
  878. {
  879.    return SOM_ResolveD(this,WPPalette,WPObject,wpDragOver)
  880.     (this,hwndCnr,pdrgInfo);
  881. }
  882.  
  883.  
  884. /* method: wpReplaceObject */
  885. BOOL32   wpReplaceObject(WPObject* targetObject,
  886.         BOOL32 fMove)
  887. {
  888.    return SOM_ResolveD(this,WPPalette,WPObject,wpReplaceObject)
  889.     (this,targetObject,fMove);
  890. }
  891.  
  892.  
  893. /* method: wpQueryNameClashOptions */
  894. ULONG   wpQueryNameClashOptions(ULONG menuID)
  895. {
  896.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryNameClashOptions)
  897.     (this,menuID);
  898. }
  899.  
  900.  
  901. /* method: somDefaultInit */
  902. void   somDefaultInit(somInitCtrl* ctrl)
  903. {
  904.    SOM_ResolveD(this,WPPalette,SOMObject,somDefaultInit)
  905.     (this,ctrl);
  906. }
  907.  
  908.  
  909. /* method: somDestruct */
  910. void   somDestruct(octet doFree,
  911.         somDestructCtrl* ctrl)
  912. {
  913.    SOM_ResolveD(this,WPPalette,SOMObject,somDestruct)
  914.     (this,doFree,ctrl);
  915. }
  916.  
  917.  
  918. /* method: wpAddObjectGeneralPage */
  919. ULONG   wpAddObjectGeneralPage(HWND hwndNotebook)
  920. {
  921.    return SOM_ResolveD(this,WPPalette,WPObject,wpAddObjectGeneralPage)
  922.     (this,hwndNotebook);
  923. }
  924.  
  925.  
  926. /* method: wpAddObjectGeneralPage2 */
  927. ULONG   wpAddObjectGeneralPage2(HWND hwndNotebook)
  928. {
  929.    return SOM_ResolveD(this,WPPalette,WPObject,wpAddObjectGeneralPage2)
  930.     (this,hwndNotebook);
  931. }
  932.  
  933.  
  934. /* method: wpAddObjectWindowPage */
  935. ULONG   wpAddObjectWindowPage(HWND hwndNotebook)
  936. {
  937.    return SOM_ResolveD(this,WPPalette,WPObject,wpAddObjectWindowPage)
  938.     (this,hwndNotebook);
  939. }
  940.  
  941.  
  942. /* method: wpAddSettingsPages */
  943. BOOL   wpAddSettingsPages(HWND hwndNotebook)
  944. {
  945.    return SOM_ResolveD(this,WPPalette,WPObject,wpAddSettingsPages)
  946.     (this,hwndNotebook);
  947. }
  948.  
  949.  
  950. /* method: wpAddToObjUseList */
  951. BOOL   wpAddToObjUseList(PUSEITEM pUseItem)
  952. {
  953.    return SOM_ResolveD(this,WPPalette,WPObject,wpAddToObjUseList)
  954.     (this,pUseItem);
  955. }
  956.  
  957.  
  958. /* method: wpAllocMem */
  959. PBYTE   wpAllocMem(ULONG cbBytes,
  960.         PULONG prc)
  961. {
  962.    return SOM_ResolveD(this,WPPalette,WPObject,wpAllocMem)
  963.     (this,cbBytes,prc);
  964. }
  965.  
  966.  
  967. /* method: wpAppendObject */
  968. BOOL32   wpAppendObject(WPObject* targetObject,
  969.         BOOL32 fMove)
  970. {
  971.    return SOM_ResolveD(this,WPPalette,WPObject,wpAppendObject)
  972.     (this,targetObject,fMove);
  973. }
  974.  
  975.  
  976. /* method: wpAssertObjectMutexSem */
  977. BOOL   wpAssertObjectMutexSem()
  978. {
  979.    return SOM_ResolveD(this,WPPalette,WPObject,wpAssertObjectMutexSem)
  980.     (this);
  981. }
  982.  
  983.  
  984. /* method: wpClose */
  985. BOOL   wpClose()
  986. {
  987.    return SOM_ResolveD(this,WPPalette,WPObject,wpClose)
  988.     (this);
  989. }
  990.  
  991.  
  992. /* method: wpCnrInsertObject */
  993. PMINIRECORDCORE   wpCnrInsertObject(HWND hwndCnr,
  994.         PPOINTL pptlIcon,
  995.         PMINIRECORDCORE preccParent,
  996.         PRECORDINSERT pRecInsert)
  997. {
  998.    return SOM_ResolveD(this,WPPalette,WPObject,wpCnrInsertObject)
  999.     (this,hwndCnr,pptlIcon,preccParent,pRecInsert);
  1000. }
  1001.  
  1002.  
  1003. /* method: wpCnrRemoveObject */
  1004. BOOL   wpCnrRemoveObject(HWND hwndCnr)
  1005. {
  1006.    return SOM_ResolveD(this,WPPalette,WPObject,wpCnrRemoveObject)
  1007.     (this,hwndCnr);
  1008. }
  1009.  
  1010.  
  1011. /* method: wpCnrSetEmphasis */
  1012. BOOL   wpCnrSetEmphasis(ULONG ulEmphasisAttr,
  1013.         BOOL fTurnOn)
  1014. {
  1015.    return SOM_ResolveD(this,WPPalette,WPObject,wpCnrSetEmphasis)
  1016.     (this,ulEmphasisAttr,fTurnOn);
  1017. }
  1018.  
  1019.  
  1020. /* method: wpConfirmDelete */
  1021. ULONG   wpConfirmDelete(ULONG fConfirmations)
  1022. {
  1023.    return SOM_ResolveD(this,WPPalette,WPObject,wpConfirmDelete)
  1024.     (this,fConfirmations);
  1025. }
  1026.  
  1027.  
  1028. /* method: wpConfirmObjectTitle */
  1029. ULONG   wpConfirmObjectTitle(WPFolder* Folder,
  1030.         WPObject** ppDuplicate,
  1031.         PSZ pszTitle,
  1032.         ULONG cbTitle,
  1033.         ULONG menuID)
  1034. {
  1035.    return SOM_ResolveD(this,WPPalette,WPObject,wpConfirmObjectTitle)
  1036.     (this,Folder,ppDuplicate,pszTitle,cbTitle,menuID);
  1037. }
  1038.  
  1039.  
  1040. /* method: wpCopiedFromTemplate */
  1041. void   wpCopiedFromTemplate()
  1042. {
  1043.    SOM_ResolveD(this,WPPalette,WPObject,wpCopiedFromTemplate)
  1044.     (this);
  1045. }
  1046.  
  1047.  
  1048. /* method: wpCreateAnother */
  1049. WPObject*   wpCreateAnother(PSZ pszTitle,
  1050.         PSZ pszSetupEnv,
  1051.         WPFolder* Folder)
  1052. {
  1053.    return SOM_ResolveD(this,WPPalette,WPObject,wpCreateAnother)
  1054.     (this,pszTitle,pszSetupEnv,Folder);
  1055. }
  1056.  
  1057.  
  1058. /* method: wpCreateFromTemplate */
  1059. WPObject*   wpCreateFromTemplate(WPFolder* folder,
  1060.         BOOL fLock)
  1061. {
  1062.    return SOM_ResolveD(this,WPPalette,WPObject,wpCreateFromTemplate)
  1063.     (this,folder,fLock);
  1064. }
  1065.  
  1066.  
  1067. /* method: wpCreateShadowObject */
  1068. WPObject*   wpCreateShadowObject(WPFolder* Folder,
  1069.         BOOL fLock)
  1070. {
  1071.    return SOM_ResolveD(this,WPPalette,WPObject,wpCreateShadowObject)
  1072.     (this,Folder,fLock);
  1073. }
  1074.  
  1075.  
  1076. /* method: wpDelete */
  1077. ULONG   wpDelete(ULONG fConfirmations)
  1078. {
  1079.    return SOM_ResolveD(this,WPPalette,WPObject,wpDelete)
  1080.     (this,fConfirmations);
  1081. }
  1082.  
  1083.  
  1084. /* method: wpDeleteFromObjUseList */
  1085. BOOL   wpDeleteFromObjUseList(PUSEITEM pUseItem)
  1086. {
  1087.    return SOM_ResolveD(this,WPPalette,WPObject,wpDeleteFromObjUseList)
  1088.     (this,pUseItem);
  1089. }
  1090.  
  1091.  
  1092. /* method: wpDisplayHelp */
  1093. BOOL   wpDisplayHelp(ULONG HelpPanelId,
  1094.         PSZ HelpLibrary)
  1095. {
  1096.    return SOM_ResolveD(this,WPPalette,WPObject,wpDisplayHelp)
  1097.     (this,HelpPanelId,HelpLibrary);
  1098. }
  1099.  
  1100.  
  1101. /* method: wpDisplayMenu */
  1102. HWND   wpDisplayMenu(HWND hwndOwner,
  1103.         HWND hwndClient,
  1104.         POINTL* ptlPopupPt,
  1105.         ULONG ulMenuType,
  1106.         ULONG ulReserved)
  1107. {
  1108.    return SOM_ResolveD(this,WPPalette,WPObject,wpDisplayMenu)
  1109.     (this,hwndOwner,hwndClient,ptlPopupPt,ulMenuType,ulReserved);
  1110. }
  1111.  
  1112.  
  1113. /* method: wpDoesObjectMatch */
  1114. BOOL   wpDoesObjectMatch(PVOID pvoidExtendedCriteria)
  1115. {
  1116.    return SOM_ResolveD(this,WPPalette,WPObject,wpDoesObjectMatch)
  1117.     (this,pvoidExtendedCriteria);
  1118. }
  1119.  
  1120.  
  1121. /* method: wpDraggedOverObject */
  1122. MRESULT   wpDraggedOverObject(WPObject* DraggedOverObject)
  1123. {
  1124.    return SOM_ResolveD(this,WPPalette,WPObject,wpDraggedOverObject)
  1125.     (this,DraggedOverObject);
  1126. }
  1127.  
  1128.  
  1129. /* method: wpDrop */
  1130. MRESULT   wpDrop(HWND hwndCnr,
  1131.         PDRAGINFO pdrgInfo,
  1132.         PDRAGITEM pdrgItem)
  1133. {
  1134.    return SOM_ResolveD(this,WPPalette,WPObject,wpDrop)
  1135.     (this,hwndCnr,pdrgInfo,pdrgItem);
  1136. }
  1137.  
  1138.  
  1139. /* method: wpDroppedOnObject */
  1140. BOOL   wpDroppedOnObject(WPObject* DroppedOnObject)
  1141. {
  1142.    return SOM_ResolveD(this,WPPalette,WPObject,wpDroppedOnObject)
  1143.     (this,DroppedOnObject);
  1144. }
  1145.  
  1146.  
  1147. /* method: wpEndConversation */
  1148. MRESULT   wpEndConversation(ULONG ulItemID,
  1149.         ULONG flResult)
  1150. {
  1151.    return SOM_ResolveD(this,WPPalette,WPObject,wpEndConversation)
  1152.     (this,ulItemID,flResult);
  1153. }
  1154.  
  1155.  
  1156. /* method: wpFilterPopupMenu */
  1157. ULONG   wpFilterPopupMenu(ULONG ulFlags,
  1158.         HWND hwndCnr,
  1159.         BOOL fMultiSelect)
  1160. {
  1161.    return SOM_ResolveD(this,WPPalette,WPObject,wpFilterPopupMenu)
  1162.     (this,ulFlags,hwndCnr,fMultiSelect);
  1163. }
  1164.  
  1165.  
  1166. /* method: wpFindUseItem */
  1167. PUSEITEM   wpFindUseItem(ULONG type,
  1168.         PUSEITEM pCurrentItem)
  1169. {
  1170.    return SOM_ResolveD(this,WPPalette,WPObject,wpFindUseItem)
  1171.     (this,type,pCurrentItem);
  1172. }
  1173.  
  1174.  
  1175. /* method: wpFormatDragItem */
  1176. BOOL   wpFormatDragItem(PDRAGITEM pdrgItem)
  1177. {
  1178.    return SOM_ResolveD(this,WPPalette,WPObject,wpFormatDragItem)
  1179.     (this,pdrgItem);
  1180. }
  1181.  
  1182.  
  1183. /* method: wpFree */
  1184. BOOL   wpFree()
  1185. {
  1186.    return SOM_ResolveD(this,WPPalette,WPObject,wpFree)
  1187.     (this);
  1188. }
  1189.  
  1190.  
  1191. /* method: wpFreeMem */
  1192. BOOL   wpFreeMem(PBYTE pByte)
  1193. {
  1194.    return SOM_ResolveD(this,WPPalette,WPObject,wpFreeMem)
  1195.     (this,pByte);
  1196. }
  1197.  
  1198.  
  1199. /* method: wpHide */
  1200. BOOL   wpHide()
  1201. {
  1202.    return SOM_ResolveD(this,WPPalette,WPObject,wpHide)
  1203.     (this);
  1204. }
  1205.  
  1206.  
  1207. /* method: wpInitData */
  1208. void   wpInitData()
  1209. {
  1210.    SOM_ResolveD(this,WPPalette,WPObject,wpInitData)
  1211.     (this);
  1212. }
  1213.  
  1214.  
  1215. /* method: wpInsertPopupMenuItems */
  1216. BOOL   wpInsertPopupMenuItems(HWND hwndMenu,
  1217.         ULONG iPosition,
  1218.         HMODULE hmod,
  1219.         ULONG MenuID,
  1220.         ULONG SubMenuID)
  1221. {
  1222.    return SOM_ResolveD(this,WPPalette,WPObject,wpInsertPopupMenuItems)
  1223.     (this,hwndMenu,iPosition,hmod,MenuID,SubMenuID);
  1224. }
  1225.  
  1226.  
  1227. /* method: wpInsertSettingsPage */
  1228. ULONG   wpInsertSettingsPage(HWND hwndNotebook,
  1229.         PPAGEINFO ppageinfo)
  1230. {
  1231.    return SOM_ResolveD(this,WPPalette,WPObject,wpInsertSettingsPage)
  1232.     (this,hwndNotebook,ppageinfo);
  1233. }
  1234.  
  1235.  
  1236. /* method: wpMenuItemHelpSelected */
  1237. BOOL   wpMenuItemHelpSelected(ULONG MenuId)
  1238. {
  1239.    return SOM_ResolveD(this,WPPalette,WPObject,wpMenuItemHelpSelected)
  1240.     (this,MenuId);
  1241. }
  1242.  
  1243.  
  1244. /* method: wpMenuItemSelected */
  1245. BOOL   wpMenuItemSelected(HWND hwndFrame,
  1246.         ULONG ulMenuId)
  1247. {
  1248.    return SOM_ResolveD(this,WPPalette,WPObject,wpMenuItemSelected)
  1249.     (this,hwndFrame,ulMenuId);
  1250. }
  1251.  
  1252.  
  1253. /* method: wpModifyPopupMenu */
  1254. BOOL   wpModifyPopupMenu(HWND hwndMenu,
  1255.         HWND hwndCnr,
  1256.         ULONG iPosition)
  1257. {
  1258.    return SOM_ResolveD(this,WPPalette,WPObject,wpModifyPopupMenu)
  1259.     (this,hwndMenu,hwndCnr,iPosition);
  1260. }
  1261.  
  1262.  
  1263. /* method: wpOpen */
  1264. HWND   wpOpen(HWND hwndCnr,
  1265.         ULONG ulView,
  1266.         ULONG param)
  1267. {
  1268.    return SOM_ResolveD(this,WPPalette,WPObject,wpOpen)
  1269.     (this,hwndCnr,ulView,param);
  1270. }
  1271.  
  1272.  
  1273. /* method: wpPrintObject */
  1274. BOOL   wpPrintObject(PPRINTDEST pPrintDest,
  1275.         ULONG ulReserved)
  1276. {
  1277.    return SOM_ResolveD(this,WPPalette,WPObject,wpPrintObject)
  1278.     (this,pPrintDest,ulReserved);
  1279. }
  1280.  
  1281.  
  1282. /* method: wpQueryConcurrentView */
  1283. ULONG   wpQueryConcurrentView()
  1284. {
  1285.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryConcurrentView)
  1286.     (this);
  1287. }
  1288.  
  1289.  
  1290. /* method: wpQueryButtonAppearance */
  1291. ULONG   wpQueryButtonAppearance()
  1292. {
  1293.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryButtonAppearance)
  1294.     (this);
  1295. }
  1296.  
  1297.  
  1298. /* method: wpQueryConfirmations */
  1299. ULONG   wpQueryConfirmations()
  1300. {
  1301.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryConfirmations)
  1302.     (this);
  1303. }
  1304.  
  1305.  
  1306. /* method: wpQueryDefaultHelp */
  1307. BOOL   wpQueryDefaultHelp(PULONG pHelpPanelId,
  1308.         PSZ HelpLibrary)
  1309. {
  1310.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryDefaultHelp)
  1311.     (this,pHelpPanelId,HelpLibrary);
  1312. }
  1313.  
  1314.  
  1315. /* method: wpQueryDefaultView */
  1316. ULONG   wpQueryDefaultView()
  1317. {
  1318.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryDefaultView)
  1319.     (this);
  1320. }
  1321.  
  1322.  
  1323. /* method: wpQueryDetailsData */
  1324. ULONG   wpQueryDetailsData(PVOID* ppDetailsData,
  1325.         PULONG pcp)
  1326. {
  1327.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryDetailsData)
  1328.     (this,ppDetailsData,pcp);
  1329. }
  1330.  
  1331.  
  1332. /* method: wpQueryError */
  1333. ULONG   wpQueryError()
  1334. {
  1335.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryError)
  1336.     (this);
  1337. }
  1338.  
  1339.  
  1340. /* method: wpSetFolder */
  1341. BOOL   wpSetFolder(WPObject* container)
  1342. {
  1343.    return SOM_ResolveD(this,WPPalette,WPObject,wpSetFolder)
  1344.     (this,container);
  1345. }
  1346.  
  1347.  
  1348. /* method: wpQueryFolder */
  1349. WPObject*   wpQueryFolder()
  1350. {
  1351.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryFolder)
  1352.     (this);
  1353. }
  1354.  
  1355.  
  1356. /* method: wpQueryMinWindow */
  1357. ULONG   wpQueryMinWindow()
  1358. {
  1359.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryMinWindow)
  1360.     (this);
  1361. }
  1362.  
  1363.  
  1364. /* method: wpQueryStyle */
  1365. ULONG   wpQueryStyle()
  1366. {
  1367.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryStyle)
  1368.     (this);
  1369. }
  1370.  
  1371.  
  1372. /* method: wpSetTaskRec */
  1373. BOOL32   wpSetTaskRec(PTASKREC pNew,
  1374.         PTASKREC pOld)
  1375. {
  1376.    return SOM_ResolveD(this,WPPalette,WPObject,wpSetTaskRec)
  1377.     (this,pNew,pOld);
  1378. }
  1379.  
  1380.  
  1381. /* method: wpFindTaskRec */
  1382. PTASKREC   wpFindTaskRec()
  1383. {
  1384.    return SOM_ResolveD(this,WPPalette,WPObject,wpFindTaskRec)
  1385.     (this);
  1386. }
  1387.  
  1388.  
  1389. /* method: wpQueryTitle */
  1390. PSZ   wpQueryTitle()
  1391. {
  1392.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryTitle)
  1393.     (this);
  1394. }
  1395.  
  1396.  
  1397. /* method: wpRegisterView */
  1398. BOOL   wpRegisterView(HWND hwndFrame,
  1399.         PSZ pszViewTitle)
  1400. {
  1401.    return SOM_ResolveD(this,WPPalette,WPObject,wpRegisterView)
  1402.     (this,hwndFrame,pszViewTitle);
  1403. }
  1404.  
  1405.  
  1406. /* method: wpReleaseObjectMutexSem */
  1407. ULONG   wpReleaseObjectMutexSem()
  1408. {
  1409.    return SOM_ResolveD(this,WPPalette,WPObject,wpReleaseObjectMutexSem)
  1410.     (this);
  1411. }
  1412.  
  1413.  
  1414. /* method: wpRender */
  1415. MRESULT   wpRender(PDRAGTRANSFER pdxfer)
  1416. {
  1417.    return SOM_ResolveD(this,WPPalette,WPObject,wpRender)
  1418.     (this,pdxfer);
  1419. }
  1420.  
  1421.  
  1422. /* method: wpRenderComplete */
  1423. MRESULT   wpRenderComplete(PDRAGTRANSFER pdxfer,
  1424.         ULONG ulResult)
  1425. {
  1426.    return SOM_ResolveD(this,WPPalette,WPObject,wpRenderComplete)
  1427.     (this,pdxfer,ulResult);
  1428. }
  1429.  
  1430.  
  1431. /* method: wpRequestObjectMutexSem */
  1432. ULONG   wpRequestObjectMutexSem(ULONG ulTimeout)
  1433. {
  1434.    return SOM_ResolveD(this,WPPalette,WPObject,wpRequestObjectMutexSem)
  1435.     (this,ulTimeout);
  1436. }
  1437.  
  1438.  
  1439. /* method: wpRestore */
  1440. BOOL   wpRestore()
  1441. {
  1442.    return SOM_ResolveD(this,WPPalette,WPObject,wpRestore)
  1443.     (this);
  1444. }
  1445.  
  1446.  
  1447. /* method: wpRestoreData */
  1448. BOOL   wpRestoreData(PSZ pszClass,
  1449.         ULONG ulKey,
  1450.         PBYTE pValue,
  1451.         PULONG pcbValue)
  1452. {
  1453.    return SOM_ResolveD(this,WPPalette,WPObject,wpRestoreData)
  1454.     (this,pszClass,ulKey,pValue,pcbValue);
  1455. }
  1456.  
  1457.  
  1458. /* method: wpRestoreLong */
  1459. BOOL   wpRestoreLong(PSZ pszClass,
  1460.         ULONG ulKey,
  1461.         PULONG pulValue)
  1462. {
  1463.    return SOM_ResolveD(this,WPPalette,WPObject,wpRestoreLong)
  1464.     (this,pszClass,ulKey,pulValue);
  1465. }
  1466.  
  1467.  
  1468. /* method: wpRestoreString */
  1469. BOOL   wpRestoreString(PSZ pszClass,
  1470.         ULONG ulKey,
  1471.         PSZ pszValue,
  1472.         PULONG pcbValue)
  1473. {
  1474.    return SOM_ResolveD(this,WPPalette,WPObject,wpRestoreString)
  1475.     (this,pszClass,ulKey,pszValue,pcbValue);
  1476. }
  1477.  
  1478.  
  1479. /* method: wpSaveData */
  1480. BOOL   wpSaveData(PSZ pszClass,
  1481.         ULONG ulKey,
  1482.         PBYTE pValue,
  1483.         ULONG cbValue)
  1484. {
  1485.    return SOM_ResolveD(this,WPPalette,WPObject,wpSaveData)
  1486.     (this,pszClass,ulKey,pValue,cbValue);
  1487. }
  1488.  
  1489.  
  1490. /* method: wpSaveDeferred */
  1491. BOOL   wpSaveDeferred()
  1492. {
  1493.    return SOM_ResolveD(this,WPPalette,WPObject,wpSaveDeferred)
  1494.     (this);
  1495. }
  1496.  
  1497.  
  1498. /* method: wpSaveLong */
  1499. BOOL   wpSaveLong(PSZ pszClass,
  1500.         ULONG ulKey,
  1501.         ULONG ulValue)
  1502. {
  1503.    return SOM_ResolveD(this,WPPalette,WPObject,wpSaveLong)
  1504.     (this,pszClass,ulKey,ulValue);
  1505. }
  1506.  
  1507.  
  1508. /* method: wpSaveString */
  1509. BOOL   wpSaveString(PSZ pszClass,
  1510.         ULONG ulKey,
  1511.         PSZ pszValue)
  1512. {
  1513.    return SOM_ResolveD(this,WPPalette,WPObject,wpSaveString)
  1514.     (this,pszClass,ulKey,pszValue);
  1515. }
  1516.  
  1517.  
  1518. /* method: wpScanSetupString */
  1519. BOOL   wpScanSetupString(PSZ pszSetupString,
  1520.         PSZ pszKey,
  1521.         PSZ pszValue,
  1522.         PULONG pcbValue)
  1523. {
  1524.    return SOM_ResolveD(this,WPPalette,WPObject,wpScanSetupString)
  1525.     (this,pszSetupString,pszKey,pszValue,pcbValue);
  1526. }
  1527.  
  1528.  
  1529. /* method: wpSetConcurrentView */
  1530. void   wpSetConcurrentView(ULONG ulCCView)
  1531. {
  1532.    SOM_ResolveD(this,WPPalette,WPObject,wpSetConcurrentView)
  1533.     (this,ulCCView);
  1534. }
  1535.  
  1536.  
  1537. /* method: wpSetButtonAppearance */
  1538. void   wpSetButtonAppearance(ULONG ulButtonType)
  1539. {
  1540.    SOM_ResolveD(this,WPPalette,WPObject,wpSetButtonAppearance)
  1541.     (this,ulButtonType);
  1542. }
  1543.  
  1544.  
  1545. /* method: wpSetDefaultHelp */
  1546. BOOL   wpSetDefaultHelp(ULONG HelpPanelId,
  1547.         PSZ HelpLibrary)
  1548. {
  1549.    return SOM_ResolveD(this,WPPalette,WPObject,wpSetDefaultHelp)
  1550.     (this,HelpPanelId,HelpLibrary);
  1551. }
  1552.  
  1553.  
  1554. /* method: wpSetDefaultView */
  1555. BOOL   wpSetDefaultView(ULONG ulView)
  1556. {
  1557.    return SOM_ResolveD(this,WPPalette,WPObject,wpSetDefaultView)
  1558.     (this,ulView);
  1559. }
  1560.  
  1561.  
  1562. /* method: wpSetError */
  1563. BOOL   wpSetError(ULONG ulErrorId)
  1564. {
  1565.    return SOM_ResolveD(this,WPPalette,WPObject,wpSetError)
  1566.     (this,ulErrorId);
  1567. }
  1568.  
  1569.  
  1570. /* method: wpSetIconHandle */
  1571. BOOL   wpSetIconHandle(HPOINTER hptrNewIcon)
  1572. {
  1573.    return SOM_ResolveD(this,WPPalette,WPObject,wpSetIconHandle)
  1574.     (this,hptrNewIcon);
  1575. }
  1576.  
  1577.  
  1578. /* method: wpQueryScreenGroupID */
  1579. USHORT   wpQueryScreenGroupID(USHORT usPrevSgId)
  1580. {
  1581.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryScreenGroupID)
  1582.     (this,usPrevSgId);
  1583. }
  1584.  
  1585.  
  1586. /* method: wpSetupOnce */
  1587. BOOL   wpSetupOnce(PSZ pszSetupString)
  1588. {
  1589.    return SOM_ResolveD(this,WPPalette,WPObject,wpSetupOnce)
  1590.     (this,pszSetupString);
  1591. }
  1592.  
  1593.  
  1594. /* method: wpSetIcon */
  1595. BOOL   wpSetIcon(HPOINTER hptrNewIcon)
  1596. {
  1597.    return SOM_ResolveD(this,WPPalette,WPObject,wpSetIcon)
  1598.     (this,hptrNewIcon);
  1599. }
  1600.  
  1601.  
  1602. /* method: wpSetMinWindow */
  1603. void   wpSetMinWindow(ULONG ulMinWindow)
  1604. {
  1605.    SOM_ResolveD(this,WPPalette,WPObject,wpSetMinWindow)
  1606.     (this,ulMinWindow);
  1607. }
  1608.  
  1609.  
  1610. /* method: wpSetStyle */
  1611. BOOL   wpSetStyle(ULONG ulNewStyle)
  1612. {
  1613.    return SOM_ResolveD(this,WPPalette,WPObject,wpSetStyle)
  1614.     (this,ulNewStyle);
  1615. }
  1616.  
  1617.  
  1618. /* method: wpModifyStyle */
  1619. BOOL   wpModifyStyle(ULONG ulStyleFlags,
  1620.         ULONG ulStyleMask)
  1621. {
  1622.    return SOM_ResolveD(this,WPPalette,WPObject,wpModifyStyle)
  1623.     (this,ulStyleFlags,ulStyleMask);
  1624. }
  1625.  
  1626.  
  1627. /* method: wpSetup */
  1628. BOOL   wpSetup(PSZ pszSetupString)
  1629. {
  1630.    return SOM_ResolveD(this,WPPalette,WPObject,wpSetup)
  1631.     (this,pszSetupString);
  1632. }
  1633.  
  1634.  
  1635. /* method: wpSwitchTo */
  1636. BOOL   wpSwitchTo(ULONG View)
  1637. {
  1638.    return SOM_ResolveD(this,WPPalette,WPObject,wpSwitchTo)
  1639.     (this,View);
  1640. }
  1641.  
  1642.  
  1643. /* method: wpUnInitData */
  1644. void   wpUnInitData()
  1645. {
  1646.    SOM_ResolveD(this,WPPalette,WPObject,wpUnInitData)
  1647.     (this);
  1648. }
  1649.  
  1650.  
  1651. /* method: wpViewObject */
  1652. HWND   wpViewObject(HWND hwndCnr,
  1653.         ULONG ulView,
  1654.         ULONG param)
  1655. {
  1656.    return SOM_ResolveD(this,WPPalette,WPObject,wpViewObject)
  1657.     (this,hwndCnr,ulView,param);
  1658. }
  1659.  
  1660.  
  1661. /* method: wpQueryTrueStyle */
  1662. ULONG   wpQueryTrueStyle()
  1663. {
  1664.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryTrueStyle)
  1665.     (this);
  1666. }
  1667.  
  1668.  
  1669. /* method: wpUnlockObject */
  1670. BOOL   wpUnlockObject()
  1671. {
  1672.    return SOM_ResolveD(this,WPPalette,WPObject,wpUnlockObject)
  1673.     (this);
  1674. }
  1675.  
  1676.  
  1677. /* method: wpObjectReady */
  1678. void   wpObjectReady(ULONG ulCode,
  1679.         WPObject* refObject)
  1680. {
  1681.    SOM_ResolveD(this,WPPalette,WPObject,wpObjectReady)
  1682.     (this,ulCode,refObject);
  1683. }
  1684.  
  1685.  
  1686. /* method: wpIsObjectInitialized */
  1687. BOOL   wpIsObjectInitialized()
  1688. {
  1689.    return SOM_ResolveD(this,WPPalette,WPObject,wpIsObjectInitialized)
  1690.     (this);
  1691. }
  1692.  
  1693.  
  1694. /* method: wpCreateShadowObjectExt */
  1695. WPObject*   wpCreateShadowObjectExt(WPFolder* Folder,
  1696.         BOOL fLock,
  1697.         PSZ pszSetup,
  1698.         M_WPObject* shadowClass)
  1699. {
  1700.    return SOM_ResolveD(this,WPPalette,WPObject,wpCreateShadowObjectExt)
  1701.     (this,Folder,fLock,pszSetup,shadowClass);
  1702. }
  1703.  
  1704.  
  1705. /* method: wpCnrDeleteUseItem */
  1706. BOOL   wpCnrDeleteUseItem(HWND hwndCnr)
  1707. {
  1708.    return SOM_ResolveD(this,WPPalette,WPObject,wpCnrDeleteUseItem)
  1709.     (this,hwndCnr);
  1710. }
  1711.  
  1712.  
  1713. /* method: wpIsDeleteable */
  1714. BOOL   wpIsDeleteable()
  1715. {
  1716.    return SOM_ResolveD(this,WPPalette,WPObject,wpIsDeleteable)
  1717.     (this);
  1718. }
  1719.  
  1720.  
  1721. /* method: wpQueryCoreRecord */
  1722. PMINIRECORDCORE   wpQueryCoreRecord()
  1723. {
  1724.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryCoreRecord)
  1725.     (this);
  1726. }
  1727.  
  1728.  
  1729. /* method: wpSetObjectID */
  1730. BOOL   wpSetObjectID(PSZ pszObjectID)
  1731. {
  1732.    return SOM_ResolveD(this,WPPalette,WPObject,wpSetObjectID)
  1733.     (this,pszObjectID);
  1734. }
  1735.  
  1736.  
  1737. /* method: wpQueryObjectID */
  1738. PSZ   wpQueryObjectID()
  1739. {
  1740.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryObjectID)
  1741.     (this);
  1742. }
  1743.  
  1744.  
  1745. /* method: wpSetDefaultIconPos */
  1746. BOOL   wpSetDefaultIconPos(PPOINTL pPointl)
  1747. {
  1748.    return SOM_ResolveD(this,WPPalette,WPObject,wpSetDefaultIconPos)
  1749.     (this,pPointl);
  1750. }
  1751.  
  1752.  
  1753. /* method: wpQueryDefaultIconPos */
  1754. BOOL   wpQueryDefaultIconPos(PPOINTL pPointl)
  1755. {
  1756.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryDefaultIconPos)
  1757.     (this,pPointl);
  1758. }
  1759.  
  1760.  
  1761. /* method: wpCnrRefreshDetails */
  1762. void   wpCnrRefreshDetails()
  1763. {
  1764.    SOM_ResolveD(this,WPPalette,WPObject,wpCnrRefreshDetails)
  1765.     (this);
  1766. }
  1767.  
  1768.  
  1769. /* method: wpFindViewItem */
  1770. PVIEWITEM   wpFindViewItem(ULONG flViews,
  1771.         PVIEWITEM pCurrentItem)
  1772. {
  1773.    return SOM_ResolveD(this,WPPalette,WPObject,wpFindViewItem)
  1774.     (this,flViews,pCurrentItem);
  1775. }
  1776.  
  1777.  
  1778. /* method: wpLockObject */
  1779. void   wpLockObject()
  1780. {
  1781.    SOM_ResolveD(this,WPPalette,WPObject,wpLockObject)
  1782.     (this);
  1783. }
  1784.  
  1785.  
  1786. /* method: wpIsLocked */
  1787. BOOL   wpIsLocked()
  1788. {
  1789.    return SOM_ResolveD(this,WPPalette,WPObject,wpIsLocked)
  1790.     (this);
  1791. }
  1792.  
  1793.  
  1794. /* method: wpQueryContainerFlagPtr */
  1795. PULONG   wpQueryContainerFlagPtr()
  1796. {
  1797.    return SOM_ResolveD(this,WPPalette,WPObject,wpQueryContainerFlagPtr)
  1798.     (this);
  1799. }
  1800.  
  1801.  
  1802. /* method: wpWaitForClose */
  1803. ULONG   wpWaitForClose(LHANDLE lhView,
  1804.         ULONG ulViews,
  1805.         long lTimeOut,
  1806.         BOOL bAutoClose)
  1807. {
  1808.    return SOM_ResolveD(this,WPPalette,WPObject,wpWaitForClose)
  1809.     (this,lhView,ulViews,lTimeOut,bAutoClose);
  1810. }
  1811.  
  1812.  
  1813. /* method: somInit */
  1814. void   somInit()
  1815. {
  1816.    SOM_ResolveD(this,WPPalette,SOMObject,somInit)
  1817.     (this);
  1818. }
  1819.  
  1820.  
  1821. /* method: somUninit */
  1822. void   somUninit()
  1823. {
  1824.    SOM_ResolveD(this,WPPalette,SOMObject,somUninit)
  1825.     (this);
  1826. }
  1827.  
  1828.  
  1829. /* method: somDefaultCopyInit */
  1830. void   somDefaultCopyInit(somInitCtrl* ctrl,
  1831.         SOMObject* fromObj)
  1832. {
  1833.    SOM_ResolveD(this,WPPalette,SOMObject,somDefaultCopyInit)
  1834.     (this,ctrl,fromObj);
  1835. }
  1836.  
  1837.  
  1838. /* method: somDefaultAssign */
  1839. WPPalette*  somDefaultAssign(somAssignCtrl* ctrl,
  1840.         SOMObject* fromObj)
  1841. {
  1842.    return SOM_ResolveD(this,WPPalette,SOMObject,somDefaultAssign)
  1843.     (this,ctrl,fromObj);
  1844. }
  1845.  
  1846.  
  1847. /* method: somDefaultConstCopyInit */
  1848. void   somDefaultConstCopyInit(somInitCtrl* ctrl,
  1849.         SOMObject* fromObj)
  1850. {
  1851.    SOM_ResolveD(this,WPPalette,SOMObject,somDefaultConstCopyInit)
  1852.     (this,ctrl,fromObj);
  1853. }
  1854.  
  1855.  
  1856. /* method: somDefaultVCopyInit */
  1857. void   somDefaultVCopyInit(somInitCtrl* ctrl,
  1858.         SOMObject* fromObj)
  1859. {
  1860.    SOM_ResolveD(this,WPPalette,SOMObject,somDefaultVCopyInit)
  1861.     (this,ctrl,fromObj);
  1862. }
  1863.  
  1864.  
  1865. /* method: somDefaultConstVCopyInit */
  1866. void   somDefaultConstVCopyInit(somInitCtrl* ctrl,
  1867.         SOMObject* fromObj)
  1868. {
  1869.    SOM_ResolveD(this,WPPalette,SOMObject,somDefaultConstVCopyInit)
  1870.     (this,ctrl,fromObj);
  1871. }
  1872.  
  1873.  
  1874. /* method: somDefaultConstAssign */
  1875. WPPalette*  somDefaultConstAssign(somAssignCtrl* ctrl,
  1876.         SOMObject* fromObj)
  1877. {
  1878.    return SOM_ResolveD(this,WPPalette,SOMObject,somDefaultConstAssign)
  1879.     (this,ctrl,fromObj);
  1880. }
  1881.  
  1882.  
  1883. /* method: somDefaultVAssign */
  1884. WPPalette*  somDefaultVAssign(somAssignCtrl* ctrl,
  1885.         SOMObject* fromObj)
  1886. {
  1887.    return SOM_ResolveD(this,WPPalette,SOMObject,somDefaultVAssign)
  1888.     (this,ctrl,fromObj);
  1889. }
  1890.  
  1891.  
  1892. /* method: somDefaultConstVAssign */
  1893. WPPalette*  somDefaultConstVAssign(somAssignCtrl* ctrl,
  1894.         SOMObject* fromObj)
  1895. {
  1896.    return SOM_ResolveD(this,WPPalette,SOMObject,somDefaultConstVAssign)
  1897.     (this,ctrl,fromObj);
  1898. }
  1899.  
  1900.  
  1901. /* method: somFree */
  1902. void   somFree()
  1903. {
  1904.    SOM_ResolveD(this,WPPalette,SOMObject,somFree)
  1905.     (this);
  1906. }
  1907.  
  1908.  
  1909. /* method: somGetClass */
  1910. M_WPPalette*  somGetClass()
  1911. {
  1912.    return SOM_ResolveD(this,WPPalette,SOMObject,somGetClass)
  1913.     (this);
  1914. }
  1915.  
  1916.  
  1917. /* method: somGetClassName */
  1918. string   somGetClassName()
  1919. {
  1920.    return SOM_ResolveD(this,WPPalette,SOMObject,somGetClassName)
  1921.     (this);
  1922. }
  1923.  
  1924.  
  1925. /* method: somGetSize */
  1926. long   somGetSize()
  1927. {
  1928.    return SOM_ResolveD(this,WPPalette,SOMObject,somGetSize)
  1929.     (this);
  1930. }
  1931.  
  1932.  
  1933. /* method: somIsA */
  1934. boolean   somIsA(SOMClass* aClassObj)
  1935. {
  1936.    return SOM_ResolveD(this,WPPalette,SOMObject,somIsA)
  1937.     (this,aClassObj);
  1938. }
  1939.  
  1940.  
  1941. /* method: somIsInstanceOf */
  1942. boolean   somIsInstanceOf(SOMClass* aClassObj)
  1943. {
  1944.    return SOM_ResolveD(this,WPPalette,SOMObject,somIsInstanceOf)
  1945.     (this,aClassObj);
  1946. }
  1947.  
  1948.  
  1949. /* method: somRespondsTo */
  1950. boolean   somRespondsTo(somId mId)
  1951. {
  1952.    return SOM_ResolveD(this,WPPalette,SOMObject,somRespondsTo)
  1953.     (this,mId);
  1954. }
  1955.  
  1956.  
  1957. /* va_list method: somDispatch */
  1958. /* the va_list invocation form */
  1959. boolean   WPPalette_somDispatch(somToken* retValue,
  1960.         somId methodId,
  1961.         va_list ap)
  1962. {
  1963. return SOM_ResolveD(this,WPPalette,SOMObject,somDispatch)
  1964.     (this,retValue,methodId,ap);
  1965. }
  1966.  
  1967. /* the varargs invocation form */
  1968. boolean   somDispatch(somToken* retValue,
  1969.         somId methodId,
  1970.         ...)
  1971. {
  1972.    va_list ap;
  1973.    va_start(ap, methodId);
  1974.    boolean __somResult = 
  1975.       SOM_ResolveD(this,WPPalette,SOMObject,somDispatch)
  1976.     (this,retValue,methodId,ap);
  1977.    va_end(ap);
  1978.    return __somResult;
  1979. }
  1980.  
  1981.  
  1982. /* va_list method: somClassDispatch */
  1983. /* the va_list invocation form */
  1984. boolean   WPPalette_somClassDispatch(SOMClass* clsObj,
  1985.         somToken* retValue,
  1986.         somId methodId,
  1987.         va_list ap)
  1988. {
  1989. return SOM_ResolveD(this,WPPalette,SOMObject,somClassDispatch)
  1990.     (this,clsObj,retValue,methodId,ap);
  1991. }
  1992.  
  1993. /* the varargs invocation form */
  1994. boolean   somClassDispatch(SOMClass* clsObj,
  1995.         somToken* retValue,
  1996.         somId methodId,
  1997.         ...)
  1998. {
  1999.    va_list ap;
  2000.    va_start(ap, methodId);
  2001.    boolean __somResult = 
  2002.       SOM_ResolveD(this,WPPalette,SOMObject,somClassDispatch)
  2003.     (this,clsObj,retValue,methodId,ap);
  2004.    va_end(ap);
  2005.    return __somResult;
  2006. }
  2007.  
  2008.  
  2009. /* method: somCastObj */
  2010. boolean   somCastObj(SOMClass* cls)
  2011. {
  2012.    return SOM_ResolveD(this,WPPalette,SOMObject,somCastObj)
  2013.     (this,cls);
  2014. }
  2015.  
  2016.  
  2017. /* method: somResetObj */
  2018. boolean   somResetObj()
  2019. {
  2020.    return SOM_ResolveD(this,WPPalette,SOMObject,somResetObj)
  2021.     (this);
  2022. }
  2023.  
  2024.  
  2025. /* va_list method: somDispatchV */
  2026. /* the va_list invocation form */
  2027. void   WPPalette_somDispatchV(somId methodId,
  2028.         somId descriptor,
  2029.         va_list ap)
  2030. {
  2031.    SOM_ResolveD(this,WPPalette,SOMObject,somDispatchV)
  2032.     (this,methodId,descriptor,ap);
  2033. }
  2034.  
  2035. /* the varargs invocation form */
  2036. void   somDispatchV(somId methodId,
  2037.         somId descriptor,
  2038.         ...)
  2039. {
  2040.    va_list ap;
  2041.    va_start(ap, descriptor);
  2042.    SOM_ResolveD(this,WPPalette,SOMObject,somDispatchV)
  2043.     (this,methodId,descriptor,ap);
  2044.    va_end(ap);
  2045. }
  2046.  
  2047.  
  2048. /* va_list method: somDispatchL */
  2049. /* the va_list invocation form */
  2050. long   WPPalette_somDispatchL(somId methodId,
  2051.         somId descriptor,
  2052.         va_list ap)
  2053. {
  2054. return SOM_ResolveD(this,WPPalette,SOMObject,somDispatchL)
  2055.     (this,methodId,descriptor,ap);
  2056. }
  2057.  
  2058. /* the varargs invocation form */
  2059. long   somDispatchL(somId methodId,
  2060.         somId descriptor,
  2061.         ...)
  2062. {
  2063.    va_list ap;
  2064.    va_start(ap, descriptor);
  2065.    long __somResult = 
  2066.       SOM_ResolveD(this,WPPalette,SOMObject,somDispatchL)
  2067.     (this,methodId,descriptor,ap);
  2068.    va_end(ap);
  2069.    return __somResult;
  2070. }
  2071.  
  2072.  
  2073. /* va_list method: somDispatchA */
  2074. /* the va_list invocation form */
  2075. void*   WPPalette_somDispatchA(somId methodId,
  2076.         somId descriptor,
  2077.         va_list ap)
  2078. {
  2079. return SOM_ResolveD(this,WPPalette,SOMObject,somDispatchA)
  2080.     (this,methodId,descriptor,ap);
  2081. }
  2082.  
  2083. /* the varargs invocation form */
  2084. void*   somDispatchA(somId methodId,
  2085.         somId descriptor,
  2086.         ...)
  2087. {
  2088.    va_list ap;
  2089.    va_start(ap, descriptor);
  2090.    void* __somResult = 
  2091.       SOM_ResolveD(this,WPPalette,SOMObject,somDispatchA)
  2092.     (this,methodId,descriptor,ap);
  2093.    va_end(ap);
  2094.    return __somResult;
  2095. }
  2096.  
  2097.  
  2098. /* va_list method: somDispatchD */
  2099. /* the va_list invocation form */
  2100. double   WPPalette_somDispatchD(somId methodId,
  2101.         somId descriptor,
  2102.         va_list ap)
  2103. {
  2104. return SOM_ResolveD(this,WPPalette,SOMObject,somDispatchD)
  2105.     (this,methodId,descriptor,ap);
  2106. }
  2107.  
  2108. /* the varargs invocation form */
  2109. double   somDispatchD(somId methodId,
  2110.         somId descriptor,
  2111.         ...)
  2112. {
  2113.    va_list ap;
  2114.    va_start(ap, descriptor);
  2115.    double __somResult = 
  2116.       SOM_ResolveD(this,WPPalette,SOMObject,somDispatchD)
  2117.     (this,methodId,descriptor,ap);
  2118.    va_end(ap);
  2119.    return __somResult;
  2120. }
  2121.  
  2122.  
  2123. /* method: somPrintSelf */
  2124. SOMObject*   somPrintSelf()
  2125. {
  2126.    return SOM_ResolveD(this,WPPalette,SOMObject,somPrintSelf)
  2127.     (this);
  2128. }
  2129.  
  2130.  
  2131. /* method: somDumpSelf */
  2132. void   somDumpSelf(long level)
  2133. {
  2134.    SOM_ResolveD(this,WPPalette,SOMObject,somDumpSelf)
  2135.     (this,level);
  2136. }
  2137.  
  2138.  
  2139. /* method: somDumpSelfInt */
  2140. void   somDumpSelfInt(long level)
  2141. {
  2142.    SOM_ResolveD(this,WPPalette,SOMObject,somDumpSelfInt)
  2143.     (this,level);
  2144. }
  2145.  
  2146.  
  2147.  
  2148. };   /* WPPalette */
  2149.  
  2150.  
  2151.  
  2152. #endif       /* SOM_WPPalette_xh */
  2153.  
  2154. #ifndef SOM_M_WPPalette_xh
  2155. #define SOM_M_WPPalette_xh
  2156.  
  2157. class M_WPPalette;
  2158.  
  2159. #define M_WPPalette_MajorVersion 1
  2160. #define M_WPPalette_MinorVersion 2
  2161.  
  2162. /* C++ SOM defs */
  2163. #include <somcls.xh>
  2164. #include <somcm.xh>
  2165.  
  2166. /* C++ parent defs */
  2167. #ifndef SOM_M_WPAbstract_xh
  2168. #include <wpabs.xh>
  2169. #endif
  2170.  
  2171. #ifndef M_WPPalette_API
  2172. #define M_WPPalette_API
  2173. /*
  2174.  * -- The Class API
  2175.  */
  2176.  
  2177. /*
  2178.  * Start of user-defined types:
  2179.  */
  2180.  
  2181. /*
  2182.  * End of user-defined types.
  2183.  */
  2184.  
  2185. /*
  2186.  * -- M_WPPalette is a metaclass for WPPalette. Make sure WPPalette is known.
  2187.  */
  2188. class WPPalette;
  2189.  
  2190.  
  2191. /* A procedure to create the M_WPPalette Class */
  2192. SOMEXTERN SOMClass * SOMLINK M_WPPaletteNewClass(
  2193.         integer4 majorVersion,
  2194.         integer4 minorVersion);
  2195.  
  2196. /* The API to the M_WPPalette class object, and the methods it introduces. */
  2197. SOMEXTERN struct M_WPPaletteClassDataStructure {
  2198.     SOMClass *classObject;
  2199.     somMToken wpclsQueryEditString;
  2200. } SOMDLINK M_WPPaletteClassData;
  2201. #define _M_WPPalette M_WPPaletteClassData.classObject
  2202.  
  2203. /* The API to parentMtabs for M_WPPalette, and the instance data it introduces. */
  2204. SOMEXTERN struct M_WPPaletteCClassDataStructure {
  2205.     somMethodTabs parentMtab;
  2206.     somDToken              instanceDataToken;
  2207. } SOMDLINK M_WPPaletteCClassData;
  2208.  
  2209. /*
  2210.  * -- Typedefs for M_WPPalette Method Procedures
  2211.  */
  2212. SOMEXTERN {
  2213. typedef PSZ   (SOMLINK * somTD_M_WPPalette_wpclsQueryEditString)(M_WPPalette *somSelf);
  2214.  
  2215. /*
  2216.  * -- Typedefs for Reintroduced Wrapper Methods
  2217.  */
  2218. typedef ULONG   (SOMLINK * somTD_M_WPPalette_wpclsQuerySetting)(M_WPPalette *somSelf,
  2219.         PSZ pszSetting,
  2220.         PVOID pValue,
  2221.         ULONG ulValueLen);
  2222. typedef BOOL   (SOMLINK * somTD_M_WPPalette_wpclsSetSetting)(M_WPPalette *somSelf,
  2223.         PSZ pszSetting,
  2224.         PVOID pValue);
  2225. typedef PSZ   (SOMLINK * somTD_M_WPPalette_wpclsQueryTitle)(M_WPPalette *somSelf);
  2226. typedef BOOL   (SOMLINK * somTD_M_WPPalette_wpclsCreateDefaultTemplates)(M_WPPalette *somSelf,
  2227.         WPObject* Folder);
  2228. typedef void   (SOMLINK * somTD_M_WPPalette_wpclsInitData)(M_WPPalette *somSelf);
  2229. typedef WPObject*   (SOMLINK * somTD_M_WPPalette_wpclsMakeAwake)(M_WPPalette *somSelf,
  2230.         PSZ pszTitle,
  2231.         ULONG ulStyle,
  2232.         HPOINTER hptrIcon,
  2233.         POBJDATA pObjData,
  2234.         WPFolder* Folder,
  2235.         ULONG ulUser);
  2236. typedef WPObject*   (SOMLINK * somTD_M_WPPalette_wpclsNew)(M_WPPalette *somSelf,
  2237.         PSZ pszTitle,
  2238.         PSZ pszSetupEnv,
  2239.         WPFolder* Folder,
  2240.         BOOL fLock);
  2241. typedef BOOL   (SOMLINK * somTD_M_WPPalette_wpclsQueryDefaultHelp)(M_WPPalette *somSelf,
  2242.         PULONG pHelpPanelId,
  2243.         PSZ pszHelpLibrary);
  2244. typedef ULONG   (SOMLINK * somTD_M_WPPalette_wpclsQueryDefaultView)(M_WPPalette *somSelf);
  2245. typedef PCLASSDETAILS   (SOMLINK * somTD_M_WPPalette_wpclsQueryDetails)(M_WPPalette *somSelf);
  2246. typedef ULONG   (SOMLINK * somTD_M_WPPalette_wpclsQueryDetailsInfo)(M_WPPalette *somSelf,
  2247.         PCLASSFIELDINFO* ppClassFieldInfo,
  2248.         PULONG pSize);
  2249. typedef BOOL   (SOMLINK * somTD_M_WPPalette_wpclsQueryExtendedCriteria)(M_WPPalette *somSelf,
  2250.         PSZ pszName,
  2251.         ULONG ulSearchType,
  2252.         PVOID pvoidExtendedCriteria);
  2253. typedef WPObject*   (SOMLINK * somTD_M_WPPalette_wpclsQueryFolder)(M_WPPalette *somSelf,
  2254.         PSZ pszLocation,
  2255.         BOOL fLock);
  2256. typedef HPOINTER   (SOMLINK * somTD_M_WPPalette_wpclsQueryIcon)(M_WPPalette *somSelf);
  2257. typedef void   (SOMLINK * somTD_M_WPPalette_wpclsQuerySearchInfo)(M_WPPalette *somSelf,
  2258.         M_WPObject** ClassExtended,
  2259.         M_WPObject** ClassCreate,
  2260.         PULONG pulClassCriteriaSize);
  2261. typedef ULONG   (SOMLINK * somTD_M_WPPalette_wpclsQueryStyle)(M_WPPalette *somSelf);
  2262. typedef void   (SOMLINK * somTD_M_WPPalette_wpclsUnInitData)(M_WPPalette *somSelf);
  2263. typedef BOOL   (SOMLINK * somTD_M_WPPalette_wpclsFindObjectFirst)(M_WPPalette *somSelf,
  2264.         PCLASS pClassList,
  2265.         PHFIND phFind,
  2266.         PSZ pszTitle,
  2267.         WPFolder* Folder,
  2268.         BOOL fSubfolders,
  2269.         PVOID pExtendedCriteria,
  2270.         POBJECT pBuffer,
  2271.         PULONG pCount);
  2272. typedef BOOL   (SOMLINK * somTD_M_WPPalette_wpclsFindObjectNext)(M_WPPalette *somSelf,
  2273.         HFIND hFind,
  2274.         POBJECT pBuffer,
  2275.         PULONG pCount);
  2276. typedef BOOL   (SOMLINK * somTD_M_WPPalette_wpclsFindObjectEnd)(M_WPPalette *somSelf,
  2277.         HFIND hFind);
  2278. typedef BOOL   (SOMLINK * somTD_M_WPPalette_wpclsSetError)(M_WPPalette *somSelf,
  2279.         ULONG ulErrorId);
  2280. typedef ULONG   (SOMLINK * somTD_M_WPPalette_wpclsQueryError)(M_WPPalette *somSelf);
  2281. typedef BOOL   (SOMLINK * somTD_M_WPPalette_wpclsQuerySettingsPageSize)(M_WPPalette *somSelf,
  2282.         PSIZEL pSizl);
  2283. typedef ULONG   (SOMLINK * somTD_M_WPPalette_wpclsQueryIconData)(M_WPPalette *somSelf,
  2284.         PICONINFO pIconInfo);
  2285. typedef WPObject*   (SOMLINK * somTD_M_WPPalette_wpclsQueryObject)(M_WPPalette *somSelf,
  2286.         HOBJECT hObject);
  2287. typedef ULONG   (SOMLINK * somTD_M_WPPalette_wpclsQueryButtonAppearance)(M_WPPalette *somSelf);
  2288. typedef void   (SOMLINK * somTD_M_WPPalette_wpclsDecUsage)(M_WPPalette *somSelf);
  2289. typedef void   (SOMLINK * somTD_M_WPPalette_wpclsIncUsage)(M_WPPalette *somSelf);
  2290. typedef BOOL   (SOMLINK * somTD_M_WPPalette_wpclsInsertMultipleObjects)(M_WPPalette *somSelf,
  2291.         HWND hwndCnr,
  2292.         PPOINTL pptlIcon,
  2293.         PVOID* pObjectArray,
  2294.         PVOID pRecordParent,
  2295.         ULONG NumRecords);
  2296. typedef WPObject*   (SOMLINK * somTD_M_WPPalette_wpclsFindOneObject)(M_WPPalette *somSelf,
  2297.         HWND hwndOwner,
  2298.         PSZ pszFindParams);
  2299. typedef BOOL   (SOMLINK * somTD_M_WPPalette_wpclsSetSettingsPageSize)(M_WPPalette *somSelf,
  2300.         PSIZEL pSizl);
  2301. typedef BOOL   (SOMLINK * somTD_M_WPPalette_wpclsSetIconData)(M_WPPalette *somSelf,
  2302.         PICONINFO pIconInfo);
  2303. typedef BOOL   (SOMLINK * somTD_M_WPPalette_wpclsSetIcon)(M_WPPalette *somSelf,
  2304.         HPOINTER hptrNewIcon);
  2305. typedef WPObject*   (SOMLINK * somTD_M_WPPalette_wpclsObjectFromHandle)(M_WPPalette *somSelf,
  2306.         HOBJECT hObject);
  2307. typedef BOOL   (SOMLINK * somTD_M_WPPalette_wpclsRemoveObjects)(M_WPPalette *somSelf,
  2308.         HWND hwndCnr,
  2309.         PVOID* pRecordArray,
  2310.         ULONG NumRecords,
  2311.         BOOL RemoveAll);
  2312. typedef void   (SOMLINK * somTD_M_WPPalette_somUninit)(M_WPPalette *somSelf);
  2313. typedef void   (SOMLINK * somTD_M_WPPalette_somClassReady)(M_WPPalette *somSelf);
  2314. typedef WPPalette*   (SOMLINK * somTD_M_WPPalette_somNew)(M_WPPalette *somSelf);
  2315. typedef SOMObject*   (SOMLINK * somTD_M_WPPalette_somRenew)(M_WPPalette *somSelf,
  2316.         void* obj);
  2317. typedef long   (SOMLINK * somTD_M_WPPalette__get_somDataAlignment)(M_WPPalette *somSelf);
  2318. typedef SOMClass_somOffsets   (SOMLINK * somTD_M_WPPalette__get_somInstanceDataOffsets)(M_WPPalette *somSelf);
  2319. typedef SOMClass_SOMClassSequence   (SOMLINK * somTD_M_WPPalette__get_somDirectInitClasses)(M_WPPalette *somSelf);
  2320. typedef void   (SOMLINK * somTD_M_WPPalette__set_somDirectInitClasses)(M_WPPalette *somSelf,
  2321.         SOMClass_SOMClassSequence* somDirectInitClasses);
  2322. typedef SOMObject*   (SOMLINK * somTD_M_WPPalette_somNewNoInit)(M_WPPalette *somSelf);
  2323. typedef SOMObject*   (SOMLINK * somTD_M_WPPalette_somRenewNoInit)(M_WPPalette *somSelf,
  2324.         void* obj);
  2325. typedef SOMObject*   (SOMLINK * somTD_M_WPPalette_somRenewNoZero)(M_WPPalette *somSelf,
  2326.         void* obj);
  2327. typedef SOMObject*   (SOMLINK * somTD_M_WPPalette_somRenewNoInitNoZero)(M_WPPalette *somSelf,
  2328.         void* obj);
  2329. typedef string   (SOMLINK * somTD_M_WPPalette_somAllocate)(M_WPPalette *somSelf,
  2330.         long size);
  2331. typedef void   (SOMLINK * somTD_M_WPPalette_somDeallocate)(M_WPPalette *somSelf,
  2332.         string memptr);
  2333. typedef somMethodProc*   (SOMLINK * somTD_M_WPPalette__get_somClassAllocate)(M_WPPalette *somSelf);
  2334. typedef somMethodProc*   (SOMLINK * somTD_M_WPPalette__get_somClassDeallocate)(M_WPPalette *somSelf);
  2335. typedef somBooleanVector   (SOMLINK * somTD_M_WPPalette_somGetInstanceInitMask)(M_WPPalette *somSelf,
  2336.         somInitCtrl* ctrl);
  2337. typedef somBooleanVector   (SOMLINK * somTD_M_WPPalette_somGetInstanceDestructionMask)(M_WPPalette *somSelf,
  2338.         somDestructCtrl* ctrl);
  2339. typedef somBooleanVector   (SOMLINK * somTD_M_WPPalette_somGetInstanceAssignmentMask)(M_WPPalette *somSelf,
  2340.         somAssignCtrl* ctrl);
  2341. typedef void   (SOMLINK * somTD_M_WPPalette_somInitClass)(M_WPPalette *somSelf,
  2342.         string className,
  2343.         SOMClass* parentClass,
  2344.         long dataSize,
  2345.         long maxStaticMethods,
  2346.         long majorVersion,
  2347.         long minorVersion);
  2348. typedef void   (SOMLINK * somTD_M_WPPalette_somInitMIClass)(M_WPPalette *somSelf,
  2349.         long inherit_vars,
  2350.         string className,
  2351.         SOMClass_SOMClassSequence* parentClasses,
  2352.         long dataSize,
  2353.         long dataAlignment,
  2354.         long maxStaticMethods,
  2355.         long majorVersion,
  2356.         long minorVersion);
  2357. typedef somMToken   (SOMLINK * somTD_M_WPPalette_somAddStaticMethod)(M_WPPalette *somSelf,
  2358.         somId methodId,
  2359.         somId methodDescriptor,
  2360.         somMethodPtr method,
  2361.         somMethodPtr redispatchStub,
  2362.         somMethodPtr applyStub);
  2363. typedef void   (SOMLINK * somTD_M_WPPalette_somAddDynamicMethod)(M_WPPalette *somSelf,
  2364.         somId methodId,
  2365.         somId methodDescriptor,
  2366.         somMethodPtr method,
  2367.         somMethodPtr applyStub);
  2368. typedef void   (SOMLINK * somTD_M_WPPalette_somOverrideSMethod)(M_WPPalette *somSelf,
  2369.         somId methodId,
  2370.         somMethodPtr method);
  2371. typedef somMethodPtr   (SOMLINK * somTD_M_WPPalette_somGetApplyStub)(M_WPPalette *somSelf,
  2372.         somId methodId);
  2373. typedef somClassDataStructure*   (SOMLINK * somTD_M_WPPalette_somGetClassData)(M_WPPalette *somSelf);
  2374. typedef void   (SOMLINK * somTD_M_WPPalette_somSetClassData)(M_WPPalette *somSelf,
  2375.         somClassDataStructure* cds);
  2376. typedef somMethodTab*   (SOMLINK * somTD_M_WPPalette_somGetClassMtab)(M_WPPalette *somSelf);
  2377. typedef long   (SOMLINK * somTD_M_WPPalette_somGetInstanceOffset)(M_WPPalette *somSelf);
  2378. typedef long   (SOMLINK * somTD_M_WPPalette_somGetInstancePartSize)(M_WPPalette *somSelf);
  2379. typedef long   (SOMLINK * somTD_M_WPPalette_somGetInstanceSize)(M_WPPalette *somSelf);
  2380. typedef somDToken   (SOMLINK * somTD_M_WPPalette_somGetInstanceToken)(M_WPPalette *somSelf);
  2381. typedef somDToken   (SOMLINK * somTD_M_WPPalette_somGetMemberToken)(M_WPPalette *somSelf,
  2382.         long memberOffset,
  2383.         somDToken instanceToken);
  2384. typedef boolean   (SOMLINK * somTD_M_WPPalette_somGetMethodData)(M_WPPalette *somSelf,
  2385.         somId methodId,
  2386.         somMethodData* md);
  2387. typedef somMethodProc*   (SOMLINK * somTD_M_WPPalette_somGetRdStub)(M_WPPalette *somSelf,
  2388.         somId methodId);
  2389. typedef somId   (SOMLINK * somTD_M_WPPalette_somGetMethodDescriptor)(M_WPPalette *somSelf,
  2390.         somId methodId);
  2391. typedef long   (SOMLINK * somTD_M_WPPalette_somGetMethodIndex)(M_WPPalette *somSelf,
  2392.         somId id);
  2393. typedef somMToken   (SOMLINK * somTD_M_WPPalette_somGetMethodToken)(M_WPPalette *somSelf,
  2394.         somId methodId);
  2395. typedef string   (SOMLINK * somTD_M_WPPalette_somGetName)(M_WPPalette *somSelf);
  2396. typedef boolean   (SOMLINK * somTD_M_WPPalette_somGetNthMethodData)(M_WPPalette *somSelf,
  2397.         long n,
  2398.         somMethodData* md);
  2399. typedef somId   (SOMLINK * somTD_M_WPPalette_somGetNthMethodInfo)(M_WPPalette *somSelf,
  2400.         long n,
  2401.         somId* descriptor);
  2402. typedef long   (SOMLINK * somTD_M_WPPalette_somGetNumMethods)(M_WPPalette *somSelf);
  2403. typedef long   (SOMLINK * somTD_M_WPPalette_somGetNumStaticMethods)(M_WPPalette *somSelf);
  2404. typedef SOMClass*   (SOMLINK * somTD_M_WPPalette_somGetParent)(M_WPPalette *somSelf);
  2405. typedef SOMClass_SOMClassSequence   (SOMLINK * somTD_M_WPPalette_somGetParents)(M_WPPalette *somSelf);
  2406. typedef somMethodTabs   (SOMLINK * somTD_M_WPPalette_somGetPClsMtab)(M_WPPalette *somSelf);
  2407. typedef somMethodTabs   (SOMLINK * somTD_M_WPPalette_somGetPClsMtabs)(M_WPPalette *somSelf);
  2408. typedef void   (SOMLINK * somTD_M_WPPalette_somGetVersionNumbers)(M_WPPalette *somSelf,
  2409.         long* majorVersion,
  2410.         long* minorVersion);
  2411. typedef boolean   (SOMLINK * somTD_M_WPPalette_somSetMethodDescriptor)(M_WPPalette *somSelf,
  2412.         somId methodId,
  2413.         somId descriptor);
  2414. typedef boolean   (SOMLINK * somTD_M_WPPalette_somFindMethod)(M_WPPalette *somSelf,
  2415.         somId methodId,
  2416.         somMethodPtr* m);
  2417. typedef boolean   (SOMLINK * somTD_M_WPPalette_somFindMethodOk)(M_WPPalette *somSelf,
  2418.         somId methodId,
  2419.         somMethodPtr* m);
  2420. typedef somMethodPtr   (SOMLINK * somTD_M_WPPalette_somFindSMethod)(M_WPPalette *somSelf,
  2421.         somId methodId);
  2422. typedef somMethodPtr   (SOMLINK * somTD_M_WPPalette_somFindSMethodOk)(M_WPPalette *somSelf,
  2423.         somId methodId);
  2424. typedef somMethodPtr   (SOMLINK * somTD_M_WPPalette_somLookupMethod)(M_WPPalette *somSelf,
  2425.         somId methodId);
  2426. typedef boolean   (SOMLINK * somTD_M_WPPalette_somCheckVersion)(M_WPPalette *somSelf,
  2427.         long majorVersion,
  2428.         long minorVersion);
  2429. typedef boolean   (SOMLINK * somTD_M_WPPalette_somDescendedFrom)(M_WPPalette *somSelf,
  2430.         SOMClass* aClassObj);
  2431. typedef boolean   (SOMLINK * somTD_M_WPPalette_somSupportsMethod)(M_WPPalette *somSelf,
  2432.         somId mId);
  2433. typedef somMethodPtr   (SOMLINK * somTD_M_WPPalette_somDefinedMethod)(M_WPPalette *somSelf,
  2434.         somMToken method);
  2435. typedef void   (SOMLINK * somTD_M_WPPalette_somOverrideMtab)(M_WPPalette *somSelf);
  2436. typedef void   (SOMLINK * somTD_M_WPPalette_somDefaultInit)(M_WPPalette *somSelf,
  2437.         somInitCtrl* ctrl);
  2438. typedef void   (SOMLINK * somTD_M_WPPalette_somDestruct)(M_WPPalette *somSelf,
  2439.         octet doFree,
  2440.         somDestructCtrl* ctrl);
  2441. typedef void   (SOMLINK * somTD_M_WPPalette_somDefaultCopyInit)(M_WPPalette *somSelf,
  2442.         somInitCtrl* ctrl,
  2443.         SOMObject* fromObj);
  2444. typedef M_WPPalette*   (SOMLINK * somTD_M_WPPalette_somDefaultAssign)(M_WPPalette *somSelf,
  2445.         somAssignCtrl* ctrl,
  2446.         SOMObject* fromObj);
  2447. typedef void   (SOMLINK * somTD_M_WPPalette_somDefaultConstCopyInit)(M_WPPalette *somSelf,
  2448.         somInitCtrl* ctrl,
  2449.         SOMObject* fromObj);
  2450. typedef void   (SOMLINK * somTD_M_WPPalette_somDefaultVCopyInit)(M_WPPalette *somSelf,
  2451.         somInitCtrl* ctrl,
  2452.         SOMObject* fromObj);
  2453. typedef void   (SOMLINK * somTD_M_WPPalette_somDefaultConstVCopyInit)(M_WPPalette *somSelf,
  2454.         somInitCtrl* ctrl,
  2455.         SOMObject* fromObj);
  2456. typedef M_WPPalette*   (SOMLINK * somTD_M_WPPalette_somDefaultConstAssign)(M_WPPalette *somSelf,
  2457.         somAssignCtrl* ctrl,
  2458.         SOMObject* fromObj);
  2459. typedef M_WPPalette*   (SOMLINK * somTD_M_WPPalette_somDefaultVAssign)(M_WPPalette *somSelf,
  2460.         somAssignCtrl* ctrl,
  2461.         SOMObject* fromObj);
  2462. typedef M_WPPalette*   (SOMLINK * somTD_M_WPPalette_somDefaultConstVAssign)(M_WPPalette *somSelf,
  2463.         somAssignCtrl* ctrl,
  2464.         SOMObject* fromObj);
  2465. typedef void   (SOMLINK * somTD_M_WPPalette_somInit)(M_WPPalette *somSelf);
  2466. typedef void   (SOMLINK * somTD_M_WPPalette_somFree)(M_WPPalette *somSelf);
  2467. typedef SOMClass*   (SOMLINK * somTD_M_WPPalette_somGetClass)(M_WPPalette *somSelf);
  2468. typedef string   (SOMLINK * somTD_M_WPPalette_somGetClassName)(M_WPPalette *somSelf);
  2469. typedef long   (SOMLINK * somTD_M_WPPalette_somGetSize)(M_WPPalette *somSelf);
  2470. typedef boolean   (SOMLINK * somTD_M_WPPalette_somIsA)(M_WPPalette *somSelf,
  2471.         SOMClass* aClassObj);
  2472. typedef boolean   (SOMLINK * somTD_M_WPPalette_somIsInstanceOf)(M_WPPalette *somSelf,
  2473.         SOMClass* aClassObj);
  2474. typedef boolean   (SOMLINK * somTD_M_WPPalette_somRespondsTo)(M_WPPalette *somSelf,
  2475.         somId mId);
  2476. typedef boolean   (SOMLINK * somTD_M_WPPalette_somDispatch)(M_WPPalette *somSelf,
  2477.         somToken* retValue,
  2478.         somId methodId,
  2479.         va_list ap);
  2480. typedef boolean   (SOMLINK * somTD_M_WPPalette_somClassDispatch)(M_WPPalette *somSelf,
  2481.         SOMClass* clsObj,
  2482.         somToken* retValue,
  2483.         somId methodId,
  2484.         va_list ap);
  2485. typedef boolean   (SOMLINK * somTD_M_WPPalette_somCastObj)(M_WPPalette *somSelf,
  2486.         SOMClass* cls);
  2487. typedef boolean   (SOMLINK * somTD_M_WPPalette_somResetObj)(M_WPPalette *somSelf);
  2488. typedef void   (SOMLINK * somTD_M_WPPalette_somDispatchV)(M_WPPalette *somSelf,
  2489.         somId methodId,
  2490.         somId descriptor,
  2491.         va_list ap);
  2492. typedef long   (SOMLINK * somTD_M_WPPalette_somDispatchL)(M_WPPalette *somSelf,
  2493.         somId methodId,
  2494.         somId descriptor,
  2495.         va_list ap);
  2496. typedef void*   (SOMLINK * somTD_M_WPPalette_somDispatchA)(M_WPPalette *somSelf,
  2497.         somId methodId,
  2498.         somId descriptor,
  2499.         va_list ap);
  2500. typedef double   (SOMLINK * somTD_M_WPPalette_somDispatchD)(M_WPPalette *somSelf,
  2501.         somId methodId,
  2502.         somId descriptor,
  2503.         va_list ap);
  2504. typedef SOMObject*   (SOMLINK * somTD_M_WPPalette_somPrintSelf)(M_WPPalette *somSelf);
  2505. typedef void   (SOMLINK * somTD_M_WPPalette_somDumpSelf)(M_WPPalette *somSelf,
  2506.         long level);
  2507. typedef void   (SOMLINK * somTD_M_WPPalette_somDumpSelfInt)(M_WPPalette *somSelf,
  2508.         long level);
  2509. }
  2510.  
  2511. #endif /* M_WPPalette_API */
  2512.  
  2513.  
  2514. /*
  2515.  * -- This emitter treats Method Tokens as Thunks by default.
  2516.  * -- Use the sc modifier "nothunks" to change this default
  2517.  */
  2518. #undef somresolve_
  2519. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  2520.  
  2521. /*
  2522.  * -- The C++ Wrapper Class for M_WPPalette
  2523.  */
  2524. class M_WPPalette : public M_WPAbstract
  2525. {
  2526. public:
  2527.  
  2528. // M_WPPalette::new creates the class object if necessary, and then uses somNewNoInit
  2529. // to allocate memory and create the object. Initialization is in ctors.
  2530. void *operator new(size_t size)
  2531. {
  2532.    SOM_IgnoreWarning(size);
  2533.    if (!_M_WPPalette) M_WPPaletteNewClass(M_WPPalette_MajorVersion,M_WPPalette_MinorVersion);
  2534.    return (void*)
  2535.       SOM_Resolve(_M_WPPalette,SOMClass,somNewNoInit)
  2536.          ((SOMClass *)((void*)_M_WPPalette));
  2537. }
  2538.  
  2539. // M_WPPalette::delete uses the default deallocator for the object's class.
  2540. void operator delete(void * obj)
  2541. {
  2542.    somToken objCls = obj ? *(void**)obj : (somToken) NULL;
  2543.    if (somIsObj(objCls)) {
  2544.       SOM_Resolve(objCls,SOMClass,somDeallocate)
  2545.          ((SOMClass*)objCls, (string)obj);
  2546.    }
  2547. }
  2548.  
  2549. M_WPPalette()
  2550. {
  2551.    if (*(void**)this != 
  2552.        ((somParentMtabStructPtr)
  2553.         (M_WPPaletteCClassData.parentMtab))->mtab)
  2554.       return;
  2555.    somDefaultInit(0);
  2556. }
  2557.  
  2558. M_WPPalette(M_WPPalette* fromObj)
  2559. {
  2560.    if (*(void**)this != 
  2561.        ((somParentMtabStructPtr)
  2562.         (M_WPPaletteCClassData.parentMtab))->mtab)
  2563.       return;
  2564.    somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  2565. }
  2566.  
  2567. M_WPPalette(const M_WPPalette* fromObj)
  2568. {
  2569.    if (*(void**)this != 
  2570.        ((somParentMtabStructPtr)
  2571.         (M_WPPaletteCClassData.parentMtab))->mtab)
  2572.       return;
  2573.    somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  2574. }
  2575.  
  2576. ~M_WPPalette()
  2577. {
  2578.    if (!somIsObj(this)) return;
  2579.    somDestruct(0,0);
  2580.    *(void**)this = **(void***)this;
  2581. }
  2582.  
  2583.  
  2584. /* method: wpclsQueryEditString */
  2585. PSZ   wpclsQueryEditString()
  2586. {
  2587.    return SOM_ResolveD(this,M_WPPalette,M_WPPalette,wpclsQueryEditString)
  2588.     (this);
  2589. }
  2590.  
  2591.  
  2592. /*
  2593.  * Reintroduce inherited methods
  2594.  */
  2595.  
  2596. /* method: wpclsQuerySetting */
  2597. ULONG   wpclsQuerySetting(PSZ pszSetting,
  2598.         PVOID pValue,
  2599.         ULONG ulValueLen)
  2600. {
  2601.    return SOM_ResolveD(this,M_WPPalette,M_WPAbstract,wpclsQuerySetting)
  2602.     (this,pszSetting,pValue,ulValueLen);
  2603. }
  2604.  
  2605.  
  2606. /* method: wpclsSetSetting */
  2607. BOOL   wpclsSetSetting(PSZ pszSetting,
  2608.         PVOID pValue)
  2609. {
  2610.    return SOM_ResolveD(this,M_WPPalette,M_WPAbstract,wpclsSetSetting)
  2611.     (this,pszSetting,pValue);
  2612. }
  2613.  
  2614.  
  2615. /* method: wpclsQueryTitle */
  2616. PSZ   wpclsQueryTitle()
  2617. {
  2618.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsQueryTitle)
  2619.     (this);
  2620. }
  2621.  
  2622.  
  2623. /* method: wpclsCreateDefaultTemplates */
  2624. BOOL   wpclsCreateDefaultTemplates(WPObject* Folder)
  2625. {
  2626.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsCreateDefaultTemplates)
  2627.     (this,Folder);
  2628. }
  2629.  
  2630.  
  2631. /* method: wpclsInitData */
  2632. void   wpclsInitData()
  2633. {
  2634.    SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsInitData)
  2635.     (this);
  2636. }
  2637.  
  2638.  
  2639. /* method: wpclsMakeAwake */
  2640. WPObject*   wpclsMakeAwake(PSZ pszTitle,
  2641.         ULONG ulStyle,
  2642.         HPOINTER hptrIcon,
  2643.         POBJDATA pObjData,
  2644.         WPFolder* Folder,
  2645.         ULONG ulUser)
  2646. {
  2647.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsMakeAwake)
  2648.     (this,pszTitle,ulStyle,hptrIcon,pObjData,Folder,ulUser);
  2649. }
  2650.  
  2651.  
  2652. /* method: wpclsNew */
  2653. WPObject*   wpclsNew(PSZ pszTitle,
  2654.         PSZ pszSetupEnv,
  2655.         WPFolder* Folder,
  2656.         BOOL fLock)
  2657. {
  2658.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsNew)
  2659.     (this,pszTitle,pszSetupEnv,Folder,fLock);
  2660. }
  2661.  
  2662.  
  2663. /* method: wpclsQueryDefaultHelp */
  2664. BOOL   wpclsQueryDefaultHelp(PULONG pHelpPanelId,
  2665.         PSZ pszHelpLibrary)
  2666. {
  2667.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsQueryDefaultHelp)
  2668.     (this,pHelpPanelId,pszHelpLibrary);
  2669. }
  2670.  
  2671.  
  2672. /* method: wpclsQueryDefaultView */
  2673. ULONG   wpclsQueryDefaultView()
  2674. {
  2675.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsQueryDefaultView)
  2676.     (this);
  2677. }
  2678.  
  2679.  
  2680. /* method: wpclsQueryDetails */
  2681. PCLASSDETAILS   wpclsQueryDetails()
  2682. {
  2683.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsQueryDetails)
  2684.     (this);
  2685. }
  2686.  
  2687.  
  2688. /* method: wpclsQueryDetailsInfo */
  2689. ULONG   wpclsQueryDetailsInfo(PCLASSFIELDINFO* ppClassFieldInfo,
  2690.         PULONG pSize)
  2691. {
  2692.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsQueryDetailsInfo)
  2693.     (this,ppClassFieldInfo,pSize);
  2694. }
  2695.  
  2696.  
  2697. /* method: wpclsQueryExtendedCriteria */
  2698. BOOL   wpclsQueryExtendedCriteria(PSZ pszName,
  2699.         ULONG ulSearchType,
  2700.         PVOID pvoidExtendedCriteria)
  2701. {
  2702.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsQueryExtendedCriteria)
  2703.     (this,pszName,ulSearchType,pvoidExtendedCriteria);
  2704. }
  2705.  
  2706.  
  2707. /* method: wpclsQueryFolder */
  2708. WPObject*   wpclsQueryFolder(PSZ pszLocation,
  2709.         BOOL fLock)
  2710. {
  2711.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsQueryFolder)
  2712.     (this,pszLocation,fLock);
  2713. }
  2714.  
  2715.  
  2716. /* method: wpclsQueryIcon */
  2717. HPOINTER   wpclsQueryIcon()
  2718. {
  2719.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsQueryIcon)
  2720.     (this);
  2721. }
  2722.  
  2723.  
  2724. /* method: wpclsQuerySearchInfo */
  2725. void   wpclsQuerySearchInfo(M_WPObject** ClassExtended,
  2726.         M_WPObject** ClassCreate,
  2727.         PULONG pulClassCriteriaSize)
  2728. {
  2729.    SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsQuerySearchInfo)
  2730.     (this,ClassExtended,ClassCreate,pulClassCriteriaSize);
  2731. }
  2732.  
  2733.  
  2734. /* method: wpclsQueryStyle */
  2735. ULONG   wpclsQueryStyle()
  2736. {
  2737.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsQueryStyle)
  2738.     (this);
  2739. }
  2740.  
  2741.  
  2742. /* method: wpclsUnInitData */
  2743. void   wpclsUnInitData()
  2744. {
  2745.    SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsUnInitData)
  2746.     (this);
  2747. }
  2748.  
  2749.  
  2750. /* method: wpclsFindObjectFirst */
  2751. BOOL   wpclsFindObjectFirst(PCLASS pClassList,
  2752.         PHFIND phFind,
  2753.         PSZ pszTitle,
  2754.         WPFolder* Folder,
  2755.         BOOL fSubfolders,
  2756.         PVOID pExtendedCriteria,
  2757.         POBJECT pBuffer,
  2758.         PULONG pCount)
  2759. {
  2760.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsFindObjectFirst)
  2761.     (this,pClassList,phFind,pszTitle,Folder,fSubfolders,pExtendedCriteria,pBuffer,pCount);
  2762. }
  2763.  
  2764.  
  2765. /* method: wpclsFindObjectNext */
  2766. BOOL   wpclsFindObjectNext(HFIND hFind,
  2767.         POBJECT pBuffer,
  2768.         PULONG pCount)
  2769. {
  2770.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsFindObjectNext)
  2771.     (this,hFind,pBuffer,pCount);
  2772. }
  2773.  
  2774.  
  2775. /* method: wpclsFindObjectEnd */
  2776. BOOL   wpclsFindObjectEnd(HFIND hFind)
  2777. {
  2778.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsFindObjectEnd)
  2779.     (this,hFind);
  2780. }
  2781.  
  2782.  
  2783. /* method: wpclsSetError */
  2784. BOOL   wpclsSetError(ULONG ulErrorId)
  2785. {
  2786.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsSetError)
  2787.     (this,ulErrorId);
  2788. }
  2789.  
  2790.  
  2791. /* method: wpclsQueryError */
  2792. ULONG   wpclsQueryError()
  2793. {
  2794.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsQueryError)
  2795.     (this);
  2796. }
  2797.  
  2798.  
  2799. /* method: wpclsQuerySettingsPageSize */
  2800. BOOL   wpclsQuerySettingsPageSize(PSIZEL pSizl)
  2801. {
  2802.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsQuerySettingsPageSize)
  2803.     (this,pSizl);
  2804. }
  2805.  
  2806.  
  2807. /* method: wpclsQueryIconData */
  2808. ULONG   wpclsQueryIconData(PICONINFO pIconInfo)
  2809. {
  2810.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsQueryIconData)
  2811.     (this,pIconInfo);
  2812. }
  2813.  
  2814.  
  2815. /* method: wpclsQueryObject */
  2816. WPObject*   wpclsQueryObject(HOBJECT hObject)
  2817. {
  2818.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsQueryObject)
  2819.     (this,hObject);
  2820. }
  2821.  
  2822.  
  2823. /* method: wpclsQueryButtonAppearance */
  2824. ULONG   wpclsQueryButtonAppearance()
  2825. {
  2826.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsQueryButtonAppearance)
  2827.     (this);
  2828. }
  2829.  
  2830.  
  2831. /* method: wpclsDecUsage */
  2832. void   wpclsDecUsage()
  2833. {
  2834.    SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsDecUsage)
  2835.     (this);
  2836. }
  2837.  
  2838.  
  2839. /* method: wpclsIncUsage */
  2840. void   wpclsIncUsage()
  2841. {
  2842.    SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsIncUsage)
  2843.     (this);
  2844. }
  2845.  
  2846.  
  2847. /* method: wpclsInsertMultipleObjects */
  2848. BOOL   wpclsInsertMultipleObjects(HWND hwndCnr,
  2849.         PPOINTL pptlIcon,
  2850.         PVOID* pObjectArray,
  2851.         PVOID pRecordParent,
  2852.         ULONG NumRecords)
  2853. {
  2854.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsInsertMultipleObjects)
  2855.     (this,hwndCnr,pptlIcon,pObjectArray,pRecordParent,NumRecords);
  2856. }
  2857.  
  2858.  
  2859. /* method: wpclsFindOneObject */
  2860. WPObject*   wpclsFindOneObject(HWND hwndOwner,
  2861.         PSZ pszFindParams)
  2862. {
  2863.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsFindOneObject)
  2864.     (this,hwndOwner,pszFindParams);
  2865. }
  2866.  
  2867.  
  2868. /* method: wpclsSetSettingsPageSize */
  2869. BOOL   wpclsSetSettingsPageSize(PSIZEL pSizl)
  2870. {
  2871.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsSetSettingsPageSize)
  2872.     (this,pSizl);
  2873. }
  2874.  
  2875.  
  2876. /* method: wpclsSetIconData */
  2877. BOOL   wpclsSetIconData(PICONINFO pIconInfo)
  2878. {
  2879.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsSetIconData)
  2880.     (this,pIconInfo);
  2881. }
  2882.  
  2883.  
  2884. /* method: wpclsSetIcon */
  2885. BOOL   wpclsSetIcon(HPOINTER hptrNewIcon)
  2886. {
  2887.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsSetIcon)
  2888.     (this,hptrNewIcon);
  2889. }
  2890.  
  2891.  
  2892. /* method: wpclsObjectFromHandle */
  2893. WPObject*   wpclsObjectFromHandle(HOBJECT hObject)
  2894. {
  2895.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsObjectFromHandle)
  2896.     (this,hObject);
  2897. }
  2898.  
  2899.  
  2900. /* method: wpclsRemoveObjects */
  2901. BOOL   wpclsRemoveObjects(HWND hwndCnr,
  2902.         PVOID* pRecordArray,
  2903.         ULONG NumRecords,
  2904.         BOOL RemoveAll)
  2905. {
  2906.    return SOM_ResolveD(this,M_WPPalette,M_WPObject,wpclsRemoveObjects)
  2907.     (this,hwndCnr,pRecordArray,NumRecords,RemoveAll);
  2908. }
  2909.  
  2910.  
  2911. /* method: somUninit */
  2912. void   somUninit()
  2913. {
  2914.    SOM_ResolveD(this,M_WPPalette,SOMObject,somUninit)
  2915.     (this);
  2916. }
  2917.  
  2918.  
  2919. /* method: somClassReady */
  2920. void   somClassReady()
  2921. {
  2922.    SOM_ResolveD(this,M_WPPalette,SOMClass,somClassReady)
  2923.     (this);
  2924. }
  2925.  
  2926.  
  2927. /* method: somNew */
  2928. WPPalette*  somNew()
  2929. {
  2930.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somNew)
  2931.     (this);
  2932. }
  2933.  
  2934.  
  2935. /* method: somRenew */
  2936. SOMObject*   somRenew(void* obj)
  2937. {
  2938.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somRenew)
  2939.     (this,obj);
  2940. }
  2941.  
  2942.  
  2943. /* method: _get_somDataAlignment */
  2944. long   _get_somDataAlignment()
  2945. {
  2946.    return SOM_ResolveD(this,M_WPPalette,SOMClass,_get_somDataAlignment)
  2947.     (this);
  2948. }
  2949.  
  2950.  
  2951. /* nonstatic method: _get_somInstanceDataOffsets */
  2952. SOMClass_somOffsets   _get_somInstanceDataOffsets()
  2953. {
  2954.    return SOM_ResolveD(this,M_WPPalette,SOMClass,_get_somInstanceDataOffsets)
  2955.     (this);
  2956. }
  2957.  
  2958.  
  2959. /* nonstatic method: _get_somDirectInitClasses */
  2960. SOMClass_SOMClassSequence   _get_somDirectInitClasses()
  2961. {
  2962.    return SOM_ResolveD(this,M_WPPalette,SOMClass,_get_somDirectInitClasses)
  2963.     (this);
  2964. }
  2965.  
  2966.  
  2967. /* nonstatic method: _set_somDirectInitClasses */
  2968. void   _set_somDirectInitClasses(SOMClass_SOMClassSequence* somDirectInitClasses)
  2969. {
  2970.    SOM_ResolveD(this,M_WPPalette,SOMClass,_set_somDirectInitClasses)
  2971.     (this,somDirectInitClasses);
  2972. }
  2973.  
  2974.  
  2975. /* method: somNewNoInit */
  2976. SOMObject*   somNewNoInit()
  2977. {
  2978.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somNewNoInit)
  2979.     (this);
  2980. }
  2981.  
  2982.  
  2983. /* method: somRenewNoInit */
  2984. SOMObject*   somRenewNoInit(void* obj)
  2985. {
  2986.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somRenewNoInit)
  2987.     (this,obj);
  2988. }
  2989.  
  2990.  
  2991. /* method: somRenewNoZero */
  2992. SOMObject*   somRenewNoZero(void* obj)
  2993. {
  2994.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somRenewNoZero)
  2995.     (this,obj);
  2996. }
  2997.  
  2998.  
  2999. /* method: somRenewNoInitNoZero */
  3000. SOMObject*   somRenewNoInitNoZero(void* obj)
  3001. {
  3002.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somRenewNoInitNoZero)
  3003.     (this,obj);
  3004. }
  3005.  
  3006.  
  3007. /* nonstatic method: somAllocate */
  3008. string   somAllocate(long size)
  3009. {
  3010.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somAllocate)
  3011.     (this,size);
  3012. }
  3013.  
  3014.  
  3015. /* nonstatic method: somDeallocate */
  3016. void   somDeallocate(string memptr)
  3017. {
  3018.    SOM_ResolveD(this,M_WPPalette,SOMClass,somDeallocate)
  3019.     (this,memptr);
  3020. }
  3021.  
  3022.  
  3023. /* nonstatic method: _get_somClassAllocate */
  3024. somMethodProc*   _get_somClassAllocate()
  3025. {
  3026.    return SOM_ResolveD(this,M_WPPalette,SOMClass,_get_somClassAllocate)
  3027.     (this);
  3028. }
  3029.  
  3030.  
  3031. /* nonstatic method: _get_somClassDeallocate */
  3032. somMethodProc*   _get_somClassDeallocate()
  3033. {
  3034.    return SOM_ResolveD(this,M_WPPalette,SOMClass,_get_somClassDeallocate)
  3035.     (this);
  3036. }
  3037.  
  3038.  
  3039. /* method: somGetInstanceInitMask */
  3040. somBooleanVector   somGetInstanceInitMask(somInitCtrl* ctrl)
  3041. {
  3042.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetInstanceInitMask)
  3043.     (this,ctrl);
  3044. }
  3045.  
  3046.  
  3047. /* method: somGetInstanceDestructionMask */
  3048. somBooleanVector   somGetInstanceDestructionMask(somDestructCtrl* ctrl)
  3049. {
  3050.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetInstanceDestructionMask)
  3051.     (this,ctrl);
  3052. }
  3053.  
  3054.  
  3055. /* method: somGetInstanceAssignmentMask */
  3056. somBooleanVector   somGetInstanceAssignmentMask(somAssignCtrl* ctrl)
  3057. {
  3058.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetInstanceAssignmentMask)
  3059.     (this,ctrl);
  3060. }
  3061.  
  3062.  
  3063. /* method: somInitClass */
  3064. void   somInitClass(string className,
  3065.         SOMClass* parentClass,
  3066.         long dataSize,
  3067.         long maxStaticMethods,
  3068.         long majorVersion,
  3069.         long minorVersion)
  3070. {
  3071.    SOM_ResolveD(this,M_WPPalette,SOMClass,somInitClass)
  3072.     (this,className,parentClass,dataSize,maxStaticMethods,majorVersion,minorVersion);
  3073. }
  3074.  
  3075.  
  3076. /* method: somInitMIClass */
  3077. void   somInitMIClass(long inherit_vars,
  3078.         string className,
  3079.         SOMClass_SOMClassSequence* parentClasses,
  3080.         long dataSize,
  3081.         long dataAlignment,
  3082.         long maxStaticMethods,
  3083.         long majorVersion,
  3084.         long minorVersion)
  3085. {
  3086.    SOM_ResolveD(this,M_WPPalette,SOMClass,somInitMIClass)
  3087.     (this,inherit_vars,className,parentClasses,dataSize,dataAlignment,maxStaticMethods,majorVersion,minorVersion);
  3088. }
  3089.  
  3090.  
  3091. /* method: somAddStaticMethod */
  3092. somMToken   somAddStaticMethod(somId methodId,
  3093.         somId methodDescriptor,
  3094.         somMethodPtr method,
  3095.         somMethodPtr redispatchStub,
  3096.         somMethodPtr applyStub)
  3097. {
  3098.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somAddStaticMethod)
  3099.     (this,methodId,methodDescriptor,method,redispatchStub,applyStub);
  3100. }
  3101.  
  3102.  
  3103. /* method: somAddDynamicMethod */
  3104. void   somAddDynamicMethod(somId methodId,
  3105.         somId methodDescriptor,
  3106.         somMethodPtr method,
  3107.         somMethodPtr applyStub)
  3108. {
  3109.    SOM_ResolveD(this,M_WPPalette,SOMClass,somAddDynamicMethod)
  3110.     (this,methodId,methodDescriptor,method,applyStub);
  3111. }
  3112.  
  3113.  
  3114. /* method: somOverrideSMethod */
  3115. void   somOverrideSMethod(somId methodId,
  3116.         somMethodPtr method)
  3117. {
  3118.    SOM_ResolveD(this,M_WPPalette,SOMClass,somOverrideSMethod)
  3119.     (this,methodId,method);
  3120. }
  3121.  
  3122.  
  3123. /* method: somGetApplyStub */
  3124. somMethodPtr   somGetApplyStub(somId methodId)
  3125. {
  3126.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetApplyStub)
  3127.     (this,methodId);
  3128. }
  3129.  
  3130.  
  3131. /* method: somGetClassData */
  3132. somClassDataStructure*   somGetClassData()
  3133. {
  3134.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetClassData)
  3135.     (this);
  3136. }
  3137.  
  3138.  
  3139. /* method: somSetClassData */
  3140. void   somSetClassData(somClassDataStructure* cds)
  3141. {
  3142.    SOM_ResolveD(this,M_WPPalette,SOMClass,somSetClassData)
  3143.     (this,cds);
  3144. }
  3145.  
  3146.  
  3147. /* method: somGetClassMtab */
  3148. somMethodTab*   somGetClassMtab()
  3149. {
  3150.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetClassMtab)
  3151.     (this);
  3152. }
  3153.  
  3154.  
  3155. /* method: somGetInstanceOffset */
  3156. long   somGetInstanceOffset()
  3157. {
  3158.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetInstanceOffset)
  3159.     (this);
  3160. }
  3161.  
  3162.  
  3163. /* method: somGetInstancePartSize */
  3164. long   somGetInstancePartSize()
  3165. {
  3166.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetInstancePartSize)
  3167.     (this);
  3168. }
  3169.  
  3170.  
  3171. /* method: somGetInstanceSize */
  3172. long   somGetInstanceSize()
  3173. {
  3174.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetInstanceSize)
  3175.     (this);
  3176. }
  3177.  
  3178.  
  3179. /* method: somGetInstanceToken */
  3180. somDToken   somGetInstanceToken()
  3181. {
  3182.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetInstanceToken)
  3183.     (this);
  3184. }
  3185.  
  3186.  
  3187. /* method: somGetMemberToken */
  3188. somDToken   somGetMemberToken(long memberOffset,
  3189.         somDToken instanceToken)
  3190. {
  3191.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetMemberToken)
  3192.     (this,memberOffset,instanceToken);
  3193. }
  3194.  
  3195.  
  3196. /* method: somGetMethodData */
  3197. boolean   somGetMethodData(somId methodId,
  3198.         somMethodData* md)
  3199. {
  3200.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetMethodData)
  3201.     (this,methodId,md);
  3202. }
  3203.  
  3204.  
  3205. /* method: somGetRdStub */
  3206. somMethodProc*   somGetRdStub(somId methodId)
  3207. {
  3208.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetRdStub)
  3209.     (this,methodId);
  3210. }
  3211.  
  3212.  
  3213. /* method: somGetMethodDescriptor */
  3214. somId   somGetMethodDescriptor(somId methodId)
  3215. {
  3216.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetMethodDescriptor)
  3217.     (this,methodId);
  3218. }
  3219.  
  3220.  
  3221. /* method: somGetMethodIndex */
  3222. long   somGetMethodIndex(somId id)
  3223. {
  3224.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetMethodIndex)
  3225.     (this,id);
  3226. }
  3227.  
  3228.  
  3229. /* method: somGetMethodToken */
  3230. somMToken   somGetMethodToken(somId methodId)
  3231. {
  3232.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetMethodToken)
  3233.     (this,methodId);
  3234. }
  3235.  
  3236.  
  3237. /* method: somGetName */
  3238. string   somGetName()
  3239. {
  3240.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetName)
  3241.     (this);
  3242. }
  3243.  
  3244.  
  3245. /* method: somGetNthMethodData */
  3246. boolean   somGetNthMethodData(long n,
  3247.         somMethodData* md)
  3248. {
  3249.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetNthMethodData)
  3250.     (this,n,md);
  3251. }
  3252.  
  3253.  
  3254. /* method: somGetNthMethodInfo */
  3255. somId   somGetNthMethodInfo(long n,
  3256.         somId* descriptor)
  3257. {
  3258.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetNthMethodInfo)
  3259.     (this,n,descriptor);
  3260. }
  3261.  
  3262.  
  3263. /* method: somGetNumMethods */
  3264. long   somGetNumMethods()
  3265. {
  3266.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetNumMethods)
  3267.     (this);
  3268. }
  3269.  
  3270.  
  3271. /* method: somGetNumStaticMethods */
  3272. long   somGetNumStaticMethods()
  3273. {
  3274.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetNumStaticMethods)
  3275.     (this);
  3276. }
  3277.  
  3278.  
  3279. /* method: somGetParent */
  3280. SOMClass*   somGetParent()
  3281. {
  3282.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetParent)
  3283.     (this);
  3284. }
  3285.  
  3286.  
  3287. /* method: somGetParents */
  3288. SOMClass_SOMClassSequence   somGetParents()
  3289. {
  3290.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetParents)
  3291.     (this);
  3292. }
  3293.  
  3294.  
  3295. /* method: somGetPClsMtab */
  3296. somMethodTabs   somGetPClsMtab()
  3297. {
  3298.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetPClsMtab)
  3299.     (this);
  3300. }
  3301.  
  3302.  
  3303. /* method: somGetPClsMtabs */
  3304. somMethodTabs   somGetPClsMtabs()
  3305. {
  3306.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somGetPClsMtabs)
  3307.     (this);
  3308. }
  3309.  
  3310.  
  3311. /* method: somGetVersionNumbers */
  3312. void   somGetVersionNumbers(long* majorVersion,
  3313.         long* minorVersion)
  3314. {
  3315.    SOM_ResolveD(this,M_WPPalette,SOMClass,somGetVersionNumbers)
  3316.     (this,majorVersion,minorVersion);
  3317. }
  3318.  
  3319.  
  3320. /* method: somSetMethodDescriptor */
  3321. boolean   somSetMethodDescriptor(somId methodId,
  3322.         somId descriptor)
  3323. {
  3324.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somSetMethodDescriptor)
  3325.     (this,methodId,descriptor);
  3326. }
  3327.  
  3328.  
  3329. /* method: somFindMethod */
  3330. boolean   somFindMethod(somId methodId,
  3331.         somMethodPtr* m)
  3332. {
  3333.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somFindMethod)
  3334.     (this,methodId,m);
  3335. }
  3336.  
  3337.  
  3338. /* method: somFindMethodOk */
  3339. boolean   somFindMethodOk(somId methodId,
  3340.         somMethodPtr* m)
  3341. {
  3342.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somFindMethodOk)
  3343.     (this,methodId,m);
  3344. }
  3345.  
  3346.  
  3347. /* method: somFindSMethod */
  3348. somMethodPtr   somFindSMethod(somId methodId)
  3349. {
  3350.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somFindSMethod)
  3351.     (this,methodId);
  3352. }
  3353.  
  3354.  
  3355. /* method: somFindSMethodOk */
  3356. somMethodPtr   somFindSMethodOk(somId methodId)
  3357. {
  3358.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somFindSMethodOk)
  3359.     (this,methodId);
  3360. }
  3361.  
  3362.  
  3363. /* method: somLookupMethod */
  3364. somMethodPtr   somLookupMethod(somId methodId)
  3365. {
  3366.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somLookupMethod)
  3367.     (this,methodId);
  3368. }
  3369.  
  3370.  
  3371. /* method: somCheckVersion */
  3372. boolean   somCheckVersion(long majorVersion,
  3373.         long minorVersion)
  3374. {
  3375.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somCheckVersion)
  3376.     (this,majorVersion,minorVersion);
  3377. }
  3378.  
  3379.  
  3380. /* method: somDescendedFrom */
  3381. boolean   somDescendedFrom(SOMClass* aClassObj)
  3382. {
  3383.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somDescendedFrom)
  3384.     (this,aClassObj);
  3385. }
  3386.  
  3387.  
  3388. /* method: somSupportsMethod */
  3389. boolean   somSupportsMethod(somId mId)
  3390. {
  3391.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somSupportsMethod)
  3392.     (this,mId);
  3393. }
  3394.  
  3395.  
  3396. /* method: somDefinedMethod */
  3397. somMethodPtr   somDefinedMethod(somMToken method)
  3398. {
  3399.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somDefinedMethod)
  3400.     (this,method);
  3401. }
  3402.  
  3403.  
  3404. /* method: somOverrideMtab */
  3405. void   somOverrideMtab()
  3406. {
  3407.    SOM_ResolveD(this,M_WPPalette,SOMClass,somOverrideMtab)
  3408.     (this);
  3409. }
  3410.  
  3411.  
  3412. /* initializer method: somDefaultInit */
  3413. void   somDefaultInit(somInitCtrl* ctrl)
  3414. {
  3415.    SOM_ResolveD(this,M_WPPalette,SOMObject,somDefaultInit)
  3416.     (this,ctrl);
  3417. }
  3418.  
  3419.  
  3420. /* method: somDestruct */
  3421. void   somDestruct(octet doFree,
  3422.         somDestructCtrl* ctrl)
  3423. {
  3424.    SOM_ResolveD(this,M_WPPalette,SOMObject,somDestruct)
  3425.     (this,doFree,ctrl);
  3426. }
  3427.  
  3428.  
  3429. /* method: somDefaultCopyInit */
  3430. void   somDefaultCopyInit(somInitCtrl* ctrl,
  3431.         SOMObject* fromObj)
  3432. {
  3433.    SOM_ResolveD(this,M_WPPalette,SOMObject,somDefaultCopyInit)
  3434.     (this,ctrl,fromObj);
  3435. }
  3436.  
  3437.  
  3438. /* method: somDefaultAssign */
  3439. M_WPPalette*  somDefaultAssign(somAssignCtrl* ctrl,
  3440.         SOMObject* fromObj)
  3441. {
  3442.    return SOM_ResolveD(this,M_WPPalette,SOMObject,somDefaultAssign)
  3443.     (this,ctrl,fromObj);
  3444. }
  3445.  
  3446.  
  3447. /* method: somDefaultConstCopyInit */
  3448. void   somDefaultConstCopyInit(somInitCtrl* ctrl,
  3449.         SOMObject* fromObj)
  3450. {
  3451.    SOM_ResolveD(this,M_WPPalette,SOMObject,somDefaultConstCopyInit)
  3452.     (this,ctrl,fromObj);
  3453. }
  3454.  
  3455.  
  3456. /* method: somDefaultVCopyInit */
  3457. void   somDefaultVCopyInit(somInitCtrl* ctrl,
  3458.         SOMObject* fromObj)
  3459. {
  3460.    SOM_ResolveD(this,M_WPPalette,SOMObject,somDefaultVCopyInit)
  3461.     (this,ctrl,fromObj);
  3462. }
  3463.  
  3464.  
  3465. /* method: somDefaultConstVCopyInit */
  3466. void   somDefaultConstVCopyInit(somInitCtrl* ctrl,
  3467.         SOMObject* fromObj)
  3468. {
  3469.    SOM_ResolveD(this,M_WPPalette,SOMObject,somDefaultConstVCopyInit)
  3470.     (this,ctrl,fromObj);
  3471. }
  3472.  
  3473.  
  3474. /* method: somDefaultConstAssign */
  3475. M_WPPalette*  somDefaultConstAssign(somAssignCtrl* ctrl,
  3476.         SOMObject* fromObj)
  3477. {
  3478.    return SOM_ResolveD(this,M_WPPalette,SOMObject,somDefaultConstAssign)
  3479.     (this,ctrl,fromObj);
  3480. }
  3481.  
  3482.  
  3483. /* method: somDefaultVAssign */
  3484. M_WPPalette*  somDefaultVAssign(somAssignCtrl* ctrl,
  3485.         SOMObject* fromObj)
  3486. {
  3487.    return SOM_ResolveD(this,M_WPPalette,SOMObject,somDefaultVAssign)
  3488.     (this,ctrl,fromObj);
  3489. }
  3490.  
  3491.  
  3492. /* method: somDefaultConstVAssign */
  3493. M_WPPalette*  somDefaultConstVAssign(somAssignCtrl* ctrl,
  3494.         SOMObject* fromObj)
  3495. {
  3496.    return SOM_ResolveD(this,M_WPPalette,SOMObject,somDefaultConstVAssign)
  3497.     (this,ctrl,fromObj);
  3498. }
  3499.  
  3500.  
  3501. /* method: somInit */
  3502. void   somInit()
  3503. {
  3504.    SOM_ResolveD(this,M_WPPalette,SOMObject,somInit)
  3505.     (this);
  3506. }
  3507.  
  3508.  
  3509. /* method: somFree */
  3510. void   somFree()
  3511. {
  3512.    SOM_ResolveD(this,M_WPPalette,SOMObject,somFree)
  3513.     (this);
  3514. }
  3515.  
  3516.  
  3517. /* method: somGetClass */
  3518. SOMClass*   somGetClass()
  3519. {
  3520.    return SOM_ResolveD(this,M_WPPalette,SOMObject,somGetClass)
  3521.     (this);
  3522. }
  3523.  
  3524.  
  3525. /* method: somGetClassName */
  3526. string   somGetClassName()
  3527. {
  3528.    return SOM_ResolveD(this,M_WPPalette,SOMObject,somGetClassName)
  3529.     (this);
  3530. }
  3531.  
  3532.  
  3533. /* method: somGetSize */
  3534. long   somGetSize()
  3535. {
  3536.    return SOM_ResolveD(this,M_WPPalette,SOMObject,somGetSize)
  3537.     (this);
  3538. }
  3539.  
  3540.  
  3541. /* method: somIsA */
  3542. boolean   somIsA(SOMClass* aClassObj)
  3543. {
  3544.    return SOM_ResolveD(this,M_WPPalette,SOMObject,somIsA)
  3545.     (this,aClassObj);
  3546. }
  3547.  
  3548.  
  3549. /* method: somIsInstanceOf */
  3550. boolean   somIsInstanceOf(SOMClass* aClassObj)
  3551. {
  3552.    return SOM_ResolveD(this,M_WPPalette,SOMObject,somIsInstanceOf)
  3553.     (this,aClassObj);
  3554. }
  3555.  
  3556.  
  3557. /* method: somRespondsTo */
  3558. boolean   somRespondsTo(somId mId)
  3559. {
  3560.    return SOM_ResolveD(this,M_WPPalette,SOMObject,somRespondsTo)
  3561.     (this,mId);
  3562. }
  3563.  
  3564.  
  3565. /* va_list method: somDispatch */
  3566. /* the va_list invocation form */
  3567. boolean   M_WPPalette_somDispatch(somToken* retValue,
  3568.         somId methodId,
  3569.         va_list ap)
  3570. {
  3571. return SOM_ResolveD(this,M_WPPalette,SOMObject,somDispatch)
  3572.     (this,retValue,methodId,ap);
  3573. }
  3574.  
  3575. /* the varargs invocation form */
  3576. boolean   somDispatch(somToken* retValue,
  3577.         somId methodId,
  3578.         ...)
  3579. {
  3580.    va_list ap;
  3581.    va_start(ap, methodId);
  3582.    boolean __somResult = 
  3583.       SOM_ResolveD(this,M_WPPalette,SOMObject,somDispatch)
  3584.     (this,retValue,methodId,ap);
  3585.    va_end(ap);
  3586.    return __somResult;
  3587. }
  3588.  
  3589.  
  3590. /* va_list method: somClassDispatch */
  3591. /* the va_list invocation form */
  3592. boolean   M_WPPalette_somClassDispatch(SOMClass* clsObj,
  3593.         somToken* retValue,
  3594.         somId methodId,
  3595.         va_list ap)
  3596. {
  3597. return SOM_ResolveD(this,M_WPPalette,SOMObject,somClassDispatch)
  3598.     (this,clsObj,retValue,methodId,ap);
  3599. }
  3600.  
  3601. /* the varargs invocation form */
  3602. boolean   somClassDispatch(SOMClass* clsObj,
  3603.         somToken* retValue,
  3604.         somId methodId,
  3605.         ...)
  3606. {
  3607.    va_list ap;
  3608.    va_start(ap, methodId);
  3609.    boolean __somResult = 
  3610.       SOM_ResolveD(this,M_WPPalette,SOMObject,somClassDispatch)
  3611.     (this,clsObj,retValue,methodId,ap);
  3612.    va_end(ap);
  3613.    return __somResult;
  3614. }
  3615.  
  3616.  
  3617. /* method: somCastObj */
  3618. boolean   somCastObj(SOMClass* cls)
  3619. {
  3620.    return SOM_ResolveD(this,M_WPPalette,SOMObject,somCastObj)
  3621.     (this,cls);
  3622. }
  3623.  
  3624.  
  3625. /* method: somResetObj */
  3626. boolean   somResetObj()
  3627. {
  3628.    return SOM_ResolveD(this,M_WPPalette,SOMObject,somResetObj)
  3629.     (this);
  3630. }
  3631.  
  3632.  
  3633. /* va_list method: somDispatchV */
  3634. /* the va_list invocation form */
  3635. void   M_WPPalette_somDispatchV(somId methodId,
  3636.         somId descriptor,
  3637.         va_list ap)
  3638. {
  3639.    SOM_ResolveD(this,M_WPPalette,SOMObject,somDispatchV)
  3640.     (this,methodId,descriptor,ap);
  3641. }
  3642.  
  3643. /* the varargs invocation form */
  3644. void   somDispatchV(somId methodId,
  3645.         somId descriptor,
  3646.         ...)
  3647. {
  3648.    va_list ap;
  3649.    va_start(ap, descriptor);
  3650.    SOM_ResolveD(this,M_WPPalette,SOMObject,somDispatchV)
  3651.     (this,methodId,descriptor,ap);
  3652.    va_end(ap);
  3653. }
  3654.  
  3655.  
  3656. /* va_list method: somDispatchL */
  3657. /* the va_list invocation form */
  3658. long   M_WPPalette_somDispatchL(somId methodId,
  3659.         somId descriptor,
  3660.         va_list ap)
  3661. {
  3662. return SOM_ResolveD(this,M_WPPalette,SOMObject,somDispatchL)
  3663.     (this,methodId,descriptor,ap);
  3664. }
  3665.  
  3666. /* the varargs invocation form */
  3667. long   somDispatchL(somId methodId,
  3668.         somId descriptor,
  3669.         ...)
  3670. {
  3671.    va_list ap;
  3672.    va_start(ap, descriptor);
  3673.    long __somResult = 
  3674.       SOM_ResolveD(this,M_WPPalette,SOMObject,somDispatchL)
  3675.     (this,methodId,descriptor,ap);
  3676.    va_end(ap);
  3677.    return __somResult;
  3678. }
  3679.  
  3680.  
  3681. /* va_list method: somDispatchA */
  3682. /* the va_list invocation form */
  3683. void*   M_WPPalette_somDispatchA(somId methodId,
  3684.         somId descriptor,
  3685.         va_list ap)
  3686. {
  3687. return SOM_ResolveD(this,M_WPPalette,SOMObject,somDispatchA)
  3688.     (this,methodId,descriptor,ap);
  3689. }
  3690.  
  3691. /* the varargs invocation form */
  3692. void*   somDispatchA(somId methodId,
  3693.         somId descriptor,
  3694.         ...)
  3695. {
  3696.    va_list ap;
  3697.    va_start(ap, descriptor);
  3698.    void* __somResult = 
  3699.       SOM_ResolveD(this,M_WPPalette,SOMObject,somDispatchA)
  3700.     (this,methodId,descriptor,ap);
  3701.    va_end(ap);
  3702.    return __somResult;
  3703. }
  3704.  
  3705.  
  3706. /* va_list method: somDispatchD */
  3707. /* the va_list invocation form */
  3708. double   M_WPPalette_somDispatchD(somId methodId,
  3709.         somId descriptor,
  3710.         va_list ap)
  3711. {
  3712. return SOM_ResolveD(this,M_WPPalette,SOMObject,somDispatchD)
  3713.     (this,methodId,descriptor,ap);
  3714. }
  3715.  
  3716. /* the varargs invocation form */
  3717. double   somDispatchD(somId methodId,
  3718.         somId descriptor,
  3719.         ...)
  3720. {
  3721.    va_list ap;
  3722.    va_start(ap, descriptor);
  3723.    double __somResult = 
  3724.       SOM_ResolveD(this,M_WPPalette,SOMObject,somDispatchD)
  3725.     (this,methodId,descriptor,ap);
  3726.    va_end(ap);
  3727.    return __somResult;
  3728. }
  3729.  
  3730.  
  3731. /* method: somPrintSelf */
  3732. SOMObject*   somPrintSelf()
  3733. {
  3734.    return SOM_ResolveD(this,M_WPPalette,SOMObject,somPrintSelf)
  3735.     (this);
  3736. }
  3737.  
  3738.  
  3739. /* method: somDumpSelf */
  3740. void   somDumpSelf(long level)
  3741. {
  3742.    SOM_ResolveD(this,M_WPPalette,SOMObject,somDumpSelf)
  3743.     (this,level);
  3744. }
  3745.  
  3746.  
  3747. /* method: somDumpSelfInt */
  3748. void   somDumpSelfInt(long level)
  3749. {
  3750.    SOM_ResolveD(this,M_WPPalette,SOMObject,somDumpSelfInt)
  3751.     (this,level);
  3752. }
  3753.  
  3754.  
  3755.  
  3756. };   /* M_WPPalette */
  3757.  
  3758.  
  3759.  
  3760. #endif       /* SOM_M_WPPalette_xh */
  3761.