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

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: wpkeybd.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: WPKEYBD
  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 wpkeybd_h
  24. #define wpkeybd_h
  25.  
  26.  
  27. #include <som.h>
  28.  
  29. /*
  30.  * Define the class name as an object type
  31.  */
  32. #ifndef WPKeyboard
  33. #define WPKeyboard SOMAny
  34. #endif
  35. #include "wpabs.h"
  36.  
  37. #define WPKeyboard_MajorVersion 1
  38. #define WPKeyboard_MinorVersion 2
  39.  
  40. /*
  41.  * External name shortening if required
  42.  */
  43. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  44. #define WPKeyboardNewClass WPkbdc
  45. #pragma linkage(WPkbdc, system)
  46. #define WPKeyboardClassData WPkbdd
  47. #define WPKeyboardCClassData WPkbdx
  48. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  49. /*--------------Migration------------*/
  50. #define WPKeyboard_classObj WPKeyboardClassData.classObject
  51. #define _WPKeyboard WPKeyboard_classObj
  52.  
  53. /*
  54.  * New and Renew macros for WPKeyboard
  55.  */
  56. #define _WPKeyboardNew() (_somNew(WPKeyboardClassData.classObject))
  57. #define WPKeyboardNew() \
  58.     ( WPKeyboardClassData.classObject \
  59.         ? _WPKeyboardNew() \
  60.         : ( WPKeyboardNewClass(WPKeyboard_MajorVersion, WPKeyboard_MinorVersion), _WPKeyboardNew() ) )
  61. #define WPKeyboardRenew(buf) \
  62.     ( _somRenew(WPKeyboardClassData.classObject, buf) )
  63.  
  64. /*
  65.  * Override method: wpAddSettingsPages
  66.  */
  67. #define WPKeyboard_wpAddSettingsPages(somSelf,hwndNotebook) \
  68.     WPObject_wpAddSettingsPages(somSelf,hwndNotebook)
  69.  
  70. /*
  71.  * Override method: wpAddObjectWindowPage
  72.  */
  73. #define WPKeyboard_wpAddObjectWindowPage(somSelf,hwndNotebook) \
  74.     WPObject_wpAddObjectWindowPage(somSelf,hwndNotebook)
  75.  
  76. /*
  77.  * Override method: wpFilterPopupMenu
  78.  */
  79. #define WPKeyboard_wpFilterPopupMenu(somSelf,ulFlags,hwndCnr,fMultiSelect) \
  80.     WPObject_wpFilterPopupMenu(somSelf,ulFlags,hwndCnr,fMultiSelect)
  81.  
  82. /*
  83.  * New Method: wpAddKeyboardMappingsPage
  84.  */
  85. typedef ULONG    SOMLINK somTP_WPKeyboard_wpAddKeyboardMappingsPage(WPKeyboard *somSelf,
  86.         HWND hwndNotebook);
  87. #pragma linkage(somTP_WPKeyboard_wpAddKeyboardMappingsPage, system)
  88. typedef somTP_WPKeyboard_wpAddKeyboardMappingsPage *somTD_WPKeyboard_wpAddKeyboardMappingsPage;
  89. #define somMD_WPKeyboard_wpAddKeyboardMappingsPage "----"
  90. #define WPKeyboard_wpAddKeyboardMappingsPage(somSelf,hwndNotebook) \
  91.     (SOM_Resolve(somSelf, WPKeyboard, wpAddKeyboardMappingsPage) \
  92.     (somSelf,hwndNotebook))
  93. #define _wpAddKeyboardMappingsPage WPKeyboard_wpAddKeyboardMappingsPage
  94.  
  95. /*
  96.  * New Method: wpAddKeyboardTimingPage
  97.  */
  98. typedef ULONG    SOMLINK somTP_WPKeyboard_wpAddKeyboardTimingPage(WPKeyboard *somSelf,
  99.         HWND hwndNotebook);
  100. #pragma linkage(somTP_WPKeyboard_wpAddKeyboardTimingPage, system)
  101. typedef somTP_WPKeyboard_wpAddKeyboardTimingPage *somTD_WPKeyboard_wpAddKeyboardTimingPage;
  102. #define somMD_WPKeyboard_wpAddKeyboardTimingPage "----"
  103. #define WPKeyboard_wpAddKeyboardTimingPage(somSelf,hwndNotebook) \
  104.     (SOM_Resolve(somSelf, WPKeyboard, wpAddKeyboardTimingPage) \
  105.     (somSelf,hwndNotebook))
  106. #define _wpAddKeyboardTimingPage WPKeyboard_wpAddKeyboardTimingPage
  107.  
  108. /*
  109.  * New Method: wpAddKeyboardSpecialNeedsPage
  110.  */
  111. typedef ULONG    SOMLINK somTP_WPKeyboard_wpAddKeyboardSpecialNeedsPage(WPKeyboard *somSelf,
  112.         HWND hwndNotebook);
  113. #pragma linkage(somTP_WPKeyboard_wpAddKeyboardSpecialNeedsPage, system)
  114. typedef somTP_WPKeyboard_wpAddKeyboardSpecialNeedsPage *somTD_WPKeyboard_wpAddKeyboardSpecialNeedsPage;
  115. #define somMD_WPKeyboard_wpAddKeyboardSpecialNeedsPage "----"
  116. #define WPKeyboard_wpAddKeyboardSpecialNeedsPage(somSelf,hwndNotebook) \
  117.     (SOM_Resolve(somSelf, WPKeyboard, wpAddKeyboardSpecialNeedsPage) \
  118.     (somSelf,hwndNotebook))
  119. #define _wpAddKeyboardSpecialNeedsPage WPKeyboard_wpAddKeyboardSpecialNeedsPage
  120.  
  121. /*
  122.  * Declare the class creation procedure
  123.  */
  124. SOMEXTERN SOMAny * SOMLINK WPKeyboardNewClass(integer4 scemajorVersion,
  125.         integer4 sceminorVersion);
  126. #pragma linkage(WPKeyboardNewClass, system)
  127.  
  128. /*
  129.  * Declare the class data structure
  130.  */
  131. SOMEXTERN struct WPKeyboardClassDataStructure {
  132.     SOMAny *classObject;
  133.     somMToken wpAddKeyboardMappingsPage;
  134.     somMToken wpAddKeyboardTimingPage;
  135.     somMToken wpAddKeyboardSpecialNeedsPage;
  136. } WPKeyboardClassData;
  137.  
  138. /*
  139.  * Declare the C specific class data structure
  140.  */
  141. SOMEXTERN struct WPKeyboardCClassDataStructure {
  142.     somMethodTab *parentMtab;
  143.     somDToken instanceDataToken;
  144. } WPKeyboardCClassData;
  145.  
  146. #endif       /* wpkeybd_h */
  147.  
  148. /*
  149.  * This file was generated by the SOM Compiler.
  150.  * FileName: wpkeybd.h.
  151.  * Generated using:
  152.  *     SOM Precompiler spc: 1.22
  153.  *     SOM Emitter emith: 1.11
  154.  */
  155.  
  156. #ifndef wpkeybd_mh
  157. #define wpkeybd_mh
  158.  
  159.  
  160. /*
  161.  * Define the class name as an object type
  162.  */
  163. #ifndef M_WPKeyboard
  164. #define M_WPKeyboard SOMAny
  165. #endif
  166.  
  167. #define M_WPKeyboard_MajorVersion 1
  168. #define M_WPKeyboard_MinorVersion 2
  169.  
  170. /*
  171.  * External name shortening if required
  172.  */
  173. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  174. #define M_WPKeyboardNewClass WPkbdc
  175. #pragma linkage(WPkbdc, system)
  176. #define M_WPKeyboardClassData WPkbdd
  177. #define M_WPKeyboardCClassData WPkbdx
  178. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  179. /*--------------Migration------------*/
  180. #define M_WPKeyboard_classObj M_WPKeyboardClassData.classObject
  181. #define _M_WPKeyboard M_WPKeyboard_classObj
  182.  
  183. /*
  184.  * New and Renew macros for M_WPKeyboard
  185.  */
  186. #define _M_WPKeyboardNew() (_somNew(M_WPKeyboardClassData.classObject))
  187. #define M_WPKeyboardNew() \
  188.     ( M_WPKeyboardClassData.classObject \
  189.         ? _M_WPKeyboardNew() \
  190.         : ( M_WPKeyboardNewClass(M_WPKeyboard_MajorVersion, M_WPKeyboard_MinorVersion), _M_WPKeyboardNew() ) )
  191. #define M_WPKeyboardRenew(buf) \
  192.     ( _somRenew(M_WPKeyboardClassData.classObject, buf) )
  193.  
  194. /*
  195.  * Override method: wpclsQueryTitle
  196.  */
  197. #define M_WPKeyboard_wpclsQueryTitle(somSelf) \
  198.     M_WPObject_wpclsQueryTitle(somSelf)
  199.  
  200. /*
  201.  * Override method: wpclsQueryDefaultHelp
  202.  */
  203. #define M_WPKeyboard_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) \
  204.     M_WPObject_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary)
  205.  
  206. /*
  207.  * Override method: wpclsQueryDefaultView
  208.  */
  209. #define M_WPKeyboard_wpclsQueryDefaultView(somSelf) \
  210.     M_WPObject_wpclsQueryDefaultView(somSelf)
  211.  
  212. /*
  213.  * Override method: wpclsQueryStyle
  214.  */
  215. #define M_WPKeyboard_wpclsQueryStyle(somSelf) \
  216.     M_WPObject_wpclsQueryStyle(somSelf)
  217.  
  218. /*
  219.  * Override method: wpclsQueryIconData
  220.  */
  221. #define M_WPKeyboard_wpclsQueryIconData(somSelf,pIconInfo) \
  222.     M_WPObject_wpclsQueryIconData(somSelf,pIconInfo)
  223.  
  224. /*
  225.  * Declare the class creation procedure
  226.  */
  227. SOMEXTERN SOMAny * SOMLINK M_WPKeyboardNewClass(integer4 scemajorVersion,
  228.         integer4 sceminorVersion);
  229. #pragma linkage(M_WPKeyboardNewClass, system)
  230.  
  231. /*
  232.  * Declare the class data structure
  233.  */
  234. SOMEXTERN struct M_WPKeyboardClassDataStructure {
  235.     SOMAny *classObject;
  236. } M_WPKeyboardClassData;
  237.  
  238. /*
  239.  * Declare the C specific class data structure
  240.  */
  241. SOMEXTERN struct M_WPKeyboardCClassDataStructure {
  242.     somMethodTab *parentMtab;
  243.     somDToken instanceDataToken;
  244. } M_WPKeyboardCClassData;
  245.  
  246. #endif       /* wpkeybd_h */
  247.