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

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: E:\cwpsh\rel\os2c\include\base\os2\wpbitmap.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: WPBITMAP
  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_WPBitmap_xh
  23. #define SOM_WPBitmap_xh
  24.  
  25. class WPBitmap;
  26.  
  27. #define WPBitmap_MajorVersion 1
  28. #define WPBitmap_MinorVersion 2
  29.  
  30. /* C++ SOM defs */
  31. #include <somcls.xh>
  32. #include <somcm.xh>
  33.  
  34. /* C++ parent defs */
  35. #ifndef SOM_WPImageFile_xh
  36. #include <wpimage.xh>
  37. #endif
  38.  
  39. #ifndef WPBitmap_API
  40. #define WPBitmap_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_WPFileSystem;
  56. class M_WPDataFile;
  57. class M_WPImageFile;
  58. class M_WPBitmap;
  59.  
  60. /*
  61.  * End of bindings for IDL types.
  62.  */
  63.  
  64. /* A procedure to create the WPBitmap Class */
  65. class M_WPBitmap;
  66. SOMEXTERN M_WPBitmap * SOMLINK WPBitmapNewClass(
  67.         integer4 majorVersion,
  68.         integer4 minorVersion);
  69.  
  70. /* The API to the WPBitmap class object, and the methods it introduces. */
  71. SOMEXTERN struct WPBitmapClassDataStructure {
  72.     M_WPBitmap *classObject;
  73. } SOMDLINK WPBitmapClassData;
  74. #define _WPBitmap WPBitmapClassData.classObject
  75.  
  76. /* The API to parentMtabs for WPBitmap, and the instance data it introduces. */
  77. SOMEXTERN struct WPBitmapCClassDataStructure {
  78.     somMethodTabs parentMtab;
  79.     somDToken              instanceDataToken;
  80. } SOMDLINK WPBitmapCClassData;
  81.  
  82. /*
  83.  * -- Typedefs for WPBitmap Method Procedures
  84.  */
  85. SOMEXTERN {
  86.  
  87. /*
  88.  * -- Typedefs for Reintroduced Wrapper Methods
  89.  */
  90. typedef M_WPBitmap*   SOMLINK somTP_WPBitmap_somGetClass(WPBitmap *somSelf);
  91. typedef somTP_WPBitmap_somGetClass *somTD_WPBitmap_somGetClass;
  92. }
  93.  
  94. #endif /* WPBitmap_API */
  95.  
  96.  
  97. /*
  98.  * -- This emitter treats Method Tokens as Thunks by default.
  99.  * -- Use the sc modifier "nothunks" to change this default
  100.  */
  101. #undef somresolve_
  102. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  103.  
  104. /*
  105.  * -- The C++ Wrapper Class for WPBitmap
  106.  */
  107. class WPBitmap : public WPImageFile
  108. {
  109. public:
  110.  
  111. // WPBitmap::new creates the class object if necessary, and then uses somNewNoInit
  112. // to allocate memory and create the object. Initialization is in ctors.
  113. void *operator new(size_t)
  114. {
  115.    if (!_WPBitmap) WPBitmapNewClass(WPBitmap_MajorVersion,WPBitmap_MinorVersion);
  116.    return (void*)
  117.       SOM_Resolve(_WPBitmap,SOMClass,somNewNoInit)
  118.          ((SOMClass *)((void*)_WPBitmap));
  119. }
  120.  
  121. // WPBitmap::delete uses somDestruct.
  122. void operator delete(void * obj)
  123. {
  124.    if (obj && *(void**)obj) {
  125.       SOM_Resolve(obj,SOMObject,somDestruct)
  126.          ((SOMObject*)obj, 1, 0);
  127.    }
  128. }
  129.  
  130. WPBitmap& operator=(WPBitmap& fromObj)
  131. {
  132.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  133.    return *this;
  134. }
  135.  
  136. WPBitmap()
  137. {
  138.    if (*(void**)this != 
  139.        ((somParentMtabStructPtr)
  140.         (WPBitmapCClassData.parentMtab))->mtab)
  141.       return;
  142.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  143. }
  144.  
  145. WPBitmap(WPBitmap* fromObj)
  146. {
  147.    if (*(void**)this != 
  148.        ((somParentMtabStructPtr)
  149.         (WPBitmapCClassData.parentMtab))->mtab)
  150.       return;
  151.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  152. }
  153.  
  154. WPBitmap(const WPBitmap* fromObj)
  155. {
  156.    if (*(void**)this != 
  157.        ((somParentMtabStructPtr)
  158.         (WPBitmapCClassData.parentMtab))->mtab)
  159.       return;
  160.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  161. }
  162.  
  163.  
  164. /*
  165.  * Reintroduce inherited methods
  166.  */
  167.  
  168. /* method: somGetClass */
  169. M_WPBitmap*  somGetClass()
  170. {
  171. /*
  172.  *  Return the receiver's class.
  173.  */
  174.    return SOM_ResolveD(this,WPBitmap,SOMObject,somGetClass)
  175.     (this);
  176. }
  177.  
  178.  
  179.  
  180. };   /* WPBitmap */
  181.  
  182.  
  183.  
  184. #endif       /* SOM_WPBitmap_xh */
  185.  
  186. #ifndef SOM_M_WPBitmap_xh
  187. #define SOM_M_WPBitmap_xh
  188.  
  189. class M_WPBitmap;
  190.  
  191. #define M_WPBitmap_MajorVersion 1
  192. #define M_WPBitmap_MinorVersion 2
  193.  
  194. /* C++ SOM defs */
  195. #include <somcls.xh>
  196. #include <somcm.xh>
  197.  
  198. /* C++ parent defs */
  199. #ifndef SOM_M_WPImageFile_xh
  200. #include <wpimage.xh>
  201. #endif
  202.  
  203. #ifndef M_WPBitmap_API
  204. #define M_WPBitmap_API
  205. /*
  206.  * -- The Class API
  207.  */
  208.  
  209. /*
  210.  * Start of bindings for IDL types
  211.  */
  212.  
  213.  
  214. /*
  215.  * End of bindings for IDL types.
  216.  */
  217.  
  218. /*
  219.  * -- M_WPBitmap is a metaclass for WPBitmap. Make sure WPBitmap is known.
  220.  */
  221. class WPBitmap;
  222.  
  223.  
  224. /* A procedure to create the M_WPBitmap Class */
  225. SOMEXTERN SOMClass * SOMLINK M_WPBitmapNewClass(
  226.         integer4 majorVersion,
  227.         integer4 minorVersion);
  228.  
  229. /* The API to the M_WPBitmap class object, and the methods it introduces. */
  230. SOMEXTERN struct M_WPBitmapClassDataStructure {
  231.     SOMClass *classObject;
  232. } SOMDLINK M_WPBitmapClassData;
  233. #define _M_WPBitmap M_WPBitmapClassData.classObject
  234.  
  235. /* The API to parentMtabs for M_WPBitmap, and the instance data it introduces. */
  236. SOMEXTERN struct M_WPBitmapCClassDataStructure {
  237.     somMethodTabs parentMtab;
  238.     somDToken              instanceDataToken;
  239. } SOMDLINK M_WPBitmapCClassData;
  240.  
  241. /*
  242.  * -- Typedefs for M_WPBitmap Method Procedures
  243.  */
  244. SOMEXTERN {
  245.  
  246. /*
  247.  * -- Typedefs for Reintroduced Wrapper Methods
  248.  */
  249. typedef WPBitmap*   SOMLINK somTP_M_WPBitmap_somNew(M_WPBitmap *somSelf);
  250. typedef somTP_M_WPBitmap_somNew *somTD_M_WPBitmap_somNew;
  251. }
  252.  
  253. #endif /* M_WPBitmap_API */
  254.  
  255.  
  256. /*
  257.  * -- This emitter treats Method Tokens as Thunks by default.
  258.  * -- Use the sc modifier "nothunks" to change this default
  259.  */
  260. #undef somresolve_
  261. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  262.  
  263. /*
  264.  * -- The C++ Wrapper Class for M_WPBitmap
  265.  */
  266. class M_WPBitmap : public M_WPImageFile
  267. {
  268. public:
  269.  
  270. // M_WPBitmap::new creates the class object if necessary, and then uses somNewNoInit
  271. // to allocate memory and create the object. Initialization is in ctors.
  272. void *operator new(size_t)
  273. {
  274.    if (!_M_WPBitmap) M_WPBitmapNewClass(M_WPBitmap_MajorVersion,M_WPBitmap_MinorVersion);
  275.    return (void*)
  276.       SOM_Resolve(_M_WPBitmap,SOMClass,somNewNoInit)
  277.          ((SOMClass *)((void*)_M_WPBitmap));
  278. }
  279.  
  280. // M_WPBitmap::delete uses somDestruct.
  281. void operator delete(void * obj)
  282. {
  283.    if (obj && *(void**)obj) {
  284.       SOM_Resolve(obj,SOMObject,somDestruct)
  285.          ((SOMObject*)obj, 1, 0);
  286.    }
  287. }
  288.  
  289. M_WPBitmap& operator=(M_WPBitmap& fromObj)
  290. {
  291.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  292.    return *this;
  293. }
  294.  
  295. M_WPBitmap()
  296. {
  297.    if (*(void**)this != 
  298.        ((somParentMtabStructPtr)
  299.         (M_WPBitmapCClassData.parentMtab))->mtab)
  300.       return;
  301.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  302. }
  303.  
  304. M_WPBitmap(M_WPBitmap* fromObj)
  305. {
  306.    if (*(void**)this != 
  307.        ((somParentMtabStructPtr)
  308.         (M_WPBitmapCClassData.parentMtab))->mtab)
  309.       return;
  310.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  311. }
  312.  
  313. M_WPBitmap(const M_WPBitmap* fromObj)
  314. {
  315.    if (*(void**)this != 
  316.        ((somParentMtabStructPtr)
  317.         (M_WPBitmapCClassData.parentMtab))->mtab)
  318.       return;
  319.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  320. }
  321.  
  322.  
  323. /*
  324.  * Reintroduce inherited methods
  325.  */
  326.  
  327. /* method: somNew */
  328. WPBitmap*  somNew()
  329. {
  330.    return SOM_ResolveD(this,M_WPBitmap,SOMClass,somNew)
  331.     (this);
  332. }
  333.  
  334.  
  335.  
  336. };   /* M_WPBitmap */
  337.  
  338.  
  339.  
  340. #endif       /* SOM_M_WPBitmap_xh */
  341.