MLE.LST 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. Listing:
  2. 1 (* Release 3.10 *)
  3. 2 (*-------------------------------------------------------------------------*
  4. 3 * *
  5. 4 * MLE.DEF - Modula-2 OS/2 API Multiline Editor interface *
  6. 5 * *
  7. 6 * COPYRIGHT (C) 1991..1992 Clarion Software Corporation. *
  8. 7 * All Rights Reserved *
  9. 8 * *
  10. 9 *--------------------------------------------------------------------------*)
  11. 10
  12. 11 (*# call(o_a_size=>off,o_a_copy=>off,result_optional=>on,
  13. 12 reg_saved=>(si,di,ds,st1,st2),reg_param=>(),seg_name=>none,
  14. 13 near_call=>off,ds_eq_ss=>off) *)
  15. 14 (*# name(prefix=>os2_lib) *)
  16. 15 (*# data(near_ptr=>off,var_enum_size=>off) *)
  17. 16 (*# check(index=>off,range=>off,overflow=>off,nil_ptr=>off) *)
  18. 17 (*# module(implementation=>off,init_code=>off) *)
  19. 18 DEFINITION MODULE MLE;
  20. 19 FROM OS2DEF IMPORT LPSTR;
  21. 20
  22. 21 CONST
  23. 22 (* MLE Window styles ( in addition to WS_* ) *)
  24. 23 MLS_WORDWRAP = {0};
  25. ***** ^ not supported yet
  26. 24 MLS_BORDER = {1};
  27. ***** ^ not supported yet
  28. 25 MLS_VSCROLL = {2};
  29. ***** ^ not supported yet
  30. 26 MLS_HSCROLL = {3};
  31. ***** ^ not supported yet
  32. 27 MLS_READONLY = {4};
  33. ***** ^ not supported yet
  34. 28 MLS_IGNORETAB = {5};
  35. ***** ^ not supported yet
  36. 29
  37. 30 (* MLE External Data Types *)
  38. 31 TYPE
  39. 32 IPT = LONGINT; (* insertion point *)
  40. 33 PIPT = POINTER TO IPT;
  41. ***** ^ not supported yet
  42. 34 PIX = LONGINT; (* pixel *)
  43. 35 LINE = LONGCARD; (* Line number *)
  44. ***** ^ undeclared identifier
  45. 36 FORMATRECT = RECORD
  46. 37 cxFormat : LONGINT;(* format rect width *)
  47. 38 cyFormat : LONGINT;(* format rect height *)
  48. 39 END; (*FORMATRECT*)
  49. ***** ^ not supported yet
  50. 40 PFORMATRECT = POINTER TO FORMATRECT;
  51. ***** ^ not supported yet
  52. 41 CTLDATA = RECORD
  53. 42 cbCtlData : CARDINAL; (* Length of the CtlData structure *)
  54. 43 afIEFormat : CARDINAL; (* import/export format *)
  55. 44 cchText : LONGCARD; (* text limit *)
  56. ***** ^ undeclared identifier
  57. 45 iptAnchor : IPT; (* beginning of selection *)
  58. 46 iptCursor : IPT; (* ending of selection *)
  59. 47 cxFormat : LONGINT; (* format rectangle width *)
  60. 48 cyFormat : LONGINT; (* format rectangle height *)
  61. 49 afFormatFlags : LONGCARD; (* formatting rectangle flags - see mask below *)
  62. ***** ^ undeclared identifier
  63. 50 END; (*CTLDATA*)
  64. ***** ^ not supported yet
  65. 51 PCTLDATA = POINTER TO CTLDATA;
  66. ***** ^ not supported yet
  67. 52
  68. 53 CONST
  69. 54 (* FormatFlags mask *)
  70. 55 MLFFMTRECT_LIMITHORZ = {0};
  71. ***** ^ not supported yet
  72. 56 MLFFMTRECT_LIMITVERT = {1};
  73. ***** ^ not supported yet
  74. 57 MLFFMTRECT_MATCHWINDOW = {2};
  75. ***** ^ not supported yet
  76. 58 MLFFMTRECT_FORMATRECT = {0,1,2};
  77. ***** ^ not supported yet
  78. ***** ^ not supported yet
  79. ***** ^ not supported yet
  80. 59
  81. 60 (* afIEFormat - Import/Export Format flags *)
  82. 61 MLFIE_CFTEXT = 0;
  83. 62 MLFIE_NOTRANS = 1;
  84. 63 MLFIE_WINFMT = 2;
  85. 64 MLFIE_RFT = 3;
  86. 65
  87. 66 TYPE
  88. 67 (* MLN_OVERFLOW structure *)
  89. 68 OVERFLOW = RECORD
  90. 69 afErrInd : LONGCARD; (* see mask below *)
  91. ***** ^ undeclared identifier
  92. 70 nBytesOver : LONGINT; (* number of bytes overflowed *)
  93. 71 pixHorzOver: LONGINT; (* number of pixels horizontally overflowed *)
  94. 72 pixVertOver: LONGINT; (* number of pixels vertically overflowed *)
  95. 73 END; (*OVERFLOW*)
  96. ***** ^ not supported yet
  97. 74 POVERFLOW = POINTER TO OVERFLOW;
  98. ***** ^ not supported yet
  99. 75
  100. 76 CONST
  101. 77 (* afErrInd - error format rectangle flags *)
  102. 78 MLFEFR_RESIZE = {0};
  103. ***** ^ not supported yet
  104. 79 MLFEFR_TABSTOP = {1};
  105. ***** ^ not supported yet
  106. 80 MLFEFR_FONT = {2};
  107. ***** ^ not supported yet
  108. 81 MLFEFR_TEXT = {3};
  109. ***** ^ not supported yet
  110. 82 MLFEFR_WORDWRAP = {4};
  111. ***** ^ not supported yet
  112. 83 MLFEFR_TEXTBYTES = {5};
  113. ***** ^ not supported yet
  114. 84
  115. 85 TYPE
  116. 86 (* MLN_MARGIN structure *)
  117. 87 MARGSTRUCT = RECORD
  118. 88 afMargins : CARDINAL; (* margin indicator *)
  119. 89 usMouMsg : CARDINAL; (* mouse message *)
  120. 90 iptNear : IPT; (* the geometrically nearest insertion point *)
  121. 91 END; (*MARGSTRUCT*)
  122. ***** ^ not supported yet
  123. 92 PMARGSTRUCT = POINTER TO MARGSTRUCT;
  124. ***** ^ not supported yet
  125. 93
  126. 94 CONST
  127. 95 (* afFlags - margin notification indicators *)
  128. 96 MLFMARGIN_LEFT = 1;
  129. 97 MLFMARGIN_BOTTOM = 2;
  130. 98 MLFMARGIN_RIGHT = 3;
  131. 99 MLFMARGIN_TOP = 4;
  132. 100
  133. 101 (* MLM_QUERYSELECTION flags *)
  134. 102 MLFQS_MINMAXSEL = 0;
  135. 103 MLFQS_MINSEL = 1;
  136. 104 MLFQS_MAXSEL = 2;
  137. 105 MLFQS_ANCHORSEL = 3;
  138. 106 MLFQS_CURSORSEL = 4;
  139. 107
  140. 108 (* MLN_CLPBDFAIL flags *)
  141. 109 MLFCLPBD_TOOMUCHTEXT= 1;
  142. 110 MLFCLPBD_ERROR = 2;
  143. 111
  144. 112 TYPE
  145. 113 (* MLM_SEARCH structure *)
  146. 114 _SEARCHDATA = RECORD
  147. 115 cb : CARDINAL; (* size of search spec structure *)
  148. 116 pchFind : LPSTR; (* string to search for *)
  149. 117 pchReplace : LPSTR; (* string to replace with *)
  150. 118 cchFind : INTEGER; (* length of pchFind string *)
  151. 119 cchReplace : INTEGER; (* length of replace string *)
  152. 120 iptStart : IPT; (* point at which to start search *)
  153. 121 (* (negative indicates cursor pt) *)
  154. 122 (* becomes pt where string found *)
  155. 123 iptStop : IPT; (* point at which to stop search *)
  156. 124 (* (negative indicates EOT) *)
  157. 125 cchFound : CARDINAL; (* Length of found string at iptStart *)
  158. 126 END; (*SEARCHDATA*)
  159. ***** ^ not supported yet
  160. 127 P_SEARCHDATA = POINTER TO _SEARCHDATA;
  161. ***** ^ not supported yet
  162. 128
  163. 129 CONST
  164. 130 (* MLM_SEARCH style flags *)
  165. 131 MLFSEARCH_CASESENSITIVE = {0};
  166. ***** ^ not supported yet
  167. 132 MLFSEARCH_SELECTMATCH = {1};
  168. ***** ^ not supported yet
  169. 133 MLFSEARCH_CHANGEALL = {2};
  170. ***** ^ not supported yet
  171. 134
  172. 135 (* MLE messages - MLM from 01B0H to 01DEH; MLN from 0001H to 000FH *)
  173. 136
  174. 137 (* formatting messages *)
  175. 138 MLM_SETTEXTLIMIT = 01B0H;
  176. 139 MLM_QUERYTEXTLIMIT = 01B1H;
  177. 140 MLM_SETFORMATRECT = 01B2H;
  178. 141 MLM_QUERYFORMATRECT = 01B3H;
  179. 142 MLM_SETWRAP = 01B4H;
  180. 143 MLM_QUERYWRAP = 01B5H;
  181. 144 MLM_SETTABSTOP = 01B6H;
  182. 145 MLM_QUERYTABSTOP = 01B7H;
  183. 146 MLM_SETREADONLY = 01B8H;
  184. 147 MLM_QUERYREADONLY = 01B9H;
  185. 148
  186. 149 (* text content manipulation and queries messages *)
  187. 150 MLM_QUERYCHANGED = 01BAH;
  188. 151 MLM_SETCHANGED = 01BBH;
  189. 152 MLM_QUERYLINECOUNT = 01BCH;
  190. 153 MLM_CHARFROMLINE = 01BDH;
  191. 154 MLM_LINEFROMCHAR = 01BEH;
  192. 155 MLM_QUERYLINELENGTH = 01BFH;
  193. 156 MLM_QUERYTEXTLENGTH = 01C0H;
  194. 157
  195. 158 (* text import and export messages *)
  196. 159 MLM_FORMAT = 01C1H;
  197. 160 MLM_SETIMPORTEXPORT = 01C2H;
  198. 161 MLM_IMPORT = 01C3H;
  199. 162 MLM_EXPORT = 01C4H;
  200. 163 MLM_DELETE = 01C6H;
  201. 164 MLM_QUERYFORMATLINELENGTH = 01C7H;
  202. 165 MLM_QUERYFORMATTEXTLENGTH = 01C8H;
  203. 166 MLM_INSERT = 01C9H;
  204. 167
  205. 168 (* selection messages *)
  206. 169 MLM_SETSEL = 01CAH;
  207. 170 MLM_QUERYSEL = 01CBH;
  208. 171 MLM_QUERYSELTEXT = 01CCH;
  209. 172
  210. 173 (* undo and redo messages *)
  211. 174 MLM_QUERYUNDO = 01CDH;
  212. 175 MLM_UNDO = 01CEH;
  213. 176 MLM_RESETUNDO = 01CFH;
  214. 177
  215. 178 (* text attributes messages *)
  216. 179 MLM_QUERYFONT = 01D0H;
  217. 180 MLM_SETFONT = 01D1H;
  218. 181 MLM_SETTEXTCOLOR = 01D2H;
  219. 182 MLM_QUERYTEXTCOLOR = 01D3H;
  220. 183 MLM_SETBACKCOLOR = 01D4H;
  221. 184 MLM_QUERYBACKCOLOR = 01D5H;
  222. 185
  223. 186 (* scrolling messages *)
  224. 187 MLM_QUERYFIRSTCHAR = 01D6H;
  225. 188 MLM_SETFIRSTCHAR = 01D7H;
  226. 189
  227. 190 (* clipboard messages *)
  228. 191 MLM_CUT = 01D8H;
  229. 192 MLM_COPY = 01D9H;
  230. 193 MLM_PASTE = 01DAH;
  231. 194 MLM_CLEAR = 01DBH;
  232. 195
  233. 196 (* display manipulation messages *)
  234. 197 MLM_ENABLEREFRESH = 01DCH;
  235. 198 MLM_DISABLEREFRESH = 01DDH;
  236. 199
  237. 200 (* search message *)
  238. 201 MLM_SEARCH = 01DEH;
  239. 202 MLM_QUERYIMPORTEXPORT = 01DFH;
  240. 203
  241. 204 (* notification messages *)
  242. 205 MLN_OVERFLOW = 0001H;
  243. 206 MLN_PIXHORZOVERFLOW = 0002H;
  244. 207 MLN_PIXVERTOVERFLOW = 0003H;
  245. 208 MLN_TEXTOVERFLOW = 0004H;
  246. 209 MLN_VSCROLL = 0005H;
  247. 210 MLN_HSCROLL = 0006H;
  248. 211 MLN_CHANGE = 0007H;
  249. 212 MLN_SETFOCUS = 0008H;
  250. 213 MLN_KILLFOCUS = 0009H;
  251. 214 MLN_MARGIN = 000AH;
  252. 215 MLN_SEARCHPAUSE = 000BH;
  253. 216 MLN_MEMERROR = 000CH;
  254. 217 MLN_UNDOOVERFLOW = 000DH;
  255. 218 MLN_CLPBDFAIL = 000FH;
  256. 219
  257. 220 END MLE.
  258. ***** ^ not supported yet
  259. 221
  260. 222
  261. 223
  262. 224
  263. 225
  264. 37 errors