home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / H / WPKEYBD.H < prev    next >
C/C++ Source or Header  |  1995-08-30  |  27KB  |  620 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: wpkeybd.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.29.1.2
  7.  *     SOM Emitter emith: 2.41
  8.  */
  9.  
  10. /*
  11.  *   Module Header
  12.  * 
  13.  *   Module Name: WPKEYBD
  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_WPKeyboard_h
  23. #define SOM_WPKeyboard_h
  24.  
  25.  
  26. /*
  27.  * Passthru lines: File: "C.h", "before"
  28.  */
  29.  
  30.  
  31. /***********************************************************/
  32. /* Defines for wpclsQuerySetting and wpclsSetSetting       */
  33. /***********************************************************/
  34.  
  35. #define REPEATRATE_DEFAULT        0
  36. #define REPEATRATE_MAX           20
  37. #define REPEATRATE_MIN            1
  38. #define REPEATDELAY_DEFAULT      -1
  39. #define REPEATDELAY_MAX         890
  40. #define REPEATDELAY_MIN           0
  41. #define CURSORBLINK_DEFAULT      -1
  42. #define CURSORBLINK_MAX         890
  43. #define CURSORBLINK_MIN           0
  44. #define POPUPKEY_DEFAULT          0
  45. #define TEXTEDITKEY_DEFAULT       0
  46.  
  47.  
  48.  
  49. #include <som.h>
  50.  
  51. /*
  52.  * -- This emitter treats Method Tokens as Thunks by default.
  53.  * -- Use the sc modifier "nothunks" to change this default
  54.  */
  55. #undef somresolve_
  56. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  57.  
  58. /*
  59.  * Define the class name as an object type
  60.  */
  61. #ifndef WPKeyboard
  62. #define WPKeyboard SOMObject
  63. #endif
  64. #include <wpabs.h>
  65.  
  66. /*
  67.  * Start of user-defined types:
  68.  */
  69. #ifndef SOMClass
  70.     #define SOMClass SOMObject
  71. #endif /* SOMClass */
  72. #ifndef WPFolder
  73.     #define WPFolder SOMObject
  74. #endif /* WPFolder */
  75. #ifndef M_WPObject
  76.     #define M_WPObject SOMObject
  77. #endif /* M_WPObject */
  78. #ifndef WPObject
  79.     #define WPObject SOMObject
  80. #endif /* WPObject */
  81. #ifndef M_WPAbstract
  82.     #define M_WPAbstract SOMObject
  83. #endif /* M_WPAbstract */
  84. #ifndef M_WPKeyboard
  85.     #define M_WPKeyboard SOMObject
  86. #endif /* M_WPKeyboard */
  87.  
  88. /*
  89.  * End of user-defined types.
  90.  */
  91.  
  92. #define WPKeyboard_MajorVersion 1
  93. #define WPKeyboard_MinorVersion 2
  94.  
  95. /*
  96.  * External name shortening if required
  97.  */
  98. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  99. #define WPKeyboardNewClass WPkbdc
  100. #pragma linkage(WPkbdc, system)
  101. #define WPKeyboardClassData WPkbdd
  102. #define WPKeyboardCClassData WPkbdx
  103. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  104.  
  105. /*
  106.  * Include the meta class file
  107.  */
  108. #include <wpkeybd.h>
  109. /*--------------Migration------------*/
  110. #define WPKeyboard_classObj WPKeyboardClassData.classObject
  111. #define _WPKeyboard WPKeyboard_classObj
  112.  
  113. /*
  114.  * Declare the class creation procedure
  115.  */
  116. SOMEXTERN SOMClass * SOMLINK WPKeyboardNewClass(integer4 somtmajorVersion,
  117.         integer4 somtminorVersion);
  118. #pragma linkage(WPKeyboardNewClass, system)
  119.  
  120. /*
  121.  * Declare the class data structure
  122.  */
  123. SOMEXTERN struct WPKeyboardClassDataStructure {
  124.     SOMClass *classObject;
  125.     somMToken wpAddKeyboardMappingsPage;
  126.     somMToken wpAddKeyboardTimingPage;
  127.     somMToken wpAddKeyboardSpecialNeedsPage;
  128. } SOMDLINK WPKeyboardClassData;
  129.  
  130. /*
  131.  * Declare the C specific class data structure
  132.  */
  133. SOMEXTERN struct WPKeyboardCClassDataStructure {
  134.     somMethodTabs parentMtab;
  135.     somDToken instanceDataToken;
  136. } SOMDLINK WPKeyboardCClassData;
  137.  
  138. /*
  139.  * New and Renew macros for WPKeyboard
  140.  */
  141. #define WPKeyboardNew() \
  142.    (_somNew(_WPKeyboard ? _WPKeyboard : WPKeyboardNewClass(WPKeyboard_MajorVersion, WPKeyboard_MinorVersion)))
  143. #define WPKeyboardRenew(buf) \
  144.    (_somRenew(_WPKeyboard ? _WPKeyboard : WPKeyboardNewClass(WPKeyboard_MajorVersion, WPKeyboard_MinorVersion), buf))
  145.  
  146. /*
  147.  * Override method: wpAddSettingsPages
  148.  */
  149. #define WPKeyboard_wpAddSettingsPages(somSelf,hwndNotebook) \
  150.     WPObject_wpAddSettingsPages(somSelf,hwndNotebook)
  151.  
  152. /*
  153.  * Override method: wpAddObjectWindowPage
  154.  */
  155. #define WPKeyboard_wpAddObjectWindowPage(somSelf,hwndNotebook) \
  156.     WPObject_wpAddObjectWindowPage(somSelf,hwndNotebook)
  157.  
  158. /*
  159.  * Override method: wpFilterPopupMenu
  160.  */
  161. #define WPKeyboard_wpFilterPopupMenu(somSelf,ulFlags,hwndCnr,fMultiSelect) \
  162.     WPObject_wpFilterPopupMenu(somSelf,ulFlags,hwndCnr,fMultiSelect)
  163.  
  164. /*
  165.  * Override method: somDefaultInit
  166.  */
  167. #define WPKeyboard_somDefaultInit(somSelf,ctrl) \
  168.     SOMObject_somDefaultInit(somSelf,ctrl)
  169.  
  170. /*
  171.  * Override method: somDestruct
  172.  */
  173. #define WPKeyboard_somDestruct(somSelf,doFree,ctrl) \
  174.     SOMObject_somDestruct(somSelf,doFree,ctrl)
  175.  
  176. /*
  177.  * New Method: wpAddKeyboardMappingsPage
  178.  */
  179. typedef ULONG   SOMLINK somTP_WPKeyboard_wpAddKeyboardMappingsPage(WPKeyboard *somSelf,
  180.         HWND hwndNotebook);
  181. #pragma linkage(somTP_WPKeyboard_wpAddKeyboardMappingsPage, system)
  182. typedef somTP_WPKeyboard_wpAddKeyboardMappingsPage *somTD_WPKeyboard_wpAddKeyboardMappingsPage;
  183. #define somMD_WPKeyboard_wpAddKeyboardMappingsPage "::WPKeyboard::wpAddKeyboardMappingsPage"
  184. #define WPKeyboard_wpAddKeyboardMappingsPage(somSelf,hwndNotebook) \
  185.     (SOM_Resolve(somSelf, WPKeyboard, wpAddKeyboardMappingsPage) \
  186.     (somSelf,hwndNotebook))
  187. #ifndef SOMGD_wpAddKeyboardMappingsPage
  188.     #if (defined(_wpAddKeyboardMappingsPage) || defined(__wpAddKeyboardMappingsPage))
  189.         #undef _wpAddKeyboardMappingsPage
  190.         #undef __wpAddKeyboardMappingsPage
  191.         #define SOMGD_wpAddKeyboardMappingsPage 1
  192.     #else
  193.         #define _wpAddKeyboardMappingsPage WPKeyboard_wpAddKeyboardMappingsPage
  194.     #endif /* _wpAddKeyboardMappingsPage */
  195. #endif /* SOMGD_wpAddKeyboardMappingsPage */
  196.  
  197. /*
  198.  * New Method: wpAddKeyboardTimingPage
  199.  */
  200. typedef ULONG   SOMLINK somTP_WPKeyboard_wpAddKeyboardTimingPage(WPKeyboard *somSelf,
  201.         HWND hwndNotebook);
  202. #pragma linkage(somTP_WPKeyboard_wpAddKeyboardTimingPage, system)
  203. typedef somTP_WPKeyboard_wpAddKeyboardTimingPage *somTD_WPKeyboard_wpAddKeyboardTimingPage;
  204. #define somMD_WPKeyboard_wpAddKeyboardTimingPage "::WPKeyboard::wpAddKeyboardTimingPage"
  205. #define WPKeyboard_wpAddKeyboardTimingPage(somSelf,hwndNotebook) \
  206.     (SOM_Resolve(somSelf, WPKeyboard, wpAddKeyboardTimingPage) \
  207.     (somSelf,hwndNotebook))
  208. #ifndef SOMGD_wpAddKeyboardTimingPage
  209.     #if (defined(_wpAddKeyboardTimingPage) || defined(__wpAddKeyboardTimingPage))
  210.         #undef _wpAddKeyboardTimingPage
  211.         #undef __wpAddKeyboardTimingPage
  212.         #define SOMGD_wpAddKeyboardTimingPage 1
  213.     #else
  214.         #define _wpAddKeyboardTimingPage WPKeyboard_wpAddKeyboardTimingPage
  215.     #endif /* _wpAddKeyboardTimingPage */
  216. #endif /* SOMGD_wpAddKeyboardTimingPage */
  217.  
  218. /*
  219.  * New Method: wpAddKeyboardSpecialNeedsPage
  220.  */
  221. typedef ULONG   SOMLINK somTP_WPKeyboard_wpAddKeyboardSpecialNeedsPage(WPKeyboard *somSelf,
  222.         HWND hwndNotebook);
  223. #pragma linkage(somTP_WPKeyboard_wpAddKeyboardSpecialNeedsPage, system)
  224. typedef somTP_WPKeyboard_wpAddKeyboardSpecialNeedsPage *somTD_WPKeyboard_wpAddKeyboardSpecialNeedsPage;
  225. #define somMD_WPKeyboard_wpAddKeyboardSpecialNeedsPage "::WPKeyboard::wpAddKeyboardSpecialNeedsPage"
  226. #define WPKeyboard_wpAddKeyboardSpecialNeedsPage(somSelf,hwndNotebook) \
  227.     (SOM_Resolve(somSelf, WPKeyboard, wpAddKeyboardSpecialNeedsPage) \
  228.     (somSelf,hwndNotebook))
  229. #ifndef SOMGD_wpAddKeyboardSpecialNeedsPage
  230.     #if (defined(_wpAddKeyboardSpecialNeedsPage) || defined(__wpAddKeyboardSpecialNeedsPage))
  231.         #undef _wpAddKeyboardSpecialNeedsPage
  232.         #undef __wpAddKeyboardSpecialNeedsPage
  233.         #define SOMGD_wpAddKeyboardSpecialNeedsPage 1
  234.     #else
  235.         #define _wpAddKeyboardSpecialNeedsPage WPKeyboard_wpAddKeyboardSpecialNeedsPage
  236.     #endif /* _wpAddKeyboardSpecialNeedsPage */
  237. #endif /* SOMGD_wpAddKeyboardSpecialNeedsPage */
  238. #ifndef SOM_DONT_USE_INHERITED_MACROS
  239. #define WPKeyboard_wpAddObjectGeneralPage WPObject_wpAddObjectGeneralPage
  240. #define WPKeyboard_wpAddObjectGeneralPage2 WPObject_wpAddObjectGeneralPage2
  241. #define WPKeyboard_wpAddToObjUseList WPObject_wpAddToObjUseList
  242. #define WPKeyboard_wpAllocMem WPObject_wpAllocMem
  243. #define WPKeyboard_wpAppendObject WPObject_wpAppendObject
  244. #define WPKeyboard_wpAssertObjectMutexSem WPObject_wpAssertObjectMutexSem
  245. #define WPKeyboard_wpClose WPObject_wpClose
  246. #define WPKeyboard_wpCnrInsertObject WPObject_wpCnrInsertObject
  247. #define WPKeyboard_wpCnrRemoveObject WPObject_wpCnrRemoveObject
  248. #define WPKeyboard_wpCnrSetEmphasis WPObject_wpCnrSetEmphasis
  249. #define WPKeyboard_wpConfirmDelete WPObject_wpConfirmDelete
  250. #define WPKeyboard_wpConfirmObjectTitle WPObject_wpConfirmObjectTitle
  251. #define WPKeyboard_wpCopiedFromTemplate WPObject_wpCopiedFromTemplate
  252. #define WPKeyboard_wpCopyObject WPObject_wpCopyObject
  253. #define WPKeyboard_wpCreateAnother WPObject_wpCreateAnother
  254. #define WPKeyboard_wpCreateFromTemplate WPObject_wpCreateFromTemplate
  255. #define WPKeyboard_wpCreateShadowObject WPObject_wpCreateShadowObject
  256. #define WPKeyboard_wpDelete WPObject_wpDelete
  257. #define WPKeyboard_wpDeleteFromObjUseList WPObject_wpDeleteFromObjUseList
  258. #define WPKeyboard_wpDisplayHelp WPObject_wpDisplayHelp
  259. #define WPKeyboard_wpDisplayMenu WPObject_wpDisplayMenu
  260. #define WPKeyboard_wpDoesObjectMatch WPObject_wpDoesObjectMatch
  261. #define WPKeyboard_wpDraggedOverObject WPObject_wpDraggedOverObject
  262. #define WPKeyboard_wpDragOver WPObject_wpDragOver
  263. #define WPKeyboard_wpDrop WPObject_wpDrop
  264. #define WPKeyboard_wpDroppedOnObject WPObject_wpDroppedOnObject
  265. #define WPKeyboard_wpEndConversation WPObject_wpEndConversation
  266. #define WPKeyboard_wpFindUseItem WPObject_wpFindUseItem
  267. #define WPKeyboard_wpFormatDragItem WPObject_wpFormatDragItem
  268. #define WPKeyboard_wpFree WPObject_wpFree
  269. #define WPKeyboard_wpFreeMem WPObject_wpFreeMem
  270. #define WPKeyboard_wpHide WPObject_wpHide
  271. #define WPKeyboard_wpInitData WPObject_wpInitData
  272. #define WPKeyboard_wpInsertPopupMenuItems WPObject_wpInsertPopupMenuItems
  273. #define WPKeyboard_wpInsertSettingsPage WPObject_wpInsertSettingsPage
  274. #define WPKeyboard_wpMenuItemHelpSelected WPObject_wpMenuItemHelpSelected
  275. #define WPKeyboard_wpMenuItemSelected WPObject_wpMenuItemSelected
  276. #define WPKeyboard_wpModifyPopupMenu WPObject_wpModifyPopupMenu
  277. #define WPKeyboard_wpMoveObject WPObject_wpMoveObject
  278. #define WPKeyboard_wpOpen WPObject_wpOpen
  279. #define WPKeyboard_wpPrintObject WPObject_wpPrintObject
  280. #define WPKeyboard_wpQueryConcurrentView WPObject_wpQueryConcurrentView
  281. #define WPKeyboard_wpQueryButtonAppearance WPObject_wpQueryButtonAppearance
  282. #define WPKeyboard_wpQueryConfirmations WPObject_wpQueryConfirmations
  283. #define WPKeyboard_wpQueryDefaultHelp WPObject_wpQueryDefaultHelp
  284. #define WPKeyboard_wpQueryDefaultView WPObject_wpQueryDefaultView
  285. #define WPKeyboard_wpQueryDetailsData WPObject_wpQueryDetailsData
  286. #define WPKeyboard_wpQueryError WPObject_wpQueryError
  287. #define WPKeyboard_wpSetFolder WPObject_wpSetFolder
  288. #define WPKeyboard_wpQueryFolder WPObject_wpQueryFolder
  289. #define WPKeyboard_wpQueryIcon WPObject_wpQueryIcon
  290. #define WPKeyboard_wpQueryIconData WPObject_wpQueryIconData
  291. #define WPKeyboard_wpQueryMinWindow WPObject_wpQueryMinWindow
  292. #define WPKeyboard_wpQueryNameClashOptions WPObject_wpQueryNameClashOptions
  293. #define WPKeyboard_wpQueryStyle WPObject_wpQueryStyle
  294. #define WPKeyboard_wpSetTaskRec WPObject_wpSetTaskRec
  295. #define WPKeyboard_wpFindTaskRec WPObject_wpFindTaskRec
  296. #define WPKeyboard_wpQueryTitle WPObject_wpQueryTitle
  297. #define WPKeyboard_wpRegisterView WPObject_wpRegisterView
  298. #define WPKeyboard_wpReleaseObjectMutexSem WPObject_wpReleaseObjectMutexSem
  299. #define WPKeyboard_wpRender WPObject_wpRender
  300. #define WPKeyboard_wpRenderComplete WPObject_wpRenderComplete
  301. #define WPKeyboard_wpReplaceObject WPObject_wpReplaceObject
  302. #define WPKeyboard_wpRequestObjectMutexSem WPObject_wpRequestObjectMutexSem
  303. #define WPKeyboard_wpRestore WPObject_wpRestore
  304. #define WPKeyboard_wpRestoreData WPObject_wpRestoreData
  305. #define WPKeyboard_wpRestoreLong WPObject_wpRestoreLong
  306. #define WPKeyboard_wpRestoreState WPObject_wpRestoreState
  307. #define WPKeyboard_wpRestoreString WPObject_wpRestoreString
  308. #define WPKeyboard_wpSaveData WPObject_wpSaveData
  309. #define WPKeyboard_wpSaveImmediate WPObject_wpSaveImmediate
  310. #define WPKeyboard_wpSaveDeferred WPObject_wpSaveDeferred
  311. #define WPKeyboard_wpSaveLong WPObject_wpSaveLong
  312. #define WPKeyboard_wpSaveState WPObject_wpSaveState
  313. #define WPKeyboard_wpSaveString WPObject_wpSaveString
  314. #define WPKeyboard_wpScanSetupString WPObject_wpScanSetupString
  315. #define WPKeyboard_wpSetConcurrentView WPObject_wpSetConcurrentView
  316. #define WPKeyboard_wpSetButtonAppearance WPObject_wpSetButtonAppearance
  317. #define WPKeyboard_wpSetDefaultHelp WPObject_wpSetDefaultHelp
  318. #define WPKeyboard_wpSetDefaultView WPObject_wpSetDefaultView
  319. #define WPKeyboard_wpSetError WPObject_wpSetError
  320. #define WPKeyboard_wpSetIconHandle WPObject_wpSetIconHandle
  321. #define WPKeyboard_wpQueryScreenGroupID WPObject_wpQueryScreenGroupID
  322. #define WPKeyboard_wpSetupOnce WPObject_wpSetupOnce
  323. #define WPKeyboard_wpSetIcon WPObject_wpSetIcon
  324. #define WPKeyboard_wpSetIconData WPObject_wpSetIconData
  325. #define WPKeyboard_wpSetMinWindow WPObject_wpSetMinWindow
  326. #define WPKeyboard_wpSetStyle WPObject_wpSetStyle
  327. #define WPKeyboard_wpModifyStyle WPObject_wpModifyStyle
  328. #define WPKeyboard_wpSetTitle WPObject_wpSetTitle
  329. #define WPKeyboard_wpSetup WPObject_wpSetup
  330. #define WPKeyboard_wpSwitchTo WPObject_wpSwitchTo
  331. #define WPKeyboard_wpUnInitData WPObject_wpUnInitData
  332. #define WPKeyboard_wpViewObject WPObject_wpViewObject
  333. #define WPKeyboard_wpQueryTrueStyle WPObject_wpQueryTrueStyle
  334. #define WPKeyboard_wpQueryHandle WPObject_wpQueryHandle
  335. #define WPKeyboard_wpUnlockObject WPObject_wpUnlockObject
  336. #define WPKeyboard_wpObjectReady WPObject_wpObjectReady
  337. #define WPKeyboard_wpIsObjectInitialized WPObject_wpIsObjectInitialized
  338. #define WPKeyboard_wpCreateShadowObjectExt WPObject_wpCreateShadowObjectExt
  339. #define WPKeyboard_wpCnrDeleteUseItem WPObject_wpCnrDeleteUseItem
  340. #define WPKeyboard_wpIsDeleteable WPObject_wpIsDeleteable
  341. #define WPKeyboard_wpQueryCoreRecord WPObject_wpQueryCoreRecord
  342. #define WPKeyboard_wpSetObjectID WPObject_wpSetObjectID
  343. #define WPKeyboard_wpQueryObjectID WPObject_wpQueryObjectID
  344. #define WPKeyboard_wpSetDefaultIconPos WPObject_wpSetDefaultIconPos
  345. #define WPKeyboard_wpQueryDefaultIconPos WPObject_wpQueryDefaultIconPos
  346. #define WPKeyboard_wpCnrRefreshDetails WPObject_wpCnrRefreshDetails
  347. #define WPKeyboard_wpFindViewItem WPObject_wpFindViewItem
  348. #define WPKeyboard_wpLockObject WPObject_wpLockObject
  349. #define WPKeyboard_wpIsLocked WPObject_wpIsLocked
  350. #define WPKeyboard_wpQueryContainerFlagPtr WPObject_wpQueryContainerFlagPtr
  351. #define WPKeyboard_wpWaitForClose WPObject_wpWaitForClose
  352. #define WPKeyboard_somDefaultCopyInit SOMObject_somDefaultCopyInit
  353. #define WPKeyboard_somDefaultAssign SOMObject_somDefaultAssign
  354. #define WPKeyboard_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
  355. #define WPKeyboard_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
  356. #define WPKeyboard_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
  357. #define WPKeyboard_somDefaultConstAssign SOMObject_somDefaultConstAssign
  358. #define WPKeyboard_somDefaultVAssign SOMObject_somDefaultVAssign
  359. #define WPKeyboard_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
  360. #define WPKeyboard_somInit SOMObject_somInit
  361. #define WPKeyboard_somFree SOMObject_somFree
  362. #define WPKeyboard_somUninit SOMObject_somUninit
  363. #define WPKeyboard_somGetClass SOMObject_somGetClass
  364. #define WPKeyboard_somGetClassName SOMObject_somGetClassName
  365. #define WPKeyboard_somGetSize SOMObject_somGetSize
  366. #define WPKeyboard_somIsA SOMObject_somIsA
  367. #define WPKeyboard_somIsInstanceOf SOMObject_somIsInstanceOf
  368. #define WPKeyboard_somRespondsTo SOMObject_somRespondsTo
  369. #define WPKeyboard_somDispatch SOMObject_somDispatch
  370. #define WPKeyboard_somClassDispatch SOMObject_somClassDispatch
  371. #define WPKeyboard_somCastObj SOMObject_somCastObj
  372. #define WPKeyboard_somResetObj SOMObject_somResetObj
  373. #define WPKeyboard_somDispatchV SOMObject_somDispatchV
  374. #define WPKeyboard_somDispatchL SOMObject_somDispatchL
  375. #define WPKeyboard_somDispatchA SOMObject_somDispatchA
  376. #define WPKeyboard_somDispatchD SOMObject_somDispatchD
  377. #define WPKeyboard_somPrintSelf SOMObject_somPrintSelf
  378. #define WPKeyboard_somDumpSelf SOMObject_somDumpSelf
  379. #define WPKeyboard_somDumpSelfInt SOMObject_somDumpSelfInt
  380. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  381.  
  382. #endif       /* SOM_WPKeyboard_h */
  383.  
  384. #ifndef SOM_M_WPKeyboard_h
  385. #define SOM_M_WPKeyboard_h
  386.  
  387.  
  388. #include <som.h>
  389.  
  390. /*
  391.  * -- This emitter treats Method Tokens as Thunks by default.
  392.  * -- Use the sc modifier "nothunks" to change this default
  393.  */
  394. #undef somresolve_
  395. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  396.  
  397. /*
  398.  * Define the class name as an object type
  399.  */
  400. #ifndef M_WPKeyboard
  401. #define M_WPKeyboard SOMObject
  402. #endif
  403. #include <wpabs.h>
  404.  
  405. /*
  406.  * Start of user-defined types:
  407.  */
  408.  
  409. /*
  410.  * End of user-defined types.
  411.  */
  412.  
  413. #define M_WPKeyboard_MajorVersion 1
  414. #define M_WPKeyboard_MinorVersion 2
  415.  
  416. /*
  417.  * External name shortening if required
  418.  */
  419. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  420. #define M_WPKeyboardNewClass WPkbdc
  421. #pragma linkage(WPkbdc, system)
  422. #define M_WPKeyboardClassData WPkbdd
  423. #define M_WPKeyboardCClassData WPkbdx
  424. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  425. /*--------------Migration------------*/
  426. #define M_WPKeyboard_classObj M_WPKeyboardClassData.classObject
  427. #define _M_WPKeyboard M_WPKeyboard_classObj
  428.  
  429. /*
  430.  * Declare the class creation procedure
  431.  */
  432. SOMEXTERN SOMClass * SOMLINK M_WPKeyboardNewClass(integer4 somtmajorVersion,
  433.         integer4 somtminorVersion);
  434. #pragma linkage(M_WPKeyboardNewClass, system)
  435.  
  436. /*
  437.  * Declare the class data structure
  438.  */
  439. SOMEXTERN struct M_WPKeyboardClassDataStructure {
  440.     SOMClass *classObject;
  441. } SOMDLINK M_WPKeyboardClassData;
  442.  
  443. /*
  444.  * Declare the C specific class data structure
  445.  */
  446. SOMEXTERN struct M_WPKeyboardCClassDataStructure {
  447.     somMethodTabs parentMtab;
  448.     somDToken instanceDataToken;
  449. } SOMDLINK M_WPKeyboardCClassData;
  450.  
  451. /*
  452.  * New and Renew macros for M_WPKeyboard
  453.  */
  454. #define M_WPKeyboardNew() \
  455.    (_somNew(_M_WPKeyboard ? _M_WPKeyboard : M_WPKeyboardNewClass(M_WPKeyboard_MajorVersion, M_WPKeyboard_MinorVersion)))
  456. #define M_WPKeyboardRenew(buf) \
  457.    (_somRenew(_M_WPKeyboard ? _M_WPKeyboard : M_WPKeyboardNewClass(M_WPKeyboard_MajorVersion, M_WPKeyboard_MinorVersion), buf))
  458.  
  459. /*
  460.  * Override method: wpclsQueryTitle
  461.  */
  462. #define M_WPKeyboard_wpclsQueryTitle(somSelf) \
  463.     M_WPObject_wpclsQueryTitle(somSelf)
  464.  
  465. /*
  466.  * Override method: wpclsQueryDefaultHelp
  467.  */
  468. #define M_WPKeyboard_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) \
  469.     M_WPObject_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary)
  470.  
  471. /*
  472.  * Override method: wpclsQueryDefaultView
  473.  */
  474. #define M_WPKeyboard_wpclsQueryDefaultView(somSelf) \
  475.     M_WPObject_wpclsQueryDefaultView(somSelf)
  476.  
  477. /*
  478.  * Override method: wpclsQueryStyle
  479.  */
  480. #define M_WPKeyboard_wpclsQueryStyle(somSelf) \
  481.     M_WPObject_wpclsQueryStyle(somSelf)
  482.  
  483. /*
  484.  * Override method: wpclsQueryIconData
  485.  */
  486. #define M_WPKeyboard_wpclsQueryIconData(somSelf,pIconInfo) \
  487.     M_WPObject_wpclsQueryIconData(somSelf,pIconInfo)
  488.  
  489. /*
  490.  * Override method: wpclsQuerySetting
  491.  */
  492. #define M_WPKeyboard_wpclsQuerySetting(somSelf,pszSetting,pValue,ulValueLen) \
  493.     M_WPAbstract_wpclsQuerySetting(somSelf,pszSetting,pValue,ulValueLen)
  494.  
  495. /*
  496.  * Override method: wpclsSetSetting
  497.  */
  498. #define M_WPKeyboard_wpclsSetSetting(somSelf,pszSetting,pValue) \
  499.     M_WPAbstract_wpclsSetSetting(somSelf,pszSetting,pValue)
  500. #ifndef SOM_DONT_USE_INHERITED_MACROS
  501. #define M_WPKeyboard_wpclsCreateDefaultTemplates M_WPObject_wpclsCreateDefaultTemplates
  502. #define M_WPKeyboard_wpclsInitData M_WPObject_wpclsInitData
  503. #define M_WPKeyboard_wpclsMakeAwake M_WPObject_wpclsMakeAwake
  504. #define M_WPKeyboard_wpclsNew M_WPObject_wpclsNew
  505. #define M_WPKeyboard_wpclsQueryDetails M_WPObject_wpclsQueryDetails
  506. #define M_WPKeyboard_wpclsQueryDetailsInfo M_WPObject_wpclsQueryDetailsInfo
  507. #define M_WPKeyboard_wpclsQueryExtendedCriteria M_WPObject_wpclsQueryExtendedCriteria
  508. #define M_WPKeyboard_wpclsQueryFolder M_WPObject_wpclsQueryFolder
  509. #define M_WPKeyboard_wpclsQueryIcon M_WPObject_wpclsQueryIcon
  510. #define M_WPKeyboard_wpclsQuerySearchInfo M_WPObject_wpclsQuerySearchInfo
  511. #define M_WPKeyboard_wpclsUnInitData M_WPObject_wpclsUnInitData
  512. #define M_WPKeyboard_wpclsFindObjectFirst M_WPObject_wpclsFindObjectFirst
  513. #define M_WPKeyboard_wpclsFindObjectNext M_WPObject_wpclsFindObjectNext
  514. #define M_WPKeyboard_wpclsFindObjectEnd M_WPObject_wpclsFindObjectEnd
  515. #define M_WPKeyboard_wpclsSetError M_WPObject_wpclsSetError
  516. #define M_WPKeyboard_wpclsQueryError M_WPObject_wpclsQueryError
  517. #define M_WPKeyboard_wpclsQuerySettingsPageSize M_WPObject_wpclsQuerySettingsPageSize
  518. #define M_WPKeyboard_wpclsQueryObject M_WPObject_wpclsQueryObject
  519. #define M_WPKeyboard_wpclsQueryButtonAppearance M_WPObject_wpclsQueryButtonAppearance
  520. #define M_WPKeyboard_wpclsDecUsage M_WPObject_wpclsDecUsage
  521. #define M_WPKeyboard_wpclsIncUsage M_WPObject_wpclsIncUsage
  522. #define M_WPKeyboard_wpclsInsertMultipleObjects M_WPObject_wpclsInsertMultipleObjects
  523. #define M_WPKeyboard_wpclsFindOneObject M_WPObject_wpclsFindOneObject
  524. #define M_WPKeyboard_wpclsSetSettingsPageSize M_WPObject_wpclsSetSettingsPageSize
  525. #define M_WPKeyboard_wpclsSetIconData M_WPObject_wpclsSetIconData
  526. #define M_WPKeyboard_wpclsSetIcon M_WPObject_wpclsSetIcon
  527. #define M_WPKeyboard_wpclsObjectFromHandle M_WPObject_wpclsObjectFromHandle
  528. #define M_WPKeyboard_wpclsRemoveObjects M_WPObject_wpclsRemoveObjects
  529. #define M_WPKeyboard__get_somDataAlignment SOMClass__get_somDataAlignment
  530. #define M_WPKeyboard__get_somInstanceDataOffsets SOMClass__get_somInstanceDataOffsets
  531. #define M_WPKeyboard__get_somDirectInitClasses SOMClass__get_somDirectInitClasses
  532. #define M_WPKeyboard__set_somDirectInitClasses SOMClass__set_somDirectInitClasses
  533. #define M_WPKeyboard_somNew SOMClass_somNew
  534. #define M_WPKeyboard_somNewNoInit SOMClass_somNewNoInit
  535. #define M_WPKeyboard_somRenew SOMClass_somRenew
  536. #define M_WPKeyboard_somRenewNoInit SOMClass_somRenewNoInit
  537. #define M_WPKeyboard_somRenewNoZero SOMClass_somRenewNoZero
  538. #define M_WPKeyboard_somRenewNoInitNoZero SOMClass_somRenewNoInitNoZero
  539. #define M_WPKeyboard_somAllocate SOMClass_somAllocate
  540. #define M_WPKeyboard_somDeallocate SOMClass_somDeallocate
  541. #define M_WPKeyboard__get_somClassAllocate SOMClass__get_somClassAllocate
  542. #define M_WPKeyboard__get_somClassDeallocate SOMClass__get_somClassDeallocate
  543. #define M_WPKeyboard_somGetInstanceInitMask SOMClass_somGetInstanceInitMask
  544. #define M_WPKeyboard_somGetInstanceDestructionMask SOMClass_somGetInstanceDestructionMask
  545. #define M_WPKeyboard_somGetInstanceAssignmentMask SOMClass_somGetInstanceAssignmentMask
  546. #define M_WPKeyboard_somInitClass SOMClass_somInitClass
  547. #define M_WPKeyboard_somInitMIClass SOMClass_somInitMIClass
  548. #define M_WPKeyboard_somAddStaticMethod SOMClass_somAddStaticMethod
  549. #define M_WPKeyboard_somAddDynamicMethod SOMClass_somAddDynamicMethod
  550. #define M_WPKeyboard_somOverrideSMethod SOMClass_somOverrideSMethod
  551. #define M_WPKeyboard_somClassReady SOMClass_somClassReady
  552. #define M_WPKeyboard_somGetApplyStub SOMClass_somGetApplyStub
  553. #define M_WPKeyboard_somGetClassData SOMClass_somGetClassData
  554. #define M_WPKeyboard_somSetClassData SOMClass_somSetClassData
  555. #define M_WPKeyboard_somGetClassMtab SOMClass_somGetClassMtab
  556. #define M_WPKeyboard_somGetInstanceOffset SOMClass_somGetInstanceOffset
  557. #define M_WPKeyboard_somGetInstancePartSize SOMClass_somGetInstancePartSize
  558. #define M_WPKeyboard_somGetInstanceSize SOMClass_somGetInstanceSize
  559. #define M_WPKeyboard_somGetInstanceToken SOMClass_somGetInstanceToken
  560. #define M_WPKeyboard_somGetMemberToken SOMClass_somGetMemberToken
  561. #define M_WPKeyboard_somGetMethodData SOMClass_somGetMethodData
  562. #define M_WPKeyboard_somGetRdStub SOMClass_somGetRdStub
  563. #define M_WPKeyboard_somGetMethodDescriptor SOMClass_somGetMethodDescriptor
  564. #define M_WPKeyboard_somGetMethodIndex SOMClass_somGetMethodIndex
  565. #define M_WPKeyboard_somGetMethodToken SOMClass_somGetMethodToken
  566. #define M_WPKeyboard_somGetName SOMClass_somGetName
  567. #define M_WPKeyboard_somGetNthMethodData SOMClass_somGetNthMethodData
  568. #define M_WPKeyboard_somGetNthMethodInfo SOMClass_somGetNthMethodInfo
  569. #define M_WPKeyboard_somGetNumMethods SOMClass_somGetNumMethods
  570. #define M_WPKeyboard_somGetNumStaticMethods SOMClass_somGetNumStaticMethods
  571. #define M_WPKeyboard_somGetParent SOMClass_somGetParent
  572. #define M_WPKeyboard_somGetParents SOMClass_somGetParents
  573. #define M_WPKeyboard_somGetPClsMtab SOMClass_somGetPClsMtab
  574. #define M_WPKeyboard_somGetPClsMtabs SOMClass_somGetPClsMtabs
  575. #define M_WPKeyboard_somGetVersionNumbers SOMClass_somGetVersionNumbers
  576. #define M_WPKeyboard_somSetMethodDescriptor SOMClass_somSetMethodDescriptor
  577. #define M_WPKeyboard_somFindMethod SOMClass_somFindMethod
  578. #define M_WPKeyboard_somFindMethodOk SOMClass_somFindMethodOk
  579. #define M_WPKeyboard_somFindSMethod SOMClass_somFindSMethod
  580. #define M_WPKeyboard_somFindSMethodOk SOMClass_somFindSMethodOk
  581. #define M_WPKeyboard_somLookupMethod SOMClass_somLookupMethod
  582. #define M_WPKeyboard_somCheckVersion SOMClass_somCheckVersion
  583. #define M_WPKeyboard_somDescendedFrom SOMClass_somDescendedFrom
  584. #define M_WPKeyboard_somSupportsMethod SOMClass_somSupportsMethod
  585. #define M_WPKeyboard_somDefinedMethod SOMClass_somDefinedMethod
  586. #define M_WPKeyboard_somOverrideMtab SOMClass_somOverrideMtab
  587. #define M_WPKeyboard_somDefaultInit SOMObject_somDefaultInit
  588. #define M_WPKeyboard_somDestruct SOMObject_somDestruct
  589. #define M_WPKeyboard_somDefaultCopyInit SOMObject_somDefaultCopyInit
  590. #define M_WPKeyboard_somDefaultAssign SOMObject_somDefaultAssign
  591. #define M_WPKeyboard_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
  592. #define M_WPKeyboard_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
  593. #define M_WPKeyboard_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
  594. #define M_WPKeyboard_somDefaultConstAssign SOMObject_somDefaultConstAssign
  595. #define M_WPKeyboard_somDefaultVAssign SOMObject_somDefaultVAssign
  596. #define M_WPKeyboard_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
  597. #define M_WPKeyboard_somInit SOMObject_somInit
  598. #define M_WPKeyboard_somFree SOMObject_somFree
  599. #define M_WPKeyboard_somUninit SOMObject_somUninit
  600. #define M_WPKeyboard_somGetClass SOMObject_somGetClass
  601. #define M_WPKeyboard_somGetClassName SOMObject_somGetClassName
  602. #define M_WPKeyboard_somGetSize SOMObject_somGetSize
  603. #define M_WPKeyboard_somIsA SOMObject_somIsA
  604. #define M_WPKeyboard_somIsInstanceOf SOMObject_somIsInstanceOf
  605. #define M_WPKeyboard_somRespondsTo SOMObject_somRespondsTo
  606. #define M_WPKeyboard_somDispatch SOMObject_somDispatch
  607. #define M_WPKeyboard_somClassDispatch SOMObject_somClassDispatch
  608. #define M_WPKeyboard_somCastObj SOMObject_somCastObj
  609. #define M_WPKeyboard_somResetObj SOMObject_somResetObj
  610. #define M_WPKeyboard_somDispatchV SOMObject_somDispatchV
  611. #define M_WPKeyboard_somDispatchL SOMObject_somDispatchL
  612. #define M_WPKeyboard_somDispatchA SOMObject_somDispatchA
  613. #define M_WPKeyboard_somDispatchD SOMObject_somDispatchD
  614. #define M_WPKeyboard_somPrintSelf SOMObject_somPrintSelf
  615. #define M_WPKeyboard_somDumpSelf SOMObject_somDumpSelf
  616. #define M_WPKeyboard_somDumpSelfInt SOMObject_somDumpSelfInt
  617. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  618.  
  619. #endif       /* SOM_M_WPKeyboard_h */
  620.