pmbidi.pas 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2003 by Yuri Prokushev ([email protected]).
  4. OS/2 Presentation Manager Window Manager - Bidirectional
  5. support include file.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {Warning: This code is alfa. Future versions
  13. of this unit might not be compatible.}
  14. unit pmbidi;
  15. interface
  16. uses os2def, pmwin;
  17. {$PACKRECORDS C}
  18. { }
  19. { Bidirectional languages support window messages }
  20. { }
  21. const
  22. WM_SETBIDIATTR = $0BD0;
  23. WM_QUERYBIDIATTR = $0BD1;
  24. WM_SETBIDISTAT = $0BD2;
  25. WM_QUERYBIDISTAT = $0BD3;
  26. WM_KBDLAYERCHANGED = $0BD4;
  27. { }
  28. { Language Viewer messages }
  29. { }
  30. WM_LANGVIEWINFOCHANGED = $0BE0;
  31. WM_LANG_OPTIONS_DIALOG = $0BE2;
  32. WM_LANGOPTIONSDIALOG = $0BE2;
  33. { LVI values - indicating which Bidi information has changed }
  34. LVI_WND_BIDI_ATTR = 1;
  35. LVI_WND_BIDI_STAT = 2;
  36. LVI_FOCUS_CHANGE = 3;
  37. LVI_KBD_LAYER = 4;
  38. LVI_CSD = 5;
  39. LVI_SET_KBD_LAYER = 6;
  40. LVI_ALL = -(1);
  41. { Possible return values from WM_SETBIDIATTR/WM_SETBIDISTAT }
  42. SBI_MSG_NOT_PROCESSED = 0;
  43. SBI_MSG_PROCESSED = 1;
  44. SBI_MSG_PROCESSED_SELF = 2;
  45. { }
  46. { Bidirectional attributes masks }
  47. { }
  48. BDAM_INIT = $80000000;
  49. BDAM_LEVEL = $70000000;
  50. BDAM_NATIVE = $08000000;
  51. BDAM_TEXTTYPE = $01000000;
  52. BDAM_TEXT_ORIENTATION = $00030000;
  53. BDAM_WND_ORIENTATION = $00100000;
  54. BDAM_NUMERALS = $00003000;
  55. BDAM_SYM_SWAP = $00000100;
  56. BDAM_WORD_BREAK = $00000200;
  57. BDAM_TEXT_SHAPE = $000000FF;
  58. BDAM_ALL=(BDAM_INIT or
  59. BDAM_LEVEL or
  60. BDAM_TEXTTYPE or
  61. BDAM_NATIVE or
  62. BDAM_TEXT_ORIENTATION or
  63. BDAM_WND_ORIENTATION or
  64. BDAM_NUMERALS or
  65. BDAM_SYM_SWAP or
  66. BDAM_WORD_BREAK or
  67. BDAM_TEXT_SHAPE );
  68. { }
  69. { Bidirectional attributes values (in Bidi attributes word) }
  70. { }
  71. { Note: Value of the attributes must match the values in layout.h. }
  72. { }
  73. BDA_INIT = $80000000;
  74. BDA_LEVEL = $30000000;
  75. BDA_NATIVE_OFF = $00000000;
  76. BDA_NATIVE_ON = $08000000;
  77. BDA_TEXTTYPE_VISUAL = $00000000;
  78. BDA_TEXTTYPE_IMPLICIT = $01000000;
  79. BDA_WND_ORIENT_LTR = $00000000;
  80. BDA_WND_ORIENT_RTL = $00100000;
  81. BDA_TEXT_ORIENT_LTR = $00000000;
  82. BDA_TEXT_ORIENT_RTL = $00010000;
  83. BDA_TEXT_ORIENT_DYNAMIC = $00020000;
  84. BDA_TEXT_ORIENT_CONTEXT = $00020000;
  85. BDA_NUMERALS_NOMINAL = $00000000;
  86. BDA_NUMERALS_PASSTHRU = $00001000;
  87. BDA_NUMERALS_NATIONAL = $00002000;
  88. BDA_NUMERALS_CONTEXTUAL = $00003000;
  89. BDA_SYM_SWAP_OFF = $00000000;
  90. BDA_SYM_SWAP_ON = $00000100;
  91. BDA_WORD_BREAK_OFF = $00000000;
  92. BDA_WORD_BREAK_ON = $00000200;
  93. BDA_TEXT_DISPLAY_SHAPED = $00000000;
  94. BDA_TEXT_SAVE_SHAPED = $00000001;
  95. BDA_TEXT_NOMINAL = $00000010;
  96. BDA_TEXT_INITIAL = $00000011;
  97. BDA_TEXT_MIDDLE = $00000012;
  98. BDA_TEXT_FINAL = $00000013;
  99. BDA_TEXT_ISOLATED = $00000014;
  100. { }
  101. { Bidirectional attribute (BIDIATTR) as specified in a window template }
  102. { or in the resource script. }
  103. { }
  104. type
  105. BIDIPARAM = PRESPARAMS;
  106. const
  107. { First BidiAttr PresParam }
  108. PP_BDATTR_FIRST = $100;
  109. { }
  110. { Set ALL Bidi attrs }
  111. PP_BDATTR_ALL = $101;
  112. { }
  113. { Text/Data type }
  114. PP_BDATTR_TEXTTYPE = $102;
  115. { Text Orientation }
  116. PP_BDATTR_TEXT_ORIENTATION = $103;
  117. { Window Orientation }
  118. PP_BDATTR_WND_ORIENTATION = $104;
  119. { Arabic/Hindi Numerals }
  120. PP_BDATTR_NUMERALS = $105;
  121. { Symetric Swapping }
  122. PP_BDATTR_SYM_SWAP = $106;
  123. { Word break }
  124. PP_BDATTR_WORD_BREAK = $107;
  125. { Char Shape Determination }
  126. PP_BDATTR_TEXT_SHAPE = $108;
  127. { }
  128. { Last BidiAttr PresParam }
  129. PP_BDATTR_LAST = $108;
  130. { }
  131. { Bidirectional status flags }
  132. PP_BDSTATUS = $110;
  133. { }
  134. { Values used in Set/Query Bidirectional status word }
  135. { }
  136. BDS_HKFLAG_ENG_LAYER = $00010000;
  137. BDS_HKFLAG_NAT_LAYER = $00020000;
  138. BDS_HKFLAG_PUSH = $00040000;
  139. BDS_HKFLAG_END_PUSH = $00080000;
  140. BDS_HKFLAG_AUTO_PUSH = $00100000;
  141. BDS_HKFLAG_FIELD_REV = $00200000;
  142. BDS_HKFLAG_SCREEN_REV = $00400000;
  143. BDS_HKFLAG_STATUS_INDICATOR = $02000000;
  144. BDS_HKFLAG_DISPLAY_SHAPED = $04000000;
  145. BDS_HKFLAG_INITIAL = $08000000;
  146. BDS_HKFLAG_MIDDLE = $10000000;
  147. BDS_HKFLAG_FINAL = $20000000;
  148. BDS_HKFLAG_ISOLATED = $40000000;
  149. BDS_HKFLAG_SAVE_SHAPED = $80000000;
  150. BDS_HKFLAG_ENTRY_SWITCH_UI = $00800000;
  151. BDS_FAUTOPUSH_RTL_ON = $00000001;
  152. BDS_FAUTOPUSH_LTR_ON = $00000002;
  153. BDS_FPUSH_ON = $00000004;
  154. BDS_DISABLE_INPUT_PROCESSING = $00000020;
  155. { }
  156. { Bidirectional status masks }
  157. { }
  158. BDSM_HKFLAGS = $FE7F0000;
  159. BDSM_AUTOPUSH_RTL = $00000001;
  160. BDSM_AUTOPUSH_LTR = $00000002;
  161. BDSM_PUSH_ON = $00000004;
  162. BDSM_DISABLE_INPUT_PROCESSING = $00000020;
  163. BDSM_ALL = ( BDSM_HKFLAGS or
  164. BDSM_AUTOPUSH_RTL or
  165. BDSM_AUTOPUSH_LTR or
  166. BDSM_PUSH_ON or
  167. BDSM_DISABLE_INPUT_PROCESSING );
  168. { }
  169. { Functions to Set/Query Bidirectional Langugage Information }
  170. { }
  171. { Process Bidi attributes }
  172. LI_BD_PROCESS_ATTR = $00000010;
  173. { Process Bidi attributes }
  174. LI_BD_PROCESS_STAT = $00000011;
  175. { Window Bidi Attributes }
  176. LI_BD_WND_ATTR = $00000020;
  177. { Window Bidi Status }
  178. LI_BD_WND_STAT = $00000021;
  179. { Clipboard Bidi Attributes }
  180. LI_BD_CLIP_ATTR = $00000030;
  181. { Clipboard Conversion Bidi Attributes }
  182. LI_BD_CLIP_CONV_ATTR = $00000031;
  183. { Values used in WinSet/QueryLangInfo (in flFlags); }
  184. { No message is sent to the }
  185. LIF_NO_SENDMSG = $00000001;
  186. { window to inform it of the }
  187. { change }
  188. { Send SetBidiAttr msg to }
  189. LIF_CHILD_INHERIT = $00000002;
  190. { all child windows. }
  191. { Refresh all windows whose }
  192. LIF_WND_REFRESH = $00000004;
  193. { bidi attributes are set }
  194. { directly by the API (and }
  195. { not by a sent message. }
  196. { }
  197. { Flags for WinSetKbdLayer }
  198. { }
  199. SKLF_SENDMSG = $00000001;
  200. { }
  201. { Keyboard layers for WinSetKbdLayer }
  202. { }
  203. KL_LATIN = $00000000;
  204. KL_NATIONAL = $00000001;
  205. { }
  206. { Keyboard layouts for WinSetKbdLayout }
  207. { }
  208. { VKey }
  209. KBDL_VKEY = 1;
  210. { Belgium - 120 }
  211. KBDL_BE = 2;
  212. { Canadian - 058 French }
  213. KBDL_CF = 3;
  214. { Denmark - 159 }
  215. KBDL_DK = 4;
  216. { France - 189 }
  217. KBDL_FR = 5;
  218. { Germany - 129 }
  219. KBDL_GR = 6;
  220. { Germany - 129 }
  221. KBDL_DE = 6;
  222. { Italy - 141 }
  223. KBDL_IT = 7;
  224. { Latin America - 171 }
  225. KBDL_LA = 8;
  226. { Netherlands - 143 }
  227. KBDL_NL = 9;
  228. { Norway - 155 }
  229. KBDL_NO = 10;
  230. { Portugal - 163 }
  231. KBDL_PO = 11;
  232. { Swiss-French - 150f }
  233. KBDL_SF = 12;
  234. { Swiss-German - 150d }
  235. KBDL_SG = 13;
  236. { Spain - 172 }
  237. KBDL_ES = 14;
  238. { Finland - 153 }
  239. KBDL_FI = 15;
  240. { Sweden - 153 }
  241. KBDL_SV = 16;
  242. { United Kingdom - 166 }
  243. KBDL_UK = 17;
  244. { United States - 103p }
  245. KBDL_US = 18;
  246. { French - 120 }
  247. KBDL_FR120 = 19;
  248. { Italian - 142 }
  249. KBDL_IT142 = 20;
  250. { United Kingdom - 168 }
  251. KBDL_UK168W = 21;
  252. { Turkey - 179 }
  253. KBDL_TR = 22;
  254. { Czech - 243 }
  255. KBDL_CZ = 23;
  256. { Slovakia - 245 }
  257. KBDL_SK = 24;
  258. { Hungarian - 208 }
  259. KBDL_HU = 25;
  260. { Croatia - 234 }
  261. KBDL_HR = 26;
  262. { Poland - 163 }
  263. KBDL_PL = 27;
  264. { Iceland - 197 }
  265. KBDL_IS = 28;
  266. { Brazil - 275 }
  267. KBDL_BR = 29;
  268. { Hebrew - 212 Latin }
  269. KBDL_HE_LATIN = 30;
  270. { Hebrew - 212 Hebrew }
  271. KBDL_HE_NATIONAL = 31;
  272. { Arabic - 238 Latin }
  273. KBDL_AR_LATIN = 32;
  274. { Arabic - 238 Arabic }
  275. KBDL_AR_NATIONAL = 33;
  276. { Brazil - 274 }
  277. KBDL_BR274 = 34;
  278. { Greek - 319 Latin }
  279. KBDL_GK_LAT319 = 35;
  280. { Greek - 319 Greek }
  281. KBDL_GK_NAT319 = 36;
  282. { Greek - 220 Latin }
  283. KBDL_GK_LAT220 = 37;
  284. { Greek - 220 Greek }
  285. KBDL_GK_NAT220 = 38;
  286. { Arabic - 470 Latin }
  287. KBDL_AR_LAT470 = 39;
  288. { Arabic - 470 Arabic }
  289. KBDL_AR_NAT470 = 40;
  290. { Turkey - 440 }
  291. KBDL_TR440 = 41;
  292. { Slovenia - 234 }
  293. KBDL_SL = 42;
  294. { Romania - 446 }
  295. KBDL_RO = 43;
  296. { Bulgaria - 442 Cyrillic }
  297. KBDL_BG_NATIONAL = 44;
  298. { Bulgaria - 442 Latin }
  299. KBDL_BG_LATIN = 45;
  300. { Macedonia - 449 Cyrillic }
  301. KBDL_MK_NATIONAL = 46;
  302. { Macedonia - 449 Latin }
  303. KBDL_MK_LATIN = 47;
  304. { Serbia - 450 Cyrillic }
  305. KBDL_SR_NATIONAL = 48;
  306. { Serbia - 450 Latin }
  307. KBDL_SR_LATIN = 49;
  308. { Russia - 441 Cyrillic }
  309. KBDL_RU_NATIONAL = 50;
  310. { Russia - 441 Latin }
  311. KBDL_RU_LATIN = 51;
  312. { Poland - 274 Programmer }
  313. KBDL_PL274 = 52;
  314. { Russia - 443 Cyrillic }
  315. KBDL_RU_NAT443 = 53;
  316. { Russia - 443 Latin }
  317. KBDL_RU_LAT443 = 54;
  318. { Bosnia - 234 }
  319. KBDL_BA = 55;
  320. { Albania - 452 }
  321. KBDL_SQ = 56;
  322. { International - 103 }
  323. KBDL_US_INTER = 57;
  324. { Canadian - 445 }
  325. KBDL_CA = 58;
  326. { Canadian - 501 }
  327. KBDL_CA_EXTRA = 59;
  328. { German - 453 }
  329. KBDL_DE453 = 60;
  330. { German - 500 }
  331. KBDL_DE_EXTRA = 61;
  332. { Iceland - 458 }
  333. KBDL_IS458 = 62;
  334. { Estonia - 454 }
  335. KBDL_EE = 63;
  336. { Thai Kbd - Latin for 874 }
  337. KBDL_TH_LATIN = 64;
  338. { Thai Kbd - Pattachot for 874 }
  339. KBDL_TH_PAT = 65;
  340. { Thai Kbd }
  341. KBDL_TH_PAT_CAP = 66;
  342. { Thai Kbd - Kesmanee for 874 }
  343. KBDL_TH_KES = 67;
  344. { Thai Kbd }
  345. KBDL_TH_KES_CAP = 68;
  346. { Thai Kbd - Pattachot for 850 }
  347. KBDL_TH_COMP_PAT = 69;
  348. { Thai Kbd }
  349. KBDL_TH_COMP_PAT_CAP = 70;
  350. { Thai Kbd - Kesmanee for 850 }
  351. KBDL_TH_COMP_KES = 71;
  352. { Thai Kbd }
  353. KBDL_TH_COMP_KES_CAP = 72;
  354. { US Dvorak - }
  355. KBDL_US_DV = 73;
  356. { US Left - }
  357. KBDL_US_LEFT = 74;
  358. { US Right - }
  359. KBDL_US_RIGHT = 75;
  360. { Lithuania - 456 - National }
  361. KBDL_LTL = 76;
  362. { Lithuania - 456 - Programmer }
  363. KBDL_LTP = 77;
  364. { Latvia 455 - 455 - National }
  365. KBDL_LVL = 78;
  366. { Latvia 455 - 455 - Programmer }
  367. KBDL_LVP = 79;
  368. { Japan Latin }
  369. KBDL_JALPHANUMERIC = 80;
  370. KBDL_JP = 80;
  371. { Japan Katakana }
  372. KBDL_JKATAKANA = 81;
  373. { Japan Katakana Romanji }
  374. KBDL_JKATAKANAROMAN = 82;
  375. { Japan Hiragana }
  376. KBDL_JHIRAGANA = 83;
  377. { Japan Hiragana Romanji }
  378. KBDL_JHIRAGANAROMAN = 84;
  379. KBDL_JCAPSALPHANUMERIC = 85;
  380. { Korean }
  381. KBDL_KALPHANUMERIC = 86;
  382. KBDL_KR = 86;
  383. { Korean national layer }
  384. KBDL_KJAMO = 87;
  385. { Simplified Chinese }
  386. KBDL_SALPHANUMERIC = 88;
  387. { Traditional Chinese }
  388. KBDL_TALPHANUMERIC = 89;
  389. KBDL_TW = 89;
  390. { Belarus 463 - 463 - Latin }
  391. KBDL_BYL = 90;
  392. { Belarus 463 - 463 - Cyrillic }
  393. KBDL_BYC = 91;
  394. { Ukraine 465 - 465 - Latin }
  395. KBDL_UAL = 92;
  396. { Ukraine 465 - 465 - Ukraine }
  397. KBDL_UAU = 93;
  398. { }
  399. { Defines for use in WinQueryCpType }
  400. { }
  401. { Latin 1 }
  402. CPTYPE_OTHER = 1;
  403. CPTYPE_ARABIC = 2;
  404. CPTYPE_BALTIC = 3;
  405. CPTYPE_CYRILLIC = 4;
  406. CPTYPE_GREEK = 5;
  407. CPTYPE_HEBREW = 6;
  408. CPTYPE_JAPANESE = 7;
  409. CPTYPE_KOREAN = 8;
  410. CPTYPE_LATIN2 = 9;
  411. CPTYPE_SCHINESE = 10;
  412. CPTYPE_TCHINESE = 11;
  413. CPTYPE_THAI = 12;
  414. CPTYPE_TURKISH = 13;
  415. CPTYPE_UNICODE = 14;
  416. { was #define dname def_expr }
  417. function HMQ_SYSTEM : THMQ;
  418. { }
  419. { PM Bidirectional support - function prototypes. }
  420. { }
  421. Function WinSetLangInfo(aHWND: HWND; ulEffect, ulData, flMask, flFlags,
  422. ulReserved: Cardinal ): Cardinal; cdecl;
  423. external 'pmbidi' index 20;
  424. Function WinQueryLangInfo(ahwnd: HWND; ulEffect, flFlags, ulReserved: Cardinal): Cardinal; cdecl;
  425. external 'pmbidi' index 21;
  426. Function WinSetKbdLayer(ahwnd: HWND; idKbdLayer, flFlags: Cardinal): Cardinal; cdecl;
  427. external 'pmbidi' index 22;
  428. Function WinQueryKbdLayer(ahwnd: HWND): Cardinal; cdecl;
  429. external 'pmbidi' index 23;
  430. Function WinQueryKbdLayout(hwndDesktop: HWND): Cardinal; cdecl;
  431. external 'pmbidi' index 23;
  432. //Function WinSetKbdLayout(hwndDesktop: HWND; idKbdLayout: Cardinal): Longbool; cdecl;
  433. // external '???';
  434. Function WinSetLangViewer(ahab, hwndLangViewer: HAB; Codepage: Cardinal): HWND; cdecl;
  435. external 'pmbidi' index 24;
  436. Function WinQueryLangViewer(ahab: HAB; Codepage: Cardinal): HWND; cdecl;
  437. external 'pmbidi' index 25;
  438. Function GpiSetBidiAttr(ahps: HPS; BidiAttr: Cardinal): Cardinal; cdecl;
  439. external 'pmbidi' index 50;
  440. Function GpiQueryBidiAttr(ahps: HPS): Cardinal; cdecl;
  441. external 'pmbidi' index 51;
  442. Function WinQueryCpType(ahmq: HMQ): Cardinal; cdecl;
  443. external 'pmbidi' index 60;
  444. { }
  445. { Macros to manipulate Bidi values }
  446. { }
  447. {
  448. Macro to make a BidiAttribute/Status ULONG from several fields
  449. Example : SET_BD_VALUE(BidiAtts,
  450. BDA_TEXT_ORIENT_RTL | BDA_TEXTTYPE_IMPLICIT,
  451. BDAM_TEXT_ORIENTATION | BDAM_TEXTTYPE)
  452. }
  453. // #define SET_BD_VALUE(BidiValue,NewBidiValue,Mask) \
  454. // (BidiValue = ((BidiValue & (~(Mask))) | (NewBidiValue & (Mask))))
  455. {
  456. Macro to extract one or more fields from a BidiAttribute/Status ULONG
  457. Example : Orientation = QUERY_BD_VALUE(BidiAtts,BDAM_TEXT_ORIENTATION)
  458. }
  459. // ( ((ULONG)BidiValue) & ((ULONG)Mask) )
  460. const
  461. { }
  462. { New CURSOR flags for Left-To-Right and Right-To-Left cursors }
  463. { These are in addtion to those in the CURSOR section in PMWIN.H }
  464. { }
  465. CURSOR_DIR_LTR = $0100;
  466. CURSOR_DIR_RTL = $0300;
  467. { }
  468. { PM Bidi Error codes. }
  469. { }
  470. PMERR_BIDI_FIRST = $10F0;
  471. PMERR_BIDI_TEXT_CONV_FAILED = $10F0;
  472. PMERR_BIDI_LAST = $10FF;
  473. { }
  474. { Bidi virtual key definitions }
  475. { }
  476. VK_BIDI_FIRST = $E0;
  477. VK_START_PUSH = $E0;
  478. VK_END_PUSH = $E1;
  479. VK_REVERSE_FIELD = $E2;
  480. VK_REVERSE_WINDOW = $E3;
  481. VK_AUTOPUSH = $E4;
  482. VK_STATUS_INDICATOR = $E5;
  483. VK_TEXT_DISPLAY_SHAPED = $E6;
  484. VK_TEXT_INITIAL = $E7;
  485. VK_TEXT_MIDDLE = $E8;
  486. VK_TEXT_FINAL = $E9;
  487. VK_TEXT_ISOLATED = $EA;
  488. VK_TEXT_SAVE_SHAPED = $EB;
  489. VK_REQUIRED_SPACE = $EC;
  490. VK_LTR_MARKER = $ED;
  491. VK_RTL_MARKER = $EE;
  492. VK_ENTRY_SWITCH_UI = $EF;
  493. VK_LAYER0 = $F0;
  494. VK_LAYER1 = $F1;
  495. VK_LAYER2 = $F2;
  496. VK_LAYER3 = $F3;
  497. VK_LATIN_LAYER = VK_LAYER0;
  498. VK_NATIONAL_LAYER = VK_LAYER1;
  499. VK_BIDI_LAST = $FF;
  500. { }
  501. { Language-sensitive definition for standard File and Font dialogs. }
  502. { }
  503. { Use National Language }
  504. const
  505. FNTS_NATIONAL_LANGUAGE = $80000000;
  506. { Use National Language }
  507. FDS_NATIONAL_LANGUAGE = $80000000;
  508. { }
  509. { WM_ messages related to bidirectional language support for }
  510. { CUATOOLS components. }
  511. { }
  512. CM_SETITEMBIDIATTR = $0390;
  513. CM_SETFIELDBIDIATTR = $0391;
  514. CM_QUERYITEMBIDIATTR = $0392;
  515. CM_QUERYFIELDBIDIATTR = $0393;
  516. BKM_SETSTATUSLINEBIDIATTR = $0394;
  517. BKM_QUERYSTATUSLINEBIDIATTR = $0395;
  518. BKM_SETTABTEXTBIDIATTR = $0396;
  519. BKM_QUERYTABTEXTBIDIATTR = $0397;
  520. VM_SETITEMBIDIATTR = $0398;
  521. VM_QUERYITEMBIDIATTR = $0399;
  522. { bam }
  523. { Bidirectional Attributes word }
  524. { Bitmask to define which bidi }
  525. type
  526. TBD_ATTR_MASK = record
  527. ulBdAttr : Cardinal;
  528. ulBdMask : Cardinal;
  529. end;
  530. { attributes are to be used. }
  531. PBD_ATTR_MASK = ^TBD_ATTR_MASK;
  532. { }
  533. { BOOKPAGEBIDIINFO structure is pointed to from the BOOKPAGEINFO }
  534. { structure (BKM_SETPAGEINFO notebook message) }
  535. { }
  536. { bkpgbdi }
  537. { Major Tab Text BD_ATTR_MASK struct. }
  538. { Minor Tab Text BD_ATTR_MASK struct. }
  539. { Status Line Text BD_ATTR_MASK struct. }
  540. TBOOKPAGEBIDIINFO = record
  541. bamMajorTab : TBD_ATTR_MASK;
  542. bamMinorTab : TBD_ATTR_MASK;
  543. bamStatusLine : TBD_ATTR_MASK;
  544. end;
  545. PBOOKPAGEBIDIINFO = ^TBOOKPAGEBIDIINFO;
  546. implementation
  547. { was #define dname def_expr }
  548. function HMQ_SYSTEM : THMQ;
  549. begin
  550. HMQ_SYSTEM:=THMQ(0);
  551. end;
  552. end.