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

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: E:\cwpsh\rel\os2c\include\base\os2\wpmwv.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.29.1.14
  7.  *     SOM Emitter emitxh: 2.43
  8.  */
  9.  
  10. #ifndef SOM_WPMinWinViewer_xh
  11. #define SOM_WPMinWinViewer_xh
  12.  
  13. class WPMinWinViewer;
  14.  
  15. #define WPMinWinViewer_MajorVersion 1
  16. #define WPMinWinViewer_MinorVersion 2
  17.  
  18. /*
  19.  * Passthru lines: File: "C.h", "before"
  20.  */
  21.  
  22.  
  23.  
  24. /* C++ SOM defs */
  25. #include <somcls.xh>
  26. #include <somcm.xh>
  27.  
  28. /* C++ parent defs */
  29. #ifndef SOM_WPFolder_xh
  30. #include <wpfolder.xh>
  31. #endif
  32.  
  33. #ifndef WPMinWinViewer_API
  34. #define WPMinWinViewer_API
  35. /*
  36.  * -- The Class API
  37.  */
  38.  
  39. /*
  40.  * Start of bindings for IDL types
  41.  */
  42.  
  43. class SOMClass;
  44. class SOMObject;
  45. class WPFolder;
  46. class M_WPObject;
  47. class WPObject;
  48. class WPImageFile;
  49. class M_WPFileSystem;
  50. class M_WPFolder;
  51. class M_WPMinWinViewer;
  52.  
  53. /*
  54.  * End of bindings for IDL types.
  55.  */
  56.  
  57. /* A procedure to create the WPMinWinViewer Class */
  58. class M_WPMinWinViewer;
  59. SOMEXTERN M_WPMinWinViewer * SOMLINK WPMinWinViewerNewClass(
  60.         integer4 majorVersion,
  61.         integer4 minorVersion);
  62.  
  63. /* The API to the WPMinWinViewer class object, and the methods it introduces. */
  64. SOMEXTERN struct WPMinWinViewerClassDataStructure {
  65.     M_WPMinWinViewer *classObject;
  66.     somMToken wpFindMinWindow;
  67. } SOMDLINK WPMinWinViewerClassData;
  68. #define _WPMinWinViewer WPMinWinViewerClassData.classObject
  69.  
  70. /* The API to parentMtabs for WPMinWinViewer, and the instance data it introduces. */
  71. SOMEXTERN struct WPMinWinViewerCClassDataStructure {
  72.     somMethodTabs parentMtab;
  73.     somDToken              instanceDataToken;
  74. } SOMDLINK WPMinWinViewerCClassData;
  75.  
  76. /*
  77.  * -- Typedefs for WPMinWinViewer Method Procedures
  78.  */
  79. SOMEXTERN {
  80. typedef WPObject*   SOMLINK somTP_WPMinWinViewer_wpFindMinWindow(WPMinWinViewer *somSelf, 
  81.         HWND hwndFrame);
  82. typedef somTP_WPMinWinViewer_wpFindMinWindow *somTD_WPMinWinViewer_wpFindMinWindow;
  83.  
  84. /*
  85.  * -- Typedefs for Reintroduced Wrapper Methods
  86.  */
  87. typedef M_WPMinWinViewer*   SOMLINK somTP_WPMinWinViewer_somGetClass(WPMinWinViewer *somSelf);
  88. typedef somTP_WPMinWinViewer_somGetClass *somTD_WPMinWinViewer_somGetClass;
  89. }
  90.  
  91. #endif /* WPMinWinViewer_API */
  92.  
  93.  
  94. /*
  95.  * -- This emitter treats Method Tokens as Thunks by default.
  96.  * -- Use the sc modifier "nothunks" to change this default
  97.  */
  98. #undef somresolve_
  99. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  100.  
  101. /*
  102.  * -- The C++ Wrapper Class for WPMinWinViewer
  103.  */
  104. class WPMinWinViewer : public WPFolder
  105. {
  106. public:
  107.  
  108. // WPMinWinViewer::new creates the class object if necessary, and then uses somNewNoInit
  109. // to allocate memory and create the object. Initialization is in ctors.
  110. void *operator new(size_t)
  111. {
  112.    if (!_WPMinWinViewer) WPMinWinViewerNewClass(WPMinWinViewer_MajorVersion,WPMinWinViewer_MinorVersion);
  113.    return (void*)
  114.       SOM_Resolve(_WPMinWinViewer,SOMClass,somNewNoInit)
  115.          ((SOMClass *)((void*)_WPMinWinViewer));
  116. }
  117.  
  118. // WPMinWinViewer::delete uses somDestruct.
  119. void operator delete(void * obj)
  120. {
  121.    if (obj && *(void**)obj) {
  122.       SOM_Resolve(obj,SOMObject,somDestruct)
  123.          ((SOMObject*)obj, 1, 0);
  124.    }
  125. }
  126.  
  127. WPMinWinViewer& operator=(WPMinWinViewer& fromObj)
  128. {
  129.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  130.    return *this;
  131. }
  132.  
  133. WPMinWinViewer()
  134. {
  135.    if (*(void**)this != 
  136.        ((somParentMtabStructPtr)
  137.         (WPMinWinViewerCClassData.parentMtab))->mtab)
  138.       return;
  139.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  140. }
  141.  
  142. WPMinWinViewer(WPMinWinViewer* fromObj)
  143. {
  144.    if (*(void**)this != 
  145.        ((somParentMtabStructPtr)
  146.         (WPMinWinViewerCClassData.parentMtab))->mtab)
  147.       return;
  148.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  149. }
  150.  
  151. WPMinWinViewer(const WPMinWinViewer* fromObj)
  152. {
  153.    if (*(void**)this != 
  154.        ((somParentMtabStructPtr)
  155.         (WPMinWinViewerCClassData.parentMtab))->mtab)
  156.       return;
  157.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  158. }
  159.  
  160.  
  161. /* method: wpFindMinWindow */
  162. WPObject*   wpFindMinWindow(HWND hwndFrame)
  163. {
  164.    return SOM_ResolveD(this,WPMinWinViewer,WPMinWinViewer,wpFindMinWindow)
  165.     (this,hwndFrame);
  166. }
  167.  
  168.  
  169. /*
  170.  * Reintroduce inherited methods
  171.  */
  172.  
  173. /* method: somGetClass */
  174. M_WPMinWinViewer*  somGetClass()
  175. {
  176. /*
  177.  *  Return the receiver's class.
  178.  */
  179.    return SOM_ResolveD(this,WPMinWinViewer,SOMObject,somGetClass)
  180.     (this);
  181. }
  182.  
  183.  
  184.  
  185. };   /* WPMinWinViewer */
  186.  
  187.  
  188.  
  189. #endif       /* SOM_WPMinWinViewer_xh */
  190.  
  191. #ifndef SOM_M_WPMinWinViewer_xh
  192. #define SOM_M_WPMinWinViewer_xh
  193.  
  194. class M_WPMinWinViewer;
  195.  
  196. #define M_WPMinWinViewer_MajorVersion 1
  197. #define M_WPMinWinViewer_MinorVersion 2
  198.  
  199. /* C++ SOM defs */
  200. #include <somcls.xh>
  201. #include <somcm.xh>
  202.  
  203. /* C++ parent defs */
  204. #ifndef SOM_M_WPFolder_xh
  205. #include <wpfolder.xh>
  206. #endif
  207.  
  208. #ifndef M_WPMinWinViewer_API
  209. #define M_WPMinWinViewer_API
  210. /*
  211.  * -- The Class API
  212.  */
  213.  
  214. /*
  215.  * Start of bindings for IDL types
  216.  */
  217.  
  218.  
  219. /*
  220.  * End of bindings for IDL types.
  221.  */
  222.  
  223. /*
  224.  * -- M_WPMinWinViewer is a metaclass for WPMinWinViewer. Make sure WPMinWinViewer is known.
  225.  */
  226. class WPMinWinViewer;
  227.  
  228.  
  229. /* A procedure to create the M_WPMinWinViewer Class */
  230. SOMEXTERN SOMClass * SOMLINK M_WPMinWinViewerNewClass(
  231.         integer4 majorVersion,
  232.         integer4 minorVersion);
  233.  
  234. /* The API to the M_WPMinWinViewer class object, and the methods it introduces. */
  235. SOMEXTERN struct M_WPMinWinViewerClassDataStructure {
  236.     SOMClass *classObject;
  237. } SOMDLINK M_WPMinWinViewerClassData;
  238. #define _M_WPMinWinViewer M_WPMinWinViewerClassData.classObject
  239.  
  240. /* The API to parentMtabs for M_WPMinWinViewer, and the instance data it introduces. */
  241. SOMEXTERN struct M_WPMinWinViewerCClassDataStructure {
  242.     somMethodTabs parentMtab;
  243.     somDToken              instanceDataToken;
  244. } SOMDLINK M_WPMinWinViewerCClassData;
  245.  
  246. /*
  247.  * -- Typedefs for M_WPMinWinViewer Method Procedures
  248.  */
  249. SOMEXTERN {
  250.  
  251. /*
  252.  * -- Typedefs for Reintroduced Wrapper Methods
  253.  */
  254. typedef WPMinWinViewer*   SOMLINK somTP_M_WPMinWinViewer_somNew(M_WPMinWinViewer *somSelf);
  255. typedef somTP_M_WPMinWinViewer_somNew *somTD_M_WPMinWinViewer_somNew;
  256. }
  257.  
  258. #endif /* M_WPMinWinViewer_API */
  259.  
  260.  
  261. /*
  262.  * -- This emitter treats Method Tokens as Thunks by default.
  263.  * -- Use the sc modifier "nothunks" to change this default
  264.  */
  265. #undef somresolve_
  266. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  267.  
  268. /*
  269.  * -- The C++ Wrapper Class for M_WPMinWinViewer
  270.  */
  271. class M_WPMinWinViewer : public M_WPFolder
  272. {
  273. public:
  274.  
  275. // M_WPMinWinViewer::new creates the class object if necessary, and then uses somNewNoInit
  276. // to allocate memory and create the object. Initialization is in ctors.
  277. void *operator new(size_t)
  278. {
  279.    if (!_M_WPMinWinViewer) M_WPMinWinViewerNewClass(M_WPMinWinViewer_MajorVersion,M_WPMinWinViewer_MinorVersion);
  280.    return (void*)
  281.       SOM_Resolve(_M_WPMinWinViewer,SOMClass,somNewNoInit)
  282.          ((SOMClass *)((void*)_M_WPMinWinViewer));
  283. }
  284.  
  285. // M_WPMinWinViewer::delete uses somDestruct.
  286. void operator delete(void * obj)
  287. {
  288.    if (obj && *(void**)obj) {
  289.       SOM_Resolve(obj,SOMObject,somDestruct)
  290.          ((SOMObject*)obj, 1, 0);
  291.    }
  292. }
  293.  
  294. M_WPMinWinViewer& operator=(M_WPMinWinViewer& fromObj)
  295. {
  296.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  297.    return *this;
  298. }
  299.  
  300. M_WPMinWinViewer()
  301. {
  302.    if (*(void**)this != 
  303.        ((somParentMtabStructPtr)
  304.         (M_WPMinWinViewerCClassData.parentMtab))->mtab)
  305.       return;
  306.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  307. }
  308.  
  309. M_WPMinWinViewer(M_WPMinWinViewer* fromObj)
  310. {
  311.    if (*(void**)this != 
  312.        ((somParentMtabStructPtr)
  313.         (M_WPMinWinViewerCClassData.parentMtab))->mtab)
  314.       return;
  315.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  316. }
  317.  
  318. M_WPMinWinViewer(const M_WPMinWinViewer* fromObj)
  319. {
  320.    if (*(void**)this != 
  321.        ((somParentMtabStructPtr)
  322.         (M_WPMinWinViewerCClassData.parentMtab))->mtab)
  323.       return;
  324.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  325. }
  326.  
  327.  
  328. /*
  329.  * Reintroduce inherited methods
  330.  */
  331.  
  332. /* method: somNew */
  333. WPMinWinViewer*  somNew()
  334. {
  335.    return SOM_ResolveD(this,M_WPMinWinViewer,SOMClass,somNew)
  336.     (this);
  337. }
  338.  
  339.  
  340.  
  341. };   /* M_WPMinWinViewer */
  342.  
  343.  
  344.  
  345. #endif       /* SOM_M_WPMinWinViewer_xh */
  346.