home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / wppalet.xh < prev    next >
Text File  |  1999-03-15  |  17KB  |  660 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: E:\cwpsh\rel\os2c\include\base\os2\wppalet.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.29.1.14
  7.  *     SOM Emitter emitxh: 2.43
  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 bindings for IDL types
  47.  */
  48.  
  49. class SOMClass;
  50. class SOMObject;
  51. class WPFolder;
  52. class M_WPObject;
  53. class WPObject;
  54. class WPImageFile;
  55. class M_WPAbstract;
  56. class M_WPPalette;
  57.  
  58. /*
  59.  * End of bindings for IDL types.
  60.  */
  61.  
  62. /*
  63.  * Passthru lines: File: "C.h", "after"
  64.  */
  65.  
  66.       /*
  67.        *  Open view for the wpOpen() method
  68.        */
  69.  
  70.       #define OPEN_PALETTE       121
  71.  
  72.       /*
  73.        *  Palette save-restore keys
  74.        */
  75.  
  76.       #define IDKEY_PALXCELLCOUNT      1000
  77.       #define IDKEY_PALYCELLCOUNT      1001
  78.       #define IDKEY_PALXCELLWIDTH      1002
  79.       #define IDKEY_PALYCELLHEIGHT     1003
  80.       #define IDKEY_PALXGAP            1004
  81.       #define IDKEY_PALYGAP            1005
  82.       #define IDKEY_PALSCREENSIZEX     1006
  83.       #define IDKEY_PALSCREENSIZEY     1007
  84.       #define IDKEY_PALCELLDATA_FIRST  1050
  85.  
  86.       /*
  87.        *  Default palette information
  88.        */
  89.  
  90.       #define DEF_XCELLCOUNT      13
  91.       #define DEF_YCELLCOUNT      9
  92.  
  93.       /*
  94.        *  Variables kept for each open palette window as
  95.        *  a structure pointed to by the QWL_USER window
  96.        *  word ...
  97.        */
  98.  
  99.       typedef struct _CELL
  100.       {
  101.          ULONG       cbData;           /* Size of the data that follows */
  102.  
  103.          /* Class specific cell data follows immediately afterwards -
  104.           * for example the font palette would store the ASCII name of
  105.           * the font, and the color palette would store the RGB color
  106.           * of the cell.
  107.           */
  108.       } CELL;
  109.       typedef CELL *PCELL;
  110.  
  111.       typedef struct _PALINFO
  112.       {
  113.          ULONG       xCellCount;       /* Number of columns of cells */
  114.          ULONG       yCellCount;       /* Number of rows of cells */
  115.          ULONG       xCursor;          /* Cursor location (readonly) */
  116.          ULONG       yCursor;          /* Cursor location (readonly) */
  117.          ULONG       xCellWidth;       /* Width of each cell */
  118.          ULONG       yCellHeight;      /* Height of each cell */
  119.          ULONG       xGap;             /* X separation of cells */
  120.          ULONG       yGap;             /* Y separation of cells */
  121.       } PALINFO;
  122.       typedef PALINFO *PPALINFO;
  123.  
  124.       #define SetPaletteDataPtr( hwnd, pPaletteData ) \
  125.            WinSetWindowULong( hwnd, QWL_USER, (ULONG)pPaletteData )
  126.  
  127.       #define QueryPaletteDataPtr( hwnd ) \
  128.            (PPALETTEDATA)WinQueryWindowULong( hwnd, QWL_USER )
  129.  
  130.       typedef struct _PALETTEDATA
  131.       {
  132.          WPFolder   *Palette;          /* Folder object for this window */
  133.          USEITEM     UseItem;          /* Folder object's INUSE list item */
  134.          VIEWITEM    ViewItem;
  135.          ULONG       xCursor;
  136.          ULONG       yCursor;
  137.       } PALETTEDATA;
  138.       typedef PALETTEDATA *PPALETTEDATA;
  139.  
  140.       typedef struct _CELLSTRUCT
  141.       {
  142.          RECTL       rclCell;          /* Cell coordinates */
  143.          PCELL       pCell;            /* Cell data pointer */
  144.       } CELLSTRUCT;
  145.       typedef CELLSTRUCT *PCELLSTRUCT;
  146.       /*
  147.        *  Miscellaneous
  148.        */
  149.  
  150.       #define PM_INVALIDATECELL WM_USER+1000
  151.  
  152.       /* Macros that act on a PALINFO...
  153.        */
  154.       #define PALETTE_WIDTH(p)  ( p.xCellCount*(p.xCellWidth+p.xGap) )
  155.       #define PALETTE_HEIGHT(p) ( p.yCellCount*(p.yCellHeight+p.yGap) )
  156.       #define ID_PALSCROLLHORZ     8091
  157.       #define ID_PALSCROLLVERT     8092
  158.  
  159.       /* Coordinates (these are in DIALOG UNITS)
  160.        */
  161.       #define CXBUTTON          12       /* Width of a button (with no text) */
  162.       #define CYBUTTON          12       /* Height of a button */
  163.       #define XBUTTONGAP        6
  164.       #define YBUTTONGAP        4
  165.       #define CYBUTTONAREA      (CYBUTTON + 2*YBUTTONGAP)
  166.       #define DEF_XCELLWIDTH    10
  167.       #define DEF_YCELLHEIGHT   6
  168.       #define DEF_XCELLGAP      4
  169.       #define DEF_YCELLGAP      4
  170.  
  171.  
  172.  
  173. /* A procedure to create the WPPalette Class */
  174. class M_WPPalette;
  175. SOMEXTERN M_WPPalette * SOMLINK WPPaletteNewClass(
  176.         integer4 majorVersion,
  177.         integer4 minorVersion);
  178.  
  179. /* The API to the WPPalette class object, and the methods it introduces. */
  180. SOMEXTERN struct WPPaletteClassDataStructure {
  181.     M_WPPalette *classObject;
  182.     somMToken wpPaintCell;
  183.     somMToken wpSelectCell;
  184.     somMToken wpSetupCell;
  185.     somMToken wpQueryPaletteInfo;
  186.     somMToken wpSetPaletteInfo;
  187.     somMToken wpEditCell;
  188.     somMToken wpDragCell;
  189.     somMToken withdrawn;
  190.     somMToken wpInitCellStructs;
  191.     somMToken wpRedrawCell;
  192.     somMToken wpPaintPalette;
  193.     somMToken wpPalettePrivate1;
  194.     somMToken wpQueryPaletteHelp;
  195.     somMToken wpPalettePrivate2;
  196.     somMToken wpSaveCellData;
  197.     somMToken wpRestoreCellData;
  198.     somMToken wpFreeCellData;
  199. } SOMDLINK WPPaletteClassData;
  200. #define _WPPalette WPPaletteClassData.classObject
  201.  
  202. /* The API to parentMtabs for WPPalette, and the instance data it introduces. */
  203. SOMEXTERN struct WPPaletteCClassDataStructure {
  204.     somMethodTabs parentMtab;
  205.     somDToken              instanceDataToken;
  206. } SOMDLINK WPPaletteCClassData;
  207.  
  208. /*
  209.  * -- Typedefs for WPPalette Method Procedures
  210.  */
  211. SOMEXTERN {
  212. typedef void   SOMLINK somTP_WPPalette_wpPaintCell(WPPalette *somSelf, 
  213.         PCELL pCell, 
  214.         HPS hps, 
  215.         PRECTL prcl, 
  216.         BOOL fHilite);
  217. typedef somTP_WPPalette_wpPaintCell *somTD_WPPalette_wpPaintCell;
  218. typedef BOOL   SOMLINK somTP_WPPalette_wpSetupCell(WPPalette *somSelf, 
  219.         PVOID pCellData, 
  220.         ULONG cb, 
  221.         ULONG x, 
  222.         ULONG y);
  223. typedef somTP_WPPalette_wpSetupCell *somTD_WPPalette_wpSetupCell;
  224. typedef BOOL   SOMLINK somTP_WPPalette_wpRedrawCell(WPPalette *somSelf, 
  225.         PCELL pCell);
  226. typedef somTP_WPPalette_wpRedrawCell *somTD_WPPalette_wpRedrawCell;
  227. typedef BOOL   SOMLINK somTP_WPPalette_wpQueryPaletteInfo(WPPalette *somSelf, 
  228.         PPALINFO pPalInfo);
  229. typedef somTP_WPPalette_wpQueryPaletteInfo *somTD_WPPalette_wpQueryPaletteInfo;
  230. typedef BOOL   SOMLINK somTP_WPPalette_wpSetPaletteInfo(WPPalette *somSelf, 
  231.         PPALINFO pPalInfo);
  232. typedef somTP_WPPalette_wpSetPaletteInfo *somTD_WPPalette_wpSetPaletteInfo;
  233. typedef BOOL   SOMLINK somTP_WPPalette_wpEditCell(WPPalette *somSelf, 
  234.         PCELL pCell, 
  235.         HWND hwndPal);
  236. typedef somTP_WPPalette_wpEditCell *somTD_WPPalette_wpEditCell;
  237. typedef BOOL   SOMLINK somTP_WPPalette_wpDragCell(WPPalette *somSelf, 
  238.         PCELL pCell, 
  239.         HWND hwndPal, 
  240.         PPOINTL ptlDrag);
  241. typedef somTP_WPPalette_wpDragCell *somTD_WPPalette_wpDragCell;
  242. typedef ULONG   SOMLINK somTP_WPPalette_wpQueryPaletteHelp(WPPalette *somSelf);
  243. typedef somTP_WPPalette_wpQueryPaletteHelp *somTD_WPPalette_wpQueryPaletteHelp;
  244. typedef void   SOMLINK somTP_WPPalette_wpSelectCell(WPPalette *somSelf, 
  245.         HWND hwndPal, 
  246.         PCELL pCell);
  247. typedef somTP_WPPalette_wpSelectCell *somTD_WPPalette_wpSelectCell;
  248. typedef void   SOMLINK somTP_WPPalette_wpPaintPalette(WPPalette *somSelf, 
  249.         HPS hps, 
  250.         PRECTL prcl);
  251. typedef somTP_WPPalette_wpPaintPalette *somTD_WPPalette_wpPaintPalette;
  252. typedef BOOL   SOMLINK somTP_WPPalette_wpInitCellStructs(WPPalette *somSelf);
  253. typedef somTP_WPPalette_wpInitCellStructs *somTD_WPPalette_wpInitCellStructs;
  254. typedef BOOL   SOMLINK somTP_WPPalette_wpSaveCellData(WPPalette *somSelf, 
  255.         PCELL pCell, 
  256.         ULONG ulIndex);
  257. typedef somTP_WPPalette_wpSaveCellData *somTD_WPPalette_wpSaveCellData;
  258. typedef BOOL   SOMLINK somTP_WPPalette_wpRestoreCellData(WPPalette *somSelf, 
  259.         PCELL* pCell, 
  260.         ULONG ulIndex, 
  261.         ULONG ulCellSize);
  262. typedef somTP_WPPalette_wpRestoreCellData *somTD_WPPalette_wpRestoreCellData;
  263. typedef BOOL   SOMLINK somTP_WPPalette_wpFreeCellData(WPPalette *somSelf, 
  264.         PCELL pCell, 
  265.         ULONG ulIndex);
  266. typedef somTP_WPPalette_wpFreeCellData *somTD_WPPalette_wpFreeCellData;
  267.  
  268. /*
  269.  * -- Typedefs for Reintroduced Wrapper Methods
  270.  */
  271. typedef M_WPPalette*   SOMLINK somTP_WPPalette_somGetClass(WPPalette *somSelf);
  272. typedef somTP_WPPalette_somGetClass *somTD_WPPalette_somGetClass;
  273. }
  274.  
  275. #endif /* WPPalette_API */
  276.  
  277.  
  278. /*
  279.  * -- This emitter treats Method Tokens as Thunks by default.
  280.  * -- Use the sc modifier "nothunks" to change this default
  281.  */
  282. #undef somresolve_
  283. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  284.  
  285. /*
  286.  * -- The C++ Wrapper Class for WPPalette
  287.  */
  288. class WPPalette : public WPAbstract
  289. {
  290. public:
  291.  
  292. // WPPalette::new creates the class object if necessary, and then uses somNewNoInit
  293. // to allocate memory and create the object. Initialization is in ctors.
  294. void *operator new(size_t)
  295. {
  296.    if (!_WPPalette) WPPaletteNewClass(WPPalette_MajorVersion,WPPalette_MinorVersion);
  297.    return (void*)
  298.       SOM_Resolve(_WPPalette,SOMClass,somNewNoInit)
  299.          ((SOMClass *)((void*)_WPPalette));
  300. }
  301.  
  302. // WPPalette::delete uses somDestruct.
  303. void operator delete(void * obj)
  304. {
  305.    if (obj && *(void**)obj) {
  306.       SOM_Resolve(obj,SOMObject,somDestruct)
  307.          ((SOMObject*)obj, 1, 0);
  308.    }
  309. }
  310.  
  311. WPPalette& operator=(WPPalette& fromObj)
  312. {
  313.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  314.    return *this;
  315. }
  316.  
  317. WPPalette()
  318. {
  319.    if (*(void**)this != 
  320.        ((somParentMtabStructPtr)
  321.         (WPPaletteCClassData.parentMtab))->mtab)
  322.       return;
  323.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  324. }
  325.  
  326. WPPalette(WPPalette* fromObj)
  327. {
  328.    if (*(void**)this != 
  329.        ((somParentMtabStructPtr)
  330.         (WPPaletteCClassData.parentMtab))->mtab)
  331.       return;
  332.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  333. }
  334.  
  335. WPPalette(const WPPalette* fromObj)
  336. {
  337.    if (*(void**)this != 
  338.        ((somParentMtabStructPtr)
  339.         (WPPaletteCClassData.parentMtab))->mtab)
  340.       return;
  341.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  342. }
  343.  
  344.  
  345. /* method: wpPaintCell */
  346. void   wpPaintCell(PCELL pCell, 
  347.         HPS hps, 
  348.         PRECTL prcl, 
  349.         BOOL fHilite)
  350. {
  351.    SOM_ResolveD(this,WPPalette,WPPalette,wpPaintCell)
  352.     (this,pCell,hps,prcl,fHilite);
  353. }
  354.  
  355.  
  356. /* method: wpSetupCell */
  357. BOOL   wpSetupCell(PVOID pCellData, 
  358.         ULONG cb, 
  359.         ULONG x, 
  360.         ULONG y)
  361. {
  362.    return SOM_ResolveD(this,WPPalette,WPPalette,wpSetupCell)
  363.     (this,pCellData,cb,x,y);
  364. }
  365.  
  366.  
  367. /* method: wpRedrawCell */
  368. BOOL   wpRedrawCell(PCELL pCell)
  369. {
  370.    return SOM_ResolveD(this,WPPalette,WPPalette,wpRedrawCell)
  371.     (this,pCell);
  372. }
  373.  
  374.  
  375. /* method: wpQueryPaletteInfo */
  376. BOOL   wpQueryPaletteInfo(PPALINFO pPalInfo)
  377. {
  378.    return SOM_ResolveD(this,WPPalette,WPPalette,wpQueryPaletteInfo)
  379.     (this,pPalInfo);
  380. }
  381.  
  382.  
  383. /* method: wpSetPaletteInfo */
  384. BOOL   wpSetPaletteInfo(PPALINFO pPalInfo)
  385. {
  386.    return SOM_ResolveD(this,WPPalette,WPPalette,wpSetPaletteInfo)
  387.     (this,pPalInfo);
  388. }
  389.  
  390.  
  391. /* method: wpEditCell */
  392. BOOL   wpEditCell(PCELL pCell, 
  393.         HWND hwndPal)
  394. {
  395.    return SOM_ResolveD(this,WPPalette,WPPalette,wpEditCell)
  396.     (this,pCell,hwndPal);
  397. }
  398.  
  399.  
  400. /* method: wpDragCell */
  401. BOOL   wpDragCell(PCELL pCell, 
  402.         HWND hwndPal, 
  403.         PPOINTL ptlDrag)
  404. {
  405.    return SOM_ResolveD(this,WPPalette,WPPalette,wpDragCell)
  406.     (this,pCell,hwndPal,ptlDrag);
  407. }
  408.  
  409.  
  410. /* method: wpQueryPaletteHelp */
  411. ULONG   wpQueryPaletteHelp()
  412. {
  413.    return SOM_ResolveD(this,WPPalette,WPPalette,wpQueryPaletteHelp)
  414.     (this);
  415. }
  416.  
  417.  
  418. /* method: wpSelectCell */
  419. void   wpSelectCell(HWND hwndPal, 
  420.         PCELL pCell)
  421. {
  422.    SOM_ResolveD(this,WPPalette,WPPalette,wpSelectCell)
  423.     (this,hwndPal,pCell);
  424. }
  425.  
  426.  
  427. /* method: wpPaintPalette */
  428. void   wpPaintPalette(HPS hps, 
  429.         PRECTL prcl)
  430. {
  431.    SOM_ResolveD(this,WPPalette,WPPalette,wpPaintPalette)
  432.     (this,hps,prcl);
  433. }
  434.  
  435.  
  436. /* method: wpInitCellStructs */
  437. BOOL   wpInitCellStructs()
  438. {
  439.    return SOM_ResolveD(this,WPPalette,WPPalette,wpInitCellStructs)
  440.     (this);
  441. }
  442.  
  443.  
  444. /* method: wpSaveCellData */
  445. BOOL   wpSaveCellData(PCELL pCell, 
  446.         ULONG ulIndex)
  447. {
  448.    return SOM_ResolveD(this,WPPalette,WPPalette,wpSaveCellData)
  449.     (this,pCell,ulIndex);
  450. }
  451.  
  452.  
  453. /* method: wpRestoreCellData */
  454. BOOL   wpRestoreCellData(PCELL* pCell, 
  455.         ULONG ulIndex, 
  456.         ULONG ulCellSize)
  457. {
  458.    return SOM_ResolveD(this,WPPalette,WPPalette,wpRestoreCellData)
  459.     (this,pCell,ulIndex,ulCellSize);
  460. }
  461.  
  462.  
  463. /* method: wpFreeCellData */
  464. BOOL   wpFreeCellData(PCELL pCell, 
  465.         ULONG ulIndex)
  466. {
  467.    return SOM_ResolveD(this,WPPalette,WPPalette,wpFreeCellData)
  468.     (this,pCell,ulIndex);
  469. }
  470.  
  471.  
  472. /*
  473.  * Reintroduce inherited methods
  474.  */
  475.  
  476. /* method: somGetClass */
  477. M_WPPalette*  somGetClass()
  478. {
  479. /*
  480.  *  Return the receiver's class.
  481.  */
  482.    return SOM_ResolveD(this,WPPalette,SOMObject,somGetClass)
  483.     (this);
  484. }
  485.  
  486.  
  487.  
  488. };   /* WPPalette */
  489.  
  490.  
  491.  
  492. #endif       /* SOM_WPPalette_xh */
  493.  
  494. #ifndef SOM_M_WPPalette_xh
  495. #define SOM_M_WPPalette_xh
  496.  
  497. class M_WPPalette;
  498.  
  499. #define M_WPPalette_MajorVersion 1
  500. #define M_WPPalette_MinorVersion 2
  501.  
  502. /* C++ SOM defs */
  503. #include <somcls.xh>
  504. #include <somcm.xh>
  505.  
  506. /* C++ parent defs */
  507. #ifndef SOM_M_WPAbstract_xh
  508. #include <wpabs.xh>
  509. #endif
  510.  
  511. #ifndef M_WPPalette_API
  512. #define M_WPPalette_API
  513. /*
  514.  * -- The Class API
  515.  */
  516.  
  517. /*
  518.  * Start of bindings for IDL types
  519.  */
  520.  
  521.  
  522. /*
  523.  * End of bindings for IDL types.
  524.  */
  525.  
  526. /*
  527.  * -- M_WPPalette is a metaclass for WPPalette. Make sure WPPalette is known.
  528.  */
  529. class WPPalette;
  530.  
  531.  
  532. /* A procedure to create the M_WPPalette Class */
  533. SOMEXTERN SOMClass * SOMLINK M_WPPaletteNewClass(
  534.         integer4 majorVersion,
  535.         integer4 minorVersion);
  536.  
  537. /* The API to the M_WPPalette class object, and the methods it introduces. */
  538. SOMEXTERN struct M_WPPaletteClassDataStructure {
  539.     SOMClass *classObject;
  540.     somMToken wpclsQueryEditString;
  541. } SOMDLINK M_WPPaletteClassData;
  542. #define _M_WPPalette M_WPPaletteClassData.classObject
  543.  
  544. /* The API to parentMtabs for M_WPPalette, and the instance data it introduces. */
  545. SOMEXTERN struct M_WPPaletteCClassDataStructure {
  546.     somMethodTabs parentMtab;
  547.     somDToken              instanceDataToken;
  548. } SOMDLINK M_WPPaletteCClassData;
  549.  
  550. /*
  551.  * -- Typedefs for M_WPPalette Method Procedures
  552.  */
  553. SOMEXTERN {
  554. typedef PSZ   SOMLINK somTP_M_WPPalette_wpclsQueryEditString(M_WPPalette *somSelf);
  555. typedef somTP_M_WPPalette_wpclsQueryEditString *somTD_M_WPPalette_wpclsQueryEditString;
  556.  
  557. /*
  558.  * -- Typedefs for Reintroduced Wrapper Methods
  559.  */
  560. typedef WPPalette*   SOMLINK somTP_M_WPPalette_somNew(M_WPPalette *somSelf);
  561. typedef somTP_M_WPPalette_somNew *somTD_M_WPPalette_somNew;
  562. }
  563.  
  564. #endif /* M_WPPalette_API */
  565.  
  566.  
  567. /*
  568.  * -- This emitter treats Method Tokens as Thunks by default.
  569.  * -- Use the sc modifier "nothunks" to change this default
  570.  */
  571. #undef somresolve_
  572. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  573.  
  574. /*
  575.  * -- The C++ Wrapper Class for M_WPPalette
  576.  */
  577. class M_WPPalette : public M_WPAbstract
  578. {
  579. public:
  580.  
  581. // M_WPPalette::new creates the class object if necessary, and then uses somNewNoInit
  582. // to allocate memory and create the object. Initialization is in ctors.
  583. void *operator new(size_t)
  584. {
  585.    if (!_M_WPPalette) M_WPPaletteNewClass(M_WPPalette_MajorVersion,M_WPPalette_MinorVersion);
  586.    return (void*)
  587.       SOM_Resolve(_M_WPPalette,SOMClass,somNewNoInit)
  588.          ((SOMClass *)((void*)_M_WPPalette));
  589. }
  590.  
  591. // M_WPPalette::delete uses somDestruct.
  592. void operator delete(void * obj)
  593. {
  594.    if (obj && *(void**)obj) {
  595.       SOM_Resolve(obj,SOMObject,somDestruct)
  596.          ((SOMObject*)obj, 1, 0);
  597.    }
  598. }
  599.  
  600. M_WPPalette& operator=(M_WPPalette& fromObj)
  601. {
  602.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  603.    return *this;
  604. }
  605.  
  606. M_WPPalette()
  607. {
  608.    if (*(void**)this != 
  609.        ((somParentMtabStructPtr)
  610.         (M_WPPaletteCClassData.parentMtab))->mtab)
  611.       return;
  612.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  613. }
  614.  
  615. M_WPPalette(M_WPPalette* fromObj)
  616. {
  617.    if (*(void**)this != 
  618.        ((somParentMtabStructPtr)
  619.         (M_WPPaletteCClassData.parentMtab))->mtab)
  620.       return;
  621.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  622. }
  623.  
  624. M_WPPalette(const M_WPPalette* fromObj)
  625. {
  626.    if (*(void**)this != 
  627.        ((somParentMtabStructPtr)
  628.         (M_WPPaletteCClassData.parentMtab))->mtab)
  629.       return;
  630.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  631. }
  632.  
  633.  
  634. /* method: wpclsQueryEditString */
  635. PSZ   wpclsQueryEditString()
  636. {
  637.    return SOM_ResolveD(this,M_WPPalette,M_WPPalette,wpclsQueryEditString)
  638.     (this);
  639. }
  640.  
  641.  
  642. /*
  643.  * Reintroduce inherited methods
  644.  */
  645.  
  646. /* method: somNew */
  647. WPPalette*  somNew()
  648. {
  649.    return SOM_ResolveD(this,M_WPPalette,SOMClass,somNew)
  650.     (this);
  651. }
  652.  
  653.  
  654.  
  655. };   /* M_WPPalette */
  656.  
  657.  
  658.  
  659. #endif       /* SOM_M_WPPalette_xh */
  660.