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

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: E:\cwpsh\rel\os2c\include\base\os2\wpkeybd.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: 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_xh
  23. #define SOM_WPKeyboard_xh
  24.  
  25. class WPKeyboard;
  26.  
  27. #define WPKeyboard_MajorVersion 1
  28. #define WPKeyboard_MinorVersion 2
  29.  
  30. /*
  31.  * Passthru lines: File: "C.h", "before"
  32.  */
  33.  
  34.  
  35. /***********************************************************/
  36. /* Defines for wpclsQuerySetting and wpclsSetSetting       */
  37. /***********************************************************/
  38.  
  39. #define REPEATRATE_DEFAULT        0
  40. #define REPEATRATE_MAX           20
  41. #define REPEATRATE_MIN            1
  42. #define REPEATDELAY_DEFAULT      -1
  43. #define REPEATDELAY_MAX         890
  44. #define REPEATDELAY_MIN           0
  45. #define CURSORBLINK_DEFAULT      -1
  46. #define CURSORBLINK_MAX         890
  47. #define CURSORBLINK_MIN           0
  48. #define POPUPKEY_DEFAULT          0
  49. #define TEXTEDITKEY_DEFAULT       0
  50.  
  51.  
  52.  
  53. /* C++ SOM defs */
  54. #include <somcls.xh>
  55. #include <somcm.xh>
  56.  
  57. /* C++ parent defs */
  58. #ifndef SOM_WPAbstract_xh
  59. #include <wpabs.xh>
  60. #endif
  61.  
  62. #ifndef WPKeyboard_API
  63. #define WPKeyboard_API
  64. /*
  65.  * -- The Class API
  66.  */
  67.  
  68. /*
  69.  * Start of bindings for IDL types
  70.  */
  71.  
  72. class SOMClass;
  73. class SOMObject;
  74. class WPFolder;
  75. class M_WPObject;
  76. class WPObject;
  77. class WPImageFile;
  78. class M_WPAbstract;
  79. class M_WPKeyboard;
  80.  
  81. /*
  82.  * End of bindings for IDL types.
  83.  */
  84.  
  85. /* A procedure to create the WPKeyboard Class */
  86. class M_WPKeyboard;
  87. SOMEXTERN M_WPKeyboard * SOMLINK WPKeyboardNewClass(
  88.         integer4 majorVersion,
  89.         integer4 minorVersion);
  90.  
  91. /* The API to the WPKeyboard class object, and the methods it introduces. */
  92. SOMEXTERN struct WPKeyboardClassDataStructure {
  93.     M_WPKeyboard *classObject;
  94.     somMToken wpAddKeyboardMappingsPage;
  95.     somMToken wpAddKeyboardTimingPage;
  96.     somMToken wpAddKeyboardSpecialNeedsPage;
  97.     somMToken wpAddKeyboardLayoutPage;
  98. } SOMDLINK WPKeyboardClassData;
  99. #define _WPKeyboard WPKeyboardClassData.classObject
  100.  
  101. /* The API to parentMtabs for WPKeyboard, and the instance data it introduces. */
  102. SOMEXTERN struct WPKeyboardCClassDataStructure {
  103.     somMethodTabs parentMtab;
  104.     somDToken              instanceDataToken;
  105. } SOMDLINK WPKeyboardCClassData;
  106.  
  107. /*
  108.  * -- Typedefs for WPKeyboard Method Procedures
  109.  */
  110. SOMEXTERN {
  111. typedef ULONG   SOMLINK somTP_WPKeyboard_wpAddKeyboardMappingsPage(WPKeyboard *somSelf, 
  112.         HWND hwndNotebook);
  113. typedef somTP_WPKeyboard_wpAddKeyboardMappingsPage *somTD_WPKeyboard_wpAddKeyboardMappingsPage;
  114. typedef ULONG   SOMLINK somTP_WPKeyboard_wpAddKeyboardTimingPage(WPKeyboard *somSelf, 
  115.         HWND hwndNotebook);
  116. typedef somTP_WPKeyboard_wpAddKeyboardTimingPage *somTD_WPKeyboard_wpAddKeyboardTimingPage;
  117. typedef ULONG   SOMLINK somTP_WPKeyboard_wpAddKeyboardSpecialNeedsPage(WPKeyboard *somSelf, 
  118.         HWND hwndNotebook);
  119. typedef somTP_WPKeyboard_wpAddKeyboardSpecialNeedsPage *somTD_WPKeyboard_wpAddKeyboardSpecialNeedsPage;
  120. typedef ULONG   SOMLINK somTP_WPKeyboard_wpAddKeyboardLayoutPage(WPKeyboard *somSelf, 
  121.         HWND hwndNotebook);
  122. typedef somTP_WPKeyboard_wpAddKeyboardLayoutPage *somTD_WPKeyboard_wpAddKeyboardLayoutPage;
  123.  
  124. /*
  125.  * -- Typedefs for Reintroduced Wrapper Methods
  126.  */
  127. typedef M_WPKeyboard*   SOMLINK somTP_WPKeyboard_somGetClass(WPKeyboard *somSelf);
  128. typedef somTP_WPKeyboard_somGetClass *somTD_WPKeyboard_somGetClass;
  129. }
  130.  
  131. #endif /* WPKeyboard_API */
  132.  
  133.  
  134. /*
  135.  * -- This emitter treats Method Tokens as Thunks by default.
  136.  * -- Use the sc modifier "nothunks" to change this default
  137.  */
  138. #undef somresolve_
  139. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  140.  
  141. /*
  142.  * -- The C++ Wrapper Class for WPKeyboard
  143.  */
  144. class WPKeyboard : public WPAbstract
  145. {
  146. public:
  147.  
  148. // WPKeyboard::new creates the class object if necessary, and then uses somNewNoInit
  149. // to allocate memory and create the object. Initialization is in ctors.
  150. void *operator new(size_t)
  151. {
  152.    if (!_WPKeyboard) WPKeyboardNewClass(WPKeyboard_MajorVersion,WPKeyboard_MinorVersion);
  153.    return (void*)
  154.       SOM_Resolve(_WPKeyboard,SOMClass,somNewNoInit)
  155.          ((SOMClass *)((void*)_WPKeyboard));
  156. }
  157.  
  158. // WPKeyboard::delete uses somDestruct.
  159. void operator delete(void * obj)
  160. {
  161.    if (obj && *(void**)obj) {
  162.       SOM_Resolve(obj,SOMObject,somDestruct)
  163.          ((SOMObject*)obj, 1, 0);
  164.    }
  165. }
  166.  
  167. WPKeyboard& operator=(WPKeyboard& fromObj)
  168. {
  169.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  170.    return *this;
  171. }
  172.  
  173. WPKeyboard()
  174. {
  175.    if (*(void**)this != 
  176.        ((somParentMtabStructPtr)
  177.         (WPKeyboardCClassData.parentMtab))->mtab)
  178.       return;
  179.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  180. }
  181.  
  182. WPKeyboard(WPKeyboard* fromObj)
  183. {
  184.    if (*(void**)this != 
  185.        ((somParentMtabStructPtr)
  186.         (WPKeyboardCClassData.parentMtab))->mtab)
  187.       return;
  188.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  189. }
  190.  
  191. WPKeyboard(const WPKeyboard* fromObj)
  192. {
  193.    if (*(void**)this != 
  194.        ((somParentMtabStructPtr)
  195.         (WPKeyboardCClassData.parentMtab))->mtab)
  196.       return;
  197.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  198. }
  199.  
  200.  
  201. /* method: wpAddKeyboardMappingsPage */
  202. ULONG   wpAddKeyboardMappingsPage(HWND hwndNotebook)
  203. {
  204.    return SOM_ResolveD(this,WPKeyboard,WPKeyboard,wpAddKeyboardMappingsPage)
  205.     (this,hwndNotebook);
  206. }
  207.  
  208.  
  209. /* method: wpAddKeyboardTimingPage */
  210. ULONG   wpAddKeyboardTimingPage(HWND hwndNotebook)
  211. {
  212.    return SOM_ResolveD(this,WPKeyboard,WPKeyboard,wpAddKeyboardTimingPage)
  213.     (this,hwndNotebook);
  214. }
  215.  
  216.  
  217. /* method: wpAddKeyboardSpecialNeedsPage */
  218. ULONG   wpAddKeyboardSpecialNeedsPage(HWND hwndNotebook)
  219. {
  220.    return SOM_ResolveD(this,WPKeyboard,WPKeyboard,wpAddKeyboardSpecialNeedsPage)
  221.     (this,hwndNotebook);
  222. }
  223.  
  224.  
  225. /* method: wpAddKeyboardLayoutPage */
  226. ULONG   wpAddKeyboardLayoutPage(HWND hwndNotebook)
  227. {
  228.    return SOM_ResolveD(this,WPKeyboard,WPKeyboard,wpAddKeyboardLayoutPage)
  229.     (this,hwndNotebook);
  230. }
  231.  
  232.  
  233. /*
  234.  * Reintroduce inherited methods
  235.  */
  236.  
  237. /* method: somGetClass */
  238. M_WPKeyboard*  somGetClass()
  239. {
  240. /*
  241.  *  Return the receiver's class.
  242.  */
  243.    return SOM_ResolveD(this,WPKeyboard,SOMObject,somGetClass)
  244.     (this);
  245. }
  246.  
  247.  
  248.  
  249. };   /* WPKeyboard */
  250.  
  251.  
  252.  
  253. #endif       /* SOM_WPKeyboard_xh */
  254.  
  255. #ifndef SOM_M_WPKeyboard_xh
  256. #define SOM_M_WPKeyboard_xh
  257.  
  258. class M_WPKeyboard;
  259.  
  260. #define M_WPKeyboard_MajorVersion 1
  261. #define M_WPKeyboard_MinorVersion 2
  262.  
  263. /* C++ SOM defs */
  264. #include <somcls.xh>
  265. #include <somcm.xh>
  266.  
  267. /* C++ parent defs */
  268. #ifndef SOM_M_WPAbstract_xh
  269. #include <wpabs.xh>
  270. #endif
  271.  
  272. #ifndef M_WPKeyboard_API
  273. #define M_WPKeyboard_API
  274. /*
  275.  * -- The Class API
  276.  */
  277.  
  278. /*
  279.  * Start of bindings for IDL types
  280.  */
  281.  
  282.  
  283. /*
  284.  * End of bindings for IDL types.
  285.  */
  286.  
  287. /*
  288.  * -- M_WPKeyboard is a metaclass for WPKeyboard. Make sure WPKeyboard is known.
  289.  */
  290. class WPKeyboard;
  291.  
  292.  
  293. /* A procedure to create the M_WPKeyboard Class */
  294. SOMEXTERN SOMClass * SOMLINK M_WPKeyboardNewClass(
  295.         integer4 majorVersion,
  296.         integer4 minorVersion);
  297.  
  298. /* The API to the M_WPKeyboard class object, and the methods it introduces. */
  299. SOMEXTERN struct M_WPKeyboardClassDataStructure {
  300.     SOMClass *classObject;
  301. } SOMDLINK M_WPKeyboardClassData;
  302. #define _M_WPKeyboard M_WPKeyboardClassData.classObject
  303.  
  304. /* The API to parentMtabs for M_WPKeyboard, and the instance data it introduces. */
  305. SOMEXTERN struct M_WPKeyboardCClassDataStructure {
  306.     somMethodTabs parentMtab;
  307.     somDToken              instanceDataToken;
  308. } SOMDLINK M_WPKeyboardCClassData;
  309.  
  310. /*
  311.  * -- Typedefs for M_WPKeyboard Method Procedures
  312.  */
  313. SOMEXTERN {
  314.  
  315. /*
  316.  * -- Typedefs for Reintroduced Wrapper Methods
  317.  */
  318. typedef WPKeyboard*   SOMLINK somTP_M_WPKeyboard_somNew(M_WPKeyboard *somSelf);
  319. typedef somTP_M_WPKeyboard_somNew *somTD_M_WPKeyboard_somNew;
  320. }
  321.  
  322. #endif /* M_WPKeyboard_API */
  323.  
  324.  
  325. /*
  326.  * -- This emitter treats Method Tokens as Thunks by default.
  327.  * -- Use the sc modifier "nothunks" to change this default
  328.  */
  329. #undef somresolve_
  330. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  331.  
  332. /*
  333.  * -- The C++ Wrapper Class for M_WPKeyboard
  334.  */
  335. class M_WPKeyboard : public M_WPAbstract
  336. {
  337. public:
  338.  
  339. // M_WPKeyboard::new creates the class object if necessary, and then uses somNewNoInit
  340. // to allocate memory and create the object. Initialization is in ctors.
  341. void *operator new(size_t)
  342. {
  343.    if (!_M_WPKeyboard) M_WPKeyboardNewClass(M_WPKeyboard_MajorVersion,M_WPKeyboard_MinorVersion);
  344.    return (void*)
  345.       SOM_Resolve(_M_WPKeyboard,SOMClass,somNewNoInit)
  346.          ((SOMClass *)((void*)_M_WPKeyboard));
  347. }
  348.  
  349. // M_WPKeyboard::delete uses somDestruct.
  350. void operator delete(void * obj)
  351. {
  352.    if (obj && *(void**)obj) {
  353.       SOM_Resolve(obj,SOMObject,somDestruct)
  354.          ((SOMObject*)obj, 1, 0);
  355.    }
  356. }
  357.  
  358. M_WPKeyboard& operator=(M_WPKeyboard& fromObj)
  359. {
  360.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  361.    return *this;
  362. }
  363.  
  364. M_WPKeyboard()
  365. {
  366.    if (*(void**)this != 
  367.        ((somParentMtabStructPtr)
  368.         (M_WPKeyboardCClassData.parentMtab))->mtab)
  369.       return;
  370.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  371. }
  372.  
  373. M_WPKeyboard(M_WPKeyboard* fromObj)
  374. {
  375.    if (*(void**)this != 
  376.        ((somParentMtabStructPtr)
  377.         (M_WPKeyboardCClassData.parentMtab))->mtab)
  378.       return;
  379.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  380. }
  381.  
  382. M_WPKeyboard(const M_WPKeyboard* fromObj)
  383. {
  384.    if (*(void**)this != 
  385.        ((somParentMtabStructPtr)
  386.         (M_WPKeyboardCClassData.parentMtab))->mtab)
  387.       return;
  388.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  389. }
  390.  
  391.  
  392. /*
  393.  * Reintroduce inherited methods
  394.  */
  395.  
  396. /* method: somNew */
  397. WPKeyboard*  somNew()
  398. {
  399.    return SOM_ResolveD(this,M_WPKeyboard,SOMClass,somNew)
  400.     (this);
  401. }
  402.  
  403.  
  404.  
  405. };   /* M_WPKeyboard */
  406.  
  407.  
  408.  
  409. #endif       /* SOM_M_WPKeyboard_xh */
  410.