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

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: E:\cwpsh\rel\os2c\include\base\os2\wphtml.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.29.1.14
  7.  *     SOM Emitter emitxh: 2.43
  8.  */
  9.  
  10. /*
  11.  *    Module Name: WPHTML
  12.  * 
  13.  *    OS/2 Work Place Shell - HTML data file object
  14.  * 
  15.  *    Copyright (C) 1996 IBM Corporation
  16.  * 
  17.  */
  18.  
  19.  
  20. #ifndef SOM_WPHtml_xh
  21. #define SOM_WPHtml_xh
  22.  
  23. class WPHtml;
  24.  
  25. #define WPHtml_MajorVersion 1
  26. #define WPHtml_MinorVersion 2
  27.  
  28. /* C++ SOM defs */
  29. #include <somcls.xh>
  30. #include <somcm.xh>
  31.  
  32. /* C++ parent defs */
  33. #ifndef SOM_WPDataFile_xh
  34. #include <wpdataf.xh>
  35. #endif
  36.  
  37. #ifndef WPHtml_API
  38. #define WPHtml_API
  39. /*
  40.  * -- The Class API
  41.  */
  42.  
  43. /*
  44.  * Start of bindings for IDL types
  45.  */
  46.  
  47. class SOMClass;
  48. class SOMObject;
  49. class WPFolder;
  50. class M_WPObject;
  51. class WPObject;
  52. class WPImageFile;
  53. class M_WPFileSystem;
  54. class M_WPDataFile;
  55. class M_WPHtml;
  56.  
  57. /*
  58.  * End of bindings for IDL types.
  59.  */
  60.  
  61. /* A procedure to create the WPHtml Class */
  62. class M_WPHtml;
  63. SOMEXTERN M_WPHtml * SOMLINK WPHtmlNewClass(
  64.         integer4 majorVersion,
  65.         integer4 minorVersion);
  66.  
  67. /* The API to the WPHtml class object, and the methods it introduces. */
  68. SOMEXTERN struct WPHtmlClassDataStructure {
  69.     M_WPHtml *classObject;
  70. } SOMDLINK WPHtmlClassData;
  71. #define _WPHtml WPHtmlClassData.classObject
  72.  
  73. /* The API to parentMtabs for WPHtml, and the instance data it introduces. */
  74. SOMEXTERN struct WPHtmlCClassDataStructure {
  75.     somMethodTabs parentMtab;
  76.     somDToken              instanceDataToken;
  77. } SOMDLINK WPHtmlCClassData;
  78.  
  79. /*
  80.  * -- Typedefs for WPHtml Method Procedures
  81.  */
  82. SOMEXTERN {
  83.  
  84. /*
  85.  * -- Typedefs for Reintroduced Wrapper Methods
  86.  */
  87. typedef M_WPHtml*   SOMLINK somTP_WPHtml_somGetClass(WPHtml *somSelf);
  88. typedef somTP_WPHtml_somGetClass *somTD_WPHtml_somGetClass;
  89. }
  90.  
  91. #endif /* WPHtml_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 WPHtml
  103.  */
  104. class WPHtml : public WPDataFile
  105. {
  106. public:
  107.  
  108. // WPHtml::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 (!_WPHtml) WPHtmlNewClass(WPHtml_MajorVersion,WPHtml_MinorVersion);
  113.    return (void*)
  114.       SOM_Resolve(_WPHtml,SOMClass,somNewNoInit)
  115.          ((SOMClass *)((void*)_WPHtml));
  116. }
  117.  
  118. // WPHtml::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. WPHtml& operator=(WPHtml& fromObj)
  128. {
  129.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  130.    return *this;
  131. }
  132.  
  133. WPHtml()
  134. {
  135.    if (*(void**)this != 
  136.        ((somParentMtabStructPtr)
  137.         (WPHtmlCClassData.parentMtab))->mtab)
  138.       return;
  139.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  140. }
  141.  
  142. WPHtml(WPHtml* fromObj)
  143. {
  144.    if (*(void**)this != 
  145.        ((somParentMtabStructPtr)
  146.         (WPHtmlCClassData.parentMtab))->mtab)
  147.       return;
  148.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  149. }
  150.  
  151. WPHtml(const WPHtml* fromObj)
  152. {
  153.    if (*(void**)this != 
  154.        ((somParentMtabStructPtr)
  155.         (WPHtmlCClassData.parentMtab))->mtab)
  156.       return;
  157.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  158. }
  159.  
  160.  
  161. /*
  162.  * Reintroduce inherited methods
  163.  */
  164.  
  165. /* method: somGetClass */
  166. M_WPHtml*  somGetClass()
  167. {
  168. /*
  169.  *  Return the receiver's class.
  170.  */
  171.    return SOM_ResolveD(this,WPHtml,SOMObject,somGetClass)
  172.     (this);
  173. }
  174.  
  175.  
  176.  
  177. };   /* WPHtml */
  178.  
  179.  
  180.  
  181. #endif       /* SOM_WPHtml_xh */
  182.  
  183. #ifndef SOM_M_WPHtml_xh
  184. #define SOM_M_WPHtml_xh
  185.  
  186. class M_WPHtml;
  187.  
  188. #define M_WPHtml_MajorVersion 1
  189. #define M_WPHtml_MinorVersion 2
  190.  
  191. /* C++ SOM defs */
  192. #include <somcls.xh>
  193. #include <somcm.xh>
  194.  
  195. /* C++ parent defs */
  196. #ifndef SOM_M_WPDataFile_xh
  197. #include <wpdataf.xh>
  198. #endif
  199.  
  200. #ifndef M_WPHtml_API
  201. #define M_WPHtml_API
  202. /*
  203.  * -- The Class API
  204.  */
  205.  
  206. /*
  207.  * Start of bindings for IDL types
  208.  */
  209.  
  210.  
  211. /*
  212.  * End of bindings for IDL types.
  213.  */
  214.  
  215. /*
  216.  * -- M_WPHtml is a metaclass for WPHtml. Make sure WPHtml is known.
  217.  */
  218. class WPHtml;
  219.  
  220.  
  221. /* A procedure to create the M_WPHtml Class */
  222. SOMEXTERN SOMClass * SOMLINK M_WPHtmlNewClass(
  223.         integer4 majorVersion,
  224.         integer4 minorVersion);
  225.  
  226. /* The API to the M_WPHtml class object, and the methods it introduces. */
  227. SOMEXTERN struct M_WPHtmlClassDataStructure {
  228.     SOMClass *classObject;
  229. } SOMDLINK M_WPHtmlClassData;
  230. #define _M_WPHtml M_WPHtmlClassData.classObject
  231.  
  232. /* The API to parentMtabs for M_WPHtml, and the instance data it introduces. */
  233. SOMEXTERN struct M_WPHtmlCClassDataStructure {
  234.     somMethodTabs parentMtab;
  235.     somDToken              instanceDataToken;
  236. } SOMDLINK M_WPHtmlCClassData;
  237.  
  238. /*
  239.  * -- Typedefs for M_WPHtml Method Procedures
  240.  */
  241. SOMEXTERN {
  242.  
  243. /*
  244.  * -- Typedefs for Reintroduced Wrapper Methods
  245.  */
  246. typedef WPHtml*   SOMLINK somTP_M_WPHtml_somNew(M_WPHtml *somSelf);
  247. typedef somTP_M_WPHtml_somNew *somTD_M_WPHtml_somNew;
  248. }
  249.  
  250. #endif /* M_WPHtml_API */
  251.  
  252.  
  253. /*
  254.  * -- This emitter treats Method Tokens as Thunks by default.
  255.  * -- Use the sc modifier "nothunks" to change this default
  256.  */
  257. #undef somresolve_
  258. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  259.  
  260. /*
  261.  * -- The C++ Wrapper Class for M_WPHtml
  262.  */
  263. class M_WPHtml : public M_WPDataFile
  264. {
  265. public:
  266.  
  267. // M_WPHtml::new creates the class object if necessary, and then uses somNewNoInit
  268. // to allocate memory and create the object. Initialization is in ctors.
  269. void *operator new(size_t)
  270. {
  271.    if (!_M_WPHtml) M_WPHtmlNewClass(M_WPHtml_MajorVersion,M_WPHtml_MinorVersion);
  272.    return (void*)
  273.       SOM_Resolve(_M_WPHtml,SOMClass,somNewNoInit)
  274.          ((SOMClass *)((void*)_M_WPHtml));
  275. }
  276.  
  277. // M_WPHtml::delete uses somDestruct.
  278. void operator delete(void * obj)
  279. {
  280.    if (obj && *(void**)obj) {
  281.       SOM_Resolve(obj,SOMObject,somDestruct)
  282.          ((SOMObject*)obj, 1, 0);
  283.    }
  284. }
  285.  
  286. M_WPHtml& operator=(M_WPHtml& fromObj)
  287. {
  288.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  289.    return *this;
  290. }
  291.  
  292. M_WPHtml()
  293. {
  294.    if (*(void**)this != 
  295.        ((somParentMtabStructPtr)
  296.         (M_WPHtmlCClassData.parentMtab))->mtab)
  297.       return;
  298.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  299. }
  300.  
  301. M_WPHtml(M_WPHtml* fromObj)
  302. {
  303.    if (*(void**)this != 
  304.        ((somParentMtabStructPtr)
  305.         (M_WPHtmlCClassData.parentMtab))->mtab)
  306.       return;
  307.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  308. }
  309.  
  310. M_WPHtml(const M_WPHtml* fromObj)
  311. {
  312.    if (*(void**)this != 
  313.        ((somParentMtabStructPtr)
  314.         (M_WPHtmlCClassData.parentMtab))->mtab)
  315.       return;
  316.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  317. }
  318.  
  319.  
  320. /*
  321.  * Reintroduce inherited methods
  322.  */
  323.  
  324. /* method: somNew */
  325. WPHtml*  somNew()
  326. {
  327.    return SOM_ResolveD(this,M_WPHtml,SOMClass,somNew)
  328.     (this);
  329. }
  330.  
  331.  
  332.  
  333. };   /* M_WPHtml */
  334.  
  335.  
  336.  
  337. #endif       /* SOM_M_WPHtml_xh */
  338.