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

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: wppgmf.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: WPPGMF
  15.  * 
  16.  *  OS/2 Presentation Manager Workplace class definitions
  17.  * 
  18.  *  Copyright (c) International Business Machines Corporation 1991, 1992
  19.  * 
  20.  */
  21.  
  22. #ifndef wppgmf_xh
  23. #define wppgmf_xh
  24. class WPProgramFile;
  25.  
  26. #define WPProgramFile_MajorVersion 1
  27. #define WPProgramFile_MinorVersion 2
  28.  
  29. /* C++ som defs */
  30. #include <somcls.xh>
  31.  
  32. /* C++ parent def */
  33. #ifndef wpdataf_xh
  34. #include "wpdataf.xh"
  35. #endif
  36.  
  37. #ifndef WPProgramFile_API
  38. #define WPProgramFile_API
  39. /*
  40.  * The Class API
  41.  */
  42.  
  43. /* A procedure to create the WPProgramFile Class */
  44. SOMEXTERN SOMClass * SOMLINK WPProgramFileNewClass(
  45.         integer4 majorVersion,
  46.         integer4 minorVersion);
  47.  
  48. /* A macro to return the WPProgramFile class object */
  49. class M_WPProgramFile;
  50. #define _WPProgramFile ((M_WPProgramFile*)WPProgramFileClassData.classObject)
  51.  
  52. /* The static interface to WPProgramFile and its instances */
  53. SOMEXTERN struct WPProgramFileClassDataStructure {
  54.     SOMClass *classObject;
  55.     somMToken wpAddProgramAssociationPage;
  56.     somMToken wpAddProgramPage;
  57.     somMToken wpAddProgramSessionPage;
  58.     somMToken wpSetProgDetails;
  59.     somMToken wpQueryProgDetails;
  60.     somMToken wpSetProgIcon;
  61.     somMToken wpQueryAssociationFilter;
  62.     somMToken wpQueryAssociationType;
  63.     somMToken wpSetAssociationFilter;
  64.     somMToken wpSetAssociationType;
  65. } WPProgramFileClassData;
  66.  
  67. /*
  68.  * -- Typedefs for Procedures that support WPProgramFile Methods
  69.  */
  70. extern "C" {
  71. typedef ULONG    (SOMLINK *somTD_WPProgramFile_wpAddProgramAssociationPage)(WPProgramFile *somSelf,HWND hwndNotebook);
  72. typedef BOOL    (SOMLINK *somTD_WPProgramFile_wpQueryProgDetails)(WPProgramFile *somSelf,PPROGDETAILS pProgDetails,PULONG pulSize);
  73. typedef BOOL    (SOMLINK *somTD_WPProgramFile_wpSetProgDetails)(WPProgramFile *somSelf,PPROGDETAILS pProgDetails);
  74. typedef ULONG    (SOMLINK *somTD_WPProgramFile_wpAddProgramPage)(WPProgramFile *somSelf,HWND hwndNotebook);
  75. typedef ULONG    (SOMLINK *somTD_WPProgramFile_wpAddProgramSessionPage)(WPProgramFile *somSelf,HWND hwndNotebook);
  76. typedef PSZ    (SOMLINK *somTD_WPProgramFile_wpQueryAssociationFilter)(WPProgramFile *somSelf);
  77. typedef PSZ    (SOMLINK *somTD_WPProgramFile_wpQueryAssociationType)(WPProgramFile *somSelf);
  78. typedef BOOL    (SOMLINK *somTD_WPProgramFile_wpSetAssociationFilter)(WPProgramFile *somSelf,PSZ pszFilter);
  79. typedef BOOL    (SOMLINK *somTD_WPProgramFile_wpSetAssociationType)(WPProgramFile *somSelf,PSZ pszType);
  80. }
  81.  
  82.  
  83. #endif /* WPProgramFile_API */
  84.  
  85.  
  86. /*
  87.  * -- The C++ Wrapper Class for WPProgramFile
  88.  */
  89. class WPProgramFile : public WPDataFile
  90. {
  91. public:
  92.  
  93. void *operator new(size_t size)
  94. {
  95.    (void) size;
  96.    if (!WPProgramFileClassData.classObject) 
  97.       WPProgramFileNewClass(WPProgramFile_MajorVersion,WPProgramFile_MinorVersion);
  98.    return (void *)
  99.       ((somTD_SOMClass_somNew)
  100.       somResolve(SOM_TestCls((SOMAny *)(WPProgramFileClassData.classObject),
  101.                              SOMClassClassData.classObject),
  102.                  SOMClassClassData.somNew))
  103.          ((SOMClass*)(WPProgramFileClassData.classObject));
  104. }
  105.  
  106. void operator delete(void * obj)
  107. {
  108.    ((SOMObject *)obj)->somFree();
  109. }
  110.  
  111. /* public method: wpAddProgramAssociationPage */
  112. ULONG    wpAddProgramAssociationPage(HWND hwndNotebook)
  113. {
  114.    return (ULONG) SOM_Resolve((SOMAny *)this,WPProgramFile,wpAddProgramAssociationPage)
  115.     (this,hwndNotebook);
  116. }
  117.  
  118.  
  119. /* public method: wpQueryProgDetails */
  120. BOOL    wpQueryProgDetails(PPROGDETAILS pProgDetails,
  121.         PULONG pulSize)
  122. {
  123.    return (BOOL) SOM_Resolve((SOMAny *)this,WPProgramFile,wpQueryProgDetails)
  124.     (this,pProgDetails,pulSize);
  125. }
  126.  
  127.  
  128. /* public method: wpSetProgDetails */
  129. BOOL    wpSetProgDetails(PPROGDETAILS pProgDetails)
  130. {
  131.    return (BOOL) SOM_Resolve((SOMAny *)this,WPProgramFile,wpSetProgDetails)
  132.     (this,pProgDetails);
  133. }
  134.  
  135.  
  136. /* public method: wpAddProgramPage */
  137. ULONG    wpAddProgramPage(HWND hwndNotebook)
  138. {
  139.    return (ULONG) SOM_Resolve((SOMAny *)this,WPProgramFile,wpAddProgramPage)
  140.     (this,hwndNotebook);
  141. }
  142.  
  143.  
  144. /* public method: wpAddProgramSessionPage */
  145. ULONG    wpAddProgramSessionPage(HWND hwndNotebook)
  146. {
  147.    return (ULONG) SOM_Resolve((SOMAny *)this,WPProgramFile,wpAddProgramSessionPage)
  148.     (this,hwndNotebook);
  149. }
  150.  
  151.  
  152. /* public method: wpQueryAssociationFilter */
  153. PSZ    wpQueryAssociationFilter()
  154. {
  155.    return (PSZ) SOM_Resolve((SOMAny *)this,WPProgramFile,wpQueryAssociationFilter)
  156.     (this);
  157. }
  158.  
  159.  
  160. /* public method: wpQueryAssociationType */
  161. PSZ    wpQueryAssociationType()
  162. {
  163.    return (PSZ) SOM_Resolve((SOMAny *)this,WPProgramFile,wpQueryAssociationType)
  164.     (this);
  165. }
  166.  
  167.  
  168. /* public method: wpSetAssociationFilter */
  169. BOOL    wpSetAssociationFilter(PSZ pszFilter)
  170. {
  171.    return (BOOL) SOM_Resolve((SOMAny *)this,WPProgramFile,wpSetAssociationFilter)
  172.     (this,pszFilter);
  173. }
  174.  
  175.  
  176. /* public method: wpSetAssociationType */
  177. BOOL    wpSetAssociationType(PSZ pszType)
  178. {
  179.    return (BOOL) SOM_Resolve((SOMAny *)this,WPProgramFile,wpSetAssociationType)
  180.     (this,pszType);
  181. }
  182.  
  183.  
  184.  
  185. };   /* WPProgramFile */
  186.  
  187.  
  188.  
  189. /*
  190.  * Type Independent (name lookup) Method Invocation Support
  191.  */
  192.  
  193. #ifndef lookup_wpAddProgramAssociationPage
  194. #define lookup_wpAddProgramAssociationPage lookup_wpAddProgramAssociationPage
  195. static char *somLMN_wpAddProgramAssociationPage = "wpAddProgramAssociationPage";
  196. static somId somLId_wpAddProgramAssociationPage = &somLMN_wpAddProgramAssociationPage;
  197. static ULONG   SOMLINK lookup_wpAddProgramAssociationPage(SOMObject *somSelf,
  198.         HWND hwndNotebook)
  199. {
  200.    return (ULONG) (((somTD_WPProgramFile_wpAddProgramAssociationPage ) \
  201.     somSelf->somGetClass()->somFindSMethodOk(somLId_wpAddProgramAssociationPage)) \
  202.         ((WPProgramFile *)somSelf,hwndNotebook));
  203. }
  204. #endif
  205.  
  206.  
  207. #ifndef lookup_wpQueryProgDetails
  208. #define lookup_wpQueryProgDetails lookup_wpQueryProgDetails
  209. static char *somLMN_wpQueryProgDetails = "wpQueryProgDetails";
  210. static somId somLId_wpQueryProgDetails = &somLMN_wpQueryProgDetails;
  211. static BOOL   SOMLINK lookup_wpQueryProgDetails(SOMObject *somSelf,
  212.         PPROGDETAILS pProgDetails,
  213.         PULONG pulSize)
  214. {
  215.    return (BOOL) (((somTD_WPProgramFile_wpQueryProgDetails ) \
  216.     somSelf->somGetClass()->somFindSMethodOk(somLId_wpQueryProgDetails)) \
  217.         ((WPProgramFile *)somSelf,pProgDetails,pulSize));
  218. }
  219. #endif
  220.  
  221.  
  222. #ifndef lookup_wpSetProgDetails
  223. #define lookup_wpSetProgDetails lookup_wpSetProgDetails
  224. static char *somLMN_wpSetProgDetails = "wpSetProgDetails";
  225. static somId somLId_wpSetProgDetails = &somLMN_wpSetProgDetails;
  226. static BOOL   SOMLINK lookup_wpSetProgDetails(SOMObject *somSelf,
  227.         PPROGDETAILS pProgDetails)
  228. {
  229.    return (BOOL) (((somTD_WPProgramFile_wpSetProgDetails ) \
  230.     somSelf->somGetClass()->somFindSMethodOk(somLId_wpSetProgDetails)) \
  231.         ((WPProgramFile *)somSelf,pProgDetails));
  232. }
  233. #endif
  234.  
  235.  
  236. #ifndef lookup_wpAddProgramPage
  237. #define lookup_wpAddProgramPage lookup_wpAddProgramPage
  238. static char *somLMN_wpAddProgramPage = "wpAddProgramPage";
  239. static somId somLId_wpAddProgramPage = &somLMN_wpAddProgramPage;
  240. static ULONG   SOMLINK lookup_wpAddProgramPage(SOMObject *somSelf,
  241.         HWND hwndNotebook)
  242. {
  243.    return (ULONG) (((somTD_WPProgramFile_wpAddProgramPage ) \
  244.     somSelf->somGetClass()->somFindSMethodOk(somLId_wpAddProgramPage)) \
  245.         ((WPProgramFile *)somSelf,hwndNotebook));
  246. }
  247. #endif
  248.  
  249.  
  250. #ifndef lookup_wpAddProgramSessionPage
  251. #define lookup_wpAddProgramSessionPage lookup_wpAddProgramSessionPage
  252. static char *somLMN_wpAddProgramSessionPage = "wpAddProgramSessionPage";
  253. static somId somLId_wpAddProgramSessionPage = &somLMN_wpAddProgramSessionPage;
  254. static ULONG   SOMLINK lookup_wpAddProgramSessionPage(SOMObject *somSelf,
  255.         HWND hwndNotebook)
  256. {
  257.    return (ULONG) (((somTD_WPProgramFile_wpAddProgramSessionPage ) \
  258.     somSelf->somGetClass()->somFindSMethodOk(somLId_wpAddProgramSessionPage)) \
  259.         ((WPProgramFile *)somSelf,hwndNotebook));
  260. }
  261. #endif
  262.  
  263.  
  264. #ifndef lookup_wpQueryAssociationFilter
  265. #define lookup_wpQueryAssociationFilter lookup_wpQueryAssociationFilter
  266. static char *somLMN_wpQueryAssociationFilter = "wpQueryAssociationFilter";
  267. static somId somLId_wpQueryAssociationFilter = &somLMN_wpQueryAssociationFilter;
  268. static PSZ   SOMLINK lookup_wpQueryAssociationFilter(SOMObject *somSelf)
  269. {
  270.    return (PSZ) (((somTD_WPProgramFile_wpQueryAssociationFilter ) \
  271.     somSelf->somGetClass()->somFindSMethodOk(somLId_wpQueryAssociationFilter)) \
  272.         ((WPProgramFile *)somSelf));
  273. }
  274. #endif
  275.  
  276.  
  277. #ifndef lookup_wpQueryAssociationType
  278. #define lookup_wpQueryAssociationType lookup_wpQueryAssociationType
  279. static char *somLMN_wpQueryAssociationType = "wpQueryAssociationType";
  280. static somId somLId_wpQueryAssociationType = &somLMN_wpQueryAssociationType;
  281. static PSZ   SOMLINK lookup_wpQueryAssociationType(SOMObject *somSelf)
  282. {
  283.    return (PSZ) (((somTD_WPProgramFile_wpQueryAssociationType ) \
  284.     somSelf->somGetClass()->somFindSMethodOk(somLId_wpQueryAssociationType)) \
  285.         ((WPProgramFile *)somSelf));
  286. }
  287. #endif
  288.  
  289.  
  290. #ifndef lookup_wpSetAssociationFilter
  291. #define lookup_wpSetAssociationFilter lookup_wpSetAssociationFilter
  292. static char *somLMN_wpSetAssociationFilter = "wpSetAssociationFilter";
  293. static somId somLId_wpSetAssociationFilter = &somLMN_wpSetAssociationFilter;
  294. static BOOL   SOMLINK lookup_wpSetAssociationFilter(SOMObject *somSelf,
  295.         PSZ pszFilter)
  296. {
  297.    return (BOOL) (((somTD_WPProgramFile_wpSetAssociationFilter ) \
  298.     somSelf->somGetClass()->somFindSMethodOk(somLId_wpSetAssociationFilter)) \
  299.         ((WPProgramFile *)somSelf,pszFilter));
  300. }
  301. #endif
  302.  
  303.  
  304. #ifndef lookup_wpSetAssociationType
  305. #define lookup_wpSetAssociationType lookup_wpSetAssociationType
  306. static char *somLMN_wpSetAssociationType = "wpSetAssociationType";
  307. static somId somLId_wpSetAssociationType = &somLMN_wpSetAssociationType;
  308. static BOOL   SOMLINK lookup_wpSetAssociationType(SOMObject *somSelf,
  309.         PSZ pszType)
  310. {
  311.    return (BOOL) (((somTD_WPProgramFile_wpSetAssociationType ) \
  312.     somSelf->somGetClass()->somFindSMethodOk(somLId_wpSetAssociationType)) \
  313.         ((WPProgramFile *)somSelf,pszType));
  314. }
  315. #endif
  316.  
  317.  
  318. #endif       /* wppgmf_xh */
  319.  
  320. /*
  321.  * This file was generated by the SOM Compiler.
  322.  * FileName: wppgmf.xh.
  323.  * Generated using:
  324.  *     SOM Precompiler spc: 1.22
  325.  *     SOM Emitter emitxh: 1.11
  326.  */
  327. #ifndef wppgmf_mxh
  328. #define wppgmf_mxh
  329. class M_WPProgramFile;
  330.  
  331. #define M_WPProgramFile_MajorVersion 1
  332. #define M_WPProgramFile_MinorVersion 2
  333.  
  334. /* C++ som defs */
  335. #include <somcls.xh>
  336.  
  337. /* C++ parent def */
  338. #ifndef wpdataf_xh
  339. #include "wpdataf.xh"
  340. #endif
  341.  
  342. #ifndef M_WPProgramFile_API
  343. #define M_WPProgramFile_API
  344. /*
  345.  * The Class API
  346.  */
  347.  
  348. /* A procedure to create the M_WPProgramFile Class */
  349. SOMEXTERN SOMClass * SOMLINK M_WPProgramFileNewClass(
  350.         integer4 majorVersion,
  351.         integer4 minorVersion);
  352.  
  353. /* A macro to return the M_WPProgramFile class object */
  354. #define _M_WPProgramFile ((SOMClass*)M_WPProgramFileClassData.classObject)
  355.  
  356. /* The static interface to M_WPProgramFile and its instances */
  357. SOMEXTERN struct M_WPProgramFileClassDataStructure {
  358.     SOMClass *classObject;
  359. } M_WPProgramFileClassData;
  360.  
  361. /*
  362.  * -- Typedefs for Procedures that support M_WPProgramFile Methods
  363.  */
  364. extern "C" {
  365. }
  366.  
  367.  
  368. #endif /* M_WPProgramFile_API */
  369.  
  370.  
  371. /*
  372.  * -- The C++ Wrapper Class for M_WPProgramFile
  373.  */
  374. class M_WPProgramFile : public M_WPDataFile
  375. {
  376. public:
  377.  
  378. void *operator new(size_t size)
  379. {
  380.    (void) size;
  381.    if (!M_WPProgramFileClassData.classObject) 
  382.       M_WPProgramFileNewClass(M_WPProgramFile_MajorVersion,M_WPProgramFile_MinorVersion);
  383.    return (void *)
  384.       ((somTD_SOMClass_somNew)
  385.       somResolve(SOM_TestCls((SOMAny *)(M_WPProgramFileClassData.classObject),
  386.                              SOMClassClassData.classObject),
  387.                  SOMClassClassData.somNew))
  388.          ((SOMClass*)(M_WPProgramFileClassData.classObject));
  389. }
  390.  
  391. void operator delete(void * obj)
  392. {
  393.    ((SOMObject *)obj)->somFree();
  394. }
  395.  
  396.  
  397. };   /* M_WPProgramFile */
  398.  
  399.  
  400.  
  401. #endif       /* wppgmf_mxh */
  402.