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

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: E:\cwpsh\rel\os2c\include\base\os2\wplnchpd.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: WPLNCHPD
  14.  * 
  15.  *   OS/2 Presentation Manager Workplace class definitions
  16.  * 
  17.  *   Copyright (c) International Business Machines Corporation 1991, 1992, 1994
  18.  * 
  19.  * 
  20.  */
  21.  
  22.  
  23. #ifndef SOM_WPLaunchPad_xh
  24. #define SOM_WPLaunchPad_xh
  25.  
  26. class WPLaunchPad;
  27.  
  28. #define WPLaunchPad_MajorVersion 1
  29. #define WPLaunchPad_MinorVersion 2
  30.  
  31. /*
  32.  * Passthru lines: File: "C.h", "before"
  33.  */
  34.  
  35.         typedef struct tag_Actions {
  36.                 PSZ pszTitle;
  37.                 ULONG ulMenuId;
  38.                 HPOINTER hIcon;
  39.         } ACTIONS, *PACTIONS;
  40.  
  41.         #define ADD_OBJECT_FIRST ((ULONG)(-1))
  42.         #define ADD_OBJECT_LAST  ((ULONG)(-2))
  43.  
  44.         #define ACTION_BUTTONS_TEXT   ((ULONG)0)
  45.         #define ACTION_BUTTONS_OFF    ((ULONG)1)
  46.         #define ACTION_BUTTONS_MINI   ((ULONG)2)
  47.         #define ACTION_BUTTONS_NORMAL ((ULONG)3)
  48.  
  49.  
  50. /* C++ SOM defs */
  51. #include <somcls.xh>
  52. #include <somcm.xh>
  53.  
  54. /* C++ parent defs */
  55. #ifndef SOM_WPAbstract_xh
  56. #include <wpabs.xh>
  57. #endif
  58.  
  59. #ifndef WPLaunchPad_API
  60. #define WPLaunchPad_API
  61. /*
  62.  * -- The Class API
  63.  */
  64.  
  65. /*
  66.  * Start of bindings for IDL types
  67.  */
  68.  
  69. class SOMClass;
  70. class SOMObject;
  71. class WPFolder;
  72. class M_WPObject;
  73. class WPObject;
  74. class WPImageFile;
  75. class M_WPAbstract;
  76. class M_WPLaunchPad;
  77.  
  78. /*
  79.  * End of bindings for IDL types.
  80.  */
  81.  
  82. /* A procedure to create the WPLaunchPad Class */
  83. class M_WPLaunchPad;
  84. SOMEXTERN M_WPLaunchPad * SOMLINK WPLaunchPadNewClass(
  85.         integer4 majorVersion,
  86.         integer4 minorVersion);
  87.  
  88. /* The API to the WPLaunchPad class object, and the methods it introduces. */
  89. SOMEXTERN struct WPLaunchPadClassDataStructure {
  90.     M_WPLaunchPad *classObject;
  91.     somMToken wpAddLaunchPadPage1;
  92.     somMToken wpQueryCloseDrawer;
  93.     somMToken wpQueryDisplayVertical;
  94.     somMToken wpQueryDisplayText;
  95.     somMToken wpQueryDisplaySmallIcons;
  96.     somMToken wpQueryHideLaunchPadFrameCtls;
  97.     somMToken wpQueryFloatOnTop;
  98.     somMToken wpSetCloseDrawer;
  99.     somMToken wpSetDisplayVertical;
  100.     somMToken wpSetDisplayText;
  101.     somMToken wpSetDisplaySmallIcons;
  102.     somMToken wpSetHideLaunchPadFrameCtls;
  103.     somMToken wpSetFloatOnTop;
  104.     somMToken wpQueryActionButtons;
  105.     somMToken wpQueryObjectList;
  106.     somMToken wpSetObjectListFromStrings;
  107.     somMToken wpSetObjectListFromObjects;
  108.     somMToken wpSetObjectListFromHObjects;
  109.     somMToken wpSetDrawerHWND;
  110.     somMToken wpQueryDrawerHWND;
  111.     somMToken wpRefreshDrawer;
  112.     somMToken wpSetDisplayTextInDrawers;
  113.     somMToken wpQueryDisplayTextInDrawers;
  114.     somMToken wpQueryActionButtonStyle;
  115.     somMToken wpSetActionButtonStyle;
  116.     somMToken wpAddLaunchPadPage2;
  117. } SOMDLINK WPLaunchPadClassData;
  118. #define _WPLaunchPad WPLaunchPadClassData.classObject
  119.  
  120. /* The API to parentMtabs for WPLaunchPad, and the instance data it introduces. */
  121. SOMEXTERN struct WPLaunchPadCClassDataStructure {
  122.     somMethodTabs parentMtab;
  123.     somDToken              instanceDataToken;
  124. } SOMDLINK WPLaunchPadCClassData;
  125.  
  126. /*
  127.  * -- Typedefs for WPLaunchPad Method Procedures
  128.  */
  129. SOMEXTERN {
  130. typedef ULONG   SOMLINK somTP_WPLaunchPad_wpAddLaunchPadPage1(WPLaunchPad *somSelf, 
  131.         HWND hwndNotebook);
  132. typedef somTP_WPLaunchPad_wpAddLaunchPadPage1 *somTD_WPLaunchPad_wpAddLaunchPadPage1;
  133. typedef ULONG   SOMLINK somTP_WPLaunchPad_wpAddLaunchPadPage2(WPLaunchPad *somSelf, 
  134.         HWND hwndNotebook);
  135. typedef somTP_WPLaunchPad_wpAddLaunchPadPage2 *somTD_WPLaunchPad_wpAddLaunchPadPage2;
  136. typedef BOOL   SOMLINK somTP_WPLaunchPad_wpQueryCloseDrawer(WPLaunchPad *somSelf);
  137. typedef somTP_WPLaunchPad_wpQueryCloseDrawer *somTD_WPLaunchPad_wpQueryCloseDrawer;
  138. typedef BOOL   SOMLINK somTP_WPLaunchPad_wpQueryDisplayVertical(WPLaunchPad *somSelf);
  139. typedef somTP_WPLaunchPad_wpQueryDisplayVertical *somTD_WPLaunchPad_wpQueryDisplayVertical;
  140. typedef BOOL   SOMLINK somTP_WPLaunchPad_wpQueryDisplayText(WPLaunchPad *somSelf);
  141. typedef somTP_WPLaunchPad_wpQueryDisplayText *somTD_WPLaunchPad_wpQueryDisplayText;
  142. typedef BOOL   SOMLINK somTP_WPLaunchPad_wpQueryDisplayTextInDrawers(WPLaunchPad *somSelf);
  143. typedef somTP_WPLaunchPad_wpQueryDisplayTextInDrawers *somTD_WPLaunchPad_wpQueryDisplayTextInDrawers;
  144. typedef BOOL   SOMLINK somTP_WPLaunchPad_wpQueryDisplaySmallIcons(WPLaunchPad *somSelf);
  145. typedef somTP_WPLaunchPad_wpQueryDisplaySmallIcons *somTD_WPLaunchPad_wpQueryDisplaySmallIcons;
  146. typedef BOOL   SOMLINK somTP_WPLaunchPad_wpQueryHideLaunchPadFrameCtls(WPLaunchPad *somSelf);
  147. typedef somTP_WPLaunchPad_wpQueryHideLaunchPadFrameCtls *somTD_WPLaunchPad_wpQueryHideLaunchPadFrameCtls;
  148. typedef BOOL   SOMLINK somTP_WPLaunchPad_wpQueryFloatOnTop(WPLaunchPad *somSelf);
  149. typedef somTP_WPLaunchPad_wpQueryFloatOnTop *somTD_WPLaunchPad_wpQueryFloatOnTop;
  150. typedef void   SOMLINK somTP_WPLaunchPad_wpSetCloseDrawer(WPLaunchPad *somSelf, 
  151.         BOOL fState);
  152. typedef somTP_WPLaunchPad_wpSetCloseDrawer *somTD_WPLaunchPad_wpSetCloseDrawer;
  153. typedef void   SOMLINK somTP_WPLaunchPad_wpSetDisplayVertical(WPLaunchPad *somSelf, 
  154.         BOOL fState);
  155. typedef somTP_WPLaunchPad_wpSetDisplayVertical *somTD_WPLaunchPad_wpSetDisplayVertical;
  156. typedef void   SOMLINK somTP_WPLaunchPad_wpSetDisplayText(WPLaunchPad *somSelf, 
  157.         BOOL fState);
  158. typedef somTP_WPLaunchPad_wpSetDisplayText *somTD_WPLaunchPad_wpSetDisplayText;
  159. typedef void   SOMLINK somTP_WPLaunchPad_wpSetDisplayTextInDrawers(WPLaunchPad *somSelf, 
  160.         BOOL fState);
  161. typedef somTP_WPLaunchPad_wpSetDisplayTextInDrawers *somTD_WPLaunchPad_wpSetDisplayTextInDrawers;
  162. typedef void   SOMLINK somTP_WPLaunchPad_wpSetDisplaySmallIcons(WPLaunchPad *somSelf, 
  163.         BOOL fState);
  164. typedef somTP_WPLaunchPad_wpSetDisplaySmallIcons *somTD_WPLaunchPad_wpSetDisplaySmallIcons;
  165. typedef void   SOMLINK somTP_WPLaunchPad_wpSetHideLaunchPadFrameCtls(WPLaunchPad *somSelf, 
  166.         BOOL fState);
  167. typedef somTP_WPLaunchPad_wpSetHideLaunchPadFrameCtls *somTD_WPLaunchPad_wpSetHideLaunchPadFrameCtls;
  168. typedef void   SOMLINK somTP_WPLaunchPad_wpSetFloatOnTop(WPLaunchPad *somSelf, 
  169.         BOOL fState);
  170. typedef somTP_WPLaunchPad_wpSetFloatOnTop *somTD_WPLaunchPad_wpSetFloatOnTop;
  171. typedef PACTIONS   SOMLINK somTP_WPLaunchPad_wpQueryActionButtons(WPLaunchPad *somSelf, 
  172.         PULONG pulNumActions);
  173. typedef somTP_WPLaunchPad_wpQueryActionButtons *somTD_WPLaunchPad_wpQueryActionButtons;
  174. typedef HOBJECT*   SOMLINK somTP_WPLaunchPad_wpQueryObjectList(WPLaunchPad *somSelf, 
  175.         ULONG ulDrawer, 
  176.         PULONG pulNumObjects);
  177. typedef somTP_WPLaunchPad_wpQueryObjectList *somTD_WPLaunchPad_wpQueryObjectList;
  178. typedef BOOL   SOMLINK somTP_WPLaunchPad_wpSetObjectListFromStrings(WPLaunchPad *somSelf, 
  179.         ULONG ulDrawer, 
  180.         PSZ pszSetup, 
  181.         ULONG ulAfter);
  182. typedef somTP_WPLaunchPad_wpSetObjectListFromStrings *somTD_WPLaunchPad_wpSetObjectListFromStrings;
  183. typedef BOOL   SOMLINK somTP_WPLaunchPad_wpSetObjectListFromHObjects(WPLaunchPad *somSelf, 
  184.         ULONG ulDrawer, 
  185.         ULONG ulNumObjects, 
  186.         HOBJECT* phobjects, 
  187.         ULONG ulAfter);
  188. typedef somTP_WPLaunchPad_wpSetObjectListFromHObjects *somTD_WPLaunchPad_wpSetObjectListFromHObjects;
  189. typedef BOOL   SOMLINK somTP_WPLaunchPad_wpSetObjectListFromObjects(WPLaunchPad *somSelf, 
  190.         ULONG ulDrawer, 
  191.         ULONG ulNumObjects, 
  192.         WPObject** objects, 
  193.         ULONG ulAfter);
  194. typedef somTP_WPLaunchPad_wpSetObjectListFromObjects *somTD_WPLaunchPad_wpSetObjectListFromObjects;
  195. typedef void   SOMLINK somTP_WPLaunchPad_wpSetDrawerHWND(WPLaunchPad *somSelf, 
  196.         ULONG ulDrawer, 
  197.         HWND hwnd);
  198. typedef somTP_WPLaunchPad_wpSetDrawerHWND *somTD_WPLaunchPad_wpSetDrawerHWND;
  199. typedef HWND   SOMLINK somTP_WPLaunchPad_wpQueryDrawerHWND(WPLaunchPad *somSelf, 
  200.         ULONG ulDrawer);
  201. typedef somTP_WPLaunchPad_wpQueryDrawerHWND *somTD_WPLaunchPad_wpQueryDrawerHWND;
  202. typedef ULONG   SOMLINK somTP_WPLaunchPad_wpQueryActionButtonStyle(WPLaunchPad *somSelf);
  203. typedef somTP_WPLaunchPad_wpQueryActionButtonStyle *somTD_WPLaunchPad_wpQueryActionButtonStyle;
  204. typedef BOOL   SOMLINK somTP_WPLaunchPad_wpSetActionButtonStyle(WPLaunchPad *somSelf, 
  205.         ULONG ulStyle);
  206. typedef somTP_WPLaunchPad_wpSetActionButtonStyle *somTD_WPLaunchPad_wpSetActionButtonStyle;
  207. typedef void   SOMLINK somTP_WPLaunchPad_wpRefreshDrawer(WPLaunchPad *somSelf, 
  208.         ULONG ulDrawer);
  209. typedef somTP_WPLaunchPad_wpRefreshDrawer *somTD_WPLaunchPad_wpRefreshDrawer;
  210.  
  211. /*
  212.  * -- Typedefs for Reintroduced Wrapper Methods
  213.  */
  214. typedef M_WPLaunchPad*   SOMLINK somTP_WPLaunchPad_somGetClass(WPLaunchPad *somSelf);
  215. typedef somTP_WPLaunchPad_somGetClass *somTD_WPLaunchPad_somGetClass;
  216. }
  217.  
  218. #endif /* WPLaunchPad_API */
  219.  
  220.  
  221. /*
  222.  * -- This emitter treats Method Tokens as Thunks by default.
  223.  * -- Use the sc modifier "nothunks" to change this default
  224.  */
  225. #undef somresolve_
  226. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  227.  
  228. /*
  229.  * -- The C++ Wrapper Class for WPLaunchPad
  230.  */
  231. class WPLaunchPad : public WPAbstract
  232. {
  233. public:
  234.  
  235. // WPLaunchPad::new creates the class object if necessary, and then uses somNewNoInit
  236. // to allocate memory and create the object. Initialization is in ctors.
  237. void *operator new(size_t)
  238. {
  239.    if (!_WPLaunchPad) WPLaunchPadNewClass(WPLaunchPad_MajorVersion,WPLaunchPad_MinorVersion);
  240.    return (void*)
  241.       SOM_Resolve(_WPLaunchPad,SOMClass,somNewNoInit)
  242.          ((SOMClass *)((void*)_WPLaunchPad));
  243. }
  244.  
  245. // WPLaunchPad::delete uses somDestruct.
  246. void operator delete(void * obj)
  247. {
  248.    if (obj && *(void**)obj) {
  249.       SOM_Resolve(obj,SOMObject,somDestruct)
  250.          ((SOMObject*)obj, 1, 0);
  251.    }
  252. }
  253.  
  254. WPLaunchPad& operator=(WPLaunchPad& fromObj)
  255. {
  256.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  257.    return *this;
  258. }
  259.  
  260. WPLaunchPad()
  261. {
  262.    if (*(void**)this != 
  263.        ((somParentMtabStructPtr)
  264.         (WPLaunchPadCClassData.parentMtab))->mtab)
  265.       return;
  266.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  267. }
  268.  
  269. WPLaunchPad(WPLaunchPad* fromObj)
  270. {
  271.    if (*(void**)this != 
  272.        ((somParentMtabStructPtr)
  273.         (WPLaunchPadCClassData.parentMtab))->mtab)
  274.       return;
  275.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  276. }
  277.  
  278. WPLaunchPad(const WPLaunchPad* fromObj)
  279. {
  280.    if (*(void**)this != 
  281.        ((somParentMtabStructPtr)
  282.         (WPLaunchPadCClassData.parentMtab))->mtab)
  283.       return;
  284.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  285. }
  286.  
  287.  
  288. /* method: wpAddLaunchPadPage1 */
  289. ULONG   wpAddLaunchPadPage1(HWND hwndNotebook)
  290. {
  291.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpAddLaunchPadPage1)
  292.     (this,hwndNotebook);
  293. }
  294.  
  295.  
  296. /* method: wpAddLaunchPadPage2 */
  297. ULONG   wpAddLaunchPadPage2(HWND hwndNotebook)
  298. {
  299.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpAddLaunchPadPage2)
  300.     (this,hwndNotebook);
  301. }
  302.  
  303.  
  304. /* method: wpQueryCloseDrawer */
  305. BOOL   wpQueryCloseDrawer()
  306. {
  307.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpQueryCloseDrawer)
  308.     (this);
  309. }
  310.  
  311.  
  312. /* method: wpQueryDisplayVertical */
  313. BOOL   wpQueryDisplayVertical()
  314. {
  315.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpQueryDisplayVertical)
  316.     (this);
  317. }
  318.  
  319.  
  320. /* method: wpQueryDisplayText */
  321. BOOL   wpQueryDisplayText()
  322. {
  323.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpQueryDisplayText)
  324.     (this);
  325. }
  326.  
  327.  
  328. /* method: wpQueryDisplayTextInDrawers */
  329. BOOL   wpQueryDisplayTextInDrawers()
  330. {
  331.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpQueryDisplayTextInDrawers)
  332.     (this);
  333. }
  334.  
  335.  
  336. /* method: wpQueryDisplaySmallIcons */
  337. BOOL   wpQueryDisplaySmallIcons()
  338. {
  339.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpQueryDisplaySmallIcons)
  340.     (this);
  341. }
  342.  
  343.  
  344. /* method: wpQueryHideLaunchPadFrameCtls */
  345. BOOL   wpQueryHideLaunchPadFrameCtls()
  346. {
  347.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpQueryHideLaunchPadFrameCtls)
  348.     (this);
  349. }
  350.  
  351.  
  352. /* method: wpQueryFloatOnTop */
  353. BOOL   wpQueryFloatOnTop()
  354. {
  355.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpQueryFloatOnTop)
  356.     (this);
  357. }
  358.  
  359.  
  360. /* method: wpSetCloseDrawer */
  361. void   wpSetCloseDrawer(BOOL fState)
  362. {
  363.    SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpSetCloseDrawer)
  364.     (this,fState);
  365. }
  366.  
  367.  
  368. /* method: wpSetDisplayVertical */
  369. void   wpSetDisplayVertical(BOOL fState)
  370. {
  371.    SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpSetDisplayVertical)
  372.     (this,fState);
  373. }
  374.  
  375.  
  376. /* method: wpSetDisplayText */
  377. void   wpSetDisplayText(BOOL fState)
  378. {
  379.    SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpSetDisplayText)
  380.     (this,fState);
  381. }
  382.  
  383.  
  384. /* method: wpSetDisplayTextInDrawers */
  385. void   wpSetDisplayTextInDrawers(BOOL fState)
  386. {
  387.    SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpSetDisplayTextInDrawers)
  388.     (this,fState);
  389. }
  390.  
  391.  
  392. /* method: wpSetDisplaySmallIcons */
  393. void   wpSetDisplaySmallIcons(BOOL fState)
  394. {
  395.    SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpSetDisplaySmallIcons)
  396.     (this,fState);
  397. }
  398.  
  399.  
  400. /* method: wpSetHideLaunchPadFrameCtls */
  401. void   wpSetHideLaunchPadFrameCtls(BOOL fState)
  402. {
  403.    SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpSetHideLaunchPadFrameCtls)
  404.     (this,fState);
  405. }
  406.  
  407.  
  408. /* method: wpSetFloatOnTop */
  409. void   wpSetFloatOnTop(BOOL fState)
  410. {
  411.    SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpSetFloatOnTop)
  412.     (this,fState);
  413. }
  414.  
  415.  
  416. /* method: wpQueryActionButtons */
  417. PACTIONS   wpQueryActionButtons(PULONG pulNumActions)
  418. {
  419.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpQueryActionButtons)
  420.     (this,pulNumActions);
  421. }
  422.  
  423.  
  424. /* method: wpQueryObjectList */
  425. HOBJECT*   wpQueryObjectList(ULONG ulDrawer, 
  426.         PULONG pulNumObjects)
  427. {
  428.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpQueryObjectList)
  429.     (this,ulDrawer,pulNumObjects);
  430. }
  431.  
  432.  
  433. /* method: wpSetObjectListFromStrings */
  434. BOOL   wpSetObjectListFromStrings(ULONG ulDrawer, 
  435.         PSZ pszSetup, 
  436.         ULONG ulAfter)
  437. {
  438.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpSetObjectListFromStrings)
  439.     (this,ulDrawer,pszSetup,ulAfter);
  440. }
  441.  
  442.  
  443. /* method: wpSetObjectListFromHObjects */
  444. BOOL   wpSetObjectListFromHObjects(ULONG ulDrawer, 
  445.         ULONG ulNumObjects, 
  446.         HOBJECT* phobjects, 
  447.         ULONG ulAfter)
  448. {
  449.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpSetObjectListFromHObjects)
  450.     (this,ulDrawer,ulNumObjects,phobjects,ulAfter);
  451. }
  452.  
  453.  
  454. /* method: wpSetObjectListFromObjects */
  455. BOOL   wpSetObjectListFromObjects(ULONG ulDrawer, 
  456.         ULONG ulNumObjects, 
  457.         WPObject** objects, 
  458.         ULONG ulAfter)
  459. {
  460.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpSetObjectListFromObjects)
  461.     (this,ulDrawer,ulNumObjects,objects,ulAfter);
  462. }
  463.  
  464.  
  465. /* method: wpSetDrawerHWND */
  466. void   wpSetDrawerHWND(ULONG ulDrawer, 
  467.         HWND hwnd)
  468. {
  469.    SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpSetDrawerHWND)
  470.     (this,ulDrawer,hwnd);
  471. }
  472.  
  473.  
  474. /* method: wpQueryDrawerHWND */
  475. HWND   wpQueryDrawerHWND(ULONG ulDrawer)
  476. {
  477.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpQueryDrawerHWND)
  478.     (this,ulDrawer);
  479. }
  480.  
  481.  
  482. /* method: wpQueryActionButtonStyle */
  483. ULONG   wpQueryActionButtonStyle()
  484. {
  485.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpQueryActionButtonStyle)
  486.     (this);
  487. }
  488.  
  489.  
  490. /* method: wpSetActionButtonStyle */
  491. BOOL   wpSetActionButtonStyle(ULONG ulStyle)
  492. {
  493.    return SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpSetActionButtonStyle)
  494.     (this,ulStyle);
  495. }
  496.  
  497.  
  498. /* method: wpRefreshDrawer */
  499. void   wpRefreshDrawer(ULONG ulDrawer)
  500. {
  501.    SOM_ResolveD(this,WPLaunchPad,WPLaunchPad,wpRefreshDrawer)
  502.     (this,ulDrawer);
  503. }
  504.  
  505.  
  506. /*
  507.  * Reintroduce inherited methods
  508.  */
  509.  
  510. /* method: somGetClass */
  511. M_WPLaunchPad*  somGetClass()
  512. {
  513. /*
  514.  *  Return the receiver's class.
  515.  */
  516.    return SOM_ResolveD(this,WPLaunchPad,SOMObject,somGetClass)
  517.     (this);
  518. }
  519.  
  520.  
  521.  
  522. };   /* WPLaunchPad */
  523.  
  524.  
  525.  
  526. #endif       /* SOM_WPLaunchPad_xh */
  527.  
  528. #ifndef SOM_M_WPLaunchPad_xh
  529. #define SOM_M_WPLaunchPad_xh
  530.  
  531. class M_WPLaunchPad;
  532.  
  533. #define M_WPLaunchPad_MajorVersion 1
  534. #define M_WPLaunchPad_MinorVersion 2
  535.  
  536. /* C++ SOM defs */
  537. #include <somcls.xh>
  538. #include <somcm.xh>
  539.  
  540. /* C++ parent defs */
  541. #ifndef SOM_M_WPAbstract_xh
  542. #include <wpabs.xh>
  543. #endif
  544.  
  545. #ifndef M_WPLaunchPad_API
  546. #define M_WPLaunchPad_API
  547. /*
  548.  * -- The Class API
  549.  */
  550.  
  551. /*
  552.  * Start of bindings for IDL types
  553.  */
  554.  
  555.  
  556. /*
  557.  * End of bindings for IDL types.
  558.  */
  559.  
  560. /*
  561.  * -- M_WPLaunchPad is a metaclass for WPLaunchPad. Make sure WPLaunchPad is known.
  562.  */
  563. class WPLaunchPad;
  564.  
  565.  
  566. /* A procedure to create the M_WPLaunchPad Class */
  567. SOMEXTERN SOMClass * SOMLINK M_WPLaunchPadNewClass(
  568.         integer4 majorVersion,
  569.         integer4 minorVersion);
  570.  
  571. /* The API to the M_WPLaunchPad class object, and the methods it introduces. */
  572. SOMEXTERN struct M_WPLaunchPadClassDataStructure {
  573.     SOMClass *classObject;
  574. } SOMDLINK M_WPLaunchPadClassData;
  575. #define _M_WPLaunchPad M_WPLaunchPadClassData.classObject
  576.  
  577. /* The API to parentMtabs for M_WPLaunchPad, and the instance data it introduces. */
  578. SOMEXTERN struct M_WPLaunchPadCClassDataStructure {
  579.     somMethodTabs parentMtab;
  580.     somDToken              instanceDataToken;
  581. } SOMDLINK M_WPLaunchPadCClassData;
  582.  
  583. /*
  584.  * -- Typedefs for M_WPLaunchPad Method Procedures
  585.  */
  586. SOMEXTERN {
  587.  
  588. /*
  589.  * -- Typedefs for Reintroduced Wrapper Methods
  590.  */
  591. typedef WPLaunchPad*   SOMLINK somTP_M_WPLaunchPad_somNew(M_WPLaunchPad *somSelf);
  592. typedef somTP_M_WPLaunchPad_somNew *somTD_M_WPLaunchPad_somNew;
  593. }
  594.  
  595. #endif /* M_WPLaunchPad_API */
  596.  
  597.  
  598. /*
  599.  * -- This emitter treats Method Tokens as Thunks by default.
  600.  * -- Use the sc modifier "nothunks" to change this default
  601.  */
  602. #undef somresolve_
  603. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  604.  
  605. /*
  606.  * -- The C++ Wrapper Class for M_WPLaunchPad
  607.  */
  608. class M_WPLaunchPad : public M_WPAbstract
  609. {
  610. public:
  611.  
  612. // M_WPLaunchPad::new creates the class object if necessary, and then uses somNewNoInit
  613. // to allocate memory and create the object. Initialization is in ctors.
  614. void *operator new(size_t)
  615. {
  616.    if (!_M_WPLaunchPad) M_WPLaunchPadNewClass(M_WPLaunchPad_MajorVersion,M_WPLaunchPad_MinorVersion);
  617.    return (void*)
  618.       SOM_Resolve(_M_WPLaunchPad,SOMClass,somNewNoInit)
  619.          ((SOMClass *)((void*)_M_WPLaunchPad));
  620. }
  621.  
  622. // M_WPLaunchPad::delete uses somDestruct.
  623. void operator delete(void * obj)
  624. {
  625.    if (obj && *(void**)obj) {
  626.       SOM_Resolve(obj,SOMObject,somDestruct)
  627.          ((SOMObject*)obj, 1, 0);
  628.    }
  629. }
  630.  
  631. M_WPLaunchPad& operator=(M_WPLaunchPad& fromObj)
  632. {
  633.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  634.    return *this;
  635. }
  636.  
  637. M_WPLaunchPad()
  638. {
  639.    if (*(void**)this != 
  640.        ((somParentMtabStructPtr)
  641.         (M_WPLaunchPadCClassData.parentMtab))->mtab)
  642.       return;
  643.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  644. }
  645.  
  646. M_WPLaunchPad(M_WPLaunchPad* fromObj)
  647. {
  648.    if (*(void**)this != 
  649.        ((somParentMtabStructPtr)
  650.         (M_WPLaunchPadCClassData.parentMtab))->mtab)
  651.       return;
  652.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  653. }
  654.  
  655. M_WPLaunchPad(const M_WPLaunchPad* fromObj)
  656. {
  657.    if (*(void**)this != 
  658.        ((somParentMtabStructPtr)
  659.         (M_WPLaunchPadCClassData.parentMtab))->mtab)
  660.       return;
  661.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  662. }
  663.  
  664.  
  665. /*
  666.  * Reintroduce inherited methods
  667.  */
  668.  
  669. /* method: somNew */
  670. WPLaunchPad*  somNew()
  671. {
  672.    return SOM_ResolveD(this,M_WPLaunchPad,SOMClass,somNew)
  673.     (this);
  674. }
  675.  
  676.  
  677.  
  678. };   /* M_WPLaunchPad */
  679.  
  680.  
  681.  
  682. #endif       /* SOM_M_WPLaunchPad_xh */
  683.