home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v5.zip / TOOLKT21 / CPLUS / OS2H / WPDESK.XH < prev    next >
Text File  |  1993-05-03  |  5KB  |  221 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: wpdesk.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler spc: 1.22
  7.  *     SOM Emitter emitxh: 1.11
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Module Header
  13.  * 
  14.  *  Module Name: WPDESK
  15.  * 
  16.  *  OS/2 Presentation Manager Workplace class definitions
  17.  * 
  18.  *  Copyright (c) International Business Machines Corporation 1991, 1992
  19.  * 
  20.  */
  21.  
  22. #ifndef wpdesk_xh
  23. #define wpdesk_xh
  24. class WPDesktop;
  25.  
  26. #define WPDesktop_MajorVersion 1
  27. #define WPDesktop_MinorVersion 2
  28.  
  29. /* C++ som defs */
  30. #include <somcls.xh>
  31.  
  32. /* C++ parent def */
  33. #ifndef wpfolder_xh
  34. #include "wpfolder.xh"
  35. #endif
  36.  
  37. #ifndef WPDesktop_API
  38. #define WPDesktop_API
  39. /*
  40.  * The Class API
  41.  */
  42.  
  43. /* A procedure to create the WPDesktop Class */
  44. SOMEXTERN SOMClass * SOMLINK WPDesktopNewClass(
  45.         integer4 majorVersion,
  46.         integer4 minorVersion);
  47.  
  48. /* A macro to return the WPDesktop class object */
  49. class M_WPDesktop;
  50. #define _WPDesktop ((M_WPDesktop*)WPDesktopClassData.classObject)
  51.  
  52. /* The static interface to WPDesktop and its instances */
  53. SOMEXTERN struct WPDesktopClassDataStructure {
  54.     SOMClass *classObject;
  55.     somMToken wpIsCurrentDesktop;
  56.     somMToken wpAddDesktopLockup1Page;
  57.     somMToken wpAddDesktopLockup2Page;
  58.     somMToken wpAddDesktopLockup3Page;
  59. } WPDesktopClassData;
  60.  
  61. /*
  62.  * -- Typedefs for Procedures that support WPDesktop Methods
  63.  */
  64. extern "C" {
  65. typedef BOOL    (SOMLINK *somTD_WPDesktop_wpIsCurrentDesktop)(WPDesktop *somSelf);
  66. typedef ULONG    (SOMLINK *somTD_WPDesktop_wpAddDesktopLockup1Page)(WPDesktop *somSelf,HWND hwndNotebook);
  67. typedef ULONG    (SOMLINK *somTD_WPDesktop_wpAddDesktopLockup2Page)(WPDesktop *somSelf,HWND hwndNotebook);
  68. typedef ULONG    (SOMLINK *somTD_WPDesktop_wpAddDesktopLockup3Page)(WPDesktop *somSelf,HWND hwndNotebook);
  69. }
  70.  
  71.  
  72. #endif /* WPDesktop_API */
  73.  
  74.  
  75. /*
  76.  * -- The C++ Wrapper Class for WPDesktop
  77.  */
  78. class WPDesktop : public WPFolder
  79. {
  80. public:
  81.  
  82. void *operator new(size_t size)
  83. {
  84.    (void) size;
  85.    if (!WPDesktopClassData.classObject) 
  86.       WPDesktopNewClass(WPDesktop_MajorVersion,WPDesktop_MinorVersion);
  87.    return (void *)
  88.       ((somTD_SOMClass_somNew)
  89.       somResolve(SOM_TestCls((SOMAny *)(WPDesktopClassData.classObject),
  90.                              SOMClassClassData.classObject),
  91.                  SOMClassClassData.somNew))
  92.          ((SOMClass*)(WPDesktopClassData.classObject));
  93. }
  94.  
  95. void operator delete(void * obj)
  96. {
  97.    ((SOMObject *)obj)->somFree();
  98. }
  99.  
  100. /* public method: wpIsCurrentDesktop */
  101. BOOL    wpIsCurrentDesktop()
  102. {
  103.    return (BOOL) SOM_Resolve((SOMAny *)this,WPDesktop,wpIsCurrentDesktop)
  104.     (this);
  105. }
  106.  
  107.  
  108. /* public method: wpAddDesktopLockup1Page */
  109. ULONG    wpAddDesktopLockup1Page(HWND hwndNotebook)
  110. {
  111.    return (ULONG) SOM_Resolve((SOMAny *)this,WPDesktop,wpAddDesktopLockup1Page)
  112.     (this,hwndNotebook);
  113. }
  114.  
  115.  
  116. /* public method: wpAddDesktopLockup2Page */
  117. ULONG    wpAddDesktopLockup2Page(HWND hwndNotebook)
  118. {
  119.    return (ULONG) SOM_Resolve((SOMAny *)this,WPDesktop,wpAddDesktopLockup2Page)
  120.     (this,hwndNotebook);
  121. }
  122.  
  123.  
  124. /* public method: wpAddDesktopLockup3Page */
  125. ULONG    wpAddDesktopLockup3Page(HWND hwndNotebook)
  126. {
  127.    return (ULONG) SOM_Resolve((SOMAny *)this,WPDesktop,wpAddDesktopLockup3Page)
  128.     (this,hwndNotebook);
  129. }
  130.  
  131.  
  132.  
  133. };   /* WPDesktop */
  134.  
  135.  
  136.  
  137. #endif       /* wpdesk_xh */
  138.  
  139. /*
  140.  * This file was generated by the SOM Compiler.
  141.  * FileName: wpdesk.xh.
  142.  * Generated using:
  143.  *     SOM Precompiler spc: 1.22
  144.  *     SOM Emitter emitxh: 1.11
  145.  */
  146. #ifndef wpdesk_mxh
  147. #define wpdesk_mxh
  148. class M_WPDesktop;
  149.  
  150. #define M_WPDesktop_MajorVersion 1
  151. #define M_WPDesktop_MinorVersion 2
  152.  
  153. /* C++ som defs */
  154. #include <somcls.xh>
  155.  
  156. /* C++ parent def */
  157. #ifndef wpfolder_xh
  158. #include "wpfolder.xh"
  159. #endif
  160.  
  161. #ifndef M_WPDesktop_API
  162. #define M_WPDesktop_API
  163. /*
  164.  * The Class API
  165.  */
  166.  
  167. /* A procedure to create the M_WPDesktop Class */
  168. SOMEXTERN SOMClass * SOMLINK M_WPDesktopNewClass(
  169.         integer4 majorVersion,
  170.         integer4 minorVersion);
  171.  
  172. /* A macro to return the M_WPDesktop class object */
  173. #define _M_WPDesktop ((SOMClass*)M_WPDesktopClassData.classObject)
  174.  
  175. /* The static interface to M_WPDesktop and its instances */
  176. SOMEXTERN struct M_WPDesktopClassDataStructure {
  177.     SOMClass *classObject;
  178. } M_WPDesktopClassData;
  179.  
  180. /*
  181.  * -- Typedefs for Procedures that support M_WPDesktop Methods
  182.  */
  183. extern "C" {
  184. }
  185.  
  186.  
  187. #endif /* M_WPDesktop_API */
  188.  
  189.  
  190. /*
  191.  * -- The C++ Wrapper Class for M_WPDesktop
  192.  */
  193. class M_WPDesktop : public M_WPFolder
  194. {
  195. public:
  196.  
  197. void *operator new(size_t size)
  198. {
  199.    (void) size;
  200.    if (!M_WPDesktopClassData.classObject) 
  201.       M_WPDesktopNewClass(M_WPDesktop_MajorVersion,M_WPDesktop_MinorVersion);
  202.    return (void *)
  203.       ((somTD_SOMClass_somNew)
  204.       somResolve(SOM_TestCls((SOMAny *)(M_WPDesktopClassData.classObject),
  205.                              SOMClassClassData.classObject),
  206.                  SOMClassClassData.somNew))
  207.          ((SOMClass*)(M_WPDesktopClassData.classObject));
  208. }
  209.  
  210. void operator delete(void * obj)
  211. {
  212.    ((SOMObject *)obj)->somFree();
  213. }
  214.  
  215.  
  216. };   /* M_WPDesktop */
  217.  
  218.  
  219.  
  220. #endif       /* wpdesk_mxh */
  221.