home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / os2tk21j / c / os2h / wpport.h__ / wpport.h
Encoding:
C/C++ Source or Header  |  1993-04-26  |  6.5 KB  |  280 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: ..\..\ibmh\wpport.h.
  5.  * Generated using:
  6.  *     SOM Precompiler spc: 1.22
  7.  *     SOM Emitter emith: 1.11
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Module Header
  13.  * 
  14.  *  Module Name: WPPORT
  15.  * 
  16.  *  OS/2 Presentation Manager Workplace class definitions
  17.  * 
  18.  *  Copyright (c) International Business Machines Corporation 1991, 1992
  19.  * 
  20.  */
  21.  
  22.  
  23. #ifndef wpport_h
  24. #define wpport_h
  25.  
  26.  
  27. #include <som.h>
  28.  
  29. /*
  30.  * Define the class name as an object type
  31.  */
  32. #ifndef WPPort
  33. #define WPPort SOMAny
  34. #endif
  35. #include "wptrans.h"
  36.  
  37. #define WPPort_MajorVersion 1
  38. #define WPPort_MinorVersion 1
  39.  
  40. /*
  41.  * External name shortening if required
  42.  */
  43. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  44. #define WPPortNewClass WPportc
  45. #pragma linkage(WPportc, system)
  46. #define WPPortClassData WPportd
  47. #define WPPortCClassData WPportx
  48. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  49. /*--------------Migration------------*/
  50. #define WPPort_classObj WPPortClassData.classObject
  51. #define _WPPort WPPort_classObj
  52.  
  53. /*
  54.  * New and Renew macros for WPPort
  55.  */
  56. #define _WPPortNew() (_somNew(WPPortClassData.classObject))
  57. #define WPPortNew() \
  58.     ( WPPortClassData.classObject \
  59.         ? _WPPortNew() \
  60.         : ( WPPortNewClass(WPPort_MajorVersion, WPPort_MinorVersion), _WPPortNew() ) )
  61. #define WPPortRenew(buf) \
  62.     ( _somRenew(WPPortClassData.classObject, buf) )
  63.  
  64. /*
  65.  * Override method: wpInitData
  66.  */
  67. #define WPPort_wpInitData(somSelf) \
  68.     WPObject_wpInitData(somSelf)
  69.  
  70. /*
  71.  * Override method: wpUnInitData
  72.  */
  73. #define WPPort_wpUnInitData(somSelf) \
  74.     WPObject_wpUnInitData(somSelf)
  75.  
  76. /*
  77.  * Override method: somDumpSelfInt
  78.  */
  79. #define WPPort_somDumpSelfInt(somSelf,level) \
  80.     SOMObject_somDumpSelfInt(somSelf,level)
  81.  
  82. /*
  83.  * Override method: wpQueryTitle
  84.  */
  85. #define WPPort_wpQueryTitle(somSelf) \
  86.     WPObject_wpQueryTitle(somSelf)
  87.  
  88. /*
  89.  * Override method: wpQueryIcon
  90.  */
  91. #define WPPort_wpQueryIcon(somSelf) \
  92.     WPObject_wpQueryIcon(somSelf)
  93.  
  94. /*
  95.  * Override method: wpFilterPopupMenu
  96.  */
  97. #define WPPort_wpFilterPopupMenu(somSelf,ulFlags,hwndCnr,fMultiSelect) \
  98.     WPObject_wpFilterPopupMenu(somSelf,ulFlags,hwndCnr,fMultiSelect)
  99.  
  100. /*
  101.  * Override method: wpFree
  102.  */
  103. #define WPPort_wpFree(somSelf) \
  104.     WPObject_wpFree(somSelf)
  105.  
  106. /*
  107.  * Override method: wpModifyPopupMenu
  108.  */
  109. #define WPPort_wpModifyPopupMenu(somSelf,hwndMenu,hwndCnr,iPosition) \
  110.     WPObject_wpModifyPopupMenu(somSelf,hwndMenu,hwndCnr,iPosition)
  111.  
  112. /*
  113.  * Override method: wpMenuItemSelected
  114.  */
  115. #define WPPort_wpMenuItemSelected(somSelf,hwndFrame,ulMenuId) \
  116.     WPObject_wpMenuItemSelected(somSelf,hwndFrame,ulMenuId)
  117.  
  118. /*
  119.  * Override method: wpMenuItemHelpSelected
  120.  */
  121. #define WPPort_wpMenuItemHelpSelected(somSelf,MenuId) \
  122.     WPObject_wpMenuItemHelpSelected(somSelf,MenuId)
  123.  
  124. /*
  125.  * Override method: wpOpen
  126.  */
  127. #define WPPort_wpOpen(somSelf,hwndCnr,ulView,param) \
  128.     WPObject_wpOpen(somSelf,hwndCnr,ulView,param)
  129.  
  130. /*
  131.  * Override method: wpDrop
  132.  */
  133. #define WPPort_wpDrop(somSelf,hwndCnr,pdrgInfo,pdrgItem) \
  134.     WPObject_wpDrop(somSelf,hwndCnr,pdrgInfo,pdrgItem)
  135.  
  136. /*
  137.  * Override method: wpDragOver
  138.  */
  139. #define WPPort_wpDragOver(somSelf,hwndCnr,pdrgInfo) \
  140.     WPObject_wpDragOver(somSelf,hwndCnr,pdrgInfo)
  141.  
  142. /*
  143.  * Override method: wpCnrSetEmphasis
  144.  */
  145. #define WPPort_wpCnrSetEmphasis(somSelf,ulEmphasisAttr,fTurnOn) \
  146.     WPObject_wpCnrSetEmphasis(somSelf,ulEmphasisAttr,fTurnOn)
  147.  
  148. /*
  149.  * Declare the class creation procedure
  150.  */
  151. SOMEXTERN SOMAny * SOMLINK WPPortNewClass(integer4 scemajorVersion,
  152.         integer4 sceminorVersion);
  153. #pragma linkage(WPPortNewClass, system)
  154.  
  155. /*
  156.  * Declare the class data structure
  157.  */
  158. SOMEXTERN struct WPPortClassDataStructure {
  159.     SOMAny *classObject;
  160.     somMToken prtGetPortInfo;
  161.     somMToken prtSetPortInfo;
  162.     somMToken prtSettings;
  163.     somMToken prtGetDeviceObject;
  164.     somMToken prtSetPortDiscardhwndDlg;
  165.     somMToken prtSetPortInstallhwndDlg;
  166.     somMToken prtPrintPort;
  167.     somMToken prtSetIcon;
  168.     somMToken prtChangePort;
  169. } WPPortClassData;
  170.  
  171. /*
  172.  * Declare the C specific class data structure
  173.  */
  174. SOMEXTERN struct WPPortCClassDataStructure {
  175.     somMethodTab *parentMtab;
  176.     somDToken instanceDataToken;
  177. } WPPortCClassData;
  178.  
  179. #endif       /* wpport_h */
  180.  
  181. /*
  182.  * This file was generated by the SOM Compiler.
  183.  * FileName: ..\..\ibmh\wpport.h.
  184.  * Generated using:
  185.  *     SOM Precompiler spc: 1.22
  186.  *     SOM Emitter emith: 1.11
  187.  */
  188.  
  189. #ifndef wpport_mh
  190. #define wpport_mh
  191.  
  192.  
  193. /*
  194.  * Define the class name as an object type
  195.  */
  196. #ifndef M_WPPort
  197. #define M_WPPort SOMAny
  198. #endif
  199.  
  200. #define M_WPPort_MajorVersion 1
  201. #define M_WPPort_MinorVersion 1
  202.  
  203. /*
  204.  * External name shortening if required
  205.  */
  206. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  207. #define M_WPPortNewClass WPportc
  208. #pragma linkage(WPportc, system)
  209. #define M_WPPortClassData WPportd
  210. #define M_WPPortCClassData WPportx
  211. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  212. /*--------------Migration------------*/
  213. #define M_WPPort_classObj M_WPPortClassData.classObject
  214. #define _M_WPPort M_WPPort_classObj
  215.  
  216. /*
  217.  * New and Renew macros for M_WPPort
  218.  */
  219. #define _M_WPPortNew() (_somNew(M_WPPortClassData.classObject))
  220. #define M_WPPortNew() \
  221.     ( M_WPPortClassData.classObject \
  222.         ? _M_WPPortNew() \
  223.         : ( M_WPPortNewClass(M_WPPort_MajorVersion, M_WPPort_MinorVersion), _M_WPPortNew() ) )
  224. #define M_WPPortRenew(buf) \
  225.     ( _somRenew(M_WPPortClassData.classObject, buf) )
  226.  
  227. /*
  228.  * Override method: wpclsQueryTitle
  229.  */
  230. #define M_WPPort_wpclsQueryTitle(somSelf) \
  231.     M_WPObject_wpclsQueryTitle(somSelf)
  232.  
  233. /*
  234.  * Override method: wpclsQueryIcon
  235.  */
  236. #define M_WPPort_wpclsQueryIcon(somSelf) \
  237.     M_WPObject_wpclsQueryIcon(somSelf)
  238.  
  239. /*
  240.  * Override method: wpclsQueryDefaultHelp
  241.  */
  242. #define M_WPPort_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) \
  243.     M_WPObject_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary)
  244.  
  245. /*
  246.  * Override method: wpclsQueryDefaultView
  247.  */
  248. #define M_WPPort_wpclsQueryDefaultView(somSelf) \
  249.     M_WPObject_wpclsQueryDefaultView(somSelf)
  250.  
  251. /*
  252.  * Override method: wpclsQueryStyle
  253.  */
  254. #define M_WPPort_wpclsQueryStyle(somSelf) \
  255.     M_WPObject_wpclsQueryStyle(somSelf)
  256.  
  257. /*
  258.  * Declare the class creation procedure
  259.  */
  260. SOMEXTERN SOMAny * SOMLINK M_WPPortNewClass(integer4 scemajorVersion,
  261.         integer4 sceminorVersion);
  262. #pragma linkage(M_WPPortNewClass, system)
  263.  
  264. /*
  265.  * Declare the class data structure
  266.  */
  267. SOMEXTERN struct M_WPPortClassDataStructure {
  268.     SOMAny *classObject;
  269. } M_WPPortClassData;
  270.  
  271. /*
  272.  * Declare the C specific class data structure
  273.  */
  274. SOMEXTERN struct M_WPPortCClassDataStructure {
  275.     somMethodTab *parentMtab;
  276.     somDToken instanceDataToken;
  277. } M_WPPortCClassData;
  278.  
  279. #endif       /* wpport_h */
  280.