]>
Commit | Line | Data |
---|---|---|
23324ae1 FM |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: stc/stc.h | |
6d7b19b0 | 3 | // Purpose: interface of wxStyledTextCtrl |
23324ae1 | 4 | // Author: wxWidgets team |
526954c5 | 5 | // Licence: wxWindows licence |
23324ae1 FM |
6 | ///////////////////////////////////////////////////////////////////////////// |
7 | ||
6d7b19b0 RD |
8 | /* |
9 | IMPORTANT: This file is generated by src/stc/gen_iface.py from | |
10 | src/stc/stc.interface.h.in. Do not edit the file in | |
11 | interface/wx/stc or your changes will be lost. | |
23324ae1 | 12 | */ |
4701dc09 | 13 | |
4701dc09 | 14 | |
6d7b19b0 | 15 | // STC constants {{{ |
23324ae1 | 16 | |
6d7b19b0 | 17 | #define wxSTC_INVALID_POSITION -1 |
4701dc09 | 18 | |
6d7b19b0 RD |
19 | /// Define start of Scintilla messages to be greater than all Windows edit (EM_*) messages |
20 | /// as many EM_ messages can be used although that use is deprecated. | |
21 | #define wxSTC_START 2000 | |
22 | #define wxSTC_OPTIONAL_START 3000 | |
23 | #define wxSTC_LEXER_START 4000 | |
24 | #define wxSTC_WS_INVISIBLE 0 | |
25 | #define wxSTC_WS_VISIBLEALWAYS 1 | |
26 | #define wxSTC_WS_VISIBLEAFTERINDENT 2 | |
27 | #define wxSTC_EOL_CRLF 0 | |
28 | #define wxSTC_EOL_CR 1 | |
29 | #define wxSTC_EOL_LF 2 | |
30 | ||
31 | /// The SC_CP_UTF8 value can be used to enter Unicode mode. | |
32 | /// This is the same value as CP_UTF8 in Windows | |
33 | #define wxSTC_CP_UTF8 65001 | |
34 | #define wxSTC_MARKER_MAX 31 | |
35 | #define wxSTC_MARK_CIRCLE 0 | |
36 | #define wxSTC_MARK_ROUNDRECT 1 | |
37 | #define wxSTC_MARK_ARROW 2 | |
38 | #define wxSTC_MARK_SMALLRECT 3 | |
39 | #define wxSTC_MARK_SHORTARROW 4 | |
40 | #define wxSTC_MARK_EMPTY 5 | |
41 | #define wxSTC_MARK_ARROWDOWN 6 | |
42 | #define wxSTC_MARK_MINUS 7 | |
43 | #define wxSTC_MARK_PLUS 8 | |
44 | ||
45 | /// Shapes used for outlining column. | |
46 | #define wxSTC_MARK_VLINE 9 | |
47 | #define wxSTC_MARK_LCORNER 10 | |
48 | #define wxSTC_MARK_TCORNER 11 | |
49 | #define wxSTC_MARK_BOXPLUS 12 | |
50 | #define wxSTC_MARK_BOXPLUSCONNECTED 13 | |
51 | #define wxSTC_MARK_BOXMINUS 14 | |
52 | #define wxSTC_MARK_BOXMINUSCONNECTED 15 | |
53 | #define wxSTC_MARK_LCORNERCURVE 16 | |
54 | #define wxSTC_MARK_TCORNERCURVE 17 | |
55 | #define wxSTC_MARK_CIRCLEPLUS 18 | |
56 | #define wxSTC_MARK_CIRCLEPLUSCONNECTED 19 | |
57 | #define wxSTC_MARK_CIRCLEMINUS 20 | |
58 | #define wxSTC_MARK_CIRCLEMINUSCONNECTED 21 | |
59 | ||
60 | /// Invisible mark that only sets the line background colour. | |
61 | #define wxSTC_MARK_BACKGROUND 22 | |
62 | #define wxSTC_MARK_DOTDOTDOT 23 | |
63 | #define wxSTC_MARK_ARROWS 24 | |
64 | #define wxSTC_MARK_PIXMAP 25 | |
65 | #define wxSTC_MARK_FULLRECT 26 | |
66 | #define wxSTC_MARK_LEFTRECT 27 | |
67 | #define wxSTC_MARK_AVAILABLE 28 | |
68 | #define wxSTC_MARK_UNDERLINE 29 | |
69 | #define wxSTC_MARK_RGBAIMAGE 30 | |
70 | #define wxSTC_MARK_CHARACTER 10000 | |
71 | ||
72 | /// Markers used for outlining column. | |
73 | #define wxSTC_MARKNUM_FOLDEREND 25 | |
74 | #define wxSTC_MARKNUM_FOLDEROPENMID 26 | |
75 | #define wxSTC_MARKNUM_FOLDERMIDTAIL 27 | |
76 | #define wxSTC_MARKNUM_FOLDERTAIL 28 | |
77 | #define wxSTC_MARKNUM_FOLDERSUB 29 | |
78 | #define wxSTC_MARKNUM_FOLDER 30 | |
79 | #define wxSTC_MARKNUM_FOLDEROPEN 31 | |
80 | #define wxSTC_MASK_FOLDERS 0xFE000000 | |
81 | #define wxSTC_MARGIN_SYMBOL 0 | |
82 | #define wxSTC_MARGIN_NUMBER 1 | |
83 | #define wxSTC_MARGIN_BACK 2 | |
84 | #define wxSTC_MARGIN_FORE 3 | |
85 | #define wxSTC_MARGIN_TEXT 4 | |
86 | #define wxSTC_MARGIN_RTEXT 5 | |
87 | ||
88 | /// Styles in range 32..38 are predefined for parts of the UI and are not used as normal styles. | |
89 | /// Style 39 is for future use. | |
90 | #define wxSTC_STYLE_DEFAULT 32 | |
91 | #define wxSTC_STYLE_LINENUMBER 33 | |
92 | #define wxSTC_STYLE_BRACELIGHT 34 | |
93 | #define wxSTC_STYLE_BRACEBAD 35 | |
94 | #define wxSTC_STYLE_CONTROLCHAR 36 | |
95 | #define wxSTC_STYLE_INDENTGUIDE 37 | |
96 | #define wxSTC_STYLE_CALLTIP 38 | |
97 | #define wxSTC_STYLE_LASTPREDEFINED 39 | |
98 | #define wxSTC_STYLE_MAX 255 | |
99 | ||
100 | /// Character set identifiers are used in StyleSetCharacterSet. | |
101 | /// The values are the same as the Windows *_CHARSET values. | |
102 | #define wxSTC_CHARSET_ANSI 0 | |
103 | #define wxSTC_CHARSET_DEFAULT 1 | |
104 | #define wxSTC_CHARSET_BALTIC 186 | |
105 | #define wxSTC_CHARSET_CHINESEBIG5 136 | |
106 | #define wxSTC_CHARSET_EASTEUROPE 238 | |
107 | #define wxSTC_CHARSET_GB2312 134 | |
108 | #define wxSTC_CHARSET_GREEK 161 | |
109 | #define wxSTC_CHARSET_HANGUL 129 | |
110 | #define wxSTC_CHARSET_MAC 77 | |
111 | #define wxSTC_CHARSET_OEM 255 | |
112 | #define wxSTC_CHARSET_RUSSIAN 204 | |
113 | #define wxSTC_CHARSET_CYRILLIC 1251 | |
114 | #define wxSTC_CHARSET_SHIFTJIS 128 | |
115 | #define wxSTC_CHARSET_SYMBOL 2 | |
116 | #define wxSTC_CHARSET_TURKISH 162 | |
117 | #define wxSTC_CHARSET_JOHAB 130 | |
118 | #define wxSTC_CHARSET_HEBREW 177 | |
119 | #define wxSTC_CHARSET_ARABIC 178 | |
120 | #define wxSTC_CHARSET_VIETNAMESE 163 | |
121 | #define wxSTC_CHARSET_THAI 222 | |
122 | #define wxSTC_CHARSET_8859_15 1000 | |
123 | #define wxSTC_CASE_MIXED 0 | |
124 | #define wxSTC_CASE_UPPER 1 | |
125 | #define wxSTC_CASE_LOWER 2 | |
126 | #define wxSTC_FONT_SIZE_MULTIPLIER 100 | |
127 | #define wxSTC_WEIGHT_NORMAL 400 | |
128 | #define wxSTC_WEIGHT_SEMIBOLD 600 | |
129 | #define wxSTC_WEIGHT_BOLD 700 | |
130 | ||
131 | /// Indicator style enumeration and some constants | |
132 | #define wxSTC_INDIC_PLAIN 0 | |
133 | #define wxSTC_INDIC_SQUIGGLE 1 | |
134 | #define wxSTC_INDIC_TT 2 | |
135 | #define wxSTC_INDIC_DIAGONAL 3 | |
136 | #define wxSTC_INDIC_STRIKE 4 | |
137 | #define wxSTC_INDIC_HIDDEN 5 | |
138 | #define wxSTC_INDIC_BOX 6 | |
139 | #define wxSTC_INDIC_ROUNDBOX 7 | |
140 | #define wxSTC_INDIC_STRAIGHTBOX 8 | |
141 | #define wxSTC_INDIC_DASH 9 | |
142 | #define wxSTC_INDIC_DOTS 10 | |
143 | #define wxSTC_INDIC_SQUIGGLELOW 11 | |
144 | #define wxSTC_INDIC_DOTBOX 12 | |
145 | #define wxSTC_INDIC_MAX 31 | |
146 | #define wxSTC_INDIC_CONTAINER 8 | |
147 | #define wxSTC_INDIC0_MASK 0x20 | |
148 | #define wxSTC_INDIC1_MASK 0x40 | |
149 | #define wxSTC_INDIC2_MASK 0x80 | |
150 | #define wxSTC_INDICS_MASK 0xE0 | |
151 | #define wxSTC_IV_NONE 0 | |
152 | #define wxSTC_IV_REAL 1 | |
153 | #define wxSTC_IV_LOOKFORWARD 2 | |
154 | #define wxSTC_IV_LOOKBOTH 3 | |
155 | ||
156 | /// PrintColourMode - use same colours as screen. | |
157 | #define wxSTC_PRINT_NORMAL 0 | |
158 | ||
159 | /// PrintColourMode - invert the light value of each style for printing. | |
160 | #define wxSTC_PRINT_INVERTLIGHT 1 | |
161 | ||
162 | /// PrintColourMode - force black text on white background for printing. | |
163 | #define wxSTC_PRINT_BLACKONWHITE 2 | |
164 | ||
165 | /// PrintColourMode - text stays coloured, but all background is forced to be white for printing. | |
166 | #define wxSTC_PRINT_COLOURONWHITE 3 | |
167 | ||
168 | /// PrintColourMode - only the default-background is forced to be white for printing. | |
169 | #define wxSTC_PRINT_COLOURONWHITEDEFAULTBG 4 | |
170 | #define wxSTC_FIND_WHOLEWORD 2 | |
171 | #define wxSTC_FIND_MATCHCASE 4 | |
172 | #define wxSTC_FIND_WORDSTART 0x00100000 | |
173 | #define wxSTC_FIND_REGEXP 0x00200000 | |
174 | #define wxSTC_FIND_POSIX 0x00400000 | |
175 | #define wxSTC_FOLDLEVELBASE 0x400 | |
176 | #define wxSTC_FOLDLEVELWHITEFLAG 0x1000 | |
177 | #define wxSTC_FOLDLEVELHEADERFLAG 0x2000 | |
178 | #define wxSTC_FOLDLEVELNUMBERMASK 0x0FFF | |
179 | #define wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002 | |
180 | #define wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004 | |
181 | #define wxSTC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008 | |
182 | #define wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010 | |
183 | #define wxSTC_FOLDFLAG_LEVELNUMBERS 0x0040 | |
184 | #define wxSTC_TIME_FOREVER 10000000 | |
185 | #define wxSTC_WRAP_NONE 0 | |
186 | #define wxSTC_WRAP_WORD 1 | |
187 | #define wxSTC_WRAP_CHAR 2 | |
188 | #define wxSTC_WRAPVISUALFLAG_NONE 0x0000 | |
189 | #define wxSTC_WRAPVISUALFLAG_END 0x0001 | |
190 | #define wxSTC_WRAPVISUALFLAG_START 0x0002 | |
191 | #define wxSTC_WRAPVISUALFLAG_MARGIN 0x0004 | |
192 | #define wxSTC_WRAPVISUALFLAGLOC_DEFAULT 0x0000 | |
193 | #define wxSTC_WRAPVISUALFLAGLOC_END_BY_TEXT 0x0001 | |
194 | #define wxSTC_WRAPVISUALFLAGLOC_START_BY_TEXT 0x0002 | |
195 | #define wxSTC_WRAPINDENT_FIXED 0 | |
196 | #define wxSTC_WRAPINDENT_SAME 1 | |
197 | #define wxSTC_WRAPINDENT_INDENT 2 | |
198 | #define wxSTC_CACHE_NONE 0 | |
199 | #define wxSTC_CACHE_CARET 1 | |
200 | #define wxSTC_CACHE_PAGE 2 | |
201 | #define wxSTC_CACHE_DOCUMENT 3 | |
202 | ||
203 | /// Control font anti-aliasing. | |
204 | #define wxSTC_EFF_QUALITY_MASK 0xF | |
205 | #define wxSTC_EFF_QUALITY_DEFAULT 0 | |
206 | #define wxSTC_EFF_QUALITY_NON_ANTIALIASED 1 | |
207 | #define wxSTC_EFF_QUALITY_ANTIALIASED 2 | |
208 | #define wxSTC_EFF_QUALITY_LCD_OPTIMIZED 3 | |
209 | #define wxSTC_MULTIPASTE_ONCE 0 | |
210 | #define wxSTC_MULTIPASTE_EACH 1 | |
211 | #define wxSTC_EDGE_NONE 0 | |
212 | #define wxSTC_EDGE_LINE 1 | |
213 | #define wxSTC_EDGE_BACKGROUND 2 | |
214 | #define wxSTC_STATUS_OK 0 | |
215 | #define wxSTC_STATUS_FAILURE 1 | |
216 | #define wxSTC_STATUS_BADALLOC 2 | |
217 | #define wxSTC_CURSORNORMAL -1 | |
218 | #define wxSTC_CURSORARROW 2 | |
219 | #define wxSTC_CURSORWAIT 4 | |
220 | #define wxSTC_CURSORREVERSEARROW 7 | |
221 | ||
222 | /// Constants for use with SetVisiblePolicy, similar to SetCaretPolicy. | |
223 | #define wxSTC_VISIBLE_SLOP 0x01 | |
224 | #define wxSTC_VISIBLE_STRICT 0x04 | |
225 | ||
226 | /// Caret policy, used by SetXCaretPolicy and SetYCaretPolicy. | |
227 | /// If CARET_SLOP is set, we can define a slop value: caretSlop. | |
228 | /// This value defines an unwanted zone (UZ) where the caret is... unwanted. | |
229 | /// This zone is defined as a number of pixels near the vertical margins, | |
230 | /// and as a number of lines near the horizontal margins. | |
231 | /// By keeping the caret away from the edges, it is seen within its context, | |
232 | /// so it is likely that the identifier that the caret is on can be completely seen, | |
233 | /// and that the current line is seen with some of the lines following it which are | |
234 | /// often dependent on that line. | |
235 | #define wxSTC_CARET_SLOP 0x01 | |
236 | ||
237 | /// If CARET_STRICT is set, the policy is enforced... strictly. | |
238 | /// The caret is centred on the display if slop is not set, | |
239 | /// and cannot go in the UZ if slop is set. | |
240 | #define wxSTC_CARET_STRICT 0x04 | |
241 | ||
242 | /// If CARET_JUMPS is set, the display is moved more energetically | |
243 | /// so the caret can move in the same direction longer before the policy is applied again. | |
244 | #define wxSTC_CARET_JUMPS 0x10 | |
245 | ||
246 | /// If CARET_EVEN is not set, instead of having symmetrical UZs, | |
247 | /// the left and bottom UZs are extended up to right and top UZs respectively. | |
248 | /// This way, we favour the displaying of useful information: the begining of lines, | |
249 | /// where most code reside, and the lines after the caret, eg. the body of a function. | |
250 | #define wxSTC_CARET_EVEN 0x08 | |
251 | #define wxSTC_SEL_STREAM 0 | |
252 | #define wxSTC_SEL_RECTANGLE 1 | |
253 | #define wxSTC_SEL_LINES 2 | |
254 | #define wxSTC_SEL_THIN 3 | |
255 | #define wxSTC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE 0 | |
256 | #define wxSTC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE 1 | |
257 | #define wxSTC_CARETSTICKY_OFF 0 | |
258 | #define wxSTC_CARETSTICKY_ON 1 | |
259 | #define wxSTC_CARETSTICKY_WHITESPACE 2 | |
260 | #define wxSTC_ALPHA_TRANSPARENT 0 | |
261 | #define wxSTC_ALPHA_OPAQUE 255 | |
262 | #define wxSTC_ALPHA_NOALPHA 256 | |
263 | #define wxSTC_CARETSTYLE_INVISIBLE 0 | |
264 | #define wxSTC_CARETSTYLE_LINE 1 | |
265 | #define wxSTC_CARETSTYLE_BLOCK 2 | |
266 | #define wxSTC_MARGINOPTION_NONE 0 | |
267 | #define wxSTC_MARGINOPTION_SUBLINESELECT 1 | |
268 | #define wxSTC_ANNOTATION_HIDDEN 0 | |
269 | #define wxSTC_ANNOTATION_STANDARD 1 | |
270 | #define wxSTC_ANNOTATION_BOXED 2 | |
271 | #define wxSTC_UNDO_MAY_COALESCE 1 | |
272 | #define wxSTC_SCVS_NONE 0 | |
273 | #define wxSTC_SCVS_RECTANGULARSELECTION 1 | |
274 | #define wxSTC_SCVS_USERACCESSIBLE 2 | |
275 | #define wxSTC_TECHNOLOGY_DEFAULT 0 | |
276 | #define wxSTC_TECHNOLOGY_DIRECTWRITE 1 | |
277 | ||
278 | /// Maximum value of keywordSet parameter of SetKeyWords. | |
279 | #define wxSTC_KEYWORDSET_MAX 8 | |
280 | #define wxSTC_TYPE_BOOLEAN 0 | |
281 | #define wxSTC_TYPE_INTEGER 1 | |
282 | #define wxSTC_TYPE_STRING 2 | |
283 | ||
284 | /// Notifications | |
285 | /// Type of modification and the action which caused the modification. | |
286 | /// These are defined as a bit mask to make it easy to specify which notifications are wanted. | |
287 | /// One bit is set from each of SC_MOD_* and SC_PERFORMED_*. | |
288 | #define wxSTC_MOD_INSERTTEXT 0x1 | |
289 | #define wxSTC_MOD_DELETETEXT 0x2 | |
290 | #define wxSTC_MOD_CHANGESTYLE 0x4 | |
291 | #define wxSTC_MOD_CHANGEFOLD 0x8 | |
292 | #define wxSTC_PERFORMED_USER 0x10 | |
293 | #define wxSTC_PERFORMED_UNDO 0x20 | |
294 | #define wxSTC_PERFORMED_REDO 0x40 | |
295 | #define wxSTC_MULTISTEPUNDOREDO 0x80 | |
296 | #define wxSTC_LASTSTEPINUNDOREDO 0x100 | |
297 | #define wxSTC_MOD_CHANGEMARKER 0x200 | |
298 | #define wxSTC_MOD_BEFOREINSERT 0x400 | |
299 | #define wxSTC_MOD_BEFOREDELETE 0x800 | |
300 | #define wxSTC_MULTILINEUNDOREDO 0x1000 | |
301 | #define wxSTC_STARTACTION 0x2000 | |
302 | #define wxSTC_MOD_CHANGEINDICATOR 0x4000 | |
303 | #define wxSTC_MOD_CHANGELINESTATE 0x8000 | |
304 | #define wxSTC_MOD_CHANGEMARGIN 0x10000 | |
305 | #define wxSTC_MOD_CHANGEANNOTATION 0x20000 | |
306 | #define wxSTC_MOD_CONTAINER 0x40000 | |
307 | #define wxSTC_MOD_LEXERSTATE 0x80000 | |
308 | #define wxSTC_MODEVENTMASKALL 0xFFFFF | |
309 | #define wxSTC_UPDATE_CONTENT 0x1 | |
310 | #define wxSTC_UPDATE_SELECTION 0x2 | |
311 | #define wxSTC_UPDATE_V_SCROLL 0x4 | |
312 | #define wxSTC_UPDATE_H_SCROLL 0x8 | |
313 | ||
314 | /// Symbolic key codes and modifier flags. | |
315 | /// ASCII and other printable characters below 256. | |
316 | /// Extended keys above 300. | |
317 | #define wxSTC_KEY_DOWN 300 | |
318 | #define wxSTC_KEY_UP 301 | |
319 | #define wxSTC_KEY_LEFT 302 | |
320 | #define wxSTC_KEY_RIGHT 303 | |
321 | #define wxSTC_KEY_HOME 304 | |
322 | #define wxSTC_KEY_END 305 | |
323 | #define wxSTC_KEY_PRIOR 306 | |
324 | #define wxSTC_KEY_NEXT 307 | |
325 | #define wxSTC_KEY_DELETE 308 | |
326 | #define wxSTC_KEY_INSERT 309 | |
327 | #define wxSTC_KEY_ESCAPE 7 | |
328 | #define wxSTC_KEY_BACK 8 | |
329 | #define wxSTC_KEY_TAB 9 | |
330 | #define wxSTC_KEY_RETURN 13 | |
331 | #define wxSTC_KEY_ADD 310 | |
332 | #define wxSTC_KEY_SUBTRACT 311 | |
333 | #define wxSTC_KEY_DIVIDE 312 | |
334 | #define wxSTC_KEY_WIN 313 | |
335 | #define wxSTC_KEY_RWIN 314 | |
336 | #define wxSTC_KEY_MENU 315 | |
337 | #define wxSTC_SCMOD_NORM 0 | |
338 | #define wxSTC_SCMOD_SHIFT 1 | |
339 | #define wxSTC_SCMOD_CTRL 2 | |
340 | #define wxSTC_SCMOD_ALT 4 | |
341 | #define wxSTC_SCMOD_SUPER 8 | |
342 | #define wxSTC_SCMOD_META 16 | |
343 | ||
344 | /// For SciLexer.h | |
345 | #define wxSTC_LEX_CONTAINER 0 | |
346 | #define wxSTC_LEX_NULL 1 | |
347 | #define wxSTC_LEX_PYTHON 2 | |
348 | #define wxSTC_LEX_CPP 3 | |
349 | #define wxSTC_LEX_HTML 4 | |
350 | #define wxSTC_LEX_XML 5 | |
351 | #define wxSTC_LEX_PERL 6 | |
352 | #define wxSTC_LEX_SQL 7 | |
353 | #define wxSTC_LEX_VB 8 | |
354 | #define wxSTC_LEX_PROPERTIES 9 | |
355 | #define wxSTC_LEX_ERRORLIST 10 | |
356 | #define wxSTC_LEX_MAKEFILE 11 | |
357 | #define wxSTC_LEX_BATCH 12 | |
358 | #define wxSTC_LEX_XCODE 13 | |
359 | #define wxSTC_LEX_LATEX 14 | |
360 | #define wxSTC_LEX_LUA 15 | |
361 | #define wxSTC_LEX_DIFF 16 | |
362 | #define wxSTC_LEX_CONF 17 | |
363 | #define wxSTC_LEX_PASCAL 18 | |
364 | #define wxSTC_LEX_AVE 19 | |
365 | #define wxSTC_LEX_ADA 20 | |
366 | #define wxSTC_LEX_LISP 21 | |
367 | #define wxSTC_LEX_RUBY 22 | |
368 | #define wxSTC_LEX_EIFFEL 23 | |
369 | #define wxSTC_LEX_EIFFELKW 24 | |
370 | #define wxSTC_LEX_TCL 25 | |
371 | #define wxSTC_LEX_NNCRONTAB 26 | |
372 | #define wxSTC_LEX_BULLANT 27 | |
373 | #define wxSTC_LEX_VBSCRIPT 28 | |
374 | #define wxSTC_LEX_BAAN 31 | |
375 | #define wxSTC_LEX_MATLAB 32 | |
376 | #define wxSTC_LEX_SCRIPTOL 33 | |
377 | #define wxSTC_LEX_ASM 34 | |
378 | #define wxSTC_LEX_CPPNOCASE 35 | |
379 | #define wxSTC_LEX_FORTRAN 36 | |
380 | #define wxSTC_LEX_F77 37 | |
381 | #define wxSTC_LEX_CSS 38 | |
382 | #define wxSTC_LEX_POV 39 | |
383 | #define wxSTC_LEX_LOUT 40 | |
384 | #define wxSTC_LEX_ESCRIPT 41 | |
385 | #define wxSTC_LEX_PS 42 | |
386 | #define wxSTC_LEX_NSIS 43 | |
387 | #define wxSTC_LEX_MMIXAL 44 | |
388 | #define wxSTC_LEX_CLW 45 | |
389 | #define wxSTC_LEX_CLWNOCASE 46 | |
390 | #define wxSTC_LEX_LOT 47 | |
391 | #define wxSTC_LEX_YAML 48 | |
392 | #define wxSTC_LEX_TEX 49 | |
393 | #define wxSTC_LEX_METAPOST 50 | |
394 | #define wxSTC_LEX_POWERBASIC 51 | |
395 | #define wxSTC_LEX_FORTH 52 | |
396 | #define wxSTC_LEX_ERLANG 53 | |
397 | #define wxSTC_LEX_OCTAVE 54 | |
398 | #define wxSTC_LEX_MSSQL 55 | |
399 | #define wxSTC_LEX_VERILOG 56 | |
400 | #define wxSTC_LEX_KIX 57 | |
401 | #define wxSTC_LEX_GUI4CLI 58 | |
402 | #define wxSTC_LEX_SPECMAN 59 | |
403 | #define wxSTC_LEX_AU3 60 | |
404 | #define wxSTC_LEX_APDL 61 | |
405 | #define wxSTC_LEX_BASH 62 | |
406 | #define wxSTC_LEX_ASN1 63 | |
407 | #define wxSTC_LEX_VHDL 64 | |
408 | #define wxSTC_LEX_CAML 65 | |
409 | #define wxSTC_LEX_BLITZBASIC 66 | |
410 | #define wxSTC_LEX_PUREBASIC 67 | |
411 | #define wxSTC_LEX_HASKELL 68 | |
412 | #define wxSTC_LEX_PHPSCRIPT 69 | |
413 | #define wxSTC_LEX_TADS3 70 | |
414 | #define wxSTC_LEX_REBOL 71 | |
415 | #define wxSTC_LEX_SMALLTALK 72 | |
416 | #define wxSTC_LEX_FLAGSHIP 73 | |
417 | #define wxSTC_LEX_CSOUND 74 | |
418 | #define wxSTC_LEX_FREEBASIC 75 | |
419 | #define wxSTC_LEX_INNOSETUP 76 | |
420 | #define wxSTC_LEX_OPAL 77 | |
421 | #define wxSTC_LEX_SPICE 78 | |
422 | #define wxSTC_LEX_D 79 | |
423 | #define wxSTC_LEX_CMAKE 80 | |
424 | #define wxSTC_LEX_GAP 81 | |
425 | #define wxSTC_LEX_PLM 82 | |
426 | #define wxSTC_LEX_PROGRESS 83 | |
427 | #define wxSTC_LEX_ABAQUS 84 | |
428 | #define wxSTC_LEX_ASYMPTOTE 85 | |
429 | #define wxSTC_LEX_R 86 | |
430 | #define wxSTC_LEX_MAGIK 87 | |
431 | #define wxSTC_LEX_POWERSHELL 88 | |
432 | #define wxSTC_LEX_MYSQL 89 | |
433 | #define wxSTC_LEX_PO 90 | |
434 | #define wxSTC_LEX_TAL 91 | |
435 | #define wxSTC_LEX_COBOL 92 | |
436 | #define wxSTC_LEX_TACL 93 | |
437 | #define wxSTC_LEX_SORCUS 94 | |
438 | #define wxSTC_LEX_POWERPRO 95 | |
439 | #define wxSTC_LEX_NIMROD 96 | |
440 | #define wxSTC_LEX_SML 97 | |
441 | #define wxSTC_LEX_MARKDOWN 98 | |
442 | #define wxSTC_LEX_TXT2TAGS 99 | |
443 | #define wxSTC_LEX_A68K 100 | |
444 | #define wxSTC_LEX_MODULA 101 | |
445 | #define wxSTC_LEX_COFFEESCRIPT 102 | |
446 | #define wxSTC_LEX_TCMD 103 | |
447 | #define wxSTC_LEX_AVS 104 | |
448 | #define wxSTC_LEX_ECL 105 | |
449 | #define wxSTC_LEX_OSCRIPT 106 | |
450 | #define wxSTC_LEX_VISUALPROLOG 107 | |
451 | ||
452 | /// When a lexer specifies its language as SCLEX_AUTOMATIC it receives a | |
453 | /// value assigned in sequence from SCLEX_AUTOMATIC+1. | |
454 | #define wxSTC_LEX_AUTOMATIC 1000 | |
455 | ||
456 | /// Lexical states for SCLEX_PYTHON | |
457 | #define wxSTC_P_DEFAULT 0 | |
458 | #define wxSTC_P_COMMENTLINE 1 | |
459 | #define wxSTC_P_NUMBER 2 | |
460 | #define wxSTC_P_STRING 3 | |
461 | #define wxSTC_P_CHARACTER 4 | |
462 | #define wxSTC_P_WORD 5 | |
463 | #define wxSTC_P_TRIPLE 6 | |
464 | #define wxSTC_P_TRIPLEDOUBLE 7 | |
465 | #define wxSTC_P_CLASSNAME 8 | |
466 | #define wxSTC_P_DEFNAME 9 | |
467 | #define wxSTC_P_OPERATOR 10 | |
468 | #define wxSTC_P_IDENTIFIER 11 | |
469 | #define wxSTC_P_COMMENTBLOCK 12 | |
470 | #define wxSTC_P_STRINGEOL 13 | |
471 | #define wxSTC_P_WORD2 14 | |
472 | #define wxSTC_P_DECORATOR 15 | |
473 | ||
474 | /// Lexical states for SCLEX_CPP | |
475 | #define wxSTC_C_DEFAULT 0 | |
476 | #define wxSTC_C_COMMENT 1 | |
477 | #define wxSTC_C_COMMENTLINE 2 | |
478 | #define wxSTC_C_COMMENTDOC 3 | |
479 | #define wxSTC_C_NUMBER 4 | |
480 | #define wxSTC_C_WORD 5 | |
481 | #define wxSTC_C_STRING 6 | |
482 | #define wxSTC_C_CHARACTER 7 | |
483 | #define wxSTC_C_UUID 8 | |
484 | #define wxSTC_C_PREPROCESSOR 9 | |
485 | #define wxSTC_C_OPERATOR 10 | |
486 | #define wxSTC_C_IDENTIFIER 11 | |
487 | #define wxSTC_C_STRINGEOL 12 | |
488 | #define wxSTC_C_VERBATIM 13 | |
489 | #define wxSTC_C_REGEX 14 | |
490 | #define wxSTC_C_COMMENTLINEDOC 15 | |
491 | #define wxSTC_C_WORD2 16 | |
492 | #define wxSTC_C_COMMENTDOCKEYWORD 17 | |
493 | #define wxSTC_C_COMMENTDOCKEYWORDERROR 18 | |
494 | #define wxSTC_C_GLOBALCLASS 19 | |
495 | #define wxSTC_C_STRINGRAW 20 | |
496 | #define wxSTC_C_TRIPLEVERBATIM 21 | |
497 | #define wxSTC_C_HASHQUOTEDSTRING 22 | |
498 | #define wxSTC_C_PREPROCESSORCOMMENT 23 | |
499 | ||
500 | /// Lexical states for SCLEX_D | |
501 | #define wxSTC_D_DEFAULT 0 | |
502 | #define wxSTC_D_COMMENT 1 | |
503 | #define wxSTC_D_COMMENTLINE 2 | |
504 | #define wxSTC_D_COMMENTDOC 3 | |
505 | #define wxSTC_D_COMMENTNESTED 4 | |
506 | #define wxSTC_D_NUMBER 5 | |
507 | #define wxSTC_D_WORD 6 | |
508 | #define wxSTC_D_WORD2 7 | |
509 | #define wxSTC_D_WORD3 8 | |
510 | #define wxSTC_D_TYPEDEF 9 | |
511 | #define wxSTC_D_STRING 10 | |
512 | #define wxSTC_D_STRINGEOL 11 | |
513 | #define wxSTC_D_CHARACTER 12 | |
514 | #define wxSTC_D_OPERATOR 13 | |
515 | #define wxSTC_D_IDENTIFIER 14 | |
516 | #define wxSTC_D_COMMENTLINEDOC 15 | |
517 | #define wxSTC_D_COMMENTDOCKEYWORD 16 | |
518 | #define wxSTC_D_COMMENTDOCKEYWORDERROR 17 | |
519 | #define wxSTC_D_STRINGB 18 | |
520 | #define wxSTC_D_STRINGR 19 | |
521 | #define wxSTC_D_WORD5 20 | |
522 | #define wxSTC_D_WORD6 21 | |
523 | #define wxSTC_D_WORD7 22 | |
524 | ||
525 | /// Lexical states for SCLEX_TCL | |
526 | #define wxSTC_TCL_DEFAULT 0 | |
527 | #define wxSTC_TCL_COMMENT 1 | |
528 | #define wxSTC_TCL_COMMENTLINE 2 | |
529 | #define wxSTC_TCL_NUMBER 3 | |
530 | #define wxSTC_TCL_WORD_IN_QUOTE 4 | |
531 | #define wxSTC_TCL_IN_QUOTE 5 | |
532 | #define wxSTC_TCL_OPERATOR 6 | |
533 | #define wxSTC_TCL_IDENTIFIER 7 | |
534 | #define wxSTC_TCL_SUBSTITUTION 8 | |
535 | #define wxSTC_TCL_SUB_BRACE 9 | |
536 | #define wxSTC_TCL_MODIFIER 10 | |
537 | #define wxSTC_TCL_EXPAND 11 | |
538 | #define wxSTC_TCL_WORD 12 | |
539 | #define wxSTC_TCL_WORD2 13 | |
540 | #define wxSTC_TCL_WORD3 14 | |
541 | #define wxSTC_TCL_WORD4 15 | |
542 | #define wxSTC_TCL_WORD5 16 | |
543 | #define wxSTC_TCL_WORD6 17 | |
544 | #define wxSTC_TCL_WORD7 18 | |
545 | #define wxSTC_TCL_WORD8 19 | |
546 | #define wxSTC_TCL_COMMENT_BOX 20 | |
547 | #define wxSTC_TCL_BLOCK_COMMENT 21 | |
548 | ||
549 | /// Lexical states for SCLEX_HTML, SCLEX_XML | |
550 | #define wxSTC_H_DEFAULT 0 | |
551 | #define wxSTC_H_TAG 1 | |
552 | #define wxSTC_H_TAGUNKNOWN 2 | |
553 | #define wxSTC_H_ATTRIBUTE 3 | |
554 | #define wxSTC_H_ATTRIBUTEUNKNOWN 4 | |
555 | #define wxSTC_H_NUMBER 5 | |
556 | #define wxSTC_H_DOUBLESTRING 6 | |
557 | #define wxSTC_H_SINGLESTRING 7 | |
558 | #define wxSTC_H_OTHER 8 | |
559 | #define wxSTC_H_COMMENT 9 | |
560 | #define wxSTC_H_ENTITY 10 | |
561 | ||
562 | /// XML and ASP | |
563 | #define wxSTC_H_TAGEND 11 | |
564 | #define wxSTC_H_XMLSTART 12 | |
565 | #define wxSTC_H_XMLEND 13 | |
566 | #define wxSTC_H_SCRIPT 14 | |
567 | #define wxSTC_H_ASP 15 | |
568 | #define wxSTC_H_ASPAT 16 | |
569 | #define wxSTC_H_CDATA 17 | |
570 | #define wxSTC_H_QUESTION 18 | |
571 | ||
572 | /// More HTML | |
573 | #define wxSTC_H_VALUE 19 | |
574 | ||
575 | /// X-Code | |
576 | #define wxSTC_H_XCCOMMENT 20 | |
577 | ||
578 | /// SGML | |
579 | #define wxSTC_H_SGML_DEFAULT 21 | |
580 | #define wxSTC_H_SGML_COMMAND 22 | |
581 | #define wxSTC_H_SGML_1ST_PARAM 23 | |
582 | #define wxSTC_H_SGML_DOUBLESTRING 24 | |
583 | #define wxSTC_H_SGML_SIMPLESTRING 25 | |
584 | #define wxSTC_H_SGML_ERROR 26 | |
585 | #define wxSTC_H_SGML_SPECIAL 27 | |
586 | #define wxSTC_H_SGML_ENTITY 28 | |
587 | #define wxSTC_H_SGML_COMMENT 29 | |
588 | #define wxSTC_H_SGML_1ST_PARAM_COMMENT 30 | |
589 | #define wxSTC_H_SGML_BLOCK_DEFAULT 31 | |
590 | ||
591 | /// Embedded Javascript | |
592 | #define wxSTC_HJ_START 40 | |
593 | #define wxSTC_HJ_DEFAULT 41 | |
594 | #define wxSTC_HJ_COMMENT 42 | |
595 | #define wxSTC_HJ_COMMENTLINE 43 | |
596 | #define wxSTC_HJ_COMMENTDOC 44 | |
597 | #define wxSTC_HJ_NUMBER 45 | |
598 | #define wxSTC_HJ_WORD 46 | |
599 | #define wxSTC_HJ_KEYWORD 47 | |
600 | #define wxSTC_HJ_DOUBLESTRING 48 | |
601 | #define wxSTC_HJ_SINGLESTRING 49 | |
602 | #define wxSTC_HJ_SYMBOLS 50 | |
603 | #define wxSTC_HJ_STRINGEOL 51 | |
604 | #define wxSTC_HJ_REGEX 52 | |
605 | ||
606 | /// ASP Javascript | |
607 | #define wxSTC_HJA_START 55 | |
608 | #define wxSTC_HJA_DEFAULT 56 | |
609 | #define wxSTC_HJA_COMMENT 57 | |
610 | #define wxSTC_HJA_COMMENTLINE 58 | |
611 | #define wxSTC_HJA_COMMENTDOC 59 | |
612 | #define wxSTC_HJA_NUMBER 60 | |
613 | #define wxSTC_HJA_WORD 61 | |
614 | #define wxSTC_HJA_KEYWORD 62 | |
615 | #define wxSTC_HJA_DOUBLESTRING 63 | |
616 | #define wxSTC_HJA_SINGLESTRING 64 | |
617 | #define wxSTC_HJA_SYMBOLS 65 | |
618 | #define wxSTC_HJA_STRINGEOL 66 | |
619 | #define wxSTC_HJA_REGEX 67 | |
620 | ||
621 | /// Embedded VBScript | |
622 | #define wxSTC_HB_START 70 | |
623 | #define wxSTC_HB_DEFAULT 71 | |
624 | #define wxSTC_HB_COMMENTLINE 72 | |
625 | #define wxSTC_HB_NUMBER 73 | |
626 | #define wxSTC_HB_WORD 74 | |
627 | #define wxSTC_HB_STRING 75 | |
628 | #define wxSTC_HB_IDENTIFIER 76 | |
629 | #define wxSTC_HB_STRINGEOL 77 | |
630 | ||
631 | /// ASP VBScript | |
632 | #define wxSTC_HBA_START 80 | |
633 | #define wxSTC_HBA_DEFAULT 81 | |
634 | #define wxSTC_HBA_COMMENTLINE 82 | |
635 | #define wxSTC_HBA_NUMBER 83 | |
636 | #define wxSTC_HBA_WORD 84 | |
637 | #define wxSTC_HBA_STRING 85 | |
638 | #define wxSTC_HBA_IDENTIFIER 86 | |
639 | #define wxSTC_HBA_STRINGEOL 87 | |
640 | ||
641 | /// Embedded Python | |
642 | #define wxSTC_HP_START 90 | |
643 | #define wxSTC_HP_DEFAULT 91 | |
644 | #define wxSTC_HP_COMMENTLINE 92 | |
645 | #define wxSTC_HP_NUMBER 93 | |
646 | #define wxSTC_HP_STRING 94 | |
647 | #define wxSTC_HP_CHARACTER 95 | |
648 | #define wxSTC_HP_WORD 96 | |
649 | #define wxSTC_HP_TRIPLE 97 | |
650 | #define wxSTC_HP_TRIPLEDOUBLE 98 | |
651 | #define wxSTC_HP_CLASSNAME 99 | |
652 | #define wxSTC_HP_DEFNAME 100 | |
653 | #define wxSTC_HP_OPERATOR 101 | |
654 | #define wxSTC_HP_IDENTIFIER 102 | |
655 | ||
656 | /// PHP | |
657 | #define wxSTC_HPHP_COMPLEX_VARIABLE 104 | |
658 | ||
659 | /// ASP Python | |
660 | #define wxSTC_HPA_START 105 | |
661 | #define wxSTC_HPA_DEFAULT 106 | |
662 | #define wxSTC_HPA_COMMENTLINE 107 | |
663 | #define wxSTC_HPA_NUMBER 108 | |
664 | #define wxSTC_HPA_STRING 109 | |
665 | #define wxSTC_HPA_CHARACTER 110 | |
666 | #define wxSTC_HPA_WORD 111 | |
667 | #define wxSTC_HPA_TRIPLE 112 | |
668 | #define wxSTC_HPA_TRIPLEDOUBLE 113 | |
669 | #define wxSTC_HPA_CLASSNAME 114 | |
670 | #define wxSTC_HPA_DEFNAME 115 | |
671 | #define wxSTC_HPA_OPERATOR 116 | |
672 | #define wxSTC_HPA_IDENTIFIER 117 | |
673 | ||
674 | /// PHP | |
675 | #define wxSTC_HPHP_DEFAULT 118 | |
676 | #define wxSTC_HPHP_HSTRING 119 | |
677 | #define wxSTC_HPHP_SIMPLESTRING 120 | |
678 | #define wxSTC_HPHP_WORD 121 | |
679 | #define wxSTC_HPHP_NUMBER 122 | |
680 | #define wxSTC_HPHP_VARIABLE 123 | |
681 | #define wxSTC_HPHP_COMMENT 124 | |
682 | #define wxSTC_HPHP_COMMENTLINE 125 | |
683 | #define wxSTC_HPHP_HSTRING_VARIABLE 126 | |
684 | #define wxSTC_HPHP_OPERATOR 127 | |
685 | ||
686 | /// Lexical states for SCLEX_PERL | |
687 | #define wxSTC_PL_DEFAULT 0 | |
688 | #define wxSTC_PL_ERROR 1 | |
689 | #define wxSTC_PL_COMMENTLINE 2 | |
690 | #define wxSTC_PL_POD 3 | |
691 | #define wxSTC_PL_NUMBER 4 | |
692 | #define wxSTC_PL_WORD 5 | |
693 | #define wxSTC_PL_STRING 6 | |
694 | #define wxSTC_PL_CHARACTER 7 | |
695 | #define wxSTC_PL_PUNCTUATION 8 | |
696 | #define wxSTC_PL_PREPROCESSOR 9 | |
697 | #define wxSTC_PL_OPERATOR 10 | |
698 | #define wxSTC_PL_IDENTIFIER 11 | |
699 | #define wxSTC_PL_SCALAR 12 | |
700 | #define wxSTC_PL_ARRAY 13 | |
701 | #define wxSTC_PL_HASH 14 | |
702 | #define wxSTC_PL_SYMBOLTABLE 15 | |
703 | #define wxSTC_PL_VARIABLE_INDEXER 16 | |
704 | #define wxSTC_PL_REGEX 17 | |
705 | #define wxSTC_PL_REGSUBST 18 | |
706 | #define wxSTC_PL_LONGQUOTE 19 | |
707 | #define wxSTC_PL_BACKTICKS 20 | |
708 | #define wxSTC_PL_DATASECTION 21 | |
709 | #define wxSTC_PL_HERE_DELIM 22 | |
710 | #define wxSTC_PL_HERE_Q 23 | |
711 | #define wxSTC_PL_HERE_QQ 24 | |
712 | #define wxSTC_PL_HERE_QX 25 | |
713 | #define wxSTC_PL_STRING_Q 26 | |
714 | #define wxSTC_PL_STRING_QQ 27 | |
715 | #define wxSTC_PL_STRING_QX 28 | |
716 | #define wxSTC_PL_STRING_QR 29 | |
717 | #define wxSTC_PL_STRING_QW 30 | |
718 | #define wxSTC_PL_POD_VERB 31 | |
719 | #define wxSTC_PL_SUB_PROTOTYPE 40 | |
720 | #define wxSTC_PL_FORMAT_IDENT 41 | |
721 | #define wxSTC_PL_FORMAT 42 | |
722 | #define wxSTC_PL_STRING_VAR 43 | |
723 | #define wxSTC_PL_XLAT 44 | |
724 | #define wxSTC_PL_REGEX_VAR 54 | |
725 | #define wxSTC_PL_REGSUBST_VAR 55 | |
726 | #define wxSTC_PL_BACKTICKS_VAR 57 | |
727 | #define wxSTC_PL_HERE_QQ_VAR 61 | |
728 | #define wxSTC_PL_HERE_QX_VAR 62 | |
729 | #define wxSTC_PL_STRING_QQ_VAR 64 | |
730 | #define wxSTC_PL_STRING_QX_VAR 65 | |
731 | #define wxSTC_PL_STRING_QR_VAR 66 | |
732 | ||
733 | /// Lexical states for SCLEX_RUBY | |
734 | #define wxSTC_RB_DEFAULT 0 | |
735 | #define wxSTC_RB_ERROR 1 | |
736 | #define wxSTC_RB_COMMENTLINE 2 | |
737 | #define wxSTC_RB_POD 3 | |
738 | #define wxSTC_RB_NUMBER 4 | |
739 | #define wxSTC_RB_WORD 5 | |
740 | #define wxSTC_RB_STRING 6 | |
741 | #define wxSTC_RB_CHARACTER 7 | |
742 | #define wxSTC_RB_CLASSNAME 8 | |
743 | #define wxSTC_RB_DEFNAME 9 | |
744 | #define wxSTC_RB_OPERATOR 10 | |
745 | #define wxSTC_RB_IDENTIFIER 11 | |
746 | #define wxSTC_RB_REGEX 12 | |
747 | #define wxSTC_RB_GLOBAL 13 | |
748 | #define wxSTC_RB_SYMBOL 14 | |
749 | #define wxSTC_RB_MODULE_NAME 15 | |
750 | #define wxSTC_RB_INSTANCE_VAR 16 | |
751 | #define wxSTC_RB_CLASS_VAR 17 | |
752 | #define wxSTC_RB_BACKTICKS 18 | |
753 | #define wxSTC_RB_DATASECTION 19 | |
754 | #define wxSTC_RB_HERE_DELIM 20 | |
755 | #define wxSTC_RB_HERE_Q 21 | |
756 | #define wxSTC_RB_HERE_QQ 22 | |
757 | #define wxSTC_RB_HERE_QX 23 | |
758 | #define wxSTC_RB_STRING_Q 24 | |
759 | #define wxSTC_RB_STRING_QQ 25 | |
760 | #define wxSTC_RB_STRING_QX 26 | |
761 | #define wxSTC_RB_STRING_QR 27 | |
762 | #define wxSTC_RB_STRING_QW 28 | |
763 | #define wxSTC_RB_WORD_DEMOTED 29 | |
764 | #define wxSTC_RB_STDIN 30 | |
765 | #define wxSTC_RB_STDOUT 31 | |
766 | #define wxSTC_RB_STDERR 40 | |
767 | #define wxSTC_RB_UPPER_BOUND 41 | |
768 | ||
769 | /// Lexical states for SCLEX_VB, SCLEX_VBSCRIPT, SCLEX_POWERBASIC | |
770 | #define wxSTC_B_DEFAULT 0 | |
771 | #define wxSTC_B_COMMENT 1 | |
772 | #define wxSTC_B_NUMBER 2 | |
773 | #define wxSTC_B_KEYWORD 3 | |
774 | #define wxSTC_B_STRING 4 | |
775 | #define wxSTC_B_PREPROCESSOR 5 | |
776 | #define wxSTC_B_OPERATOR 6 | |
777 | #define wxSTC_B_IDENTIFIER 7 | |
778 | #define wxSTC_B_DATE 8 | |
779 | #define wxSTC_B_STRINGEOL 9 | |
780 | #define wxSTC_B_KEYWORD2 10 | |
781 | #define wxSTC_B_KEYWORD3 11 | |
782 | #define wxSTC_B_KEYWORD4 12 | |
783 | #define wxSTC_B_CONSTANT 13 | |
784 | #define wxSTC_B_ASM 14 | |
785 | #define wxSTC_B_LABEL 15 | |
786 | #define wxSTC_B_ERROR 16 | |
787 | #define wxSTC_B_HEXNUMBER 17 | |
788 | #define wxSTC_B_BINNUMBER 18 | |
789 | ||
790 | /// Lexical states for SCLEX_PROPERTIES | |
791 | #define wxSTC_PROPS_DEFAULT 0 | |
792 | #define wxSTC_PROPS_COMMENT 1 | |
793 | #define wxSTC_PROPS_SECTION 2 | |
794 | #define wxSTC_PROPS_ASSIGNMENT 3 | |
795 | #define wxSTC_PROPS_DEFVAL 4 | |
796 | #define wxSTC_PROPS_KEY 5 | |
797 | ||
798 | /// Lexical states for SCLEX_LATEX | |
799 | #define wxSTC_L_DEFAULT 0 | |
800 | #define wxSTC_L_COMMAND 1 | |
801 | #define wxSTC_L_TAG 2 | |
802 | #define wxSTC_L_MATH 3 | |
803 | #define wxSTC_L_COMMENT 4 | |
804 | #define wxSTC_L_TAG2 5 | |
805 | #define wxSTC_L_MATH2 6 | |
806 | #define wxSTC_L_COMMENT2 7 | |
807 | #define wxSTC_L_VERBATIM 8 | |
808 | #define wxSTC_L_SHORTCMD 9 | |
809 | #define wxSTC_L_SPECIAL 10 | |
810 | #define wxSTC_L_CMDOPT 11 | |
811 | #define wxSTC_L_ERROR 12 | |
812 | ||
813 | /// Lexical states for SCLEX_LUA | |
814 | #define wxSTC_LUA_DEFAULT 0 | |
815 | #define wxSTC_LUA_COMMENT 1 | |
816 | #define wxSTC_LUA_COMMENTLINE 2 | |
817 | #define wxSTC_LUA_COMMENTDOC 3 | |
818 | #define wxSTC_LUA_NUMBER 4 | |
819 | #define wxSTC_LUA_WORD 5 | |
820 | #define wxSTC_LUA_STRING 6 | |
821 | #define wxSTC_LUA_CHARACTER 7 | |
822 | #define wxSTC_LUA_LITERALSTRING 8 | |
823 | #define wxSTC_LUA_PREPROCESSOR 9 | |
824 | #define wxSTC_LUA_OPERATOR 10 | |
825 | #define wxSTC_LUA_IDENTIFIER 11 | |
826 | #define wxSTC_LUA_STRINGEOL 12 | |
827 | #define wxSTC_LUA_WORD2 13 | |
828 | #define wxSTC_LUA_WORD3 14 | |
829 | #define wxSTC_LUA_WORD4 15 | |
830 | #define wxSTC_LUA_WORD5 16 | |
831 | #define wxSTC_LUA_WORD6 17 | |
832 | #define wxSTC_LUA_WORD7 18 | |
833 | #define wxSTC_LUA_WORD8 19 | |
834 | #define wxSTC_LUA_LABEL 20 | |
835 | ||
836 | /// Lexical states for SCLEX_ERRORLIST | |
837 | #define wxSTC_ERR_DEFAULT 0 | |
838 | #define wxSTC_ERR_PYTHON 1 | |
839 | #define wxSTC_ERR_GCC 2 | |
840 | #define wxSTC_ERR_MS 3 | |
841 | #define wxSTC_ERR_CMD 4 | |
842 | #define wxSTC_ERR_BORLAND 5 | |
843 | #define wxSTC_ERR_PERL 6 | |
844 | #define wxSTC_ERR_NET 7 | |
845 | #define wxSTC_ERR_LUA 8 | |
846 | #define wxSTC_ERR_CTAG 9 | |
847 | #define wxSTC_ERR_DIFF_CHANGED 10 | |
848 | #define wxSTC_ERR_DIFF_ADDITION 11 | |
849 | #define wxSTC_ERR_DIFF_DELETION 12 | |
850 | #define wxSTC_ERR_DIFF_MESSAGE 13 | |
851 | #define wxSTC_ERR_PHP 14 | |
852 | #define wxSTC_ERR_ELF 15 | |
853 | #define wxSTC_ERR_IFC 16 | |
854 | #define wxSTC_ERR_IFORT 17 | |
855 | #define wxSTC_ERR_ABSF 18 | |
856 | #define wxSTC_ERR_TIDY 19 | |
857 | #define wxSTC_ERR_JAVA_STACK 20 | |
858 | #define wxSTC_ERR_VALUE 21 | |
859 | ||
860 | /// Lexical states for SCLEX_BATCH | |
861 | #define wxSTC_BAT_DEFAULT 0 | |
862 | #define wxSTC_BAT_COMMENT 1 | |
863 | #define wxSTC_BAT_WORD 2 | |
864 | #define wxSTC_BAT_LABEL 3 | |
865 | #define wxSTC_BAT_HIDE 4 | |
866 | #define wxSTC_BAT_COMMAND 5 | |
867 | #define wxSTC_BAT_IDENTIFIER 6 | |
868 | #define wxSTC_BAT_OPERATOR 7 | |
869 | ||
870 | /// Lexical states for SCLEX_TCMD | |
871 | #define wxSTC_TCMD_DEFAULT 0 | |
872 | #define wxSTC_TCMD_COMMENT 1 | |
873 | #define wxSTC_TCMD_WORD 2 | |
874 | #define wxSTC_TCMD_LABEL 3 | |
875 | #define wxSTC_TCMD_HIDE 4 | |
876 | #define wxSTC_TCMD_COMMAND 5 | |
877 | #define wxSTC_TCMD_IDENTIFIER 6 | |
878 | #define wxSTC_TCMD_OPERATOR 7 | |
879 | #define wxSTC_TCMD_ENVIRONMENT 8 | |
880 | #define wxSTC_TCMD_EXPANSION 9 | |
881 | #define wxSTC_TCMD_CLABEL 10 | |
882 | ||
883 | /// Lexical states for SCLEX_MAKEFILE | |
884 | #define wxSTC_MAKE_DEFAULT 0 | |
885 | #define wxSTC_MAKE_COMMENT 1 | |
886 | #define wxSTC_MAKE_PREPROCESSOR 2 | |
887 | #define wxSTC_MAKE_IDENTIFIER 3 | |
888 | #define wxSTC_MAKE_OPERATOR 4 | |
889 | #define wxSTC_MAKE_TARGET 5 | |
890 | #define wxSTC_MAKE_IDEOL 9 | |
891 | ||
892 | /// Lexical states for SCLEX_DIFF | |
893 | #define wxSTC_DIFF_DEFAULT 0 | |
894 | #define wxSTC_DIFF_COMMENT 1 | |
895 | #define wxSTC_DIFF_COMMAND 2 | |
896 | #define wxSTC_DIFF_HEADER 3 | |
897 | #define wxSTC_DIFF_POSITION 4 | |
898 | #define wxSTC_DIFF_DELETED 5 | |
899 | #define wxSTC_DIFF_ADDED 6 | |
900 | #define wxSTC_DIFF_CHANGED 7 | |
901 | ||
902 | /// Lexical states for SCLEX_CONF (Apache Configuration Files Lexer) | |
903 | #define wxSTC_CONF_DEFAULT 0 | |
904 | #define wxSTC_CONF_COMMENT 1 | |
905 | #define wxSTC_CONF_NUMBER 2 | |
906 | #define wxSTC_CONF_IDENTIFIER 3 | |
907 | #define wxSTC_CONF_EXTENSION 4 | |
908 | #define wxSTC_CONF_PARAMETER 5 | |
909 | #define wxSTC_CONF_STRING 6 | |
910 | #define wxSTC_CONF_OPERATOR 7 | |
911 | #define wxSTC_CONF_IP 8 | |
912 | #define wxSTC_CONF_DIRECTIVE 9 | |
913 | ||
914 | /// Lexical states for SCLEX_AVE, Avenue | |
915 | #define wxSTC_AVE_DEFAULT 0 | |
916 | #define wxSTC_AVE_COMMENT 1 | |
917 | #define wxSTC_AVE_NUMBER 2 | |
918 | #define wxSTC_AVE_WORD 3 | |
919 | #define wxSTC_AVE_STRING 6 | |
920 | #define wxSTC_AVE_ENUM 7 | |
921 | #define wxSTC_AVE_STRINGEOL 8 | |
922 | #define wxSTC_AVE_IDENTIFIER 9 | |
923 | #define wxSTC_AVE_OPERATOR 10 | |
924 | #define wxSTC_AVE_WORD1 11 | |
925 | #define wxSTC_AVE_WORD2 12 | |
926 | #define wxSTC_AVE_WORD3 13 | |
927 | #define wxSTC_AVE_WORD4 14 | |
928 | #define wxSTC_AVE_WORD5 15 | |
929 | #define wxSTC_AVE_WORD6 16 | |
930 | ||
931 | /// Lexical states for SCLEX_ADA | |
932 | #define wxSTC_ADA_DEFAULT 0 | |
933 | #define wxSTC_ADA_WORD 1 | |
934 | #define wxSTC_ADA_IDENTIFIER 2 | |
935 | #define wxSTC_ADA_NUMBER 3 | |
936 | #define wxSTC_ADA_DELIMITER 4 | |
937 | #define wxSTC_ADA_CHARACTER 5 | |
938 | #define wxSTC_ADA_CHARACTEREOL 6 | |
939 | #define wxSTC_ADA_STRING 7 | |
940 | #define wxSTC_ADA_STRINGEOL 8 | |
941 | #define wxSTC_ADA_LABEL 9 | |
942 | #define wxSTC_ADA_COMMENTLINE 10 | |
943 | #define wxSTC_ADA_ILLEGAL 11 | |
944 | ||
945 | /// Lexical states for SCLEX_BAAN | |
946 | #define wxSTC_BAAN_DEFAULT 0 | |
947 | #define wxSTC_BAAN_COMMENT 1 | |
948 | #define wxSTC_BAAN_COMMENTDOC 2 | |
949 | #define wxSTC_BAAN_NUMBER 3 | |
950 | #define wxSTC_BAAN_WORD 4 | |
951 | #define wxSTC_BAAN_STRING 5 | |
952 | #define wxSTC_BAAN_PREPROCESSOR 6 | |
953 | #define wxSTC_BAAN_OPERATOR 7 | |
954 | #define wxSTC_BAAN_IDENTIFIER 8 | |
955 | #define wxSTC_BAAN_STRINGEOL 9 | |
956 | #define wxSTC_BAAN_WORD2 10 | |
957 | ||
958 | /// Lexical states for SCLEX_LISP | |
959 | #define wxSTC_LISP_DEFAULT 0 | |
960 | #define wxSTC_LISP_COMMENT 1 | |
961 | #define wxSTC_LISP_NUMBER 2 | |
962 | #define wxSTC_LISP_KEYWORD 3 | |
963 | #define wxSTC_LISP_KEYWORD_KW 4 | |
964 | #define wxSTC_LISP_SYMBOL 5 | |
965 | #define wxSTC_LISP_STRING 6 | |
966 | #define wxSTC_LISP_STRINGEOL 8 | |
967 | #define wxSTC_LISP_IDENTIFIER 9 | |
968 | #define wxSTC_LISP_OPERATOR 10 | |
969 | #define wxSTC_LISP_SPECIAL 11 | |
970 | #define wxSTC_LISP_MULTI_COMMENT 12 | |
971 | ||
972 | /// Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW | |
973 | #define wxSTC_EIFFEL_DEFAULT 0 | |
974 | #define wxSTC_EIFFEL_COMMENTLINE 1 | |
975 | #define wxSTC_EIFFEL_NUMBER 2 | |
976 | #define wxSTC_EIFFEL_WORD 3 | |
977 | #define wxSTC_EIFFEL_STRING 4 | |
978 | #define wxSTC_EIFFEL_CHARACTER 5 | |
979 | #define wxSTC_EIFFEL_OPERATOR 6 | |
980 | #define wxSTC_EIFFEL_IDENTIFIER 7 | |
981 | #define wxSTC_EIFFEL_STRINGEOL 8 | |
982 | ||
983 | /// Lexical states for SCLEX_NNCRONTAB (nnCron crontab Lexer) | |
984 | #define wxSTC_NNCRONTAB_DEFAULT 0 | |
985 | #define wxSTC_NNCRONTAB_COMMENT 1 | |
986 | #define wxSTC_NNCRONTAB_TASK 2 | |
987 | #define wxSTC_NNCRONTAB_SECTION 3 | |
988 | #define wxSTC_NNCRONTAB_KEYWORD 4 | |
989 | #define wxSTC_NNCRONTAB_MODIFIER 5 | |
990 | #define wxSTC_NNCRONTAB_ASTERISK 6 | |
991 | #define wxSTC_NNCRONTAB_NUMBER 7 | |
992 | #define wxSTC_NNCRONTAB_STRING 8 | |
993 | #define wxSTC_NNCRONTAB_ENVIRONMENT 9 | |
994 | #define wxSTC_NNCRONTAB_IDENTIFIER 10 | |
995 | ||
996 | /// Lexical states for SCLEX_FORTH (Forth Lexer) | |
997 | #define wxSTC_FORTH_DEFAULT 0 | |
998 | #define wxSTC_FORTH_COMMENT 1 | |
999 | #define wxSTC_FORTH_COMMENT_ML 2 | |
1000 | #define wxSTC_FORTH_IDENTIFIER 3 | |
1001 | #define wxSTC_FORTH_CONTROL 4 | |
1002 | #define wxSTC_FORTH_KEYWORD 5 | |
1003 | #define wxSTC_FORTH_DEFWORD 6 | |
1004 | #define wxSTC_FORTH_PREWORD1 7 | |
1005 | #define wxSTC_FORTH_PREWORD2 8 | |
1006 | #define wxSTC_FORTH_NUMBER 9 | |
1007 | #define wxSTC_FORTH_STRING 10 | |
1008 | #define wxSTC_FORTH_LOCALE 11 | |
1009 | ||
1010 | /// Lexical states for SCLEX_MATLAB | |
1011 | #define wxSTC_MATLAB_DEFAULT 0 | |
1012 | #define wxSTC_MATLAB_COMMENT 1 | |
1013 | #define wxSTC_MATLAB_COMMAND 2 | |
1014 | #define wxSTC_MATLAB_NUMBER 3 | |
1015 | #define wxSTC_MATLAB_KEYWORD 4 | |
1016 | ||
1017 | /// single quoted string | |
1018 | #define wxSTC_MATLAB_STRING 5 | |
1019 | #define wxSTC_MATLAB_OPERATOR 6 | |
1020 | #define wxSTC_MATLAB_IDENTIFIER 7 | |
1021 | #define wxSTC_MATLAB_DOUBLEQUOTESTRING 8 | |
1022 | ||
1023 | /// Lexical states for SCLEX_SCRIPTOL | |
1024 | #define wxSTC_SCRIPTOL_DEFAULT 0 | |
1025 | #define wxSTC_SCRIPTOL_WHITE 1 | |
1026 | #define wxSTC_SCRIPTOL_COMMENTLINE 2 | |
1027 | #define wxSTC_SCRIPTOL_PERSISTENT 3 | |
1028 | #define wxSTC_SCRIPTOL_CSTYLE 4 | |
1029 | #define wxSTC_SCRIPTOL_COMMENTBLOCK 5 | |
1030 | #define wxSTC_SCRIPTOL_NUMBER 6 | |
1031 | #define wxSTC_SCRIPTOL_STRING 7 | |
1032 | #define wxSTC_SCRIPTOL_CHARACTER 8 | |
1033 | #define wxSTC_SCRIPTOL_STRINGEOL 9 | |
1034 | #define wxSTC_SCRIPTOL_KEYWORD 10 | |
1035 | #define wxSTC_SCRIPTOL_OPERATOR 11 | |
1036 | #define wxSTC_SCRIPTOL_IDENTIFIER 12 | |
1037 | #define wxSTC_SCRIPTOL_TRIPLE 13 | |
1038 | #define wxSTC_SCRIPTOL_CLASSNAME 14 | |
1039 | #define wxSTC_SCRIPTOL_PREPROCESSOR 15 | |
1040 | ||
1041 | /// Lexical states for SCLEX_ASM | |
1042 | #define wxSTC_ASM_DEFAULT 0 | |
1043 | #define wxSTC_ASM_COMMENT 1 | |
1044 | #define wxSTC_ASM_NUMBER 2 | |
1045 | #define wxSTC_ASM_STRING 3 | |
1046 | #define wxSTC_ASM_OPERATOR 4 | |
1047 | #define wxSTC_ASM_IDENTIFIER 5 | |
1048 | #define wxSTC_ASM_CPUINSTRUCTION 6 | |
1049 | #define wxSTC_ASM_MATHINSTRUCTION 7 | |
1050 | #define wxSTC_ASM_REGISTER 8 | |
1051 | #define wxSTC_ASM_DIRECTIVE 9 | |
1052 | #define wxSTC_ASM_DIRECTIVEOPERAND 10 | |
1053 | #define wxSTC_ASM_COMMENTBLOCK 11 | |
1054 | #define wxSTC_ASM_CHARACTER 12 | |
1055 | #define wxSTC_ASM_STRINGEOL 13 | |
1056 | #define wxSTC_ASM_EXTINSTRUCTION 14 | |
1057 | #define wxSTC_ASM_COMMENTDIRECTIVE 15 | |
1058 | ||
1059 | /// Lexical states for SCLEX_FORTRAN | |
1060 | #define wxSTC_F_DEFAULT 0 | |
1061 | #define wxSTC_F_COMMENT 1 | |
1062 | #define wxSTC_F_NUMBER 2 | |
1063 | #define wxSTC_F_STRING1 3 | |
1064 | #define wxSTC_F_STRING2 4 | |
1065 | #define wxSTC_F_STRINGEOL 5 | |
1066 | #define wxSTC_F_OPERATOR 6 | |
1067 | #define wxSTC_F_IDENTIFIER 7 | |
1068 | #define wxSTC_F_WORD 8 | |
1069 | #define wxSTC_F_WORD2 9 | |
1070 | #define wxSTC_F_WORD3 10 | |
1071 | #define wxSTC_F_PREPROCESSOR 11 | |
1072 | #define wxSTC_F_OPERATOR2 12 | |
1073 | #define wxSTC_F_LABEL 13 | |
1074 | #define wxSTC_F_CONTINUATION 14 | |
1075 | ||
1076 | /// Lexical states for SCLEX_CSS | |
1077 | #define wxSTC_CSS_DEFAULT 0 | |
1078 | #define wxSTC_CSS_TAG 1 | |
1079 | #define wxSTC_CSS_CLASS 2 | |
1080 | #define wxSTC_CSS_PSEUDOCLASS 3 | |
1081 | #define wxSTC_CSS_UNKNOWN_PSEUDOCLASS 4 | |
1082 | #define wxSTC_CSS_OPERATOR 5 | |
1083 | #define wxSTC_CSS_IDENTIFIER 6 | |
1084 | #define wxSTC_CSS_UNKNOWN_IDENTIFIER 7 | |
1085 | #define wxSTC_CSS_VALUE 8 | |
1086 | #define wxSTC_CSS_COMMENT 9 | |
1087 | #define wxSTC_CSS_ID 10 | |
1088 | #define wxSTC_CSS_IMPORTANT 11 | |
1089 | #define wxSTC_CSS_DIRECTIVE 12 | |
1090 | #define wxSTC_CSS_DOUBLESTRING 13 | |
1091 | #define wxSTC_CSS_SINGLESTRING 14 | |
1092 | #define wxSTC_CSS_IDENTIFIER2 15 | |
1093 | #define wxSTC_CSS_ATTRIBUTE 16 | |
1094 | #define wxSTC_CSS_IDENTIFIER3 17 | |
1095 | #define wxSTC_CSS_PSEUDOELEMENT 18 | |
1096 | #define wxSTC_CSS_EXTENDED_IDENTIFIER 19 | |
1097 | #define wxSTC_CSS_EXTENDED_PSEUDOCLASS 20 | |
1098 | #define wxSTC_CSS_EXTENDED_PSEUDOELEMENT 21 | |
1099 | #define wxSTC_CSS_MEDIA 22 | |
1100 | #define wxSTC_CSS_VARIABLE 23 | |
1101 | ||
1102 | /// Lexical states for SCLEX_POV | |
1103 | #define wxSTC_POV_DEFAULT 0 | |
1104 | #define wxSTC_POV_COMMENT 1 | |
1105 | #define wxSTC_POV_COMMENTLINE 2 | |
1106 | #define wxSTC_POV_NUMBER 3 | |
1107 | #define wxSTC_POV_OPERATOR 4 | |
1108 | #define wxSTC_POV_IDENTIFIER 5 | |
1109 | #define wxSTC_POV_STRING 6 | |
1110 | #define wxSTC_POV_STRINGEOL 7 | |
1111 | #define wxSTC_POV_DIRECTIVE 8 | |
1112 | #define wxSTC_POV_BADDIRECTIVE 9 | |
1113 | #define wxSTC_POV_WORD2 10 | |
1114 | #define wxSTC_POV_WORD3 11 | |
1115 | #define wxSTC_POV_WORD4 12 | |
1116 | #define wxSTC_POV_WORD5 13 | |
1117 | #define wxSTC_POV_WORD6 14 | |
1118 | #define wxSTC_POV_WORD7 15 | |
1119 | #define wxSTC_POV_WORD8 16 | |
1120 | ||
1121 | /// Lexical states for SCLEX_LOUT | |
1122 | #define wxSTC_LOUT_DEFAULT 0 | |
1123 | #define wxSTC_LOUT_COMMENT 1 | |
1124 | #define wxSTC_LOUT_NUMBER 2 | |
1125 | #define wxSTC_LOUT_WORD 3 | |
1126 | #define wxSTC_LOUT_WORD2 4 | |
1127 | #define wxSTC_LOUT_WORD3 5 | |
1128 | #define wxSTC_LOUT_WORD4 6 | |
1129 | #define wxSTC_LOUT_STRING 7 | |
1130 | #define wxSTC_LOUT_OPERATOR 8 | |
1131 | #define wxSTC_LOUT_IDENTIFIER 9 | |
1132 | #define wxSTC_LOUT_STRINGEOL 10 | |
1133 | ||
1134 | /// Lexical states for SCLEX_ESCRIPT | |
1135 | #define wxSTC_ESCRIPT_DEFAULT 0 | |
1136 | #define wxSTC_ESCRIPT_COMMENT 1 | |
1137 | #define wxSTC_ESCRIPT_COMMENTLINE 2 | |
1138 | #define wxSTC_ESCRIPT_COMMENTDOC 3 | |
1139 | #define wxSTC_ESCRIPT_NUMBER 4 | |
1140 | #define wxSTC_ESCRIPT_WORD 5 | |
1141 | #define wxSTC_ESCRIPT_STRING 6 | |
1142 | #define wxSTC_ESCRIPT_OPERATOR 7 | |
1143 | #define wxSTC_ESCRIPT_IDENTIFIER 8 | |
1144 | #define wxSTC_ESCRIPT_BRACE 9 | |
1145 | #define wxSTC_ESCRIPT_WORD2 10 | |
1146 | #define wxSTC_ESCRIPT_WORD3 11 | |
1147 | ||
1148 | /// Lexical states for SCLEX_PS | |
1149 | #define wxSTC_PS_DEFAULT 0 | |
1150 | #define wxSTC_PS_COMMENT 1 | |
1151 | #define wxSTC_PS_DSC_COMMENT 2 | |
1152 | #define wxSTC_PS_DSC_VALUE 3 | |
1153 | #define wxSTC_PS_NUMBER 4 | |
1154 | #define wxSTC_PS_NAME 5 | |
1155 | #define wxSTC_PS_KEYWORD 6 | |
1156 | #define wxSTC_PS_LITERAL 7 | |
1157 | #define wxSTC_PS_IMMEVAL 8 | |
1158 | #define wxSTC_PS_PAREN_ARRAY 9 | |
1159 | #define wxSTC_PS_PAREN_DICT 10 | |
1160 | #define wxSTC_PS_PAREN_PROC 11 | |
1161 | #define wxSTC_PS_TEXT 12 | |
1162 | #define wxSTC_PS_HEXSTRING 13 | |
1163 | #define wxSTC_PS_BASE85STRING 14 | |
1164 | #define wxSTC_PS_BADSTRINGCHAR 15 | |
1165 | ||
1166 | /// Lexical states for SCLEX_NSIS | |
1167 | #define wxSTC_NSIS_DEFAULT 0 | |
1168 | #define wxSTC_NSIS_COMMENT 1 | |
1169 | #define wxSTC_NSIS_STRINGDQ 2 | |
1170 | #define wxSTC_NSIS_STRINGLQ 3 | |
1171 | #define wxSTC_NSIS_STRINGRQ 4 | |
1172 | #define wxSTC_NSIS_FUNCTION 5 | |
1173 | #define wxSTC_NSIS_VARIABLE 6 | |
1174 | #define wxSTC_NSIS_LABEL 7 | |
1175 | #define wxSTC_NSIS_USERDEFINED 8 | |
1176 | #define wxSTC_NSIS_SECTIONDEF 9 | |
1177 | #define wxSTC_NSIS_SUBSECTIONDEF 10 | |
1178 | #define wxSTC_NSIS_IFDEFINEDEF 11 | |
1179 | #define wxSTC_NSIS_MACRODEF 12 | |
1180 | #define wxSTC_NSIS_STRINGVAR 13 | |
1181 | #define wxSTC_NSIS_NUMBER 14 | |
1182 | #define wxSTC_NSIS_SECTIONGROUP 15 | |
1183 | #define wxSTC_NSIS_PAGEEX 16 | |
1184 | #define wxSTC_NSIS_FUNCTIONDEF 17 | |
1185 | #define wxSTC_NSIS_COMMENTBOX 18 | |
1186 | ||
1187 | /// Lexical states for SCLEX_MMIXAL | |
1188 | #define wxSTC_MMIXAL_LEADWS 0 | |
1189 | #define wxSTC_MMIXAL_COMMENT 1 | |
1190 | #define wxSTC_MMIXAL_LABEL 2 | |
1191 | #define wxSTC_MMIXAL_OPCODE 3 | |
1192 | #define wxSTC_MMIXAL_OPCODE_PRE 4 | |
1193 | #define wxSTC_MMIXAL_OPCODE_VALID 5 | |
1194 | #define wxSTC_MMIXAL_OPCODE_UNKNOWN 6 | |
1195 | #define wxSTC_MMIXAL_OPCODE_POST 7 | |
1196 | #define wxSTC_MMIXAL_OPERANDS 8 | |
1197 | #define wxSTC_MMIXAL_NUMBER 9 | |
1198 | #define wxSTC_MMIXAL_REF 10 | |
1199 | #define wxSTC_MMIXAL_CHAR 11 | |
1200 | #define wxSTC_MMIXAL_STRING 12 | |
1201 | #define wxSTC_MMIXAL_REGISTER 13 | |
1202 | #define wxSTC_MMIXAL_HEX 14 | |
1203 | #define wxSTC_MMIXAL_OPERATOR 15 | |
1204 | #define wxSTC_MMIXAL_SYMBOL 16 | |
1205 | #define wxSTC_MMIXAL_INCLUDE 17 | |
1206 | ||
1207 | /// Lexical states for SCLEX_CLW | |
1208 | #define wxSTC_CLW_DEFAULT 0 | |
1209 | #define wxSTC_CLW_LABEL 1 | |
1210 | #define wxSTC_CLW_COMMENT 2 | |
1211 | #define wxSTC_CLW_STRING 3 | |
1212 | #define wxSTC_CLW_USER_IDENTIFIER 4 | |
1213 | #define wxSTC_CLW_INTEGER_CONSTANT 5 | |
1214 | #define wxSTC_CLW_REAL_CONSTANT 6 | |
1215 | #define wxSTC_CLW_PICTURE_STRING 7 | |
1216 | #define wxSTC_CLW_KEYWORD 8 | |
1217 | #define wxSTC_CLW_COMPILER_DIRECTIVE 9 | |
1218 | #define wxSTC_CLW_RUNTIME_EXPRESSIONS 10 | |
1219 | #define wxSTC_CLW_BUILTIN_PROCEDURES_FUNCTION 11 | |
1220 | #define wxSTC_CLW_STRUCTURE_DATA_TYPE 12 | |
1221 | #define wxSTC_CLW_ATTRIBUTE 13 | |
1222 | #define wxSTC_CLW_STANDARD_EQUATE 14 | |
1223 | #define wxSTC_CLW_ERROR 15 | |
1224 | #define wxSTC_CLW_DEPRECATED 16 | |
1225 | ||
1226 | /// Lexical states for SCLEX_LOT | |
1227 | #define wxSTC_LOT_DEFAULT 0 | |
1228 | #define wxSTC_LOT_HEADER 1 | |
1229 | #define wxSTC_LOT_BREAK 2 | |
1230 | #define wxSTC_LOT_SET 3 | |
1231 | #define wxSTC_LOT_PASS 4 | |
1232 | #define wxSTC_LOT_FAIL 5 | |
1233 | #define wxSTC_LOT_ABORT 6 | |
1234 | ||
1235 | /// Lexical states for SCLEX_YAML | |
1236 | #define wxSTC_YAML_DEFAULT 0 | |
1237 | #define wxSTC_YAML_COMMENT 1 | |
1238 | #define wxSTC_YAML_IDENTIFIER 2 | |
1239 | #define wxSTC_YAML_KEYWORD 3 | |
1240 | #define wxSTC_YAML_NUMBER 4 | |
1241 | #define wxSTC_YAML_REFERENCE 5 | |
1242 | #define wxSTC_YAML_DOCUMENT 6 | |
1243 | #define wxSTC_YAML_TEXT 7 | |
1244 | #define wxSTC_YAML_ERROR 8 | |
1245 | #define wxSTC_YAML_OPERATOR 9 | |
1246 | ||
1247 | /// Lexical states for SCLEX_TEX | |
1248 | #define wxSTC_TEX_DEFAULT 0 | |
1249 | #define wxSTC_TEX_SPECIAL 1 | |
1250 | #define wxSTC_TEX_GROUP 2 | |
1251 | #define wxSTC_TEX_SYMBOL 3 | |
1252 | #define wxSTC_TEX_COMMAND 4 | |
1253 | #define wxSTC_TEX_TEXT 5 | |
1254 | #define wxSTC_METAPOST_DEFAULT 0 | |
1255 | #define wxSTC_METAPOST_SPECIAL 1 | |
1256 | #define wxSTC_METAPOST_GROUP 2 | |
1257 | #define wxSTC_METAPOST_SYMBOL 3 | |
1258 | #define wxSTC_METAPOST_COMMAND 4 | |
1259 | #define wxSTC_METAPOST_TEXT 5 | |
1260 | #define wxSTC_METAPOST_EXTRA 6 | |
1261 | ||
1262 | /// Lexical states for SCLEX_ERLANG | |
1263 | #define wxSTC_ERLANG_DEFAULT 0 | |
1264 | #define wxSTC_ERLANG_COMMENT 1 | |
1265 | #define wxSTC_ERLANG_VARIABLE 2 | |
1266 | #define wxSTC_ERLANG_NUMBER 3 | |
1267 | #define wxSTC_ERLANG_KEYWORD 4 | |
1268 | #define wxSTC_ERLANG_STRING 5 | |
1269 | #define wxSTC_ERLANG_OPERATOR 6 | |
1270 | #define wxSTC_ERLANG_ATOM 7 | |
1271 | #define wxSTC_ERLANG_FUNCTION_NAME 8 | |
1272 | #define wxSTC_ERLANG_CHARACTER 9 | |
1273 | #define wxSTC_ERLANG_MACRO 10 | |
1274 | #define wxSTC_ERLANG_RECORD 11 | |
1275 | #define wxSTC_ERLANG_PREPROC 12 | |
1276 | #define wxSTC_ERLANG_NODE_NAME 13 | |
1277 | #define wxSTC_ERLANG_COMMENT_FUNCTION 14 | |
1278 | #define wxSTC_ERLANG_COMMENT_MODULE 15 | |
1279 | #define wxSTC_ERLANG_COMMENT_DOC 16 | |
1280 | #define wxSTC_ERLANG_COMMENT_DOC_MACRO 17 | |
1281 | #define wxSTC_ERLANG_ATOM_QUOTED 18 | |
1282 | #define wxSTC_ERLANG_MACRO_QUOTED 19 | |
1283 | #define wxSTC_ERLANG_RECORD_QUOTED 20 | |
1284 | #define wxSTC_ERLANG_NODE_NAME_QUOTED 21 | |
1285 | #define wxSTC_ERLANG_BIFS 22 | |
1286 | #define wxSTC_ERLANG_MODULES 23 | |
1287 | #define wxSTC_ERLANG_MODULES_ATT 24 | |
1288 | #define wxSTC_ERLANG_UNKNOWN 31 | |
1289 | ||
1290 | /// Lexical states for SCLEX_OCTAVE are identical to MatLab | |
1291 | /// Lexical states for SCLEX_MSSQL | |
1292 | #define wxSTC_MSSQL_DEFAULT 0 | |
1293 | #define wxSTC_MSSQL_COMMENT 1 | |
1294 | #define wxSTC_MSSQL_LINE_COMMENT 2 | |
1295 | #define wxSTC_MSSQL_NUMBER 3 | |
1296 | #define wxSTC_MSSQL_STRING 4 | |
1297 | #define wxSTC_MSSQL_OPERATOR 5 | |
1298 | #define wxSTC_MSSQL_IDENTIFIER 6 | |
1299 | #define wxSTC_MSSQL_VARIABLE 7 | |
1300 | #define wxSTC_MSSQL_COLUMN_NAME 8 | |
1301 | #define wxSTC_MSSQL_STATEMENT 9 | |
1302 | #define wxSTC_MSSQL_DATATYPE 10 | |
1303 | #define wxSTC_MSSQL_SYSTABLE 11 | |
1304 | #define wxSTC_MSSQL_GLOBAL_VARIABLE 12 | |
1305 | #define wxSTC_MSSQL_FUNCTION 13 | |
1306 | #define wxSTC_MSSQL_STORED_PROCEDURE 14 | |
1307 | #define wxSTC_MSSQL_DEFAULT_PREF_DATATYPE 15 | |
1308 | #define wxSTC_MSSQL_COLUMN_NAME_2 16 | |
1309 | ||
1310 | /// Lexical states for SCLEX_VERILOG | |
1311 | #define wxSTC_V_DEFAULT 0 | |
1312 | #define wxSTC_V_COMMENT 1 | |
1313 | #define wxSTC_V_COMMENTLINE 2 | |
1314 | #define wxSTC_V_COMMENTLINEBANG 3 | |
1315 | #define wxSTC_V_NUMBER 4 | |
1316 | #define wxSTC_V_WORD 5 | |
1317 | #define wxSTC_V_STRING 6 | |
1318 | #define wxSTC_V_WORD2 7 | |
1319 | #define wxSTC_V_WORD3 8 | |
1320 | #define wxSTC_V_PREPROCESSOR 9 | |
1321 | #define wxSTC_V_OPERATOR 10 | |
1322 | #define wxSTC_V_IDENTIFIER 11 | |
1323 | #define wxSTC_V_STRINGEOL 12 | |
1324 | #define wxSTC_V_USER 19 | |
1325 | ||
1326 | /// Lexical states for SCLEX_KIX | |
1327 | #define wxSTC_KIX_DEFAULT 0 | |
1328 | #define wxSTC_KIX_COMMENT 1 | |
1329 | #define wxSTC_KIX_STRING1 2 | |
1330 | #define wxSTC_KIX_STRING2 3 | |
1331 | #define wxSTC_KIX_NUMBER 4 | |
1332 | #define wxSTC_KIX_VAR 5 | |
1333 | #define wxSTC_KIX_MACRO 6 | |
1334 | #define wxSTC_KIX_KEYWORD 7 | |
1335 | #define wxSTC_KIX_FUNCTIONS 8 | |
1336 | #define wxSTC_KIX_OPERATOR 9 | |
1337 | #define wxSTC_KIX_IDENTIFIER 31 | |
1338 | ||
1339 | /// Lexical states for SCLEX_GUI4CLI | |
1340 | #define wxSTC_GC_DEFAULT 0 | |
1341 | #define wxSTC_GC_COMMENTLINE 1 | |
1342 | #define wxSTC_GC_COMMENTBLOCK 2 | |
1343 | #define wxSTC_GC_GLOBAL 3 | |
1344 | #define wxSTC_GC_EVENT 4 | |
1345 | #define wxSTC_GC_ATTRIBUTE 5 | |
1346 | #define wxSTC_GC_CONTROL 6 | |
1347 | #define wxSTC_GC_COMMAND 7 | |
1348 | #define wxSTC_GC_STRING 8 | |
1349 | #define wxSTC_GC_OPERATOR 9 | |
1350 | ||
1351 | /// Lexical states for SCLEX_SPECMAN | |
1352 | #define wxSTC_SN_DEFAULT 0 | |
1353 | #define wxSTC_SN_CODE 1 | |
1354 | #define wxSTC_SN_COMMENTLINE 2 | |
1355 | #define wxSTC_SN_COMMENTLINEBANG 3 | |
1356 | #define wxSTC_SN_NUMBER 4 | |
1357 | #define wxSTC_SN_WORD 5 | |
1358 | #define wxSTC_SN_STRING 6 | |
1359 | #define wxSTC_SN_WORD2 7 | |
1360 | #define wxSTC_SN_WORD3 8 | |
1361 | #define wxSTC_SN_PREPROCESSOR 9 | |
1362 | #define wxSTC_SN_OPERATOR 10 | |
1363 | #define wxSTC_SN_IDENTIFIER 11 | |
1364 | #define wxSTC_SN_STRINGEOL 12 | |
1365 | #define wxSTC_SN_REGEXTAG 13 | |
1366 | #define wxSTC_SN_SIGNAL 14 | |
1367 | #define wxSTC_SN_USER 19 | |
1368 | ||
1369 | /// Lexical states for SCLEX_AU3 | |
1370 | #define wxSTC_AU3_DEFAULT 0 | |
1371 | #define wxSTC_AU3_COMMENT 1 | |
1372 | #define wxSTC_AU3_COMMENTBLOCK 2 | |
1373 | #define wxSTC_AU3_NUMBER 3 | |
1374 | #define wxSTC_AU3_FUNCTION 4 | |
1375 | #define wxSTC_AU3_KEYWORD 5 | |
1376 | #define wxSTC_AU3_MACRO 6 | |
1377 | #define wxSTC_AU3_STRING 7 | |
1378 | #define wxSTC_AU3_OPERATOR 8 | |
1379 | #define wxSTC_AU3_VARIABLE 9 | |
1380 | #define wxSTC_AU3_SENT 10 | |
1381 | #define wxSTC_AU3_PREPROCESSOR 11 | |
1382 | #define wxSTC_AU3_SPECIAL 12 | |
1383 | #define wxSTC_AU3_EXPAND 13 | |
1384 | #define wxSTC_AU3_COMOBJ 14 | |
1385 | #define wxSTC_AU3_UDF 15 | |
1386 | ||
1387 | /// Lexical states for SCLEX_APDL | |
1388 | #define wxSTC_APDL_DEFAULT 0 | |
1389 | #define wxSTC_APDL_COMMENT 1 | |
1390 | #define wxSTC_APDL_COMMENTBLOCK 2 | |
1391 | #define wxSTC_APDL_NUMBER 3 | |
1392 | #define wxSTC_APDL_STRING 4 | |
1393 | #define wxSTC_APDL_OPERATOR 5 | |
1394 | #define wxSTC_APDL_WORD 6 | |
1395 | #define wxSTC_APDL_PROCESSOR 7 | |
1396 | #define wxSTC_APDL_COMMAND 8 | |
1397 | #define wxSTC_APDL_SLASHCOMMAND 9 | |
1398 | #define wxSTC_APDL_STARCOMMAND 10 | |
1399 | #define wxSTC_APDL_ARGUMENT 11 | |
1400 | #define wxSTC_APDL_FUNCTION 12 | |
1401 | ||
1402 | /// Lexical states for SCLEX_BASH | |
1403 | #define wxSTC_SH_DEFAULT 0 | |
1404 | #define wxSTC_SH_ERROR 1 | |
1405 | #define wxSTC_SH_COMMENTLINE 2 | |
1406 | #define wxSTC_SH_NUMBER 3 | |
1407 | #define wxSTC_SH_WORD 4 | |
1408 | #define wxSTC_SH_STRING 5 | |
1409 | #define wxSTC_SH_CHARACTER 6 | |
1410 | #define wxSTC_SH_OPERATOR 7 | |
1411 | #define wxSTC_SH_IDENTIFIER 8 | |
1412 | #define wxSTC_SH_SCALAR 9 | |
1413 | #define wxSTC_SH_PARAM 10 | |
1414 | #define wxSTC_SH_BACKTICKS 11 | |
1415 | #define wxSTC_SH_HERE_DELIM 12 | |
1416 | #define wxSTC_SH_HERE_Q 13 | |
1417 | ||
1418 | /// Lexical states for SCLEX_ASN1 | |
1419 | #define wxSTC_ASN1_DEFAULT 0 | |
1420 | #define wxSTC_ASN1_COMMENT 1 | |
1421 | #define wxSTC_ASN1_IDENTIFIER 2 | |
1422 | #define wxSTC_ASN1_STRING 3 | |
1423 | #define wxSTC_ASN1_OID 4 | |
1424 | #define wxSTC_ASN1_SCALAR 5 | |
1425 | #define wxSTC_ASN1_KEYWORD 6 | |
1426 | #define wxSTC_ASN1_ATTRIBUTE 7 | |
1427 | #define wxSTC_ASN1_DESCRIPTOR 8 | |
1428 | #define wxSTC_ASN1_TYPE 9 | |
1429 | #define wxSTC_ASN1_OPERATOR 10 | |
1430 | ||
1431 | /// Lexical states for SCLEX_VHDL | |
1432 | #define wxSTC_VHDL_DEFAULT 0 | |
1433 | #define wxSTC_VHDL_COMMENT 1 | |
1434 | #define wxSTC_VHDL_COMMENTLINEBANG 2 | |
1435 | #define wxSTC_VHDL_NUMBER 3 | |
1436 | #define wxSTC_VHDL_STRING 4 | |
1437 | #define wxSTC_VHDL_OPERATOR 5 | |
1438 | #define wxSTC_VHDL_IDENTIFIER 6 | |
1439 | #define wxSTC_VHDL_STRINGEOL 7 | |
1440 | #define wxSTC_VHDL_KEYWORD 8 | |
1441 | #define wxSTC_VHDL_STDOPERATOR 9 | |
1442 | #define wxSTC_VHDL_ATTRIBUTE 10 | |
1443 | #define wxSTC_VHDL_STDFUNCTION 11 | |
1444 | #define wxSTC_VHDL_STDPACKAGE 12 | |
1445 | #define wxSTC_VHDL_STDTYPE 13 | |
1446 | #define wxSTC_VHDL_USERWORD 14 | |
1447 | ||
1448 | /// Lexical states for SCLEX_CAML | |
1449 | #define wxSTC_CAML_DEFAULT 0 | |
1450 | #define wxSTC_CAML_IDENTIFIER 1 | |
1451 | #define wxSTC_CAML_TAGNAME 2 | |
1452 | #define wxSTC_CAML_KEYWORD 3 | |
1453 | #define wxSTC_CAML_KEYWORD2 4 | |
1454 | #define wxSTC_CAML_KEYWORD3 5 | |
1455 | #define wxSTC_CAML_LINENUM 6 | |
1456 | #define wxSTC_CAML_OPERATOR 7 | |
1457 | #define wxSTC_CAML_NUMBER 8 | |
1458 | #define wxSTC_CAML_CHAR 9 | |
1459 | #define wxSTC_CAML_WHITE 10 | |
1460 | #define wxSTC_CAML_STRING 11 | |
1461 | #define wxSTC_CAML_COMMENT 12 | |
1462 | #define wxSTC_CAML_COMMENT1 13 | |
1463 | #define wxSTC_CAML_COMMENT2 14 | |
1464 | #define wxSTC_CAML_COMMENT3 15 | |
1465 | ||
1466 | /// Lexical states for SCLEX_HASKELL | |
1467 | #define wxSTC_HA_DEFAULT 0 | |
1468 | #define wxSTC_HA_IDENTIFIER 1 | |
1469 | #define wxSTC_HA_KEYWORD 2 | |
1470 | #define wxSTC_HA_NUMBER 3 | |
1471 | #define wxSTC_HA_STRING 4 | |
1472 | #define wxSTC_HA_CHARACTER 5 | |
1473 | #define wxSTC_HA_CLASS 6 | |
1474 | #define wxSTC_HA_MODULE 7 | |
1475 | #define wxSTC_HA_CAPITAL 8 | |
1476 | #define wxSTC_HA_DATA 9 | |
1477 | #define wxSTC_HA_IMPORT 10 | |
1478 | #define wxSTC_HA_OPERATOR 11 | |
1479 | #define wxSTC_HA_INSTANCE 12 | |
1480 | #define wxSTC_HA_COMMENTLINE 13 | |
1481 | #define wxSTC_HA_COMMENTBLOCK 14 | |
1482 | #define wxSTC_HA_COMMENTBLOCK2 15 | |
1483 | #define wxSTC_HA_COMMENTBLOCK3 16 | |
1484 | ||
1485 | /// Lexical states of SCLEX_TADS3 | |
1486 | #define wxSTC_T3_DEFAULT 0 | |
1487 | #define wxSTC_T3_X_DEFAULT 1 | |
1488 | #define wxSTC_T3_PREPROCESSOR 2 | |
1489 | #define wxSTC_T3_BLOCK_COMMENT 3 | |
1490 | #define wxSTC_T3_LINE_COMMENT 4 | |
1491 | #define wxSTC_T3_OPERATOR 5 | |
1492 | #define wxSTC_T3_KEYWORD 6 | |
1493 | #define wxSTC_T3_NUMBER 7 | |
1494 | #define wxSTC_T3_IDENTIFIER 8 | |
1495 | #define wxSTC_T3_S_STRING 9 | |
1496 | #define wxSTC_T3_D_STRING 10 | |
1497 | #define wxSTC_T3_X_STRING 11 | |
1498 | #define wxSTC_T3_LIB_DIRECTIVE 12 | |
1499 | #define wxSTC_T3_MSG_PARAM 13 | |
1500 | #define wxSTC_T3_HTML_TAG 14 | |
1501 | #define wxSTC_T3_HTML_DEFAULT 15 | |
1502 | #define wxSTC_T3_HTML_STRING 16 | |
1503 | #define wxSTC_T3_USER1 17 | |
1504 | #define wxSTC_T3_USER2 18 | |
1505 | #define wxSTC_T3_USER3 19 | |
1506 | #define wxSTC_T3_BRACE 20 | |
1507 | ||
1508 | /// Lexical states for SCLEX_REBOL | |
1509 | #define wxSTC_REBOL_DEFAULT 0 | |
1510 | #define wxSTC_REBOL_COMMENTLINE 1 | |
1511 | #define wxSTC_REBOL_COMMENTBLOCK 2 | |
1512 | #define wxSTC_REBOL_PREFACE 3 | |
1513 | #define wxSTC_REBOL_OPERATOR 4 | |
1514 | #define wxSTC_REBOL_CHARACTER 5 | |
1515 | #define wxSTC_REBOL_QUOTEDSTRING 6 | |
1516 | #define wxSTC_REBOL_BRACEDSTRING 7 | |
1517 | #define wxSTC_REBOL_NUMBER 8 | |
1518 | #define wxSTC_REBOL_PAIR 9 | |
1519 | #define wxSTC_REBOL_TUPLE 10 | |
1520 | #define wxSTC_REBOL_BINARY 11 | |
1521 | #define wxSTC_REBOL_MONEY 12 | |
1522 | #define wxSTC_REBOL_ISSUE 13 | |
1523 | #define wxSTC_REBOL_TAG 14 | |
1524 | #define wxSTC_REBOL_FILE 15 | |
1525 | #define wxSTC_REBOL_EMAIL 16 | |
1526 | #define wxSTC_REBOL_URL 17 | |
1527 | #define wxSTC_REBOL_DATE 18 | |
1528 | #define wxSTC_REBOL_TIME 19 | |
1529 | #define wxSTC_REBOL_IDENTIFIER 20 | |
1530 | #define wxSTC_REBOL_WORD 21 | |
1531 | #define wxSTC_REBOL_WORD2 22 | |
1532 | #define wxSTC_REBOL_WORD3 23 | |
1533 | #define wxSTC_REBOL_WORD4 24 | |
1534 | #define wxSTC_REBOL_WORD5 25 | |
1535 | #define wxSTC_REBOL_WORD6 26 | |
1536 | #define wxSTC_REBOL_WORD7 27 | |
1537 | #define wxSTC_REBOL_WORD8 28 | |
1538 | ||
1539 | /// Lexical states for SCLEX_SQL | |
1540 | #define wxSTC_SQL_DEFAULT 0 | |
1541 | #define wxSTC_SQL_COMMENT 1 | |
1542 | #define wxSTC_SQL_COMMENTLINE 2 | |
1543 | #define wxSTC_SQL_COMMENTDOC 3 | |
1544 | #define wxSTC_SQL_NUMBER 4 | |
1545 | #define wxSTC_SQL_WORD 5 | |
1546 | #define wxSTC_SQL_STRING 6 | |
1547 | #define wxSTC_SQL_CHARACTER 7 | |
1548 | #define wxSTC_SQL_SQLPLUS 8 | |
1549 | #define wxSTC_SQL_SQLPLUS_PROMPT 9 | |
1550 | #define wxSTC_SQL_OPERATOR 10 | |
1551 | #define wxSTC_SQL_IDENTIFIER 11 | |
1552 | #define wxSTC_SQL_SQLPLUS_COMMENT 13 | |
1553 | #define wxSTC_SQL_COMMENTLINEDOC 15 | |
1554 | #define wxSTC_SQL_WORD2 16 | |
1555 | #define wxSTC_SQL_COMMENTDOCKEYWORD 17 | |
1556 | #define wxSTC_SQL_COMMENTDOCKEYWORDERROR 18 | |
1557 | #define wxSTC_SQL_USER1 19 | |
1558 | #define wxSTC_SQL_USER2 20 | |
1559 | #define wxSTC_SQL_USER3 21 | |
1560 | #define wxSTC_SQL_USER4 22 | |
1561 | #define wxSTC_SQL_QUOTEDIDENTIFIER 23 | |
1562 | ||
1563 | /// Lexical states for SCLEX_SMALLTALK | |
1564 | #define wxSTC_ST_DEFAULT 0 | |
1565 | #define wxSTC_ST_STRING 1 | |
1566 | #define wxSTC_ST_NUMBER 2 | |
1567 | #define wxSTC_ST_COMMENT 3 | |
1568 | #define wxSTC_ST_SYMBOL 4 | |
1569 | #define wxSTC_ST_BINARY 5 | |
1570 | #define wxSTC_ST_BOOL 6 | |
1571 | #define wxSTC_ST_SELF 7 | |
1572 | #define wxSTC_ST_SUPER 8 | |
1573 | #define wxSTC_ST_NIL 9 | |
1574 | #define wxSTC_ST_GLOBAL 10 | |
1575 | #define wxSTC_ST_RETURN 11 | |
1576 | #define wxSTC_ST_SPECIAL 12 | |
1577 | #define wxSTC_ST_KWSEND 13 | |
1578 | #define wxSTC_ST_ASSIGN 14 | |
1579 | #define wxSTC_ST_CHARACTER 15 | |
1580 | #define wxSTC_ST_SPEC_SEL 16 | |
1581 | ||
1582 | /// Lexical states for SCLEX_FLAGSHIP (clipper) | |
1583 | #define wxSTC_FS_DEFAULT 0 | |
1584 | #define wxSTC_FS_COMMENT 1 | |
1585 | #define wxSTC_FS_COMMENTLINE 2 | |
1586 | #define wxSTC_FS_COMMENTDOC 3 | |
1587 | #define wxSTC_FS_COMMENTLINEDOC 4 | |
1588 | #define wxSTC_FS_COMMENTDOCKEYWORD 5 | |
1589 | #define wxSTC_FS_COMMENTDOCKEYWORDERROR 6 | |
1590 | #define wxSTC_FS_KEYWORD 7 | |
1591 | #define wxSTC_FS_KEYWORD2 8 | |
1592 | #define wxSTC_FS_KEYWORD3 9 | |
1593 | #define wxSTC_FS_KEYWORD4 10 | |
1594 | #define wxSTC_FS_NUMBER 11 | |
1595 | #define wxSTC_FS_STRING 12 | |
1596 | #define wxSTC_FS_PREPROCESSOR 13 | |
1597 | #define wxSTC_FS_OPERATOR 14 | |
1598 | #define wxSTC_FS_IDENTIFIER 15 | |
1599 | #define wxSTC_FS_DATE 16 | |
1600 | #define wxSTC_FS_STRINGEOL 17 | |
1601 | #define wxSTC_FS_CONSTANT 18 | |
1602 | #define wxSTC_FS_WORDOPERATOR 19 | |
1603 | #define wxSTC_FS_DISABLEDCODE 20 | |
1604 | #define wxSTC_FS_DEFAULT_C 21 | |
1605 | #define wxSTC_FS_COMMENTDOC_C 22 | |
1606 | #define wxSTC_FS_COMMENTLINEDOC_C 23 | |
1607 | #define wxSTC_FS_KEYWORD_C 24 | |
1608 | #define wxSTC_FS_KEYWORD2_C 25 | |
1609 | #define wxSTC_FS_NUMBER_C 26 | |
1610 | #define wxSTC_FS_STRING_C 27 | |
1611 | #define wxSTC_FS_PREPROCESSOR_C 28 | |
1612 | #define wxSTC_FS_OPERATOR_C 29 | |
1613 | #define wxSTC_FS_IDENTIFIER_C 30 | |
1614 | #define wxSTC_FS_STRINGEOL_C 31 | |
1615 | ||
1616 | /// Lexical states for SCLEX_CSOUND | |
1617 | #define wxSTC_CSOUND_DEFAULT 0 | |
1618 | #define wxSTC_CSOUND_COMMENT 1 | |
1619 | #define wxSTC_CSOUND_NUMBER 2 | |
1620 | #define wxSTC_CSOUND_OPERATOR 3 | |
1621 | #define wxSTC_CSOUND_INSTR 4 | |
1622 | #define wxSTC_CSOUND_IDENTIFIER 5 | |
1623 | #define wxSTC_CSOUND_OPCODE 6 | |
1624 | #define wxSTC_CSOUND_HEADERSTMT 7 | |
1625 | #define wxSTC_CSOUND_USERKEYWORD 8 | |
1626 | #define wxSTC_CSOUND_COMMENTBLOCK 9 | |
1627 | #define wxSTC_CSOUND_PARAM 10 | |
1628 | #define wxSTC_CSOUND_ARATE_VAR 11 | |
1629 | #define wxSTC_CSOUND_KRATE_VAR 12 | |
1630 | #define wxSTC_CSOUND_IRATE_VAR 13 | |
1631 | #define wxSTC_CSOUND_GLOBAL_VAR 14 | |
1632 | #define wxSTC_CSOUND_STRINGEOL 15 | |
1633 | ||
1634 | /// Lexical states for SCLEX_INNOSETUP | |
1635 | #define wxSTC_INNO_DEFAULT 0 | |
1636 | #define wxSTC_INNO_COMMENT 1 | |
1637 | #define wxSTC_INNO_KEYWORD 2 | |
1638 | #define wxSTC_INNO_PARAMETER 3 | |
1639 | #define wxSTC_INNO_SECTION 4 | |
1640 | #define wxSTC_INNO_PREPROC 5 | |
1641 | #define wxSTC_INNO_INLINE_EXPANSION 6 | |
1642 | #define wxSTC_INNO_COMMENT_PASCAL 7 | |
1643 | #define wxSTC_INNO_KEYWORD_PASCAL 8 | |
1644 | #define wxSTC_INNO_KEYWORD_USER 9 | |
1645 | #define wxSTC_INNO_STRING_DOUBLE 10 | |
1646 | #define wxSTC_INNO_STRING_SINGLE 11 | |
1647 | #define wxSTC_INNO_IDENTIFIER 12 | |
1648 | ||
1649 | /// Lexical states for SCLEX_OPAL | |
1650 | #define wxSTC_OPAL_SPACE 0 | |
1651 | #define wxSTC_OPAL_COMMENT_BLOCK 1 | |
1652 | #define wxSTC_OPAL_COMMENT_LINE 2 | |
1653 | #define wxSTC_OPAL_INTEGER 3 | |
1654 | #define wxSTC_OPAL_KEYWORD 4 | |
1655 | #define wxSTC_OPAL_SORT 5 | |
1656 | #define wxSTC_OPAL_STRING 6 | |
1657 | #define wxSTC_OPAL_PAR 7 | |
1658 | #define wxSTC_OPAL_BOOL_CONST 8 | |
1659 | #define wxSTC_OPAL_DEFAULT 32 | |
1660 | ||
1661 | /// Lexical states for SCLEX_SPICE | |
1662 | #define wxSTC_SPICE_DEFAULT 0 | |
1663 | #define wxSTC_SPICE_IDENTIFIER 1 | |
1664 | #define wxSTC_SPICE_KEYWORD 2 | |
1665 | #define wxSTC_SPICE_KEYWORD2 3 | |
1666 | #define wxSTC_SPICE_KEYWORD3 4 | |
1667 | #define wxSTC_SPICE_NUMBER 5 | |
1668 | #define wxSTC_SPICE_DELIMITER 6 | |
1669 | #define wxSTC_SPICE_VALUE 7 | |
1670 | #define wxSTC_SPICE_COMMENTLINE 8 | |
1671 | ||
1672 | /// Lexical states for SCLEX_CMAKE | |
1673 | #define wxSTC_CMAKE_DEFAULT 0 | |
1674 | #define wxSTC_CMAKE_COMMENT 1 | |
1675 | #define wxSTC_CMAKE_STRINGDQ 2 | |
1676 | #define wxSTC_CMAKE_STRINGLQ 3 | |
1677 | #define wxSTC_CMAKE_STRINGRQ 4 | |
1678 | #define wxSTC_CMAKE_COMMANDS 5 | |
1679 | #define wxSTC_CMAKE_PARAMETERS 6 | |
1680 | #define wxSTC_CMAKE_VARIABLE 7 | |
1681 | #define wxSTC_CMAKE_USERDEFINED 8 | |
1682 | #define wxSTC_CMAKE_WHILEDEF 9 | |
1683 | #define wxSTC_CMAKE_FOREACHDEF 10 | |
1684 | #define wxSTC_CMAKE_IFDEFINEDEF 11 | |
1685 | #define wxSTC_CMAKE_MACRODEF 12 | |
1686 | #define wxSTC_CMAKE_STRINGVAR 13 | |
1687 | #define wxSTC_CMAKE_NUMBER 14 | |
1688 | ||
1689 | /// Lexical states for SCLEX_GAP | |
1690 | #define wxSTC_GAP_DEFAULT 0 | |
1691 | #define wxSTC_GAP_IDENTIFIER 1 | |
1692 | #define wxSTC_GAP_KEYWORD 2 | |
1693 | #define wxSTC_GAP_KEYWORD2 3 | |
1694 | #define wxSTC_GAP_KEYWORD3 4 | |
1695 | #define wxSTC_GAP_KEYWORD4 5 | |
1696 | #define wxSTC_GAP_STRING 6 | |
1697 | #define wxSTC_GAP_CHAR 7 | |
1698 | #define wxSTC_GAP_OPERATOR 8 | |
1699 | #define wxSTC_GAP_COMMENT 9 | |
1700 | #define wxSTC_GAP_NUMBER 10 | |
1701 | #define wxSTC_GAP_STRINGEOL 11 | |
1702 | ||
1703 | /// Lexical state for SCLEX_PLM | |
1704 | #define wxSTC_PLM_DEFAULT 0 | |
1705 | #define wxSTC_PLM_COMMENT 1 | |
1706 | #define wxSTC_PLM_STRING 2 | |
1707 | #define wxSTC_PLM_NUMBER 3 | |
1708 | #define wxSTC_PLM_IDENTIFIER 4 | |
1709 | #define wxSTC_PLM_OPERATOR 5 | |
1710 | #define wxSTC_PLM_CONTROL 6 | |
1711 | #define wxSTC_PLM_KEYWORD 7 | |
1712 | ||
1713 | /// Lexical state for SCLEX_PROGRESS | |
1714 | #define wxSTC_4GL_DEFAULT 0 | |
1715 | #define wxSTC_4GL_NUMBER 1 | |
1716 | #define wxSTC_4GL_WORD 2 | |
1717 | #define wxSTC_4GL_STRING 3 | |
1718 | #define wxSTC_4GL_CHARACTER 4 | |
1719 | #define wxSTC_4GL_PREPROCESSOR 5 | |
1720 | #define wxSTC_4GL_OPERATOR 6 | |
1721 | #define wxSTC_4GL_IDENTIFIER 7 | |
1722 | #define wxSTC_4GL_BLOCK 8 | |
1723 | #define wxSTC_4GL_END 9 | |
1724 | #define wxSTC_4GL_COMMENT1 10 | |
1725 | #define wxSTC_4GL_COMMENT2 11 | |
1726 | #define wxSTC_4GL_COMMENT3 12 | |
1727 | #define wxSTC_4GL_COMMENT4 13 | |
1728 | #define wxSTC_4GL_COMMENT5 14 | |
1729 | #define wxSTC_4GL_COMMENT6 15 | |
1730 | #define wxSTC_4GL_DEFAULT_ 16 | |
1731 | #define wxSTC_4GL_NUMBER_ 17 | |
1732 | #define wxSTC_4GL_WORD_ 18 | |
1733 | #define wxSTC_4GL_STRING_ 19 | |
1734 | #define wxSTC_4GL_CHARACTER_ 20 | |
1735 | #define wxSTC_4GL_PREPROCESSOR_ 21 | |
1736 | #define wxSTC_4GL_OPERATOR_ 22 | |
1737 | #define wxSTC_4GL_IDENTIFIER_ 23 | |
1738 | #define wxSTC_4GL_BLOCK_ 24 | |
1739 | #define wxSTC_4GL_END_ 25 | |
1740 | #define wxSTC_4GL_COMMENT1_ 26 | |
1741 | #define wxSTC_4GL_COMMENT2_ 27 | |
1742 | #define wxSTC_4GL_COMMENT3_ 28 | |
1743 | #define wxSTC_4GL_COMMENT4_ 29 | |
1744 | #define wxSTC_4GL_COMMENT5_ 30 | |
1745 | #define wxSTC_4GL_COMMENT6_ 31 | |
1746 | ||
1747 | /// Lexical states for SCLEX_ABAQUS | |
1748 | #define wxSTC_ABAQUS_DEFAULT 0 | |
1749 | #define wxSTC_ABAQUS_COMMENT 1 | |
1750 | #define wxSTC_ABAQUS_COMMENTBLOCK 2 | |
1751 | #define wxSTC_ABAQUS_NUMBER 3 | |
1752 | #define wxSTC_ABAQUS_STRING 4 | |
1753 | #define wxSTC_ABAQUS_OPERATOR 5 | |
1754 | #define wxSTC_ABAQUS_WORD 6 | |
1755 | #define wxSTC_ABAQUS_PROCESSOR 7 | |
1756 | #define wxSTC_ABAQUS_COMMAND 8 | |
1757 | #define wxSTC_ABAQUS_SLASHCOMMAND 9 | |
1758 | #define wxSTC_ABAQUS_STARCOMMAND 10 | |
1759 | #define wxSTC_ABAQUS_ARGUMENT 11 | |
1760 | #define wxSTC_ABAQUS_FUNCTION 12 | |
1761 | ||
1762 | /// Lexical states for SCLEX_ASYMPTOTE | |
1763 | #define wxSTC_ASY_DEFAULT 0 | |
1764 | #define wxSTC_ASY_COMMENT 1 | |
1765 | #define wxSTC_ASY_COMMENTLINE 2 | |
1766 | #define wxSTC_ASY_NUMBER 3 | |
1767 | #define wxSTC_ASY_WORD 4 | |
1768 | #define wxSTC_ASY_STRING 5 | |
1769 | #define wxSTC_ASY_CHARACTER 6 | |
1770 | #define wxSTC_ASY_OPERATOR 7 | |
1771 | #define wxSTC_ASY_IDENTIFIER 8 | |
1772 | #define wxSTC_ASY_STRINGEOL 9 | |
1773 | #define wxSTC_ASY_COMMENTLINEDOC 10 | |
1774 | #define wxSTC_ASY_WORD2 11 | |
1775 | ||
1776 | /// Lexical states for SCLEX_R | |
1777 | #define wxSTC_R_DEFAULT 0 | |
1778 | #define wxSTC_R_COMMENT 1 | |
1779 | #define wxSTC_R_KWORD 2 | |
1780 | #define wxSTC_R_BASEKWORD 3 | |
1781 | #define wxSTC_R_OTHERKWORD 4 | |
1782 | #define wxSTC_R_NUMBER 5 | |
1783 | #define wxSTC_R_STRING 6 | |
1784 | #define wxSTC_R_STRING2 7 | |
1785 | #define wxSTC_R_OPERATOR 8 | |
1786 | #define wxSTC_R_IDENTIFIER 9 | |
1787 | #define wxSTC_R_INFIX 10 | |
1788 | #define wxSTC_R_INFIXEOL 11 | |
1789 | ||
1790 | /// Lexical state for SCLEX_MAGIKSF | |
1791 | #define wxSTC_MAGIK_DEFAULT 0 | |
1792 | #define wxSTC_MAGIK_COMMENT 1 | |
1793 | #define wxSTC_MAGIK_HYPER_COMMENT 16 | |
1794 | #define wxSTC_MAGIK_STRING 2 | |
1795 | #define wxSTC_MAGIK_CHARACTER 3 | |
1796 | #define wxSTC_MAGIK_NUMBER 4 | |
1797 | #define wxSTC_MAGIK_IDENTIFIER 5 | |
1798 | #define wxSTC_MAGIK_OPERATOR 6 | |
1799 | #define wxSTC_MAGIK_FLOW 7 | |
1800 | #define wxSTC_MAGIK_CONTAINER 8 | |
1801 | #define wxSTC_MAGIK_BRACKET_BLOCK 9 | |
1802 | #define wxSTC_MAGIK_BRACE_BLOCK 10 | |
1803 | #define wxSTC_MAGIK_SQBRACKET_BLOCK 11 | |
1804 | #define wxSTC_MAGIK_UNKNOWN_KEYWORD 12 | |
1805 | #define wxSTC_MAGIK_KEYWORD 13 | |
1806 | #define wxSTC_MAGIK_PRAGMA 14 | |
1807 | #define wxSTC_MAGIK_SYMBOL 15 | |
1808 | ||
1809 | /// Lexical state for SCLEX_POWERSHELL | |
1810 | #define wxSTC_POWERSHELL_DEFAULT 0 | |
1811 | #define wxSTC_POWERSHELL_COMMENT 1 | |
1812 | #define wxSTC_POWERSHELL_STRING 2 | |
1813 | #define wxSTC_POWERSHELL_CHARACTER 3 | |
1814 | #define wxSTC_POWERSHELL_NUMBER 4 | |
1815 | #define wxSTC_POWERSHELL_VARIABLE 5 | |
1816 | #define wxSTC_POWERSHELL_OPERATOR 6 | |
1817 | #define wxSTC_POWERSHELL_IDENTIFIER 7 | |
1818 | #define wxSTC_POWERSHELL_KEYWORD 8 | |
1819 | #define wxSTC_POWERSHELL_CMDLET 9 | |
1820 | #define wxSTC_POWERSHELL_ALIAS 10 | |
1821 | #define wxSTC_POWERSHELL_FUNCTION 11 | |
1822 | #define wxSTC_POWERSHELL_USER1 12 | |
1823 | #define wxSTC_POWERSHELL_COMMENTSTREAM 13 | |
1824 | ||
1825 | /// Lexical state for SCLEX_MYSQL | |
1826 | #define wxSTC_MYSQL_DEFAULT 0 | |
1827 | #define wxSTC_MYSQL_COMMENT 1 | |
1828 | #define wxSTC_MYSQL_COMMENTLINE 2 | |
1829 | #define wxSTC_MYSQL_VARIABLE 3 | |
1830 | #define wxSTC_MYSQL_SYSTEMVARIABLE 4 | |
1831 | #define wxSTC_MYSQL_KNOWNSYSTEMVARIABLE 5 | |
1832 | #define wxSTC_MYSQL_NUMBER 6 | |
1833 | #define wxSTC_MYSQL_MAJORKEYWORD 7 | |
1834 | #define wxSTC_MYSQL_KEYWORD 8 | |
1835 | #define wxSTC_MYSQL_DATABASEOBJECT 9 | |
1836 | #define wxSTC_MYSQL_PROCEDUREKEYWORD 10 | |
1837 | #define wxSTC_MYSQL_STRING 11 | |
1838 | #define wxSTC_MYSQL_SQSTRING 12 | |
1839 | #define wxSTC_MYSQL_DQSTRING 13 | |
1840 | #define wxSTC_MYSQL_OPERATOR 14 | |
1841 | #define wxSTC_MYSQL_FUNCTION 15 | |
1842 | #define wxSTC_MYSQL_IDENTIFIER 16 | |
1843 | #define wxSTC_MYSQL_QUOTEDIDENTIFIER 17 | |
1844 | #define wxSTC_MYSQL_USER1 18 | |
1845 | #define wxSTC_MYSQL_USER2 19 | |
1846 | #define wxSTC_MYSQL_USER3 20 | |
1847 | #define wxSTC_MYSQL_HIDDENCOMMAND 21 | |
1848 | ||
1849 | /// Lexical state for SCLEX_PO | |
1850 | #define wxSTC_PO_DEFAULT 0 | |
1851 | #define wxSTC_PO_COMMENT 1 | |
1852 | #define wxSTC_PO_MSGID 2 | |
1853 | #define wxSTC_PO_MSGID_TEXT 3 | |
1854 | #define wxSTC_PO_MSGSTR 4 | |
1855 | #define wxSTC_PO_MSGSTR_TEXT 5 | |
1856 | #define wxSTC_PO_MSGCTXT 6 | |
1857 | #define wxSTC_PO_MSGCTXT_TEXT 7 | |
1858 | #define wxSTC_PO_FUZZY 8 | |
1859 | ||
1860 | /// Lexical states for SCLEX_PASCAL | |
1861 | #define wxSTC_PAS_DEFAULT 0 | |
1862 | #define wxSTC_PAS_IDENTIFIER 1 | |
1863 | #define wxSTC_PAS_COMMENT 2 | |
1864 | #define wxSTC_PAS_COMMENT2 3 | |
1865 | #define wxSTC_PAS_COMMENTLINE 4 | |
1866 | #define wxSTC_PAS_PREPROCESSOR 5 | |
1867 | #define wxSTC_PAS_PREPROCESSOR2 6 | |
1868 | #define wxSTC_PAS_NUMBER 7 | |
1869 | #define wxSTC_PAS_HEXNUMBER 8 | |
1870 | #define wxSTC_PAS_WORD 9 | |
1871 | #define wxSTC_PAS_STRING 10 | |
1872 | #define wxSTC_PAS_STRINGEOL 11 | |
1873 | #define wxSTC_PAS_CHARACTER 12 | |
1874 | #define wxSTC_PAS_OPERATOR 13 | |
1875 | #define wxSTC_PAS_ASM 14 | |
1876 | ||
1877 | /// Lexical state for SCLEX_SORCUS | |
1878 | #define wxSTC_SORCUS_DEFAULT 0 | |
1879 | #define wxSTC_SORCUS_COMMAND 1 | |
1880 | #define wxSTC_SORCUS_PARAMETER 2 | |
1881 | #define wxSTC_SORCUS_COMMENTLINE 3 | |
1882 | #define wxSTC_SORCUS_STRING 4 | |
1883 | #define wxSTC_SORCUS_STRINGEOL 5 | |
1884 | #define wxSTC_SORCUS_IDENTIFIER 6 | |
1885 | #define wxSTC_SORCUS_OPERATOR 7 | |
1886 | #define wxSTC_SORCUS_NUMBER 8 | |
1887 | #define wxSTC_SORCUS_CONSTANT 9 | |
1888 | ||
1889 | /// Lexical state for SCLEX_POWERPRO | |
1890 | #define wxSTC_POWERPRO_DEFAULT 0 | |
1891 | #define wxSTC_POWERPRO_COMMENTBLOCK 1 | |
1892 | #define wxSTC_POWERPRO_COMMENTLINE 2 | |
1893 | #define wxSTC_POWERPRO_NUMBER 3 | |
1894 | #define wxSTC_POWERPRO_WORD 4 | |
1895 | #define wxSTC_POWERPRO_WORD2 5 | |
1896 | #define wxSTC_POWERPRO_WORD3 6 | |
1897 | #define wxSTC_POWERPRO_WORD4 7 | |
1898 | #define wxSTC_POWERPRO_DOUBLEQUOTEDSTRING 8 | |
1899 | #define wxSTC_POWERPRO_SINGLEQUOTEDSTRING 9 | |
1900 | #define wxSTC_POWERPRO_LINECONTINUE 10 | |
1901 | #define wxSTC_POWERPRO_OPERATOR 11 | |
1902 | #define wxSTC_POWERPRO_IDENTIFIER 12 | |
1903 | #define wxSTC_POWERPRO_STRINGEOL 13 | |
1904 | #define wxSTC_POWERPRO_VERBATIM 14 | |
1905 | #define wxSTC_POWERPRO_ALTQUOTE 15 | |
1906 | #define wxSTC_POWERPRO_FUNCTION 16 | |
1907 | ||
1908 | /// Lexical states for SCLEX_SML | |
1909 | #define wxSTC_SML_DEFAULT 0 | |
1910 | #define wxSTC_SML_IDENTIFIER 1 | |
1911 | #define wxSTC_SML_TAGNAME 2 | |
1912 | #define wxSTC_SML_KEYWORD 3 | |
1913 | #define wxSTC_SML_KEYWORD2 4 | |
1914 | #define wxSTC_SML_KEYWORD3 5 | |
1915 | #define wxSTC_SML_LINENUM 6 | |
1916 | #define wxSTC_SML_OPERATOR 7 | |
1917 | #define wxSTC_SML_NUMBER 8 | |
1918 | #define wxSTC_SML_CHAR 9 | |
1919 | #define wxSTC_SML_STRING 11 | |
1920 | #define wxSTC_SML_COMMENT 12 | |
1921 | #define wxSTC_SML_COMMENT1 13 | |
1922 | #define wxSTC_SML_COMMENT2 14 | |
1923 | #define wxSTC_SML_COMMENT3 15 | |
1924 | ||
1925 | /// Lexical state for SCLEX_MARKDOWN | |
1926 | #define wxSTC_MARKDOWN_DEFAULT 0 | |
1927 | #define wxSTC_MARKDOWN_LINE_BEGIN 1 | |
1928 | #define wxSTC_MARKDOWN_STRONG1 2 | |
1929 | #define wxSTC_MARKDOWN_STRONG2 3 | |
1930 | #define wxSTC_MARKDOWN_EM1 4 | |
1931 | #define wxSTC_MARKDOWN_EM2 5 | |
1932 | #define wxSTC_MARKDOWN_HEADER1 6 | |
1933 | #define wxSTC_MARKDOWN_HEADER2 7 | |
1934 | #define wxSTC_MARKDOWN_HEADER3 8 | |
1935 | #define wxSTC_MARKDOWN_HEADER4 9 | |
1936 | #define wxSTC_MARKDOWN_HEADER5 10 | |
1937 | #define wxSTC_MARKDOWN_HEADER6 11 | |
1938 | #define wxSTC_MARKDOWN_PRECHAR 12 | |
1939 | #define wxSTC_MARKDOWN_ULIST_ITEM 13 | |
1940 | #define wxSTC_MARKDOWN_OLIST_ITEM 14 | |
1941 | #define wxSTC_MARKDOWN_BLOCKQUOTE 15 | |
1942 | #define wxSTC_MARKDOWN_STRIKEOUT 16 | |
1943 | #define wxSTC_MARKDOWN_HRULE 17 | |
1944 | #define wxSTC_MARKDOWN_LINK 18 | |
1945 | #define wxSTC_MARKDOWN_CODE 19 | |
1946 | #define wxSTC_MARKDOWN_CODE2 20 | |
1947 | #define wxSTC_MARKDOWN_CODEBK 21 | |
1948 | ||
1949 | /// Lexical state for SCLEX_TXT2TAGS | |
1950 | #define wxSTC_TXT2TAGS_DEFAULT 0 | |
1951 | #define wxSTC_TXT2TAGS_LINE_BEGIN 1 | |
1952 | #define wxSTC_TXT2TAGS_STRONG1 2 | |
1953 | #define wxSTC_TXT2TAGS_STRONG2 3 | |
1954 | #define wxSTC_TXT2TAGS_EM1 4 | |
1955 | #define wxSTC_TXT2TAGS_EM2 5 | |
1956 | #define wxSTC_TXT2TAGS_HEADER1 6 | |
1957 | #define wxSTC_TXT2TAGS_HEADER2 7 | |
1958 | #define wxSTC_TXT2TAGS_HEADER3 8 | |
1959 | #define wxSTC_TXT2TAGS_HEADER4 9 | |
1960 | #define wxSTC_TXT2TAGS_HEADER5 10 | |
1961 | #define wxSTC_TXT2TAGS_HEADER6 11 | |
1962 | #define wxSTC_TXT2TAGS_PRECHAR 12 | |
1963 | #define wxSTC_TXT2TAGS_ULIST_ITEM 13 | |
1964 | #define wxSTC_TXT2TAGS_OLIST_ITEM 14 | |
1965 | #define wxSTC_TXT2TAGS_BLOCKQUOTE 15 | |
1966 | #define wxSTC_TXT2TAGS_STRIKEOUT 16 | |
1967 | #define wxSTC_TXT2TAGS_HRULE 17 | |
1968 | #define wxSTC_TXT2TAGS_LINK 18 | |
1969 | #define wxSTC_TXT2TAGS_CODE 19 | |
1970 | #define wxSTC_TXT2TAGS_CODE2 20 | |
1971 | #define wxSTC_TXT2TAGS_CODEBK 21 | |
1972 | #define wxSTC_TXT2TAGS_COMMENT 22 | |
1973 | #define wxSTC_TXT2TAGS_OPTION 23 | |
1974 | #define wxSTC_TXT2TAGS_PREPROC 24 | |
1975 | #define wxSTC_TXT2TAGS_POSTPROC 25 | |
1976 | ||
1977 | /// Lexical states for SCLEX_A68K | |
1978 | #define wxSTC_A68K_DEFAULT 0 | |
1979 | #define wxSTC_A68K_COMMENT 1 | |
1980 | #define wxSTC_A68K_NUMBER_DEC 2 | |
1981 | #define wxSTC_A68K_NUMBER_BIN 3 | |
1982 | #define wxSTC_A68K_NUMBER_HEX 4 | |
1983 | #define wxSTC_A68K_STRING1 5 | |
1984 | #define wxSTC_A68K_OPERATOR 6 | |
1985 | #define wxSTC_A68K_CPUINSTRUCTION 7 | |
1986 | #define wxSTC_A68K_EXTINSTRUCTION 8 | |
1987 | #define wxSTC_A68K_REGISTER 9 | |
1988 | #define wxSTC_A68K_DIRECTIVE 10 | |
1989 | #define wxSTC_A68K_MACRO_ARG 11 | |
1990 | #define wxSTC_A68K_LABEL 12 | |
1991 | #define wxSTC_A68K_STRING2 13 | |
1992 | #define wxSTC_A68K_IDENTIFIER 14 | |
1993 | #define wxSTC_A68K_MACRO_DECLARATION 15 | |
1994 | #define wxSTC_A68K_COMMENT_WORD 16 | |
1995 | #define wxSTC_A68K_COMMENT_SPECIAL 17 | |
1996 | #define wxSTC_A68K_COMMENT_DOXYGEN 18 | |
1997 | ||
1998 | /// Lexical states for SCLEX_MODULA | |
1999 | #define wxSTC_MODULA_DEFAULT 0 | |
2000 | #define wxSTC_MODULA_COMMENT 1 | |
2001 | #define wxSTC_MODULA_DOXYCOMM 2 | |
2002 | #define wxSTC_MODULA_DOXYKEY 3 | |
2003 | #define wxSTC_MODULA_KEYWORD 4 | |
2004 | #define wxSTC_MODULA_RESERVED 5 | |
2005 | #define wxSTC_MODULA_NUMBER 6 | |
2006 | #define wxSTC_MODULA_BASENUM 7 | |
2007 | #define wxSTC_MODULA_FLOAT 8 | |
2008 | #define wxSTC_MODULA_STRING 9 | |
2009 | #define wxSTC_MODULA_STRSPEC 10 | |
2010 | #define wxSTC_MODULA_CHAR 11 | |
2011 | #define wxSTC_MODULA_CHARSPEC 12 | |
2012 | #define wxSTC_MODULA_PROC 13 | |
2013 | #define wxSTC_MODULA_PRAGMA 14 | |
2014 | #define wxSTC_MODULA_PRGKEY 15 | |
2015 | #define wxSTC_MODULA_OPERATOR 16 | |
2016 | #define wxSTC_MODULA_BADSTR 17 | |
2017 | ||
2018 | /// Lexical states for SCLEX_COFFEESCRIPT | |
2019 | #define wxSTC_COFFEESCRIPT_DEFAULT 0 | |
2020 | #define wxSTC_COFFEESCRIPT_COMMENT 1 | |
2021 | #define wxSTC_COFFEESCRIPT_COMMENTLINE 2 | |
2022 | #define wxSTC_COFFEESCRIPT_COMMENTDOC 3 | |
2023 | #define wxSTC_COFFEESCRIPT_NUMBER 4 | |
2024 | #define wxSTC_COFFEESCRIPT_WORD 5 | |
2025 | #define wxSTC_COFFEESCRIPT_STRING 6 | |
2026 | #define wxSTC_COFFEESCRIPT_CHARACTER 7 | |
2027 | #define wxSTC_COFFEESCRIPT_UUID 8 | |
2028 | #define wxSTC_COFFEESCRIPT_PREPROCESSOR 9 | |
2029 | #define wxSTC_COFFEESCRIPT_OPERATOR 10 | |
2030 | #define wxSTC_COFFEESCRIPT_IDENTIFIER 11 | |
2031 | #define wxSTC_COFFEESCRIPT_STRINGEOL 12 | |
2032 | #define wxSTC_COFFEESCRIPT_VERBATIM 13 | |
2033 | #define wxSTC_COFFEESCRIPT_REGEX 14 | |
2034 | #define wxSTC_COFFEESCRIPT_COMMENTLINEDOC 15 | |
2035 | #define wxSTC_COFFEESCRIPT_WORD2 16 | |
2036 | #define wxSTC_COFFEESCRIPT_COMMENTDOCKEYWORD 17 | |
2037 | #define wxSTC_COFFEESCRIPT_COMMENTDOCKEYWORDERROR 18 | |
2038 | #define wxSTC_COFFEESCRIPT_GLOBALCLASS 19 | |
2039 | #define wxSTC_COFFEESCRIPT_STRINGRAW 20 | |
2040 | #define wxSTC_COFFEESCRIPT_TRIPLEVERBATIM 21 | |
2041 | #define wxSTC_COFFEESCRIPT_HASHQUOTEDSTRING 22 | |
2042 | #define wxSTC_COFFEESCRIPT_COMMENTBLOCK 22 | |
2043 | #define wxSTC_COFFEESCRIPT_VERBOSE_REGEX 23 | |
2044 | #define wxSTC_COFFEESCRIPT_VERBOSE_REGEX_COMMENT 24 | |
2045 | ||
2046 | /// Lexical states for SCLEX_AVS | |
2047 | #define wxSTC_AVS_DEFAULT 0 | |
2048 | #define wxSTC_AVS_COMMENTBLOCK 1 | |
2049 | #define wxSTC_AVS_COMMENTBLOCKN 2 | |
2050 | #define wxSTC_AVS_COMMENTLINE 3 | |
2051 | #define wxSTC_AVS_NUMBER 4 | |
2052 | #define wxSTC_AVS_OPERATOR 5 | |
2053 | #define wxSTC_AVS_IDENTIFIER 6 | |
2054 | #define wxSTC_AVS_STRING 7 | |
2055 | #define wxSTC_AVS_TRIPLESTRING 8 | |
2056 | #define wxSTC_AVS_KEYWORD 9 | |
2057 | #define wxSTC_AVS_FILTER 10 | |
2058 | #define wxSTC_AVS_PLUGIN 11 | |
2059 | #define wxSTC_AVS_FUNCTION 12 | |
2060 | #define wxSTC_AVS_CLIPPROP 13 | |
2061 | #define wxSTC_AVS_USERDFN 14 | |
2062 | ||
2063 | /// Lexical states for SCLEX_ECL | |
2064 | #define wxSTC_ECL_DEFAULT 0 | |
2065 | #define wxSTC_ECL_COMMENT 1 | |
2066 | #define wxSTC_ECL_COMMENTLINE 2 | |
2067 | #define wxSTC_ECL_NUMBER 3 | |
2068 | #define wxSTC_ECL_STRING 4 | |
2069 | #define wxSTC_ECL_WORD0 5 | |
2070 | #define wxSTC_ECL_OPERATOR 6 | |
2071 | #define wxSTC_ECL_CHARACTER 7 | |
2072 | #define wxSTC_ECL_UUID 8 | |
2073 | #define wxSTC_ECL_PREPROCESSOR 9 | |
2074 | #define wxSTC_ECL_UNKNOWN 10 | |
2075 | #define wxSTC_ECL_IDENTIFIER 11 | |
2076 | #define wxSTC_ECL_STRINGEOL 12 | |
2077 | #define wxSTC_ECL_VERBATIM 13 | |
2078 | #define wxSTC_ECL_REGEX 14 | |
2079 | #define wxSTC_ECL_COMMENTLINEDOC 15 | |
2080 | #define wxSTC_ECL_WORD1 16 | |
2081 | #define wxSTC_ECL_COMMENTDOCKEYWORD 17 | |
2082 | #define wxSTC_ECL_COMMENTDOCKEYWORDERROR 18 | |
2083 | #define wxSTC_ECL_WORD2 19 | |
2084 | #define wxSTC_ECL_WORD3 20 | |
2085 | #define wxSTC_ECL_WORD4 21 | |
2086 | #define wxSTC_ECL_WORD5 22 | |
2087 | #define wxSTC_ECL_COMMENTDOC 23 | |
2088 | #define wxSTC_ECL_ADDED 24 | |
2089 | #define wxSTC_ECL_DELETED 25 | |
2090 | #define wxSTC_ECL_CHANGED 26 | |
2091 | #define wxSTC_ECL_MOVED 27 | |
2092 | ||
2093 | /// Lexical states for SCLEX_OSCRIPT | |
2094 | #define wxSTC_OSCRIPT_DEFAULT 0 | |
2095 | #define wxSTC_OSCRIPT_LINE_COMMENT 1 | |
2096 | #define wxSTC_OSCRIPT_BLOCK_COMMENT 2 | |
2097 | #define wxSTC_OSCRIPT_DOC_COMMENT 3 | |
2098 | #define wxSTC_OSCRIPT_PREPROCESSOR 4 | |
2099 | #define wxSTC_OSCRIPT_NUMBER 5 | |
2100 | #define wxSTC_OSCRIPT_SINGLEQUOTE_STRING 6 | |
2101 | #define wxSTC_OSCRIPT_DOUBLEQUOTE_STRING 7 | |
2102 | #define wxSTC_OSCRIPT_CONSTANT 8 | |
2103 | #define wxSTC_OSCRIPT_IDENTIFIER 9 | |
2104 | #define wxSTC_OSCRIPT_GLOBAL 10 | |
2105 | #define wxSTC_OSCRIPT_KEYWORD 11 | |
2106 | #define wxSTC_OSCRIPT_OPERATOR 12 | |
2107 | #define wxSTC_OSCRIPT_LABEL 13 | |
2108 | #define wxSTC_OSCRIPT_TYPE 14 | |
2109 | #define wxSTC_OSCRIPT_FUNCTION 15 | |
2110 | #define wxSTC_OSCRIPT_OBJECT 16 | |
2111 | #define wxSTC_OSCRIPT_PROPERTY 17 | |
2112 | #define wxSTC_OSCRIPT_METHOD 18 | |
2113 | ||
2114 | /// Lexical states for SCLEX_VISUALPROLOG | |
2115 | #define wxSTC_VISUALPROLOG_DEFAULT 0 | |
2116 | #define wxSTC_VISUALPROLOG_KEY_MAJOR 1 | |
2117 | #define wxSTC_VISUALPROLOG_KEY_MINOR 2 | |
2118 | #define wxSTC_VISUALPROLOG_KEY_DIRECTIVE 3 | |
2119 | #define wxSTC_VISUALPROLOG_COMMENT_BLOCK 4 | |
2120 | #define wxSTC_VISUALPROLOG_COMMENT_LINE 5 | |
2121 | #define wxSTC_VISUALPROLOG_COMMENT_KEY 6 | |
2122 | #define wxSTC_VISUALPROLOG_COMMENT_KEY_ERROR 7 | |
2123 | #define wxSTC_VISUALPROLOG_IDENTIFIER 8 | |
2124 | #define wxSTC_VISUALPROLOG_VARIABLE 9 | |
2125 | #define wxSTC_VISUALPROLOG_ANONYMOUS 10 | |
2126 | #define wxSTC_VISUALPROLOG_NUMBER 11 | |
2127 | #define wxSTC_VISUALPROLOG_OPERATOR 12 | |
2128 | #define wxSTC_VISUALPROLOG_CHARACTER 13 | |
2129 | #define wxSTC_VISUALPROLOG_CHARACTER_TOO_MANY 14 | |
2130 | #define wxSTC_VISUALPROLOG_CHARACTER_ESCAPE_ERROR 15 | |
2131 | #define wxSTC_VISUALPROLOG_STRING 16 | |
2132 | #define wxSTC_VISUALPROLOG_STRING_ESCAPE 17 | |
2133 | #define wxSTC_VISUALPROLOG_STRING_ESCAPE_ERROR 18 | |
2134 | #define wxSTC_VISUALPROLOG_STRING_EOL_OPEN 19 | |
2135 | #define wxSTC_VISUALPROLOG_STRING_VERBATIM 20 | |
2136 | #define wxSTC_VISUALPROLOG_STRING_VERBATIM_SPECIAL 21 | |
2137 | #define wxSTC_VISUALPROLOG_STRING_VERBATIM_EOL 22 | |
2138 | ||
2139 | //}}} | |
2140 | ||
2141 | // Commands that can be bound to keystrokes {{{ | |
2142 | ||
2143 | ||
2144 | /// Redoes the next action on the undo history. | |
2145 | #define wxSTC_CMD_REDO 2011 | |
2146 | ||
2147 | /// Select all the text in the document. | |
2148 | #define wxSTC_CMD_SELECTALL 2013 | |
2149 | ||
2150 | /// Undo one action in the undo history. | |
2151 | #define wxSTC_CMD_UNDO 2176 | |
2152 | ||
2153 | /// Cut the selection to the clipboard. | |
2154 | #define wxSTC_CMD_CUT 2177 | |
2155 | ||
2156 | /// Copy the selection to the clipboard. | |
2157 | #define wxSTC_CMD_COPY 2178 | |
2158 | ||
2159 | /// Paste the contents of the clipboard into the document replacing the selection. | |
2160 | #define wxSTC_CMD_PASTE 2179 | |
2161 | ||
2162 | /// Clear the selection. | |
2163 | #define wxSTC_CMD_CLEAR 2180 | |
2164 | ||
2165 | /// Move caret down one line. | |
2166 | #define wxSTC_CMD_LINEDOWN 2300 | |
2167 | ||
2168 | /// Move caret down one line extending selection to new caret position. | |
2169 | #define wxSTC_CMD_LINEDOWNEXTEND 2301 | |
2170 | ||
2171 | /// Move caret up one line. | |
2172 | #define wxSTC_CMD_LINEUP 2302 | |
2173 | ||
2174 | /// Move caret up one line extending selection to new caret position. | |
2175 | #define wxSTC_CMD_LINEUPEXTEND 2303 | |
2176 | ||
2177 | /// Move caret left one character. | |
2178 | #define wxSTC_CMD_CHARLEFT 2304 | |
23324ae1 | 2179 | |
6d7b19b0 RD |
2180 | /// Move caret left one character extending selection to new caret position. |
2181 | #define wxSTC_CMD_CHARLEFTEXTEND 2305 | |
4701dc09 | 2182 | |
6d7b19b0 RD |
2183 | /// Move caret right one character. |
2184 | #define wxSTC_CMD_CHARRIGHT 2306 | |
23324ae1 | 2185 | |
6d7b19b0 RD |
2186 | /// Move caret right one character extending selection to new caret position. |
2187 | #define wxSTC_CMD_CHARRIGHTEXTEND 2307 | |
4701dc09 | 2188 | |
6d7b19b0 RD |
2189 | /// Move caret left one word. |
2190 | #define wxSTC_CMD_WORDLEFT 2308 | |
23324ae1 | 2191 | |
6d7b19b0 RD |
2192 | /// Move caret left one word extending selection to new caret position. |
2193 | #define wxSTC_CMD_WORDLEFTEXTEND 2309 | |
4701dc09 | 2194 | |
6d7b19b0 RD |
2195 | /// Move caret right one word. |
2196 | #define wxSTC_CMD_WORDRIGHT 2310 | |
23324ae1 | 2197 | |
6d7b19b0 RD |
2198 | /// Move caret right one word extending selection to new caret position. |
2199 | #define wxSTC_CMD_WORDRIGHTEXTEND 2311 | |
4701dc09 | 2200 | |
6d7b19b0 RD |
2201 | /// Move caret to first position on line. |
2202 | #define wxSTC_CMD_HOME 2312 | |
23324ae1 | 2203 | |
6d7b19b0 RD |
2204 | /// Move caret to first position on line extending selection to new caret position. |
2205 | #define wxSTC_CMD_HOMEEXTEND 2313 | |
4701dc09 | 2206 | |
6d7b19b0 RD |
2207 | /// Move caret to last position on line. |
2208 | #define wxSTC_CMD_LINEEND 2314 | |
23324ae1 | 2209 | |
6d7b19b0 RD |
2210 | /// Move caret to last position on line extending selection to new caret position. |
2211 | #define wxSTC_CMD_LINEENDEXTEND 2315 | |
4701dc09 | 2212 | |
6d7b19b0 RD |
2213 | /// Move caret to first position in document. |
2214 | #define wxSTC_CMD_DOCUMENTSTART 2316 | |
23324ae1 | 2215 | |
6d7b19b0 RD |
2216 | /// Move caret to first position in document extending selection to new caret position. |
2217 | #define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317 | |
4701dc09 | 2218 | |
6d7b19b0 RD |
2219 | /// Move caret to last position in document. |
2220 | #define wxSTC_CMD_DOCUMENTEND 2318 | |
23324ae1 | 2221 | |
6d7b19b0 RD |
2222 | /// Move caret to last position in document extending selection to new caret position. |
2223 | #define wxSTC_CMD_DOCUMENTENDEXTEND 2319 | |
4701dc09 | 2224 | |
6d7b19b0 RD |
2225 | /// Move caret one page up. |
2226 | #define wxSTC_CMD_PAGEUP 2320 | |
23324ae1 | 2227 | |
6d7b19b0 RD |
2228 | /// Move caret one page up extending selection to new caret position. |
2229 | #define wxSTC_CMD_PAGEUPEXTEND 2321 | |
4701dc09 | 2230 | |
6d7b19b0 RD |
2231 | /// Move caret one page down. |
2232 | #define wxSTC_CMD_PAGEDOWN 2322 | |
23324ae1 | 2233 | |
6d7b19b0 RD |
2234 | /// Move caret one page down extending selection to new caret position. |
2235 | #define wxSTC_CMD_PAGEDOWNEXTEND 2323 | |
4701dc09 | 2236 | |
6d7b19b0 RD |
2237 | /// Switch from insert to overtype mode or the reverse. |
2238 | #define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324 | |
23324ae1 | 2239 | |
6d7b19b0 RD |
2240 | /// Cancel any modes such as call tip or auto-completion list display. |
2241 | #define wxSTC_CMD_CANCEL 2325 | |
4701dc09 | 2242 | |
6d7b19b0 RD |
2243 | /// Delete the selection or if no selection, the character before the caret. |
2244 | #define wxSTC_CMD_DELETEBACK 2326 | |
23324ae1 | 2245 | |
6d7b19b0 RD |
2246 | /// If selection is empty or all on one line replace the selection with a tab character. |
2247 | /// If more than one line selected, indent the lines. | |
2248 | #define wxSTC_CMD_TAB 2327 | |
4701dc09 | 2249 | |
6d7b19b0 RD |
2250 | /// Dedent the selected lines. |
2251 | #define wxSTC_CMD_BACKTAB 2328 | |
23324ae1 | 2252 | |
6d7b19b0 RD |
2253 | /// Insert a new line, may use a CRLF, CR or LF depending on EOL mode. |
2254 | #define wxSTC_CMD_NEWLINE 2329 | |
4701dc09 | 2255 | |
6d7b19b0 RD |
2256 | /// Insert a Form Feed character. |
2257 | #define wxSTC_CMD_FORMFEED 2330 | |
23324ae1 | 2258 | |
6d7b19b0 RD |
2259 | /// Move caret to before first visible character on line. |
2260 | /// If already there move to first character on line. | |
2261 | #define wxSTC_CMD_VCHOME 2331 | |
4701dc09 | 2262 | |
6d7b19b0 RD |
2263 | /// Like VCHome but extending selection to new caret position. |
2264 | #define wxSTC_CMD_VCHOMEEXTEND 2332 | |
23324ae1 | 2265 | |
6d7b19b0 RD |
2266 | /// Magnify the displayed text by increasing the sizes by 1 point. |
2267 | #define wxSTC_CMD_ZOOMIN 2333 | |
4701dc09 | 2268 | |
6d7b19b0 RD |
2269 | /// Make the displayed text smaller by decreasing the sizes by 1 point. |
2270 | #define wxSTC_CMD_ZOOMOUT 2334 | |
23324ae1 | 2271 | |
6d7b19b0 RD |
2272 | /// Delete the word to the left of the caret. |
2273 | #define wxSTC_CMD_DELWORDLEFT 2335 | |
4701dc09 | 2274 | |
6d7b19b0 RD |
2275 | /// Delete the word to the right of the caret. |
2276 | #define wxSTC_CMD_DELWORDRIGHT 2336 | |
23324ae1 | 2277 | |
6d7b19b0 RD |
2278 | /// Delete the word to the right of the caret, but not the trailing non-word characters. |
2279 | #define wxSTC_CMD_DELWORDRIGHTEND 2518 | |
65d6e39b | 2280 | |
6d7b19b0 RD |
2281 | /// Cut the line containing the caret. |
2282 | #define wxSTC_CMD_LINECUT 2337 | |
65d6e39b | 2283 | |
6d7b19b0 RD |
2284 | /// Delete the line containing the caret. |
2285 | #define wxSTC_CMD_LINEDELETE 2338 | |
65d6e39b | 2286 | |
6d7b19b0 RD |
2287 | /// Switch the current line with the previous. |
2288 | #define wxSTC_CMD_LINETRANSPOSE 2339 | |
4701dc09 | 2289 | |
6d7b19b0 RD |
2290 | /// Duplicate the current line. |
2291 | #define wxSTC_CMD_LINEDUPLICATE 2404 | |
23324ae1 | 2292 | |
6d7b19b0 RD |
2293 | /// Transform the selection to lower case. |
2294 | #define wxSTC_CMD_LOWERCASE 2340 | |
4701dc09 | 2295 | |
6d7b19b0 RD |
2296 | /// Transform the selection to upper case. |
2297 | #define wxSTC_CMD_UPPERCASE 2341 | |
23324ae1 | 2298 | |
6d7b19b0 RD |
2299 | /// Scroll the document down, keeping the caret visible. |
2300 | #define wxSTC_CMD_LINESCROLLDOWN 2342 | |
4701dc09 | 2301 | |
6d7b19b0 RD |
2302 | /// Scroll the document up, keeping the caret visible. |
2303 | #define wxSTC_CMD_LINESCROLLUP 2343 | |
23324ae1 | 2304 | |
6d7b19b0 RD |
2305 | /// Delete the selection or if no selection, the character before the caret. |
2306 | /// Will not delete the character before at the start of a line. | |
2307 | #define wxSTC_CMD_DELETEBACKNOTLINE 2344 | |
4701dc09 | 2308 | |
6d7b19b0 RD |
2309 | /// Move caret to first position on display line. |
2310 | #define wxSTC_CMD_HOMEDISPLAY 2345 | |
23324ae1 | 2311 | |
6d7b19b0 RD |
2312 | /// Move caret to first position on display line extending selection to |
2313 | /// new caret position. | |
2314 | #define wxSTC_CMD_HOMEDISPLAYEXTEND 2346 | |
4701dc09 | 2315 | |
6d7b19b0 RD |
2316 | /// Move caret to last position on display line. |
2317 | #define wxSTC_CMD_LINEENDDISPLAY 2347 | |
23324ae1 | 2318 | |
6d7b19b0 RD |
2319 | /// Move caret to last position on display line extending selection to new |
2320 | /// caret position. | |
2321 | #define wxSTC_CMD_LINEENDDISPLAYEXTEND 2348 | |
4701dc09 | 2322 | |
6d7b19b0 RD |
2323 | /// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? |
2324 | /// except they behave differently when word-wrap is enabled: | |
2325 | /// They go first to the start / end of the display line, like (Home|LineEnd)Display | |
2326 | /// The difference is that, the cursor is already at the point, it goes on to the start | |
2327 | /// or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. | |
2328 | #define wxSTC_CMD_HOMEWRAP 2349 | |
2329 | #define wxSTC_CMD_HOMEWRAPEXTEND 2450 | |
2330 | #define wxSTC_CMD_LINEENDWRAP 2451 | |
2331 | #define wxSTC_CMD_LINEENDWRAPEXTEND 2452 | |
2332 | #define wxSTC_CMD_VCHOMEWRAP 2453 | |
2333 | #define wxSTC_CMD_VCHOMEWRAPEXTEND 2454 | |
23324ae1 | 2334 | |
6d7b19b0 RD |
2335 | /// Copy the line containing the caret. |
2336 | #define wxSTC_CMD_LINECOPY 2455 | |
4701dc09 | 2337 | |
6d7b19b0 RD |
2338 | /// Move to the previous change in capitalisation. |
2339 | #define wxSTC_CMD_WORDPARTLEFT 2390 | |
23324ae1 | 2340 | |
6d7b19b0 RD |
2341 | /// Move to the previous change in capitalisation extending selection |
2342 | /// to new caret position. | |
2343 | #define wxSTC_CMD_WORDPARTLEFTEXTEND 2391 | |
4701dc09 | 2344 | |
6d7b19b0 RD |
2345 | /// Move to the change next in capitalisation. |
2346 | #define wxSTC_CMD_WORDPARTRIGHT 2392 | |
23324ae1 | 2347 | |
6d7b19b0 RD |
2348 | /// Move to the next change in capitalisation extending selection |
2349 | /// to new caret position. | |
2350 | #define wxSTC_CMD_WORDPARTRIGHTEXTEND 2393 | |
4701dc09 | 2351 | |
6d7b19b0 RD |
2352 | /// Delete back from the current position to the start of the line. |
2353 | #define wxSTC_CMD_DELLINELEFT 2395 | |
23324ae1 | 2354 | |
6d7b19b0 RD |
2355 | /// Delete forwards from the current position to the end of the line. |
2356 | #define wxSTC_CMD_DELLINERIGHT 2396 | |
4701dc09 | 2357 | |
6d7b19b0 RD |
2358 | /// Move caret between paragraphs (delimited by empty lines). |
2359 | #define wxSTC_CMD_PARADOWN 2413 | |
2360 | #define wxSTC_CMD_PARADOWNEXTEND 2414 | |
2361 | #define wxSTC_CMD_PARAUP 2415 | |
2362 | #define wxSTC_CMD_PARAUPEXTEND 2416 | |
23324ae1 | 2363 | |
6d7b19b0 RD |
2364 | /// Move caret down one line, extending rectangular selection to new caret position. |
2365 | #define wxSTC_CMD_LINEDOWNRECTEXTEND 2426 | |
4701dc09 | 2366 | |
6d7b19b0 RD |
2367 | /// Move caret up one line, extending rectangular selection to new caret position. |
2368 | #define wxSTC_CMD_LINEUPRECTEXTEND 2427 | |
23324ae1 | 2369 | |
6d7b19b0 RD |
2370 | /// Move caret left one character, extending rectangular selection to new caret position. |
2371 | #define wxSTC_CMD_CHARLEFTRECTEXTEND 2428 | |
4701dc09 | 2372 | |
6d7b19b0 RD |
2373 | /// Move caret right one character, extending rectangular selection to new caret position. |
2374 | #define wxSTC_CMD_CHARRIGHTRECTEXTEND 2429 | |
23324ae1 | 2375 | |
6d7b19b0 RD |
2376 | /// Move caret to first position on line, extending rectangular selection to new caret position. |
2377 | #define wxSTC_CMD_HOMERECTEXTEND 2430 | |
4701dc09 | 2378 | |
6d7b19b0 RD |
2379 | /// Move caret to before first visible character on line. |
2380 | /// If already there move to first character on line. | |
2381 | /// In either case, extend rectangular selection to new caret position. | |
2382 | #define wxSTC_CMD_VCHOMERECTEXTEND 2431 | |
23324ae1 | 2383 | |
6d7b19b0 RD |
2384 | /// Move caret to last position on line, extending rectangular selection to new caret position. |
2385 | #define wxSTC_CMD_LINEENDRECTEXTEND 2432 | |
4701dc09 | 2386 | |
6d7b19b0 RD |
2387 | /// Move caret one page up, extending rectangular selection to new caret position. |
2388 | #define wxSTC_CMD_PAGEUPRECTEXTEND 2433 | |
23324ae1 | 2389 | |
6d7b19b0 RD |
2390 | /// Move caret one page down, extending rectangular selection to new caret position. |
2391 | #define wxSTC_CMD_PAGEDOWNRECTEXTEND 2434 | |
4701dc09 | 2392 | |
6d7b19b0 RD |
2393 | /// Move caret to top of page, or one page up if already at top of page. |
2394 | #define wxSTC_CMD_STUTTEREDPAGEUP 2435 | |
23324ae1 | 2395 | |
6d7b19b0 RD |
2396 | /// Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. |
2397 | #define wxSTC_CMD_STUTTEREDPAGEUPEXTEND 2436 | |
4701dc09 | 2398 | |
6d7b19b0 RD |
2399 | /// Move caret to bottom of page, or one page down if already at bottom of page. |
2400 | #define wxSTC_CMD_STUTTEREDPAGEDOWN 2437 | |
23324ae1 | 2401 | |
6d7b19b0 RD |
2402 | /// Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. |
2403 | #define wxSTC_CMD_STUTTEREDPAGEDOWNEXTEND 2438 | |
4701dc09 | 2404 | |
6d7b19b0 RD |
2405 | /// Move caret left one word, position cursor at end of word. |
2406 | #define wxSTC_CMD_WORDLEFTEND 2439 | |
23324ae1 | 2407 | |
6d7b19b0 RD |
2408 | /// Move caret left one word, position cursor at end of word, extending selection to new caret position. |
2409 | #define wxSTC_CMD_WORDLEFTENDEXTEND 2440 | |
4701dc09 | 2410 | |
6d7b19b0 RD |
2411 | /// Move caret right one word, position cursor at end of word. |
2412 | #define wxSTC_CMD_WORDRIGHTEND 2441 | |
23324ae1 | 2413 | |
6d7b19b0 RD |
2414 | /// Move caret right one word, position cursor at end of word, extending selection to new caret position. |
2415 | #define wxSTC_CMD_WORDRIGHTENDEXTEND 2442 | |
4701dc09 | 2416 | |
6d7b19b0 RD |
2417 | /// Centre current line in window. |
2418 | #define wxSTC_CMD_VERTICALCENTRECARET 2619 | |
23324ae1 | 2419 | |
6d7b19b0 RD |
2420 | /// Move the selected lines up one line, shifting the line above after the selection |
2421 | #define wxSTC_CMD_MOVESELECTEDLINESUP 2620 | |
4701dc09 | 2422 | |
6d7b19b0 RD |
2423 | /// Move the selected lines down one line, shifting the line below before the selection |
2424 | #define wxSTC_CMD_MOVESELECTEDLINESDOWN 2621 | |
65d6e39b | 2425 | |
6d7b19b0 RD |
2426 | /// Scroll to start of document. |
2427 | #define wxSTC_CMD_SCROLLTOSTART 2628 | |
65d6e39b | 2428 | |
6d7b19b0 RD |
2429 | /// Scroll to end of document. |
2430 | #define wxSTC_CMD_SCROLLTOEND 2629 | |
65d6e39b | 2431 | |
6d7b19b0 | 2432 | //}}} |
65d6e39b | 2433 | |
23324ae1 FM |
2434 | |
2435 | ||
e54c96f1 | 2436 | |
23324ae1 FM |
2437 | /** |
2438 | @class wxStyledTextCtrl | |
7c913512 | 2439 | |
23324ae1 | 2440 | A wxWidgets implementation of the Scintilla source code editing component. |
7c913512 | 2441 | |
23324ae1 | 2442 | As well as features found in standard text editing components, Scintilla |
4701dc09 FM |
2443 | includes features especially useful when editing and debugging source code. |
2444 | These include support for syntax styling, error indicators, code completion | |
2445 | and call tips. | |
2446 | ||
2447 | The selection margin can contain markers like those used in debuggers to indicate | |
7c913512 FM |
2448 | breakpoints and the current line. Styling choices are more open than with many |
2449 | editors, allowing the use of proportional fonts, bold and italics, multiple | |
23324ae1 | 2450 | foreground and background colours and multiple fonts. |
7c913512 | 2451 | |
23324ae1 | 2452 | wxStyledTextCtrl is a 1 to 1 mapping of "raw" scintilla interface, whose |
4701dc09 FM |
2453 | documentation can be found in the Scintilla website (http://www.scintilla.org/). |
2454 | ||
3051a44a | 2455 | @beginEventEmissionTable{wxStyledTextEvent} |
4701dc09 FM |
2456 | @event{EVT_STC_CHANGE(id, fn)} |
2457 | TOWRITE | |
2458 | @event{EVT_STC_STYLENEEDED(id, fn)} | |
2459 | TOWRITE | |
2460 | @event{EVT_STC_CHARADDED(id, fn)} | |
2461 | TOWRITE | |
2462 | @event{EVT_STC_SAVEPOINTREACHED(id, fn)} | |
2463 | TOWRITE | |
2464 | @event{EVT_STC_SAVEPOINTLEFT(id, fn)} | |
2465 | TOWRITE | |
2466 | @event{EVT_STC_ROMODIFYATTEMPT(id, fn)} | |
2467 | TOWRITE | |
2468 | @event{EVT_STC_KEY(id, fn)} | |
2469 | TOWRITE | |
2470 | @event{EVT_STC_DOUBLECLICK(id, fn)} | |
2471 | TOWRITE | |
2472 | @event{EVT_STC_UPDATEUI(id, fn)} | |
2473 | TOWRITE | |
2474 | @event{EVT_STC_MODIFIED(id, fn)} | |
2475 | TOWRITE | |
2476 | @event{EVT_STC_MACRORECORD(id, fn)} | |
2477 | TOWRITE | |
2478 | @event{EVT_STC_MARGINCLICK(id, fn)} | |
2479 | TOWRITE | |
2480 | @event{EVT_STC_NEEDSHOWN(id, fn)} | |
2481 | TOWRITE | |
2482 | @event{EVT_STC_PAINTED(id, fn)} | |
2483 | TOWRITE | |
2484 | @event{EVT_STC_USERLISTSELECTION(id, fn)} | |
2485 | TOWRITE | |
2486 | @event{EVT_STC_URIDROPPED(id, fn)} | |
2487 | TOWRITE | |
2488 | @event{EVT_STC_DWELLSTART(id, fn)} | |
2489 | TOWRITE | |
2490 | @event{EVT_STC_DWELLEND(id, fn)} | |
2491 | TOWRITE | |
2492 | @event{EVT_STC_START_DRAG(id, fn)} | |
2493 | TOWRITE | |
2494 | @event{EVT_STC_DRAG_OVER(id, fn)} | |
2495 | TOWRITE | |
2496 | @event{EVT_STC_DO_DROP(id, fn)} | |
2497 | TOWRITE | |
2498 | @event{EVT_STC_ZOOM(id, fn)} | |
2499 | TOWRITE | |
2500 | @event{EVT_STC_HOTSPOT_CLICK(id, fn)} | |
2501 | TOWRITE | |
2502 | @event{EVT_STC_HOTSPOT_DCLICK(id, fn)} | |
2503 | TOWRITE | |
2504 | @event{EVT_STC_CALLTIP_CLICK(id, fn)} | |
2505 | TOWRITE | |
2506 | @event{EVT_STC_AUTOCOMP_SELECTION(id, fn)} | |
2507 | TOWRITE | |
9e96e16f RD |
2508 | @event{EVT_STC_INDICATOR_CLICK(id, fn)} |
2509 | TOWRITE | |
2510 | @event{EVT_STC_INDICATOR_RELEASE(id, fn)} | |
2511 | TOWRITE | |
2512 | @event{EVT_STC_AUTOCOMP_CANCELLED(id, fn)} | |
2513 | TOWRITE | |
2514 | @event{EVT_STC_AUTOCOMP_CHAR_DELETED(id, fn)} | |
2515 | TOWRITE | |
65d6e39b RD |
2516 | @event{EVT_STC_HOTSPOT_RELEASE_CLICK(id, fn)} |
2517 | TOWRITE | |
4701dc09 | 2518 | @endEventTable |
7c913512 | 2519 | |
23324ae1 FM |
2520 | @library{wxbase} |
2521 | @category{stc} | |
7c913512 | 2522 | |
e54c96f1 | 2523 | @see wxStyledTextEvent |
23324ae1 | 2524 | */ |
6d7b19b0 RD |
2525 | |
2526 | class wxStyledTextCtrl : public wxControl, public wxTextEntry | |
23324ae1 FM |
2527 | { |
2528 | public: | |
6d7b19b0 | 2529 | |
23324ae1 FM |
2530 | /** |
2531 | Ctor. | |
2532 | */ | |
6d7b19b0 RD |
2533 | wxStyledTextCtrl(wxWindow *parent, wxWindowID id=wxID_ANY, |
2534 | const wxPoint& pos = wxDefaultPosition, | |
2535 | const wxSize& size = wxDefaultSize, long style = 0, | |
2536 | const wxString& name = wxSTCNameStr); | |
23324ae1 | 2537 | /** |
6d7b19b0 | 2538 | Default ctor. |
23324ae1 | 2539 | */ |
6d7b19b0 RD |
2540 | wxStyledTextCtrl(); |
2541 | ||
2542 | ||
2543 | /** | |
2544 | Destructor. | |
2545 | */ | |
2546 | ~wxStyledTextCtrl(); | |
23324ae1 FM |
2547 | |
2548 | /** | |
6d7b19b0 | 2549 | Create the UI elements for a STC that was created with the default ctor. (For 2-phase create.) |
23324ae1 | 2550 | */ |
6d7b19b0 RD |
2551 | bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, |
2552 | const wxPoint& pos = wxDefaultPosition, | |
2553 | const wxSize& size = wxDefaultSize, long style = 0, | |
2554 | const wxString& name = wxSTCNameStr); | |
2555 | ||
2556 | ||
2557 | // **** Generated methods {{{ | |
2558 | ||
23324ae1 FM |
2559 | |
2560 | /** | |
23324ae1 FM |
2561 | Add text to the document at current position. |
2562 | */ | |
2563 | void AddText(const wxString& text); | |
2564 | ||
2565 | /** | |
6d7b19b0 | 2566 | Add array of cells to document. |
23324ae1 | 2567 | */ |
6d7b19b0 | 2568 | void AddStyledText(const wxMemoryBuffer& data); |
23324ae1 FM |
2569 | |
2570 | /** | |
6d7b19b0 | 2571 | Insert string at a position. |
23324ae1 | 2572 | */ |
6d7b19b0 | 2573 | void InsertText(int pos, const wxString& text); |
23324ae1 FM |
2574 | |
2575 | /** | |
6d7b19b0 | 2576 | Delete all text in the document. |
23324ae1 | 2577 | */ |
6d7b19b0 | 2578 | void ClearAll(); |
23324ae1 FM |
2579 | |
2580 | /** | |
6d7b19b0 | 2581 | Delete a range of text in the document. |
23324ae1 | 2582 | */ |
6d7b19b0 | 2583 | void DeleteRange(int pos, int deleteLength); |
23324ae1 FM |
2584 | |
2585 | /** | |
6d7b19b0 | 2586 | Set all style bytes to 0, remove all folding information. |
23324ae1 | 2587 | */ |
6d7b19b0 | 2588 | void ClearDocumentStyle(); |
23324ae1 FM |
2589 | |
2590 | /** | |
6d7b19b0 | 2591 | Returns the number of bytes in the document. |
23324ae1 | 2592 | */ |
6d7b19b0 | 2593 | int GetLength() const; |
23324ae1 FM |
2594 | |
2595 | /** | |
6d7b19b0 | 2596 | Returns the character byte at the position. |
23324ae1 | 2597 | */ |
6d7b19b0 | 2598 | int GetCharAt(int pos) const; |
23324ae1 FM |
2599 | |
2600 | /** | |
6d7b19b0 | 2601 | Returns the position of the caret. |
23324ae1 | 2602 | */ |
6d7b19b0 | 2603 | int GetCurrentPos() const; |
23324ae1 FM |
2604 | |
2605 | /** | |
6d7b19b0 | 2606 | Returns the position of the opposite end of the selection to the caret. |
23324ae1 | 2607 | */ |
6d7b19b0 | 2608 | int GetAnchor() const; |
23324ae1 FM |
2609 | |
2610 | /** | |
6d7b19b0 | 2611 | Returns the style byte at the position. |
23324ae1 | 2612 | */ |
6d7b19b0 | 2613 | int GetStyleAt(int pos) const; |
23324ae1 FM |
2614 | |
2615 | /** | |
6d7b19b0 | 2616 | Redoes the next action on the undo history. |
23324ae1 | 2617 | */ |
6d7b19b0 | 2618 | void Redo(); |
23324ae1 FM |
2619 | |
2620 | /** | |
6d7b19b0 RD |
2621 | Choose between collecting actions into the undo |
2622 | history and discarding them. | |
23324ae1 | 2623 | */ |
6d7b19b0 | 2624 | void SetUndoCollection(bool collectUndo); |
23324ae1 FM |
2625 | |
2626 | /** | |
6d7b19b0 | 2627 | Select all the text in the document. |
23324ae1 | 2628 | */ |
6d7b19b0 | 2629 | void SelectAll(); |
23324ae1 FM |
2630 | |
2631 | /** | |
6d7b19b0 RD |
2632 | Remember the current position in the undo history as the position |
2633 | at which the document was saved. | |
23324ae1 | 2634 | */ |
6d7b19b0 | 2635 | void SetSavePoint(); |
23324ae1 FM |
2636 | |
2637 | /** | |
6d7b19b0 | 2638 | Retrieve a buffer of cells. |
23324ae1 | 2639 | */ |
6d7b19b0 | 2640 | wxMemoryBuffer GetStyledText(int startPos, int endPos); |
23324ae1 FM |
2641 | |
2642 | /** | |
6d7b19b0 | 2643 | Are there any redoable actions in the undo history? |
23324ae1 | 2644 | */ |
6d7b19b0 | 2645 | bool CanRedo() const; |
23324ae1 FM |
2646 | |
2647 | /** | |
6d7b19b0 | 2648 | Retrieve the line number at which a particular marker is located. |
23324ae1 | 2649 | */ |
6d7b19b0 | 2650 | int MarkerLineFromHandle(int handle); |
23324ae1 FM |
2651 | |
2652 | /** | |
6d7b19b0 | 2653 | Delete a marker. |
23324ae1 | 2654 | */ |
6d7b19b0 | 2655 | void MarkerDeleteHandle(int handle); |
23324ae1 FM |
2656 | |
2657 | /** | |
6d7b19b0 | 2658 | Is undo history being collected? |
23324ae1 | 2659 | */ |
6d7b19b0 | 2660 | bool GetUndoCollection() const; |
23324ae1 FM |
2661 | |
2662 | /** | |
6d7b19b0 RD |
2663 | Are white space characters currently visible? |
2664 | Returns one of SCWS_* constants. | |
23324ae1 | 2665 | */ |
6d7b19b0 | 2666 | int GetViewWhiteSpace() const; |
23324ae1 FM |
2667 | |
2668 | /** | |
6d7b19b0 | 2669 | Make white space characters invisible, always visible or visible outside indentation. |
23324ae1 | 2670 | */ |
6d7b19b0 | 2671 | void SetViewWhiteSpace(int viewWS); |
23324ae1 FM |
2672 | |
2673 | /** | |
6d7b19b0 | 2674 | Find the position from a point within the window. |
23324ae1 | 2675 | */ |
6d7b19b0 | 2676 | int PositionFromPoint(wxPoint pt) const; |
23324ae1 FM |
2677 | |
2678 | /** | |
6d7b19b0 RD |
2679 | Find the position from a point within the window but return |
2680 | INVALID_POSITION if not close to text. | |
23324ae1 | 2681 | */ |
6d7b19b0 | 2682 | int PositionFromPointClose(int x, int y); |
23324ae1 FM |
2683 | |
2684 | /** | |
6d7b19b0 | 2685 | Set caret to start of a line and ensure it is visible. |
23324ae1 | 2686 | */ |
6d7b19b0 | 2687 | void GotoLine(int line); |
23324ae1 FM |
2688 | |
2689 | /** | |
6d7b19b0 | 2690 | Set caret to a position and ensure it is visible. |
23324ae1 | 2691 | */ |
6d7b19b0 | 2692 | void GotoPos(int pos); |
23324ae1 FM |
2693 | |
2694 | /** | |
6d7b19b0 RD |
2695 | Set the selection anchor to a position. The anchor is the opposite |
2696 | end of the selection from the caret. | |
23324ae1 | 2697 | */ |
6d7b19b0 | 2698 | void SetAnchor(int posAnchor); |
23324ae1 FM |
2699 | |
2700 | /** | |
6d7b19b0 RD |
2701 | Retrieve the text of the line containing the caret. |
2702 | Returns the index of the caret on the line. | |
23324ae1 | 2703 | */ |
6d7b19b0 | 2704 | wxString GetCurLine(int* linePos=NULL); |
23324ae1 FM |
2705 | |
2706 | /** | |
6d7b19b0 | 2707 | Retrieve the position of the last correctly styled character. |
23324ae1 | 2708 | */ |
6d7b19b0 | 2709 | int GetEndStyled() const; |
23324ae1 FM |
2710 | |
2711 | /** | |
6d7b19b0 | 2712 | Convert all line endings in the document to one mode. |
23324ae1 | 2713 | */ |
6d7b19b0 | 2714 | void ConvertEOLs(int eolMode); |
23324ae1 FM |
2715 | |
2716 | /** | |
6d7b19b0 | 2717 | Retrieve the current end of line mode - one of CRLF, CR, or LF. |
23324ae1 | 2718 | */ |
6d7b19b0 | 2719 | int GetEOLMode() const; |
23324ae1 FM |
2720 | |
2721 | /** | |
6d7b19b0 | 2722 | Set the current end of line mode. |
23324ae1 | 2723 | */ |
6d7b19b0 | 2724 | void SetEOLMode(int eolMode); |
23324ae1 | 2725 | |
65d6e39b | 2726 | /** |
6d7b19b0 RD |
2727 | Set the current styling position to pos and the styling mask to mask. |
2728 | The styling mask can be used to protect some bits in each styling byte from modification. | |
65d6e39b | 2729 | */ |
6d7b19b0 | 2730 | void StartStyling(int pos, int mask); |
65d6e39b RD |
2731 | |
2732 | /** | |
6d7b19b0 RD |
2733 | Change style from current styling position for length characters to a style |
2734 | and move the current styling position to after this newly styled segment. | |
65d6e39b | 2735 | */ |
6d7b19b0 | 2736 | void SetStyling(int length, int style); |
65d6e39b | 2737 | |
23324ae1 | 2738 | /** |
6d7b19b0 | 2739 | Is drawing done first into a buffer or direct to the screen? |
23324ae1 | 2740 | */ |
6d7b19b0 | 2741 | bool GetBufferedDraw() const; |
23324ae1 FM |
2742 | |
2743 | /** | |
6d7b19b0 RD |
2744 | If drawing is buffered then each line of text is drawn into a bitmap buffer |
2745 | before drawing it to the screen to avoid flicker. | |
23324ae1 | 2746 | */ |
6d7b19b0 | 2747 | void SetBufferedDraw(bool buffered); |
23324ae1 FM |
2748 | |
2749 | /** | |
6d7b19b0 | 2750 | Change the visible size of a tab to be a multiple of the width of a space character. |
23324ae1 | 2751 | */ |
6d7b19b0 | 2752 | void SetTabWidth(int tabWidth); |
23324ae1 | 2753 | |
65d6e39b | 2754 | /** |
6d7b19b0 | 2755 | Retrieve the visible size of a tab. |
65d6e39b | 2756 | */ |
6d7b19b0 | 2757 | int GetTabWidth() const; |
65d6e39b RD |
2758 | |
2759 | /** | |
6d7b19b0 | 2760 | Set the code page used to interpret the bytes of the document as characters. |
65d6e39b | 2761 | */ |
6d7b19b0 | 2762 | void SetCodePage(int codePage); |
65d6e39b | 2763 | |
23324ae1 | 2764 | /** |
6d7b19b0 RD |
2765 | Set the symbol used for a particular marker number, |
2766 | and optionally the fore and background colours. | |
23324ae1 | 2767 | */ |
6d7b19b0 RD |
2768 | void MarkerDefine(int markerNumber, int markerSymbol, |
2769 | const wxColour& foreground = wxNullColour, | |
2770 | const wxColour& background = wxNullColour); | |
23324ae1 FM |
2771 | |
2772 | /** | |
6d7b19b0 | 2773 | Set the foreground colour used for a particular marker number. |
23324ae1 | 2774 | */ |
6d7b19b0 | 2775 | void MarkerSetForeground(int markerNumber, const wxColour& fore); |
23324ae1 FM |
2776 | |
2777 | /** | |
6d7b19b0 | 2778 | Set the background colour used for a particular marker number. |
23324ae1 | 2779 | */ |
6d7b19b0 | 2780 | void MarkerSetBackground(int markerNumber, const wxColour& back); |
23324ae1 FM |
2781 | |
2782 | /** | |
6d7b19b0 | 2783 | Set the background colour used for a particular marker number when its folding block is selected. |
23324ae1 | 2784 | */ |
6d7b19b0 | 2785 | void MarkerSetBackgroundSelected(int markerNumber, const wxColour& back); |
23324ae1 FM |
2786 | |
2787 | /** | |
6d7b19b0 | 2788 | Enable/disable highlight for current folding bloc (smallest one that contains the caret) |
23324ae1 | 2789 | */ |
6d7b19b0 | 2790 | void MarkerEnableHighlight(bool enabled); |
23324ae1 FM |
2791 | |
2792 | /** | |
6d7b19b0 | 2793 | Add a marker to a line, returning an ID which can be used to find or delete the marker. |
23324ae1 | 2794 | */ |
6d7b19b0 | 2795 | int MarkerAdd(int line, int markerNumber); |
23324ae1 FM |
2796 | |
2797 | /** | |
6d7b19b0 | 2798 | Delete a marker from a line. |
23324ae1 | 2799 | */ |
6d7b19b0 | 2800 | void MarkerDelete(int line, int markerNumber); |
23324ae1 FM |
2801 | |
2802 | /** | |
6d7b19b0 | 2803 | Delete all markers with a particular number from all lines. |
23324ae1 | 2804 | */ |
6d7b19b0 | 2805 | void MarkerDeleteAll(int markerNumber); |
23324ae1 FM |
2806 | |
2807 | /** | |
6d7b19b0 | 2808 | Get a bit mask of all the markers set on a line. |
23324ae1 | 2809 | */ |
6d7b19b0 | 2810 | int MarkerGet(int line); |
23324ae1 | 2811 | |
65d6e39b | 2812 | /** |
6d7b19b0 RD |
2813 | Find the next line at or after lineStart that includes a marker in mask. |
2814 | Return -1 when no more lines. | |
65d6e39b | 2815 | */ |
6d7b19b0 | 2816 | int MarkerNext(int lineStart, int markerMask); |
65d6e39b | 2817 | |
23324ae1 | 2818 | /** |
6d7b19b0 | 2819 | Find the previous line before lineStart that includes a marker in mask. |
23324ae1 | 2820 | */ |
6d7b19b0 | 2821 | int MarkerPrevious(int lineStart, int markerMask); |
23324ae1 FM |
2822 | |
2823 | /** | |
6d7b19b0 | 2824 | Define a marker from a bitmap |
23324ae1 | 2825 | */ |
6d7b19b0 | 2826 | void MarkerDefineBitmap(int markerNumber, const wxBitmap& bmp); |
23324ae1 FM |
2827 | |
2828 | /** | |
6d7b19b0 | 2829 | Add a set of markers to a line. |
23324ae1 | 2830 | */ |
6d7b19b0 | 2831 | void MarkerAddSet(int line, int set); |
23324ae1 FM |
2832 | |
2833 | /** | |
6d7b19b0 | 2834 | Set the alpha used for a marker that is drawn in the text area, not the margin. |
23324ae1 | 2835 | */ |
6d7b19b0 | 2836 | void MarkerSetAlpha(int markerNumber, int alpha); |
23324ae1 FM |
2837 | |
2838 | /** | |
6d7b19b0 | 2839 | Set a margin to be either numeric or symbolic. |
23324ae1 | 2840 | */ |
6d7b19b0 | 2841 | void SetMarginType(int margin, int marginType); |
23324ae1 FM |
2842 | |
2843 | /** | |
6d7b19b0 | 2844 | Retrieve the type of a margin. |
23324ae1 | 2845 | */ |
6d7b19b0 | 2846 | int GetMarginType(int margin) const; |
23324ae1 FM |
2847 | |
2848 | /** | |
6d7b19b0 | 2849 | Set the width of a margin to a width expressed in pixels. |
23324ae1 | 2850 | */ |
6d7b19b0 | 2851 | void SetMarginWidth(int margin, int pixelWidth); |
23324ae1 FM |
2852 | |
2853 | /** | |
6d7b19b0 | 2854 | Retrieve the width of a margin in pixels. |
23324ae1 | 2855 | */ |
6d7b19b0 | 2856 | int GetMarginWidth(int margin) const; |
23324ae1 FM |
2857 | |
2858 | /** | |
6d7b19b0 | 2859 | Set a mask that determines which markers are displayed in a margin. |
23324ae1 | 2860 | */ |
6d7b19b0 | 2861 | void SetMarginMask(int margin, int mask); |
23324ae1 FM |
2862 | |
2863 | /** | |
6d7b19b0 | 2864 | Retrieve the marker mask of a margin. |
23324ae1 | 2865 | */ |
6d7b19b0 | 2866 | int GetMarginMask(int margin) const; |
23324ae1 FM |
2867 | |
2868 | /** | |
6d7b19b0 | 2869 | Make a margin sensitive or insensitive to mouse clicks. |
23324ae1 | 2870 | */ |
6d7b19b0 | 2871 | void SetMarginSensitive(int margin, bool sensitive); |
23324ae1 FM |
2872 | |
2873 | /** | |
6d7b19b0 | 2874 | Retrieve the mouse click sensitivity of a margin. |
23324ae1 | 2875 | */ |
6d7b19b0 | 2876 | bool GetMarginSensitive(int margin) const; |
23324ae1 FM |
2877 | |
2878 | /** | |
6d7b19b0 | 2879 | Set the cursor shown when the mouse is inside a margin. |
23324ae1 | 2880 | */ |
6d7b19b0 | 2881 | void SetMarginCursor(int margin, int cursor); |
23324ae1 FM |
2882 | |
2883 | /** | |
6d7b19b0 | 2884 | Retrieve the cursor shown in a margin. |
23324ae1 | 2885 | */ |
6d7b19b0 | 2886 | int GetMarginCursor(int margin) const; |
23324ae1 FM |
2887 | |
2888 | /** | |
6d7b19b0 | 2889 | Clear all the styles and make equivalent to the global default style. |
23324ae1 | 2890 | */ |
6d7b19b0 | 2891 | void StyleClearAll(); |
23324ae1 FM |
2892 | |
2893 | /** | |
6d7b19b0 | 2894 | Set the foreground colour of a style. |
23324ae1 | 2895 | */ |
6d7b19b0 | 2896 | void StyleSetForeground(int style, const wxColour& fore); |
23324ae1 FM |
2897 | |
2898 | /** | |
6d7b19b0 | 2899 | Set the background colour of a style. |
23324ae1 | 2900 | */ |
6d7b19b0 | 2901 | void StyleSetBackground(int style, const wxColour& back); |
23324ae1 FM |
2902 | |
2903 | /** | |
6d7b19b0 | 2904 | Set a style to be bold or not. |
23324ae1 | 2905 | */ |
6d7b19b0 | 2906 | void StyleSetBold(int style, bool bold); |
23324ae1 FM |
2907 | |
2908 | /** | |
6d7b19b0 | 2909 | Set a style to be italic or not. |
23324ae1 | 2910 | */ |
6d7b19b0 | 2911 | void StyleSetItalic(int style, bool italic); |
23324ae1 FM |
2912 | |
2913 | /** | |
6d7b19b0 | 2914 | Set the size of characters of a style. |
23324ae1 | 2915 | */ |
6d7b19b0 | 2916 | void StyleSetSize(int style, int sizePoints); |
23324ae1 FM |
2917 | |
2918 | /** | |
6d7b19b0 | 2919 | Set the font of a style. |
23324ae1 | 2920 | */ |
6d7b19b0 | 2921 | void StyleSetFaceName(int style, const wxString& fontName); |
23324ae1 FM |
2922 | |
2923 | /** | |
6d7b19b0 | 2924 | Set a style to have its end of line filled or not. |
23324ae1 | 2925 | */ |
6d7b19b0 | 2926 | void StyleSetEOLFilled(int style, bool filled); |
23324ae1 FM |
2927 | |
2928 | /** | |
6d7b19b0 | 2929 | Reset the default style to its state at startup |
23324ae1 | 2930 | */ |
6d7b19b0 | 2931 | void StyleResetDefault(); |
23324ae1 FM |
2932 | |
2933 | /** | |
6d7b19b0 | 2934 | Set a style to be underlined or not. |
23324ae1 | 2935 | */ |
6d7b19b0 | 2936 | void StyleSetUnderline(int style, bool underline); |
23324ae1 FM |
2937 | |
2938 | /** | |
6d7b19b0 | 2939 | Get the foreground colour of a style. |
23324ae1 | 2940 | */ |
6d7b19b0 | 2941 | wxColour StyleGetForeground(int style) const; |
23324ae1 FM |
2942 | |
2943 | /** | |
6d7b19b0 | 2944 | Get the background colour of a style. |
23324ae1 | 2945 | */ |
6d7b19b0 | 2946 | wxColour StyleGetBackground(int style) const; |
23324ae1 | 2947 | |
65d6e39b | 2948 | /** |
6d7b19b0 | 2949 | Get is a style bold or not. |
65d6e39b | 2950 | */ |
6d7b19b0 | 2951 | bool StyleGetBold(int style) const; |
65d6e39b | 2952 | |
23324ae1 | 2953 | /** |
6d7b19b0 | 2954 | Get is a style italic or not. |
23324ae1 | 2955 | */ |
6d7b19b0 | 2956 | bool StyleGetItalic(int style) const; |
23324ae1 FM |
2957 | |
2958 | /** | |
6d7b19b0 | 2959 | Get the size of characters of a style. |
23324ae1 | 2960 | */ |
6d7b19b0 | 2961 | int StyleGetSize(int style) const; |
23324ae1 FM |
2962 | |
2963 | /** | |
6d7b19b0 | 2964 | Get the font facename of a style |
23324ae1 | 2965 | */ |
6d7b19b0 | 2966 | wxString StyleGetFaceName(int style); |
23324ae1 | 2967 | |
65d6e39b | 2968 | /** |
6d7b19b0 | 2969 | Get is a style to have its end of line filled or not. |
65d6e39b | 2970 | */ |
6d7b19b0 | 2971 | bool StyleGetEOLFilled(int style) const; |
65d6e39b | 2972 | |
23324ae1 | 2973 | /** |
6d7b19b0 | 2974 | Get is a style underlined or not. |
23324ae1 | 2975 | */ |
6d7b19b0 | 2976 | bool StyleGetUnderline(int style) const; |
23324ae1 FM |
2977 | |
2978 | /** | |
6d7b19b0 | 2979 | Get is a style mixed case, or to force upper or lower case. |
23324ae1 | 2980 | */ |
6d7b19b0 | 2981 | int StyleGetCase(int style) const; |
23324ae1 FM |
2982 | |
2983 | /** | |
6d7b19b0 | 2984 | Get the character set of the font in a style. |
23324ae1 | 2985 | */ |
6d7b19b0 | 2986 | int StyleGetCharacterSet(int style) const; |
23324ae1 FM |
2987 | |
2988 | /** | |
6d7b19b0 | 2989 | Get is a style visible or not. |
23324ae1 | 2990 | */ |
6d7b19b0 | 2991 | bool StyleGetVisible(int style) const; |
23324ae1 FM |
2992 | |
2993 | /** | |
6d7b19b0 RD |
2994 | Get is a style changeable or not (read only). |
2995 | Experimental feature, currently buggy. | |
23324ae1 | 2996 | */ |
6d7b19b0 | 2997 | bool StyleGetChangeable(int style) const; |
23324ae1 FM |
2998 | |
2999 | /** | |
6d7b19b0 | 3000 | Get is a style a hotspot or not. |
23324ae1 | 3001 | */ |
6d7b19b0 | 3002 | bool StyleGetHotSpot(int style) const; |
23324ae1 FM |
3003 | |
3004 | /** | |
6d7b19b0 | 3005 | Set a style to be mixed case, or to force upper or lower case. |
23324ae1 | 3006 | */ |
6d7b19b0 | 3007 | void StyleSetCase(int style, int caseForce); |
23324ae1 FM |
3008 | |
3009 | /** | |
6d7b19b0 | 3010 | Set the size of characters of a style. Size is in points multiplied by 100. |
23324ae1 | 3011 | */ |
6d7b19b0 | 3012 | void StyleSetSizeFractional(int style, int caseForce); |
23324ae1 FM |
3013 | |
3014 | /** | |
6d7b19b0 | 3015 | Get the size of characters of a style in points multiplied by 100 |
23324ae1 | 3016 | */ |
6d7b19b0 | 3017 | int StyleGetSizeFractional(int style) const; |
23324ae1 FM |
3018 | |
3019 | /** | |
6d7b19b0 | 3020 | Set the weight of characters of a style. |
23324ae1 | 3021 | */ |
6d7b19b0 | 3022 | void StyleSetWeight(int style, int weight); |
23324ae1 FM |
3023 | |
3024 | /** | |
6d7b19b0 | 3025 | Get the weight of characters of a style. |
23324ae1 | 3026 | */ |
6d7b19b0 | 3027 | int StyleGetWeight(int style) const; |
23324ae1 FM |
3028 | |
3029 | /** | |
6d7b19b0 | 3030 | Set a style to be a hotspot or not. |
23324ae1 | 3031 | */ |
6d7b19b0 | 3032 | void StyleSetHotSpot(int style, bool hotspot); |
23324ae1 FM |
3033 | |
3034 | /** | |
6d7b19b0 | 3035 | Set the foreground colour of the main and additional selections and whether to use this setting. |
23324ae1 | 3036 | */ |
6d7b19b0 | 3037 | void SetSelForeground(bool useSetting, const wxColour& fore); |
23324ae1 FM |
3038 | |
3039 | /** | |
6d7b19b0 | 3040 | Set the background colour of the main and additional selections and whether to use this setting. |
23324ae1 | 3041 | */ |
6d7b19b0 | 3042 | void SetSelBackground(bool useSetting, const wxColour& back); |
23324ae1 FM |
3043 | |
3044 | /** | |
6d7b19b0 | 3045 | Get the alpha of the selection. |
23324ae1 | 3046 | */ |
6d7b19b0 | 3047 | int GetSelAlpha() const; |
23324ae1 FM |
3048 | |
3049 | /** | |
6d7b19b0 | 3050 | Set the alpha of the selection. |
23324ae1 | 3051 | */ |
6d7b19b0 | 3052 | void SetSelAlpha(int alpha); |
23324ae1 FM |
3053 | |
3054 | /** | |
6d7b19b0 | 3055 | Is the selection end of line filled? |
23324ae1 | 3056 | */ |
6d7b19b0 | 3057 | bool GetSelEOLFilled() const; |
23324ae1 FM |
3058 | |
3059 | /** | |
6d7b19b0 | 3060 | Set the selection to have its end of line filled or not. |
23324ae1 | 3061 | */ |
6d7b19b0 | 3062 | void SetSelEOLFilled(bool filled); |
23324ae1 FM |
3063 | |
3064 | /** | |
6d7b19b0 | 3065 | Set the foreground colour of the caret. |
23324ae1 | 3066 | */ |
6d7b19b0 | 3067 | void SetCaretForeground(const wxColour& fore); |
23324ae1 FM |
3068 | |
3069 | /** | |
6d7b19b0 | 3070 | When key+modifier combination km is pressed perform msg. |
23324ae1 | 3071 | */ |
6d7b19b0 | 3072 | void CmdKeyAssign(int key, int modifiers, int cmd); |
23324ae1 FM |
3073 | |
3074 | /** | |
6d7b19b0 | 3075 | When key+modifier combination km is pressed do nothing. |
23324ae1 | 3076 | */ |
6d7b19b0 | 3077 | void CmdKeyClear(int key, int modifiers); |
23324ae1 FM |
3078 | |
3079 | /** | |
6d7b19b0 | 3080 | Drop all key mappings. |
23324ae1 | 3081 | */ |
6d7b19b0 | 3082 | void CmdKeyClearAll(); |
23324ae1 FM |
3083 | |
3084 | /** | |
6d7b19b0 | 3085 | Set the styles for a segment of the document. |
23324ae1 | 3086 | */ |
6d7b19b0 | 3087 | void SetStyleBytes(int length, char* styleBytes); |
23324ae1 FM |
3088 | |
3089 | /** | |
6d7b19b0 | 3090 | Set a style to be visible or not. |
23324ae1 | 3091 | */ |
6d7b19b0 | 3092 | void StyleSetVisible(int style, bool visible); |
23324ae1 FM |
3093 | |
3094 | /** | |
6d7b19b0 | 3095 | Get the time in milliseconds that the caret is on and off. |
23324ae1 | 3096 | */ |
6d7b19b0 | 3097 | int GetCaretPeriod() const; |
23324ae1 FM |
3098 | |
3099 | /** | |
6d7b19b0 | 3100 | Get the time in milliseconds that the caret is on and off. 0 = steady on. |
23324ae1 | 3101 | */ |
6d7b19b0 | 3102 | void SetCaretPeriod(int periodMilliseconds); |
23324ae1 FM |
3103 | |
3104 | /** | |
6d7b19b0 RD |
3105 | Set the set of characters making up words for when moving or selecting by word. |
3106 | First sets defaults like SetCharsDefault. | |
23324ae1 | 3107 | */ |
6d7b19b0 | 3108 | void SetWordChars(const wxString& characters); |
23324ae1 FM |
3109 | |
3110 | /** | |
6d7b19b0 | 3111 | Get the set of characters making up words for when moving or selecting by word. |
23324ae1 | 3112 | */ |
6d7b19b0 | 3113 | wxString GetWordChars() const; |
23324ae1 FM |
3114 | |
3115 | /** | |
6d7b19b0 RD |
3116 | Start a sequence of actions that is undone and redone as a unit. |
3117 | May be nested. | |
23324ae1 | 3118 | */ |
6d7b19b0 | 3119 | void BeginUndoAction(); |
23324ae1 FM |
3120 | |
3121 | /** | |
6d7b19b0 | 3122 | End a sequence of actions that is undone and redone as a unit. |
23324ae1 | 3123 | */ |
6d7b19b0 | 3124 | void EndUndoAction(); |
23324ae1 FM |
3125 | |
3126 | /** | |
6d7b19b0 | 3127 | Set an indicator to plain, squiggle or TT. |
23324ae1 | 3128 | */ |
6d7b19b0 | 3129 | void IndicatorSetStyle(int indic, int style); |
23324ae1 FM |
3130 | |
3131 | /** | |
6d7b19b0 | 3132 | Retrieve the style of an indicator. |
23324ae1 | 3133 | */ |
6d7b19b0 | 3134 | int IndicatorGetStyle(int indic) const; |
23324ae1 FM |
3135 | |
3136 | /** | |
6d7b19b0 | 3137 | Set the foreground colour of an indicator. |
23324ae1 | 3138 | */ |
6d7b19b0 | 3139 | void IndicatorSetForeground(int indic, const wxColour& fore); |
23324ae1 FM |
3140 | |
3141 | /** | |
6d7b19b0 | 3142 | Retrieve the foreground colour of an indicator. |
23324ae1 | 3143 | */ |
6d7b19b0 | 3144 | wxColour IndicatorGetForeground(int indic) const; |
23324ae1 FM |
3145 | |
3146 | /** | |
6d7b19b0 | 3147 | Set an indicator to draw under text or over(default). |
23324ae1 | 3148 | */ |
6d7b19b0 | 3149 | void IndicatorSetUnder(int indic, bool under); |
23324ae1 FM |
3150 | |
3151 | /** | |
6d7b19b0 | 3152 | Retrieve whether indicator drawn under or over text. |
23324ae1 | 3153 | */ |
6d7b19b0 | 3154 | bool IndicatorGetUnder(int indic) const; |
23324ae1 FM |
3155 | |
3156 | /** | |
6d7b19b0 | 3157 | Set the foreground colour of all whitespace and whether to use this setting. |
23324ae1 | 3158 | */ |
6d7b19b0 | 3159 | void SetWhitespaceForeground(bool useSetting, const wxColour& fore); |
23324ae1 FM |
3160 | |
3161 | /** | |
6d7b19b0 | 3162 | Set the background colour of all whitespace and whether to use this setting. |
23324ae1 | 3163 | */ |
6d7b19b0 | 3164 | void SetWhitespaceBackground(bool useSetting, const wxColour& back); |
23324ae1 FM |
3165 | |
3166 | /** | |
6d7b19b0 | 3167 | Set the size of the dots used to mark space characters. |
23324ae1 | 3168 | */ |
6d7b19b0 | 3169 | void SetWhitespaceSize(int size); |
23324ae1 FM |
3170 | |
3171 | /** | |
6d7b19b0 | 3172 | Get the size of the dots used to mark space characters. |
23324ae1 | 3173 | */ |
6d7b19b0 | 3174 | int GetWhitespaceSize() const; |
23324ae1 FM |
3175 | |
3176 | /** | |
6d7b19b0 RD |
3177 | Divide each styling byte into lexical class bits (default: 5) and indicator |
3178 | bits (default: 3). If a lexer requires more than 32 lexical states, then this | |
3179 | is used to expand the possible states. | |
23324ae1 | 3180 | */ |
6d7b19b0 | 3181 | void SetStyleBits(int bits); |
23324ae1 FM |
3182 | |
3183 | /** | |
6d7b19b0 | 3184 | Retrieve number of bits in style bytes used to hold the lexical state. |
23324ae1 | 3185 | */ |
6d7b19b0 | 3186 | int GetStyleBits() const; |
23324ae1 FM |
3187 | |
3188 | /** | |
6d7b19b0 | 3189 | Used to hold extra styling information for each line. |
23324ae1 | 3190 | */ |
6d7b19b0 | 3191 | void SetLineState(int line, int state); |
23324ae1 FM |
3192 | |
3193 | /** | |
6d7b19b0 | 3194 | Retrieve the extra styling information for a line. |
23324ae1 | 3195 | */ |
6d7b19b0 | 3196 | int GetLineState(int line) const; |
23324ae1 FM |
3197 | |
3198 | /** | |
6d7b19b0 | 3199 | Retrieve the last line number that has line state. |
23324ae1 | 3200 | */ |
6d7b19b0 | 3201 | int GetMaxLineState() const; |
23324ae1 FM |
3202 | |
3203 | /** | |
6d7b19b0 | 3204 | Is the background of the line containing the caret in a different colour? |
23324ae1 | 3205 | */ |
6d7b19b0 | 3206 | bool GetCaretLineVisible() const; |
23324ae1 FM |
3207 | |
3208 | /** | |
6d7b19b0 | 3209 | Display the background of the line containing the caret in a different colour. |
23324ae1 | 3210 | */ |
6d7b19b0 | 3211 | void SetCaretLineVisible(bool show); |
23324ae1 FM |
3212 | |
3213 | /** | |
6d7b19b0 | 3214 | Get the colour of the background of the line containing the caret. |
23324ae1 | 3215 | */ |
6d7b19b0 | 3216 | wxColour GetCaretLineBackground() const; |
23324ae1 FM |
3217 | |
3218 | /** | |
6d7b19b0 | 3219 | Set the colour of the background of the line containing the caret. |
23324ae1 | 3220 | */ |
6d7b19b0 | 3221 | void SetCaretLineBackground(const wxColour& back); |
23324ae1 FM |
3222 | |
3223 | /** | |
6d7b19b0 RD |
3224 | Set a style to be changeable or not (read only). |
3225 | Experimental feature, currently buggy. | |
23324ae1 | 3226 | */ |
6d7b19b0 | 3227 | void StyleSetChangeable(int style, bool changeable); |
23324ae1 FM |
3228 | |
3229 | /** | |
6d7b19b0 RD |
3230 | Display a auto-completion list. |
3231 | The lenEntered parameter indicates how many characters before | |
3232 | the caret should be used to provide context. | |
23324ae1 | 3233 | */ |
6d7b19b0 | 3234 | void AutoCompShow(int lenEntered, const wxString& itemList); |
23324ae1 FM |
3235 | |
3236 | /** | |
6d7b19b0 | 3237 | Remove the auto-completion list from the screen. |
23324ae1 | 3238 | */ |
6d7b19b0 | 3239 | void AutoCompCancel(); |
23324ae1 FM |
3240 | |
3241 | /** | |
6d7b19b0 | 3242 | Is there an auto-completion list visible? |
23324ae1 | 3243 | */ |
6d7b19b0 | 3244 | bool AutoCompActive(); |
23324ae1 FM |
3245 | |
3246 | /** | |
6d7b19b0 | 3247 | Retrieve the position of the caret when the auto-completion list was displayed. |
23324ae1 | 3248 | */ |
6d7b19b0 | 3249 | int AutoCompPosStart(); |
23324ae1 FM |
3250 | |
3251 | /** | |
6d7b19b0 | 3252 | User has selected an item so remove the list and insert the selection. |
23324ae1 | 3253 | */ |
6d7b19b0 | 3254 | void AutoCompComplete(); |
23324ae1 FM |
3255 | |
3256 | /** | |
6d7b19b0 | 3257 | Define a set of character that when typed cancel the auto-completion list. |
23324ae1 | 3258 | */ |
6d7b19b0 | 3259 | void AutoCompStops(const wxString& characterSet); |
23324ae1 FM |
3260 | |
3261 | /** | |
6d7b19b0 RD |
3262 | Change the separator character in the string setting up an auto-completion list. |
3263 | Default is space but can be changed if items contain space. | |
23324ae1 | 3264 | */ |
6d7b19b0 | 3265 | void AutoCompSetSeparator(int separatorCharacter); |
23324ae1 FM |
3266 | |
3267 | /** | |
6d7b19b0 | 3268 | Retrieve the auto-completion list separator character. |
23324ae1 | 3269 | */ |
6d7b19b0 | 3270 | int AutoCompGetSeparator() const; |
23324ae1 FM |
3271 | |
3272 | /** | |
6d7b19b0 | 3273 | Select the item in the auto-completion list that starts with a string. |
23324ae1 | 3274 | */ |
6d7b19b0 | 3275 | void AutoCompSelect(const wxString& text); |
23324ae1 FM |
3276 | |
3277 | /** | |
6d7b19b0 RD |
3278 | Should the auto-completion list be cancelled if the user backspaces to a |
3279 | position before where the box was created. | |
23324ae1 | 3280 | */ |
6d7b19b0 | 3281 | void AutoCompSetCancelAtStart(bool cancel); |
23324ae1 FM |
3282 | |
3283 | /** | |
6d7b19b0 | 3284 | Retrieve whether auto-completion cancelled by backspacing before start. |
23324ae1 | 3285 | */ |
6d7b19b0 | 3286 | bool AutoCompGetCancelAtStart() const; |
23324ae1 FM |
3287 | |
3288 | /** | |
6d7b19b0 RD |
3289 | Define a set of characters that when typed will cause the autocompletion to |
3290 | choose the selected item. | |
23324ae1 | 3291 | */ |
6d7b19b0 | 3292 | void AutoCompSetFillUps(const wxString& characterSet); |
23324ae1 FM |
3293 | |
3294 | /** | |
6d7b19b0 | 3295 | Should a single item auto-completion list automatically choose the item. |
23324ae1 | 3296 | */ |
6d7b19b0 | 3297 | void AutoCompSetChooseSingle(bool chooseSingle); |
23324ae1 FM |
3298 | |
3299 | /** | |
6d7b19b0 | 3300 | Retrieve whether a single item auto-completion list automatically choose the item. |
23324ae1 | 3301 | */ |
6d7b19b0 | 3302 | bool AutoCompGetChooseSingle() const; |
23324ae1 FM |
3303 | |
3304 | /** | |
6d7b19b0 | 3305 | Set whether case is significant when performing auto-completion searches. |
23324ae1 | 3306 | */ |
6d7b19b0 | 3307 | void AutoCompSetIgnoreCase(bool ignoreCase); |
23324ae1 FM |
3308 | |
3309 | /** | |
6d7b19b0 | 3310 | Retrieve state of ignore case flag. |
23324ae1 | 3311 | */ |
6d7b19b0 | 3312 | bool AutoCompGetIgnoreCase() const; |
23324ae1 FM |
3313 | |
3314 | /** | |
6d7b19b0 | 3315 | Display a list of strings and send notification when user chooses one. |
23324ae1 | 3316 | */ |
6d7b19b0 | 3317 | void UserListShow(int listType, const wxString& itemList); |
23324ae1 FM |
3318 | |
3319 | /** | |
6d7b19b0 | 3320 | Set whether or not autocompletion is hidden automatically when nothing matches. |
23324ae1 | 3321 | */ |
6d7b19b0 | 3322 | void AutoCompSetAutoHide(bool autoHide); |
23324ae1 FM |
3323 | |
3324 | /** | |
6d7b19b0 | 3325 | Retrieve whether or not autocompletion is hidden automatically when nothing matches. |
23324ae1 | 3326 | */ |
6d7b19b0 | 3327 | bool AutoCompGetAutoHide() const; |
23324ae1 FM |
3328 | |
3329 | /** | |
6d7b19b0 RD |
3330 | Set whether or not autocompletion deletes any word characters |
3331 | after the inserted text upon completion. | |
23324ae1 | 3332 | */ |
6d7b19b0 | 3333 | void AutoCompSetDropRestOfWord(bool dropRestOfWord); |
23324ae1 | 3334 | |
65d6e39b | 3335 | /** |
6d7b19b0 RD |
3336 | Retrieve whether or not autocompletion deletes any word characters |
3337 | after the inserted text upon completion. | |
65d6e39b | 3338 | */ |
6d7b19b0 | 3339 | bool AutoCompGetDropRestOfWord() const; |
65d6e39b | 3340 | |
23324ae1 | 3341 | /** |
6d7b19b0 | 3342 | Register an image for use in autocompletion lists. |
23324ae1 | 3343 | */ |
6d7b19b0 | 3344 | void RegisterImage(int type, const wxBitmap& bmp); |
23324ae1 FM |
3345 | |
3346 | /** | |
6d7b19b0 | 3347 | Clear all the registered images. |
23324ae1 | 3348 | */ |
6d7b19b0 | 3349 | void ClearRegisteredImages(); |
23324ae1 FM |
3350 | |
3351 | /** | |
6d7b19b0 | 3352 | Retrieve the auto-completion list type-separator character. |
23324ae1 | 3353 | */ |
6d7b19b0 | 3354 | int AutoCompGetTypeSeparator() const; |
23324ae1 FM |
3355 | |
3356 | /** | |
6d7b19b0 RD |
3357 | Change the type-separator character in the string setting up an auto-completion list. |
3358 | Default is '?' but can be changed if items contain '?'. | |
23324ae1 | 3359 | */ |
6d7b19b0 | 3360 | void AutoCompSetTypeSeparator(int separatorCharacter); |
23324ae1 FM |
3361 | |
3362 | /** | |
6d7b19b0 RD |
3363 | Set the maximum width, in characters, of auto-completion and user lists. |
3364 | Set to 0 to autosize to fit longest item, which is the default. | |
23324ae1 | 3365 | */ |
6d7b19b0 | 3366 | void AutoCompSetMaxWidth(int characterCount); |
23324ae1 FM |
3367 | |
3368 | /** | |
6d7b19b0 | 3369 | Get the maximum width, in characters, of auto-completion and user lists. |
23324ae1 | 3370 | */ |
6d7b19b0 | 3371 | int AutoCompGetMaxWidth() const; |
23324ae1 FM |
3372 | |
3373 | /** | |
6d7b19b0 RD |
3374 | Set the maximum height, in rows, of auto-completion and user lists. |
3375 | The default is 5 rows. | |
23324ae1 | 3376 | */ |
6d7b19b0 | 3377 | void AutoCompSetMaxHeight(int rowCount); |
23324ae1 FM |
3378 | |
3379 | /** | |
6d7b19b0 | 3380 | Set the maximum height, in rows, of auto-completion and user lists. |
23324ae1 | 3381 | */ |
6d7b19b0 | 3382 | int AutoCompGetMaxHeight() const; |
23324ae1 FM |
3383 | |
3384 | /** | |
6d7b19b0 | 3385 | Set the number of spaces used for one level of indentation. |
23324ae1 | 3386 | */ |
6d7b19b0 | 3387 | void SetIndent(int indentSize); |
23324ae1 FM |
3388 | |
3389 | /** | |
6d7b19b0 | 3390 | Retrieve indentation size. |
23324ae1 | 3391 | */ |
6d7b19b0 | 3392 | int GetIndent() const; |
23324ae1 FM |
3393 | |
3394 | /** | |
6d7b19b0 RD |
3395 | Indentation will only use space characters if useTabs is false, otherwise |
3396 | it will use a combination of tabs and spaces. | |
23324ae1 | 3397 | */ |
6d7b19b0 | 3398 | void SetUseTabs(bool useTabs); |
23324ae1 FM |
3399 | |
3400 | /** | |
6d7b19b0 | 3401 | Retrieve whether tabs will be used in indentation. |
23324ae1 | 3402 | */ |
6d7b19b0 | 3403 | bool GetUseTabs() const; |
23324ae1 FM |
3404 | |
3405 | /** | |
6d7b19b0 | 3406 | Change the indentation of a line to a number of columns. |
23324ae1 | 3407 | */ |
6d7b19b0 | 3408 | void SetLineIndentation(int line, int indentSize); |
23324ae1 FM |
3409 | |
3410 | /** | |
6d7b19b0 | 3411 | Retrieve the number of columns that a line is indented. |
23324ae1 | 3412 | */ |
6d7b19b0 | 3413 | int GetLineIndentation(int line) const; |
23324ae1 FM |
3414 | |
3415 | /** | |
6d7b19b0 | 3416 | Retrieve the position before the first non indentation character on a line. |
23324ae1 | 3417 | */ |
6d7b19b0 | 3418 | int GetLineIndentPosition(int line) const; |
23324ae1 FM |
3419 | |
3420 | /** | |
6d7b19b0 | 3421 | Retrieve the column number of a position, taking tab width into account. |
23324ae1 | 3422 | */ |
6d7b19b0 | 3423 | int GetColumn(int pos) const; |
23324ae1 FM |
3424 | |
3425 | /** | |
6d7b19b0 | 3426 | Count characters between two positions. |
23324ae1 | 3427 | */ |
6d7b19b0 | 3428 | int CountCharacters(int startPos, int endPos); |
23324ae1 FM |
3429 | |
3430 | /** | |
6d7b19b0 | 3431 | Show or hide the horizontal scroll bar. |
23324ae1 | 3432 | */ |
6d7b19b0 | 3433 | void SetUseHorizontalScrollBar(bool show); |
23324ae1 FM |
3434 | |
3435 | /** | |
6d7b19b0 | 3436 | Is the horizontal scroll bar visible? |
23324ae1 | 3437 | */ |
6d7b19b0 | 3438 | bool GetUseHorizontalScrollBar() const; |
23324ae1 FM |
3439 | |
3440 | /** | |
6d7b19b0 | 3441 | Show or hide indentation guides. |
23324ae1 | 3442 | */ |
6d7b19b0 | 3443 | void SetIndentationGuides(int indentView); |
23324ae1 FM |
3444 | |
3445 | /** | |
6d7b19b0 | 3446 | Are the indentation guides visible? |
23324ae1 | 3447 | */ |
6d7b19b0 | 3448 | int GetIndentationGuides() const; |
23324ae1 FM |
3449 | |
3450 | /** | |
6d7b19b0 RD |
3451 | Set the highlighted indentation guide column. |
3452 | 0 = no highlighted guide. | |
23324ae1 | 3453 | */ |
6d7b19b0 | 3454 | void SetHighlightGuide(int column); |
23324ae1 FM |
3455 | |
3456 | /** | |
6d7b19b0 | 3457 | Get the highlighted indentation guide column. |
23324ae1 | 3458 | */ |
6d7b19b0 | 3459 | int GetHighlightGuide() const; |
23324ae1 FM |
3460 | |
3461 | /** | |
6d7b19b0 | 3462 | Get the position after the last visible characters on a line. |
23324ae1 | 3463 | */ |
6d7b19b0 | 3464 | int GetLineEndPosition(int line) const; |
23324ae1 FM |
3465 | |
3466 | /** | |
6d7b19b0 | 3467 | Get the code page used to interpret the bytes of the document as characters. |
23324ae1 | 3468 | */ |
6d7b19b0 | 3469 | int GetCodePage() const; |
23324ae1 FM |
3470 | |
3471 | /** | |
6d7b19b0 | 3472 | Get the foreground colour of the caret. |
23324ae1 | 3473 | */ |
6d7b19b0 | 3474 | wxColour GetCaretForeground() const; |
23324ae1 FM |
3475 | |
3476 | /** | |
6d7b19b0 | 3477 | In read-only mode? |
23324ae1 | 3478 | */ |
6d7b19b0 | 3479 | bool GetReadOnly() const; |
23324ae1 FM |
3480 | |
3481 | /** | |
6d7b19b0 | 3482 | Sets the position of the caret. |
23324ae1 | 3483 | */ |
6d7b19b0 | 3484 | void SetCurrentPos(int pos); |
23324ae1 FM |
3485 | |
3486 | /** | |
6d7b19b0 | 3487 | Sets the position that starts the selection - this becomes the anchor. |
23324ae1 | 3488 | */ |
6d7b19b0 | 3489 | void SetSelectionStart(int pos); |
23324ae1 FM |
3490 | |
3491 | /** | |
3492 | Returns the position at the start of the selection. | |
3493 | */ | |
adaaa686 | 3494 | int GetSelectionStart() const; |
23324ae1 FM |
3495 | |
3496 | /** | |
6d7b19b0 | 3497 | Sets the position that ends the selection - this becomes the currentPosition. |
23324ae1 | 3498 | */ |
6d7b19b0 | 3499 | void SetSelectionEnd(int pos); |
23324ae1 FM |
3500 | |
3501 | /** | |
6d7b19b0 | 3502 | Returns the position at the end of the selection. |
23324ae1 | 3503 | */ |
6d7b19b0 | 3504 | int GetSelectionEnd() const; |
23324ae1 FM |
3505 | |
3506 | /** | |
6d7b19b0 | 3507 | Set caret to a position, while removing any existing selection. |
23324ae1 | 3508 | */ |
6d7b19b0 | 3509 | void SetEmptySelection(int pos); |
23324ae1 FM |
3510 | |
3511 | /** | |
6d7b19b0 | 3512 | Sets the print magnification added to the point size of each style for printing. |
23324ae1 | 3513 | */ |
6d7b19b0 | 3514 | void SetPrintMagnification(int magnification); |
23324ae1 FM |
3515 | |
3516 | /** | |
6d7b19b0 | 3517 | Returns the print magnification. |
23324ae1 | 3518 | */ |
6d7b19b0 | 3519 | int GetPrintMagnification() const; |
23324ae1 FM |
3520 | |
3521 | /** | |
6d7b19b0 | 3522 | Modify colours when printing for clearer printed text. |
23324ae1 | 3523 | */ |
6d7b19b0 | 3524 | void SetPrintColourMode(int mode); |
23324ae1 FM |
3525 | |
3526 | /** | |
6d7b19b0 | 3527 | Returns the print colour mode. |
23324ae1 | 3528 | */ |
6d7b19b0 | 3529 | int GetPrintColourMode() const; |
23324ae1 FM |
3530 | |
3531 | /** | |
6d7b19b0 | 3532 | Find some text in the document. |
23324ae1 | 3533 | */ |
6d7b19b0 | 3534 | int FindText(int minPos, int maxPos, const wxString& text, int flags=0); |
23324ae1 FM |
3535 | |
3536 | /** | |
6d7b19b0 | 3537 | On Windows, will draw the document into a display context such as a printer. |
23324ae1 | 3538 | */ |
6d7b19b0 RD |
3539 | int FormatRange(bool doDraw, |
3540 | int startPos, | |
3541 | int endPos, | |
3542 | wxDC* draw, | |
3543 | wxDC* target, | |
3544 | wxRect renderRect, | |
3545 | wxRect pageRect); | |
23324ae1 FM |
3546 | |
3547 | /** | |
6d7b19b0 | 3548 | Retrieve the display line at the top of the display. |
23324ae1 | 3549 | */ |
6d7b19b0 | 3550 | int GetFirstVisibleLine() const; |
23324ae1 FM |
3551 | |
3552 | /** | |
6d7b19b0 | 3553 | Retrieve the contents of a line. |
23324ae1 | 3554 | */ |
6d7b19b0 | 3555 | wxString GetLine(int line) const; |
23324ae1 FM |
3556 | |
3557 | /** | |
6d7b19b0 | 3558 | Returns the number of lines in the document. There is always at least one. |
23324ae1 | 3559 | */ |
6d7b19b0 | 3560 | int GetLineCount() const; |
23324ae1 FM |
3561 | |
3562 | /** | |
6d7b19b0 | 3563 | Sets the size in pixels of the left margin. |
23324ae1 | 3564 | */ |
6d7b19b0 | 3565 | void SetMarginLeft(int pixelWidth); |
23324ae1 FM |
3566 | |
3567 | /** | |
6d7b19b0 | 3568 | Returns the size in pixels of the left margin. |
23324ae1 | 3569 | */ |
6d7b19b0 | 3570 | int GetMarginLeft() const; |
23324ae1 FM |
3571 | |
3572 | /** | |
6d7b19b0 | 3573 | Sets the size in pixels of the right margin. |
23324ae1 | 3574 | */ |
6d7b19b0 | 3575 | void SetMarginRight(int pixelWidth); |
23324ae1 FM |
3576 | |
3577 | /** | |
6d7b19b0 | 3578 | Returns the size in pixels of the right margin. |
23324ae1 | 3579 | */ |
6d7b19b0 | 3580 | int GetMarginRight() const; |
23324ae1 FM |
3581 | |
3582 | /** | |
6d7b19b0 | 3583 | Is the document different from when it was last saved? |
23324ae1 | 3584 | */ |
6d7b19b0 | 3585 | bool GetModify() const; |
23324ae1 FM |
3586 | |
3587 | /** | |
6d7b19b0 | 3588 | Retrieve the selected text. |
23324ae1 | 3589 | */ |
6d7b19b0 | 3590 | wxString GetSelectedText(); |
23324ae1 FM |
3591 | |
3592 | /** | |
6d7b19b0 | 3593 | Retrieve a range of text. |
23324ae1 | 3594 | */ |
6d7b19b0 | 3595 | wxString GetTextRange(int startPos, int endPos); |
23324ae1 FM |
3596 | |
3597 | /** | |
6d7b19b0 | 3598 | Draw the selection in normal style or with selection highlighted. |
23324ae1 | 3599 | */ |
6d7b19b0 | 3600 | void HideSelection(bool normal); |
23324ae1 FM |
3601 | |
3602 | /** | |
6d7b19b0 | 3603 | Retrieve the line containing a position. |
23324ae1 | 3604 | */ |
6d7b19b0 | 3605 | int LineFromPosition(int pos) const; |
23324ae1 FM |
3606 | |
3607 | /** | |
6d7b19b0 | 3608 | Retrieve the position at the start of a line. |
23324ae1 | 3609 | */ |
6d7b19b0 | 3610 | int PositionFromLine(int line) const; |
23324ae1 FM |
3611 | |
3612 | /** | |
6d7b19b0 | 3613 | Scroll horizontally and vertically. |
23324ae1 | 3614 | */ |
6d7b19b0 | 3615 | void LineScroll(int columns, int lines); |
23324ae1 FM |
3616 | |
3617 | /** | |
6d7b19b0 | 3618 | Ensure the caret is visible. |
23324ae1 | 3619 | */ |
6d7b19b0 | 3620 | void EnsureCaretVisible(); |
23324ae1 FM |
3621 | |
3622 | /** | |
6d7b19b0 | 3623 | Replace the selected text with the argument text. |
23324ae1 | 3624 | */ |
6d7b19b0 | 3625 | void ReplaceSelection(const wxString& text); |
23324ae1 FM |
3626 | |
3627 | /** | |
6d7b19b0 | 3628 | Set to read only or read write. |
23324ae1 | 3629 | */ |
6d7b19b0 | 3630 | void SetReadOnly(bool readOnly); |
23324ae1 FM |
3631 | |
3632 | /** | |
6d7b19b0 | 3633 | Will a paste succeed? |
23324ae1 | 3634 | */ |
6d7b19b0 | 3635 | bool CanPaste() const; |
23324ae1 FM |
3636 | |
3637 | /** | |
6d7b19b0 | 3638 | Are there any undoable actions in the undo history? |
23324ae1 | 3639 | */ |
6d7b19b0 | 3640 | bool CanUndo() const; |
23324ae1 FM |
3641 | |
3642 | /** | |
6d7b19b0 | 3643 | Delete the undo history. |
23324ae1 | 3644 | */ |
6d7b19b0 | 3645 | void EmptyUndoBuffer(); |
23324ae1 FM |
3646 | |
3647 | /** | |
6d7b19b0 | 3648 | Undo one action in the undo history. |
23324ae1 | 3649 | */ |
6d7b19b0 | 3650 | void Undo(); |
23324ae1 FM |
3651 | |
3652 | /** | |
6d7b19b0 | 3653 | Cut the selection to the clipboard. |
23324ae1 | 3654 | */ |
6d7b19b0 | 3655 | void Cut(); |
23324ae1 FM |
3656 | |
3657 | /** | |
6d7b19b0 | 3658 | Copy the selection to the clipboard. |
23324ae1 | 3659 | */ |
6d7b19b0 | 3660 | void Copy(); |
23324ae1 FM |
3661 | |
3662 | /** | |
6d7b19b0 | 3663 | Paste the contents of the clipboard into the document replacing the selection. |
23324ae1 | 3664 | */ |
6d7b19b0 | 3665 | void Paste(); |
23324ae1 FM |
3666 | |
3667 | /** | |
6d7b19b0 | 3668 | Clear the selection. |
23324ae1 | 3669 | */ |
6d7b19b0 | 3670 | void Clear(); |
23324ae1 FM |
3671 | |
3672 | /** | |
6d7b19b0 | 3673 | Replace the contents of the document with the argument text. |
23324ae1 | 3674 | */ |
6d7b19b0 | 3675 | void SetText(const wxString& text); |
23324ae1 FM |
3676 | |
3677 | /** | |
6d7b19b0 | 3678 | Retrieve all the text in the document. |
23324ae1 | 3679 | */ |
6d7b19b0 | 3680 | wxString GetText() const; |
23324ae1 FM |
3681 | |
3682 | /** | |
6d7b19b0 | 3683 | Retrieve the number of characters in the document. |
23324ae1 | 3684 | */ |
6d7b19b0 | 3685 | int GetTextLength() const; |
23324ae1 FM |
3686 | |
3687 | /** | |
6d7b19b0 | 3688 | Set to overtype (true) or insert mode. |
23324ae1 | 3689 | */ |
6d7b19b0 | 3690 | void SetOvertype(bool overtype); |
23324ae1 FM |
3691 | |
3692 | /** | |
6d7b19b0 | 3693 | Returns true if overtype mode is active otherwise false is returned. |
23324ae1 | 3694 | */ |
6d7b19b0 | 3695 | bool GetOvertype() const; |
23324ae1 FM |
3696 | |
3697 | /** | |
6d7b19b0 | 3698 | Set the width of the insert mode caret. |
23324ae1 | 3699 | */ |
6d7b19b0 | 3700 | void SetCaretWidth(int pixelWidth); |
23324ae1 FM |
3701 | |
3702 | /** | |
6d7b19b0 | 3703 | Returns the width of the insert mode caret. |
23324ae1 | 3704 | */ |
6d7b19b0 | 3705 | int GetCaretWidth() const; |
23324ae1 FM |
3706 | |
3707 | /** | |
6d7b19b0 RD |
3708 | Sets the position that starts the target which is used for updating the |
3709 | document without affecting the scroll position. | |
23324ae1 | 3710 | */ |
6d7b19b0 | 3711 | void SetTargetStart(int pos); |
23324ae1 FM |
3712 | |
3713 | /** | |
6d7b19b0 | 3714 | Get the position that starts the target. |
23324ae1 | 3715 | */ |
6d7b19b0 | 3716 | int GetTargetStart() const; |
23324ae1 FM |
3717 | |
3718 | /** | |
6d7b19b0 RD |
3719 | Sets the position that ends the target which is used for updating the |
3720 | document without affecting the scroll position. | |
23324ae1 | 3721 | */ |
6d7b19b0 | 3722 | void SetTargetEnd(int pos); |
23324ae1 FM |
3723 | |
3724 | /** | |
6d7b19b0 | 3725 | Get the position that ends the target. |
23324ae1 | 3726 | */ |
6d7b19b0 | 3727 | int GetTargetEnd() const; |
23324ae1 FM |
3728 | |
3729 | /** | |
6d7b19b0 RD |
3730 | Replace the target text with the argument text. |
3731 | Text is counted so it can contain NULs. | |
3732 | Returns the length of the replacement text. | |
23324ae1 | 3733 | */ |
6d7b19b0 | 3734 | int ReplaceTarget(const wxString& text); |
23324ae1 FM |
3735 | |
3736 | /** | |
6d7b19b0 RD |
3737 | Replace the target text with the argument text after \d processing. |
3738 | Text is counted so it can contain NULs. | |
3739 | Looks for \d where d is between 1 and 9 and replaces these with the strings | |
3740 | matched in the last search operation which were surrounded by \( and \). | |
3741 | Returns the length of the replacement text including any change | |
3742 | caused by processing the \d patterns. | |
23324ae1 | 3743 | */ |
6d7b19b0 | 3744 | int ReplaceTargetRE(const wxString& text); |
23324ae1 FM |
3745 | |
3746 | /** | |
6d7b19b0 RD |
3747 | Search for a counted string in the target and set the target to the found |
3748 | range. Text is counted so it can contain NULs. | |
3749 | Returns length of range or -1 for failure in which case target is not moved. | |
23324ae1 | 3750 | */ |
6d7b19b0 | 3751 | int SearchInTarget(const wxString& text); |
23324ae1 FM |
3752 | |
3753 | /** | |
6d7b19b0 | 3754 | Set the search flags used by SearchInTarget. |
23324ae1 | 3755 | */ |
6d7b19b0 | 3756 | void SetSearchFlags(int flags); |
23324ae1 FM |
3757 | |
3758 | /** | |
6d7b19b0 | 3759 | Get the search flags used by SearchInTarget. |
23324ae1 | 3760 | */ |
6d7b19b0 | 3761 | int GetSearchFlags() const; |
23324ae1 FM |
3762 | |
3763 | /** | |
6d7b19b0 | 3764 | Show a call tip containing a definition near position pos. |
23324ae1 | 3765 | */ |
6d7b19b0 | 3766 | void CallTipShow(int pos, const wxString& definition); |
23324ae1 FM |
3767 | |
3768 | /** | |
6d7b19b0 | 3769 | Remove the call tip from the screen. |
23324ae1 | 3770 | */ |
6d7b19b0 | 3771 | void CallTipCancel(); |
23324ae1 FM |
3772 | |
3773 | /** | |
6d7b19b0 | 3774 | Is there an active call tip? |
23324ae1 | 3775 | */ |
6d7b19b0 | 3776 | bool CallTipActive(); |
23324ae1 FM |
3777 | |
3778 | /** | |
6d7b19b0 | 3779 | Retrieve the position where the caret was before displaying the call tip. |
23324ae1 | 3780 | */ |
6d7b19b0 | 3781 | int CallTipPosAtStart(); |
23324ae1 FM |
3782 | |
3783 | /** | |
6d7b19b0 | 3784 | Highlight a segment of the definition. |
23324ae1 | 3785 | */ |
6d7b19b0 | 3786 | void CallTipSetHighlight(int start, int end); |
23324ae1 FM |
3787 | |
3788 | /** | |
6d7b19b0 | 3789 | Set the background colour for the call tip. |
23324ae1 | 3790 | */ |
6d7b19b0 | 3791 | void CallTipSetBackground(const wxColour& back); |
23324ae1 FM |
3792 | |
3793 | /** | |
6d7b19b0 | 3794 | Set the foreground colour for the call tip. |
23324ae1 | 3795 | */ |
6d7b19b0 | 3796 | void CallTipSetForeground(const wxColour& fore); |
23324ae1 FM |
3797 | |
3798 | /** | |
6d7b19b0 | 3799 | Set the foreground colour for the highlighted part of the call tip. |
23324ae1 | 3800 | */ |
6d7b19b0 | 3801 | void CallTipSetForegroundHighlight(const wxColour& fore); |
23324ae1 FM |
3802 | |
3803 | /** | |
6d7b19b0 | 3804 | Enable use of STYLE_CALLTIP and set call tip tab size in pixels. |
23324ae1 | 3805 | */ |
6d7b19b0 | 3806 | void CallTipUseStyle(int tabSize); |
23324ae1 FM |
3807 | |
3808 | /** | |
6d7b19b0 | 3809 | Set position of calltip, above or below text. |
23324ae1 | 3810 | */ |
6d7b19b0 | 3811 | void CallTipSetPosition(bool above); |
23324ae1 FM |
3812 | |
3813 | /** | |
6d7b19b0 | 3814 | Find the display line of a document line taking hidden lines into account. |
23324ae1 | 3815 | */ |
6d7b19b0 | 3816 | int VisibleFromDocLine(int line); |
23324ae1 FM |
3817 | |
3818 | /** | |
6d7b19b0 | 3819 | Find the document line of a display line taking hidden lines into account. |
23324ae1 | 3820 | */ |
6d7b19b0 | 3821 | int DocLineFromVisible(int lineDisplay); |
23324ae1 FM |
3822 | |
3823 | /** | |
6d7b19b0 | 3824 | The number of display lines needed to wrap a document line |
23324ae1 | 3825 | */ |
6d7b19b0 | 3826 | int WrapCount(int line); |
23324ae1 FM |
3827 | |
3828 | /** | |
6d7b19b0 RD |
3829 | Set the fold level of a line. |
3830 | This encodes an integer level along with flags indicating whether the | |
3831 | line is a header and whether it is effectively white space. | |
23324ae1 | 3832 | */ |
6d7b19b0 | 3833 | void SetFoldLevel(int line, int level); |
23324ae1 FM |
3834 | |
3835 | /** | |
6d7b19b0 | 3836 | Retrieve the fold level of a line. |
23324ae1 | 3837 | */ |
6d7b19b0 | 3838 | int GetFoldLevel(int line) const; |
23324ae1 FM |
3839 | |
3840 | /** | |
6d7b19b0 | 3841 | Find the last child line of a header line. |
23324ae1 | 3842 | */ |
6d7b19b0 | 3843 | int GetLastChild(int line, int level) const; |
23324ae1 FM |
3844 | |
3845 | /** | |
6d7b19b0 | 3846 | Find the parent line of a child line. |
23324ae1 | 3847 | */ |
6d7b19b0 | 3848 | int GetFoldParent(int line) const; |
23324ae1 FM |
3849 | |
3850 | /** | |
6d7b19b0 | 3851 | Make a range of lines visible. |
23324ae1 | 3852 | */ |
6d7b19b0 | 3853 | void ShowLines(int lineStart, int lineEnd); |
23324ae1 FM |
3854 | |
3855 | /** | |
6d7b19b0 | 3856 | Make a range of lines invisible. |
23324ae1 | 3857 | */ |
6d7b19b0 | 3858 | void HideLines(int lineStart, int lineEnd); |
23324ae1 FM |
3859 | |
3860 | /** | |
6d7b19b0 | 3861 | Is a line visible? |
23324ae1 | 3862 | */ |
6d7b19b0 | 3863 | bool GetLineVisible(int line) const; |
23324ae1 FM |
3864 | |
3865 | /** | |
6d7b19b0 | 3866 | Are all lines visible? |
23324ae1 | 3867 | */ |
6d7b19b0 | 3868 | bool GetAllLinesVisible() const; |
23324ae1 FM |
3869 | |
3870 | /** | |
6d7b19b0 | 3871 | Show the children of a header line. |
23324ae1 | 3872 | */ |
6d7b19b0 | 3873 | void SetFoldExpanded(int line, bool expanded); |
23324ae1 FM |
3874 | |
3875 | /** | |
6d7b19b0 | 3876 | Is a header line expanded? |
23324ae1 | 3877 | */ |
6d7b19b0 | 3878 | bool GetFoldExpanded(int line) const; |
23324ae1 FM |
3879 | |
3880 | /** | |
6d7b19b0 | 3881 | Switch a header line between expanded and contracted. |
23324ae1 | 3882 | */ |
6d7b19b0 | 3883 | void ToggleFold(int line); |
23324ae1 FM |
3884 | |
3885 | /** | |
6d7b19b0 | 3886 | Ensure a particular line is visible by expanding any header line hiding it. |
23324ae1 | 3887 | */ |
6d7b19b0 | 3888 | void EnsureVisible(int line); |
23324ae1 FM |
3889 | |
3890 | /** | |
6d7b19b0 | 3891 | Set some style options for folding. |
23324ae1 | 3892 | */ |
6d7b19b0 | 3893 | void SetFoldFlags(int flags); |
23324ae1 FM |
3894 | |
3895 | /** | |
6d7b19b0 RD |
3896 | Ensure a particular line is visible by expanding any header line hiding it. |
3897 | Use the currently set visibility policy to determine which range to display. | |
23324ae1 | 3898 | */ |
6d7b19b0 | 3899 | void EnsureVisibleEnforcePolicy(int line); |
23324ae1 FM |
3900 | |
3901 | /** | |
6d7b19b0 | 3902 | Sets whether a tab pressed when caret is within indentation indents. |
23324ae1 | 3903 | */ |
6d7b19b0 | 3904 | void SetTabIndents(bool tabIndents); |
23324ae1 FM |
3905 | |
3906 | /** | |
6d7b19b0 | 3907 | Does a tab pressed when caret is within indentation indent? |
23324ae1 | 3908 | */ |
6d7b19b0 | 3909 | bool GetTabIndents() const; |
23324ae1 FM |
3910 | |
3911 | /** | |
6d7b19b0 | 3912 | Sets whether a backspace pressed when caret is within indentation unindents. |
23324ae1 | 3913 | */ |
6d7b19b0 | 3914 | void SetBackSpaceUnIndents(bool bsUnIndents); |
23324ae1 FM |
3915 | |
3916 | /** | |
6d7b19b0 | 3917 | Does a backspace pressed when caret is within indentation unindent? |
23324ae1 | 3918 | */ |
6d7b19b0 | 3919 | bool GetBackSpaceUnIndents() const; |
23324ae1 FM |
3920 | |
3921 | /** | |
6d7b19b0 | 3922 | Sets the time the mouse must sit still to generate a mouse dwell event. |
23324ae1 | 3923 | */ |
6d7b19b0 | 3924 | void SetMouseDwellTime(int periodMilliseconds); |
23324ae1 FM |
3925 | |
3926 | /** | |
6d7b19b0 | 3927 | Retrieve the time the mouse must sit still to generate a mouse dwell event. |
23324ae1 | 3928 | */ |
6d7b19b0 | 3929 | int GetMouseDwellTime() const; |
23324ae1 FM |
3930 | |
3931 | /** | |
6d7b19b0 | 3932 | Get position of start of word. |
23324ae1 | 3933 | */ |
6d7b19b0 | 3934 | int WordStartPosition(int pos, bool onlyWordCharacters); |
23324ae1 FM |
3935 | |
3936 | /** | |
6d7b19b0 | 3937 | Get position of end of word. |
23324ae1 | 3938 | */ |
6d7b19b0 | 3939 | int WordEndPosition(int pos, bool onlyWordCharacters); |
23324ae1 FM |
3940 | |
3941 | /** | |
6d7b19b0 | 3942 | Sets whether text is word wrapped. |
23324ae1 | 3943 | */ |
6d7b19b0 | 3944 | void SetWrapMode(int mode); |
23324ae1 FM |
3945 | |
3946 | /** | |
6d7b19b0 | 3947 | Retrieve whether text is word wrapped. |
23324ae1 | 3948 | */ |
6d7b19b0 | 3949 | int GetWrapMode() const; |
23324ae1 | 3950 | |
65d6e39b | 3951 | /** |
6d7b19b0 | 3952 | Set the display mode of visual flags for wrapped lines. |
65d6e39b | 3953 | */ |
6d7b19b0 | 3954 | void SetWrapVisualFlags(int wrapVisualFlags); |
65d6e39b RD |
3955 | |
3956 | /** | |
6d7b19b0 | 3957 | Retrive the display mode of visual flags for wrapped lines. |
65d6e39b | 3958 | */ |
6d7b19b0 | 3959 | int GetWrapVisualFlags() const; |
65d6e39b | 3960 | |
23324ae1 | 3961 | /** |
6d7b19b0 | 3962 | Set the location of visual flags for wrapped lines. |
23324ae1 | 3963 | */ |
6d7b19b0 | 3964 | void SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation); |
23324ae1 FM |
3965 | |
3966 | /** | |
6d7b19b0 | 3967 | Retrive the location of visual flags for wrapped lines. |
23324ae1 | 3968 | */ |
6d7b19b0 | 3969 | int GetWrapVisualFlagsLocation() const; |
23324ae1 FM |
3970 | |
3971 | /** | |
6d7b19b0 | 3972 | Set the start indent for wrapped lines. |
23324ae1 | 3973 | */ |
6d7b19b0 | 3974 | void SetWrapStartIndent(int indent); |
23324ae1 FM |
3975 | |
3976 | /** | |
6d7b19b0 | 3977 | Retrive the start indent for wrapped lines. |
23324ae1 | 3978 | */ |
6d7b19b0 | 3979 | int GetWrapStartIndent() const; |
23324ae1 FM |
3980 | |
3981 | /** | |
6d7b19b0 | 3982 | Sets how wrapped sublines are placed. Default is fixed. |
23324ae1 | 3983 | */ |
6d7b19b0 | 3984 | void SetWrapIndentMode(int mode); |
23324ae1 FM |
3985 | |
3986 | /** | |
6d7b19b0 | 3987 | Retrieve how wrapped sublines are placed. Default is fixed. |
23324ae1 | 3988 | */ |
6d7b19b0 | 3989 | int GetWrapIndentMode() const; |
23324ae1 FM |
3990 | |
3991 | /** | |
6d7b19b0 | 3992 | Sets the degree of caching of layout information. |
23324ae1 | 3993 | */ |
6d7b19b0 | 3994 | void SetLayoutCache(int mode); |
23324ae1 FM |
3995 | |
3996 | /** | |
6d7b19b0 | 3997 | Retrieve the degree of caching of layout information. |
23324ae1 | 3998 | */ |
6d7b19b0 | 3999 | int GetLayoutCache() const; |
23324ae1 FM |
4000 | |
4001 | /** | |
6d7b19b0 | 4002 | Sets the document width assumed for scrolling. |
23324ae1 | 4003 | */ |
6d7b19b0 | 4004 | void SetScrollWidth(int pixelWidth); |
23324ae1 FM |
4005 | |
4006 | /** | |
6d7b19b0 | 4007 | Retrieve the document width assumed for scrolling. |
23324ae1 | 4008 | */ |
6d7b19b0 | 4009 | int GetScrollWidth() const; |
23324ae1 FM |
4010 | |
4011 | /** | |
6d7b19b0 | 4012 | Sets whether the maximum width line displayed is used to set scroll width. |
23324ae1 | 4013 | */ |
6d7b19b0 | 4014 | void SetScrollWidthTracking(bool tracking); |
23324ae1 FM |
4015 | |
4016 | /** | |
6d7b19b0 | 4017 | Retrieve whether the scroll width tracks wide lines. |
23324ae1 | 4018 | */ |
6d7b19b0 | 4019 | bool GetScrollWidthTracking() const; |
23324ae1 FM |
4020 | |
4021 | /** | |
6d7b19b0 RD |
4022 | Measure the pixel width of some text in a particular style. |
4023 | NUL terminated text argument. | |
4024 | Does not handle tab or control characters. | |
23324ae1 | 4025 | */ |
6d7b19b0 | 4026 | int TextWidth(int style, const wxString& text); |
23324ae1 FM |
4027 | |
4028 | /** | |
6d7b19b0 RD |
4029 | Sets the scroll range so that maximum scroll position has |
4030 | the last line at the bottom of the view (default). | |
4031 | Setting this to false allows scrolling one page below the last line. | |
23324ae1 | 4032 | */ |
6d7b19b0 | 4033 | void SetEndAtLastLine(bool endAtLastLine); |
23324ae1 FM |
4034 | |
4035 | /** | |
6d7b19b0 RD |
4036 | Retrieve whether the maximum scroll position has the last |
4037 | line at the bottom of the view. | |
23324ae1 | 4038 | */ |
6d7b19b0 | 4039 | bool GetEndAtLastLine() const; |
23324ae1 FM |
4040 | |
4041 | /** | |
6d7b19b0 | 4042 | Retrieve the height of a particular line of text in pixels. |
23324ae1 | 4043 | */ |
6d7b19b0 | 4044 | int TextHeight(int line); |
23324ae1 FM |
4045 | |
4046 | /** | |
6d7b19b0 | 4047 | Show or hide the vertical scroll bar. |
23324ae1 | 4048 | */ |
6d7b19b0 | 4049 | void SetUseVerticalScrollBar(bool show); |
23324ae1 FM |
4050 | |
4051 | /** | |
6d7b19b0 | 4052 | Is the vertical scroll bar visible? |
23324ae1 | 4053 | */ |
6d7b19b0 | 4054 | bool GetUseVerticalScrollBar() const; |
23324ae1 FM |
4055 | |
4056 | /** | |
6d7b19b0 | 4057 | Append a string to the end of the document without changing the selection. |
23324ae1 | 4058 | */ |
6d7b19b0 | 4059 | void AppendText(const wxString& text); |
23324ae1 FM |
4060 | |
4061 | /** | |
6d7b19b0 | 4062 | Is drawing done in two phases with backgrounds drawn before foregrounds? |
23324ae1 | 4063 | */ |
6d7b19b0 | 4064 | bool GetTwoPhaseDraw() const; |
23324ae1 FM |
4065 | |
4066 | /** | |
6d7b19b0 RD |
4067 | In twoPhaseDraw mode, drawing is performed in two phases, first the background |
4068 | and then the foreground. This avoids chopping off characters that overlap the next run. | |
23324ae1 | 4069 | */ |
6d7b19b0 | 4070 | void SetTwoPhaseDraw(bool twoPhase); |
23324ae1 FM |
4071 | |
4072 | /** | |
6d7b19b0 | 4073 | Scroll so that a display line is at the top of the display. |
23324ae1 | 4074 | */ |
6d7b19b0 | 4075 | void SetFirstVisibleLine(int lineDisplay); |
23324ae1 FM |
4076 | |
4077 | /** | |
6d7b19b0 | 4078 | Change the effect of pasting when there are multiple selections. |
23324ae1 | 4079 | */ |
6d7b19b0 | 4080 | void SetMultiPaste(int multiPaste); |
23324ae1 FM |
4081 | |
4082 | /** | |
6d7b19b0 | 4083 | Retrieve the effect of pasting when there are multiple selections.. |
23324ae1 | 4084 | */ |
6d7b19b0 | 4085 | int GetMultiPaste() const; |
23324ae1 FM |
4086 | |
4087 | /** | |
6d7b19b0 | 4088 | Retrieve the value of a tag from a regular expression search. |
23324ae1 | 4089 | */ |
6d7b19b0 | 4090 | wxString GetTag(int tagNumber) const; |
23324ae1 FM |
4091 | |
4092 | /** | |
6d7b19b0 | 4093 | Make the target range start and end be the same as the selection range start and end. |
23324ae1 | 4094 | */ |
6d7b19b0 | 4095 | void TargetFromSelection(); |
23324ae1 FM |
4096 | |
4097 | /** | |
6d7b19b0 | 4098 | Join the lines in the target. |
23324ae1 | 4099 | */ |
6d7b19b0 | 4100 | void LinesJoin(); |
23324ae1 FM |
4101 | |
4102 | /** | |
6d7b19b0 RD |
4103 | Split the lines in the target into lines that are less wide than pixelWidth |
4104 | where possible. | |
23324ae1 | 4105 | */ |
6d7b19b0 | 4106 | void LinesSplit(int pixelWidth); |
23324ae1 FM |
4107 | |
4108 | /** | |
6d7b19b0 | 4109 | Set the colours used as a chequerboard pattern in the fold margin |
23324ae1 | 4110 | */ |
6d7b19b0 RD |
4111 | void SetFoldMarginColour(bool useSetting, const wxColour& back); |
4112 | void SetFoldMarginHiColour(bool useSetting, const wxColour& fore); | |
23324ae1 FM |
4113 | |
4114 | /** | |
6d7b19b0 | 4115 | Move caret down one line. |
23324ae1 | 4116 | */ |
6d7b19b0 | 4117 | void LineDown(); |
23324ae1 FM |
4118 | |
4119 | /** | |
6d7b19b0 | 4120 | Move caret down one line extending selection to new caret position. |
23324ae1 | 4121 | */ |
6d7b19b0 | 4122 | void LineDownExtend(); |
23324ae1 FM |
4123 | |
4124 | /** | |
6d7b19b0 | 4125 | Move caret up one line. |
23324ae1 | 4126 | */ |
6d7b19b0 | 4127 | void LineUp(); |
23324ae1 FM |
4128 | |
4129 | /** | |
6d7b19b0 | 4130 | Move caret up one line extending selection to new caret position. |
23324ae1 | 4131 | */ |
6d7b19b0 | 4132 | void LineUpExtend(); |
23324ae1 FM |
4133 | |
4134 | /** | |
6d7b19b0 | 4135 | Move caret left one character. |
23324ae1 | 4136 | */ |
6d7b19b0 | 4137 | void CharLeft(); |
23324ae1 FM |
4138 | |
4139 | /** | |
6d7b19b0 | 4140 | Move caret left one character extending selection to new caret position. |
23324ae1 | 4141 | */ |
6d7b19b0 | 4142 | void CharLeftExtend(); |
23324ae1 FM |
4143 | |
4144 | /** | |
6d7b19b0 | 4145 | Move caret right one character. |
23324ae1 | 4146 | */ |
6d7b19b0 | 4147 | void CharRight(); |
23324ae1 FM |
4148 | |
4149 | /** | |
6d7b19b0 | 4150 | Move caret right one character extending selection to new caret position. |
23324ae1 | 4151 | */ |
6d7b19b0 | 4152 | void CharRightExtend(); |
23324ae1 FM |
4153 | |
4154 | /** | |
6d7b19b0 | 4155 | Move caret left one word. |
23324ae1 | 4156 | */ |
6d7b19b0 | 4157 | void WordLeft(); |
23324ae1 FM |
4158 | |
4159 | /** | |
6d7b19b0 | 4160 | Move caret left one word extending selection to new caret position. |
23324ae1 | 4161 | */ |
6d7b19b0 | 4162 | void WordLeftExtend(); |
23324ae1 FM |
4163 | |
4164 | /** | |
6d7b19b0 | 4165 | Move caret right one word. |
23324ae1 | 4166 | */ |
6d7b19b0 | 4167 | void WordRight(); |
23324ae1 FM |
4168 | |
4169 | /** | |
6d7b19b0 | 4170 | Move caret right one word extending selection to new caret position. |
23324ae1 | 4171 | */ |
6d7b19b0 | 4172 | void WordRightExtend(); |
23324ae1 FM |
4173 | |
4174 | /** | |
6d7b19b0 | 4175 | Move caret to first position on line. |
23324ae1 | 4176 | */ |
6d7b19b0 | 4177 | void Home(); |
23324ae1 FM |
4178 | |
4179 | /** | |
6d7b19b0 | 4180 | Move caret to first position on line extending selection to new caret position. |
23324ae1 | 4181 | */ |
6d7b19b0 | 4182 | void HomeExtend(); |
23324ae1 FM |
4183 | |
4184 | /** | |
6d7b19b0 | 4185 | Move caret to last position on line. |
23324ae1 | 4186 | */ |
6d7b19b0 | 4187 | void LineEnd(); |
23324ae1 FM |
4188 | |
4189 | /** | |
6d7b19b0 | 4190 | Move caret to last position on line extending selection to new caret position. |
23324ae1 | 4191 | */ |
6d7b19b0 | 4192 | void LineEndExtend(); |
23324ae1 FM |
4193 | |
4194 | /** | |
6d7b19b0 | 4195 | Move caret to first position in document. |
23324ae1 | 4196 | */ |
6d7b19b0 | 4197 | void DocumentStart(); |
23324ae1 FM |
4198 | |
4199 | /** | |
6d7b19b0 | 4200 | Move caret to first position in document extending selection to new caret position. |
23324ae1 | 4201 | */ |
6d7b19b0 | 4202 | void DocumentStartExtend(); |
23324ae1 FM |
4203 | |
4204 | /** | |
6d7b19b0 | 4205 | Move caret to last position in document. |
23324ae1 | 4206 | */ |
6d7b19b0 | 4207 | void DocumentEnd(); |
23324ae1 FM |
4208 | |
4209 | /** | |
6d7b19b0 | 4210 | Move caret to last position in document extending selection to new caret position. |
23324ae1 | 4211 | */ |
6d7b19b0 | 4212 | void DocumentEndExtend(); |
23324ae1 FM |
4213 | |
4214 | /** | |
6d7b19b0 | 4215 | Move caret one page up. |
23324ae1 | 4216 | */ |
6d7b19b0 | 4217 | void PageUp(); |
23324ae1 FM |
4218 | |
4219 | /** | |
6d7b19b0 | 4220 | Move caret one page up extending selection to new caret position. |
23324ae1 | 4221 | */ |
6d7b19b0 | 4222 | void PageUpExtend(); |
23324ae1 FM |
4223 | |
4224 | /** | |
6d7b19b0 | 4225 | Move caret one page down. |
23324ae1 | 4226 | */ |
6d7b19b0 | 4227 | void PageDown(); |
23324ae1 FM |
4228 | |
4229 | /** | |
6d7b19b0 | 4230 | Move caret one page down extending selection to new caret position. |
23324ae1 | 4231 | */ |
6d7b19b0 | 4232 | void PageDownExtend(); |
23324ae1 FM |
4233 | |
4234 | /** | |
6d7b19b0 | 4235 | Switch from insert to overtype mode or the reverse. |
23324ae1 | 4236 | */ |
6d7b19b0 | 4237 | void EditToggleOvertype(); |
23324ae1 FM |
4238 | |
4239 | /** | |
6d7b19b0 | 4240 | Cancel any modes such as call tip or auto-completion list display. |
23324ae1 | 4241 | */ |
6d7b19b0 | 4242 | void Cancel(); |
23324ae1 FM |
4243 | |
4244 | /** | |
6d7b19b0 | 4245 | Delete the selection or if no selection, the character before the caret. |
23324ae1 | 4246 | */ |
6d7b19b0 | 4247 | void DeleteBack(); |
23324ae1 FM |
4248 | |
4249 | /** | |
6d7b19b0 RD |
4250 | If selection is empty or all on one line replace the selection with a tab character. |
4251 | If more than one line selected, indent the lines. | |
23324ae1 | 4252 | */ |
6d7b19b0 | 4253 | void Tab(); |
23324ae1 FM |
4254 | |
4255 | /** | |
6d7b19b0 | 4256 | Dedent the selected lines. |
23324ae1 | 4257 | */ |
6d7b19b0 | 4258 | void BackTab(); |
23324ae1 FM |
4259 | |
4260 | /** | |
6d7b19b0 | 4261 | Insert a new line, may use a CRLF, CR or LF depending on EOL mode. |
23324ae1 | 4262 | */ |
6d7b19b0 | 4263 | void NewLine(); |
23324ae1 FM |
4264 | |
4265 | /** | |
6d7b19b0 | 4266 | Insert a Form Feed character. |
23324ae1 | 4267 | */ |
6d7b19b0 | 4268 | void FormFeed(); |
23324ae1 FM |
4269 | |
4270 | /** | |
6d7b19b0 RD |
4271 | Move caret to before first visible character on line. |
4272 | If already there move to first character on line. | |
4273 | */ | |
4274 | void VCHome(); | |
4701dc09 | 4275 | |
6d7b19b0 RD |
4276 | /** |
4277 | Like VCHome but extending selection to new caret position. | |
23324ae1 | 4278 | */ |
6d7b19b0 | 4279 | void VCHomeExtend(); |
23324ae1 FM |
4280 | |
4281 | /** | |
6d7b19b0 | 4282 | Magnify the displayed text by increasing the sizes by 1 point. |
23324ae1 | 4283 | */ |
6d7b19b0 | 4284 | void ZoomIn(); |
23324ae1 FM |
4285 | |
4286 | /** | |
6d7b19b0 | 4287 | Make the displayed text smaller by decreasing the sizes by 1 point. |
23324ae1 | 4288 | */ |
6d7b19b0 | 4289 | void ZoomOut(); |
23324ae1 FM |
4290 | |
4291 | /** | |
6d7b19b0 | 4292 | Delete the word to the left of the caret. |
23324ae1 | 4293 | */ |
6d7b19b0 | 4294 | void DelWordLeft(); |
23324ae1 FM |
4295 | |
4296 | /** | |
6d7b19b0 | 4297 | Delete the word to the right of the caret. |
23324ae1 | 4298 | */ |
6d7b19b0 | 4299 | void DelWordRight(); |
23324ae1 FM |
4300 | |
4301 | /** | |
6d7b19b0 | 4302 | Delete the word to the right of the caret, but not the trailing non-word characters. |
23324ae1 | 4303 | */ |
6d7b19b0 | 4304 | void DelWordRightEnd(); |
23324ae1 FM |
4305 | |
4306 | /** | |
6d7b19b0 | 4307 | Cut the line containing the caret. |
23324ae1 | 4308 | */ |
6d7b19b0 | 4309 | void LineCut(); |
23324ae1 FM |
4310 | |
4311 | /** | |
6d7b19b0 | 4312 | Delete the line containing the caret. |
23324ae1 | 4313 | */ |
6d7b19b0 | 4314 | void LineDelete(); |
23324ae1 FM |
4315 | |
4316 | /** | |
6d7b19b0 | 4317 | Switch the current line with the previous. |
23324ae1 | 4318 | */ |
6d7b19b0 | 4319 | void LineTranspose(); |
23324ae1 FM |
4320 | |
4321 | /** | |
6d7b19b0 | 4322 | Duplicate the current line. |
23324ae1 | 4323 | */ |
6d7b19b0 | 4324 | void LineDuplicate(); |
23324ae1 FM |
4325 | |
4326 | /** | |
6d7b19b0 RD |
4327 | Transform the selection to lower case. |
4328 | */ | |
4329 | void LowerCase(); | |
4701dc09 | 4330 | |
6d7b19b0 RD |
4331 | /** |
4332 | Transform the selection to upper case. | |
23324ae1 | 4333 | */ |
6d7b19b0 | 4334 | void UpperCase(); |
23324ae1 FM |
4335 | |
4336 | /** | |
6d7b19b0 | 4337 | Scroll the document down, keeping the caret visible. |
23324ae1 | 4338 | */ |
6d7b19b0 | 4339 | void LineScrollDown(); |
23324ae1 FM |
4340 | |
4341 | /** | |
6d7b19b0 | 4342 | Scroll the document up, keeping the caret visible. |
23324ae1 | 4343 | */ |
6d7b19b0 | 4344 | void LineScrollUp(); |
23324ae1 FM |
4345 | |
4346 | /** | |
6d7b19b0 RD |
4347 | Delete the selection or if no selection, the character before the caret. |
4348 | Will not delete the character before at the start of a line. | |
23324ae1 | 4349 | */ |
6d7b19b0 | 4350 | void DeleteBackNotLine(); |
23324ae1 FM |
4351 | |
4352 | /** | |
6d7b19b0 | 4353 | Move caret to first position on display line. |
23324ae1 | 4354 | */ |
6d7b19b0 | 4355 | void HomeDisplay(); |
23324ae1 FM |
4356 | |
4357 | /** | |
6d7b19b0 RD |
4358 | Move caret to first position on display line extending selection to |
4359 | new caret position. | |
23324ae1 | 4360 | */ |
6d7b19b0 | 4361 | void HomeDisplayExtend(); |
23324ae1 FM |
4362 | |
4363 | /** | |
6d7b19b0 | 4364 | Move caret to last position on display line. |
23324ae1 | 4365 | */ |
6d7b19b0 | 4366 | void LineEndDisplay(); |
23324ae1 FM |
4367 | |
4368 | /** | |
6d7b19b0 RD |
4369 | Move caret to last position on display line extending selection to new |
4370 | caret position. | |
23324ae1 | 4371 | */ |
6d7b19b0 | 4372 | void LineEndDisplayExtend(); |
23324ae1 FM |
4373 | |
4374 | /** | |
6d7b19b0 RD |
4375 | These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? |
4376 | except they behave differently when word-wrap is enabled: | |
4377 | They go first to the start / end of the display line, like (Home|LineEnd)Display | |
4378 | The difference is that, the cursor is already at the point, it goes on to the start | |
4379 | or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. | |
23324ae1 | 4380 | */ |
6d7b19b0 RD |
4381 | void HomeWrap(); |
4382 | void HomeWrapExtend(); | |
4383 | void LineEndWrap(); | |
4384 | void LineEndWrapExtend(); | |
4385 | void VCHomeWrap(); | |
4386 | void VCHomeWrapExtend(); | |
23324ae1 FM |
4387 | |
4388 | /** | |
6d7b19b0 RD |
4389 | Copy the line containing the caret. |
4390 | */ | |
4391 | void LineCopy(); | |
4392 | ||
4393 | /** | |
4394 | Move the caret inside current view if it's not there already. | |
4395 | */ | |
4396 | void MoveCaretInsideView(); | |
4397 | ||
4398 | /** | |
4399 | How many characters are on a line, including end of line characters? | |
4400 | */ | |
4401 | int LineLength(int line) const; | |
4402 | ||
4403 | /** | |
4404 | Highlight the characters at two positions. | |
4405 | */ | |
4406 | void BraceHighlight(int pos1, int pos2); | |
4407 | ||
4408 | /** | |
4409 | Use specified indicator to highlight matching braces instead of changing their style. | |
4410 | */ | |
4411 | void BraceHighlightIndicator(bool useBraceHighlightIndicator, int indicator); | |
4412 | ||
4413 | /** | |
4414 | Highlight the character at a position indicating there is no matching brace. | |
4415 | */ | |
4416 | void BraceBadLight(int pos); | |
4417 | ||
4418 | /** | |
4419 | Use specified indicator to highlight non matching brace instead of changing its style. | |
4420 | */ | |
4421 | void BraceBadLightIndicator(bool useBraceBadLightIndicator, int indicator); | |
4422 | ||
4423 | /** | |
4424 | Find the position of a matching brace or INVALID_POSITION if no match. | |
4425 | */ | |
4426 | int BraceMatch(int pos); | |
4427 | ||
4428 | /** | |
4429 | Are the end of line characters visible? | |
4430 | */ | |
4431 | bool GetViewEOL() const; | |
4432 | ||
4433 | /** | |
4434 | Make the end of line characters visible or invisible. | |
4435 | */ | |
4436 | void SetViewEOL(bool visible); | |
4437 | ||
4438 | /** | |
4439 | Retrieve a pointer to the document object. | |
4440 | */ | |
4441 | void* GetDocPointer(); | |
4442 | ||
4443 | /** | |
4444 | Change the document object used. | |
4445 | */ | |
4446 | void SetDocPointer(void* docPointer); | |
4447 | ||
4448 | /** | |
4449 | Set which document modification events are sent to the container. | |
4450 | */ | |
4451 | void SetModEventMask(int mask); | |
4452 | ||
4453 | /** | |
4454 | Retrieve the column number which text should be kept within. | |
4455 | */ | |
4456 | int GetEdgeColumn() const; | |
4457 | ||
4458 | /** | |
4459 | Set the column number of the edge. | |
4460 | If text goes past the edge then it is highlighted. | |
4461 | */ | |
4462 | void SetEdgeColumn(int column); | |
4463 | ||
4464 | /** | |
4465 | Retrieve the edge highlight mode. | |
4466 | */ | |
4467 | int GetEdgeMode() const; | |
4468 | ||
4469 | /** | |
4470 | The edge may be displayed by a line (EDGE_LINE) or by highlighting text that | |
4471 | goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE). | |
4472 | */ | |
4473 | void SetEdgeMode(int mode); | |
4474 | ||
4475 | /** | |
4476 | Retrieve the colour used in edge indication. | |
4477 | */ | |
4478 | wxColour GetEdgeColour() const; | |
4479 | ||
4480 | /** | |
4481 | Change the colour used in edge indication. | |
4482 | */ | |
4483 | void SetEdgeColour(const wxColour& edgeColour); | |
4484 | ||
4485 | /** | |
4486 | Sets the current caret position to be the search anchor. | |
4487 | */ | |
4488 | void SearchAnchor(); | |
4489 | ||
4490 | /** | |
4491 | Find some text starting at the search anchor. | |
4492 | Does not ensure the selection is visible. | |
4493 | */ | |
4494 | int SearchNext(int flags, const wxString& text); | |
4495 | ||
4496 | /** | |
4497 | Find some text starting at the search anchor and moving backwards. | |
4498 | Does not ensure the selection is visible. | |
4499 | */ | |
4500 | int SearchPrev(int flags, const wxString& text); | |
4501 | ||
4502 | /** | |
4503 | Retrieves the number of lines completely visible. | |
4504 | */ | |
4505 | int LinesOnScreen() const; | |
4506 | ||
4507 | /** | |
4508 | Set whether a pop up menu is displayed automatically when the user presses | |
4509 | the wrong mouse button. | |
4510 | */ | |
4511 | void UsePopUp(bool allowPopUp); | |
4512 | ||
4513 | /** | |
4514 | Is the selection rectangular? The alternative is the more common stream selection. | |
4515 | */ | |
4516 | bool SelectionIsRectangle() const; | |
4517 | ||
4518 | /** | |
4519 | Set the zoom level. This number of points is added to the size of all fonts. | |
4520 | It may be positive to magnify or negative to reduce. | |
4521 | */ | |
4522 | void SetZoom(int zoom); | |
4523 | ||
4524 | /** | |
4525 | Retrieve the zoom level. | |
23324ae1 | 4526 | */ |
6d7b19b0 | 4527 | int GetZoom() const; |
23324ae1 FM |
4528 | |
4529 | /** | |
6d7b19b0 RD |
4530 | Create a new document object. |
4531 | Starts with reference count of 1 and not selected into editor. | |
23324ae1 | 4532 | */ |
6d7b19b0 | 4533 | void* CreateDocument(); |
23324ae1 FM |
4534 | |
4535 | /** | |
6d7b19b0 | 4536 | Extend life of document. |
23324ae1 | 4537 | */ |
6d7b19b0 | 4538 | void AddRefDocument(void* docPointer); |
23324ae1 | 4539 | |
65d6e39b | 4540 | /** |
6d7b19b0 | 4541 | Release a reference to the document, deleting document if it fades to black. |
65d6e39b | 4542 | */ |
6d7b19b0 | 4543 | void ReleaseDocument(void* docPointer); |
65d6e39b RD |
4544 | |
4545 | /** | |
6d7b19b0 | 4546 | Get which document modification events are sent to the container. |
65d6e39b | 4547 | */ |
6d7b19b0 | 4548 | int GetModEventMask() const; |
65d6e39b | 4549 | |
23324ae1 | 4550 | /** |
6d7b19b0 | 4551 | Change internal focus flag. |
23324ae1 | 4552 | */ |
6d7b19b0 | 4553 | void SetSTCFocus(bool focus); |
23324ae1 FM |
4554 | |
4555 | /** | |
6d7b19b0 | 4556 | Get internal focus flag. |
23324ae1 | 4557 | */ |
6d7b19b0 | 4558 | bool GetSTCFocus() const; |
23324ae1 FM |
4559 | |
4560 | /** | |
6d7b19b0 | 4561 | Change error status - 0 = OK. |
23324ae1 | 4562 | */ |
6d7b19b0 | 4563 | void SetStatus(int statusCode); |
23324ae1 FM |
4564 | |
4565 | /** | |
6d7b19b0 | 4566 | Get error status. |
23324ae1 | 4567 | */ |
6d7b19b0 | 4568 | int GetStatus() const; |
23324ae1 FM |
4569 | |
4570 | /** | |
6d7b19b0 | 4571 | Set whether the mouse is captured when its button is pressed. |
23324ae1 | 4572 | */ |
6d7b19b0 | 4573 | void SetMouseDownCaptures(bool captures); |
23324ae1 FM |
4574 | |
4575 | /** | |
6d7b19b0 | 4576 | Get whether mouse gets captured. |
23324ae1 | 4577 | */ |
6d7b19b0 | 4578 | bool GetMouseDownCaptures() const; |
23324ae1 | 4579 | |
65d6e39b | 4580 | /** |
6d7b19b0 | 4581 | Sets the cursor to one of the SC_CURSOR* values. |
65d6e39b | 4582 | */ |
6d7b19b0 | 4583 | void SetSTCCursor(int cursorType); |
65d6e39b RD |
4584 | |
4585 | /** | |
6d7b19b0 | 4586 | Get cursor type. |
65d6e39b | 4587 | */ |
6d7b19b0 | 4588 | int GetSTCCursor() const; |
65d6e39b RD |
4589 | |
4590 | /** | |
6d7b19b0 RD |
4591 | Change the way control characters are displayed: |
4592 | If symbol is < 32, keep the drawn way, else, use the given character. | |
65d6e39b | 4593 | */ |
6d7b19b0 | 4594 | void SetControlCharSymbol(int symbol); |
65d6e39b | 4595 | |
23324ae1 | 4596 | /** |
6d7b19b0 | 4597 | Get the way control characters are displayed. |
23324ae1 | 4598 | */ |
6d7b19b0 | 4599 | int GetControlCharSymbol() const; |
23324ae1 FM |
4600 | |
4601 | /** | |
6d7b19b0 | 4602 | Move to the previous change in capitalisation. |
23324ae1 | 4603 | */ |
6d7b19b0 | 4604 | void WordPartLeft(); |
23324ae1 FM |
4605 | |
4606 | /** | |
6d7b19b0 RD |
4607 | Move to the previous change in capitalisation extending selection |
4608 | to new caret position. | |
23324ae1 | 4609 | */ |
6d7b19b0 | 4610 | void WordPartLeftExtend(); |
23324ae1 FM |
4611 | |
4612 | /** | |
6d7b19b0 | 4613 | Move to the change next in capitalisation. |
23324ae1 | 4614 | */ |
6d7b19b0 | 4615 | void WordPartRight(); |
23324ae1 FM |
4616 | |
4617 | /** | |
6d7b19b0 RD |
4618 | Move to the next change in capitalisation extending selection |
4619 | to new caret position. | |
23324ae1 | 4620 | */ |
6d7b19b0 | 4621 | void WordPartRightExtend(); |
23324ae1 FM |
4622 | |
4623 | /** | |
6d7b19b0 RD |
4624 | Set the way the display area is determined when a particular line |
4625 | is to be moved to by Find, FindNext, GotoLine, etc. | |
23324ae1 | 4626 | */ |
6d7b19b0 | 4627 | void SetVisiblePolicy(int visiblePolicy, int visibleSlop); |
23324ae1 FM |
4628 | |
4629 | /** | |
6d7b19b0 | 4630 | Delete back from the current position to the start of the line. |
23324ae1 | 4631 | */ |
6d7b19b0 | 4632 | void DelLineLeft(); |
23324ae1 FM |
4633 | |
4634 | /** | |
6d7b19b0 | 4635 | Delete forwards from the current position to the end of the line. |
23324ae1 | 4636 | */ |
6d7b19b0 | 4637 | void DelLineRight(); |
23324ae1 FM |
4638 | |
4639 | /** | |
6d7b19b0 | 4640 | Get and Set the xOffset (ie, horizontal scroll position). |
23324ae1 | 4641 | */ |
6d7b19b0 RD |
4642 | void SetXOffset(int newOffset); |
4643 | int GetXOffset() const; | |
23324ae1 FM |
4644 | |
4645 | /** | |
6d7b19b0 | 4646 | Set the last x chosen value to be the caret x position. |
23324ae1 | 4647 | */ |
6d7b19b0 | 4648 | void ChooseCaretX(); |
23324ae1 FM |
4649 | |
4650 | /** | |
6d7b19b0 RD |
4651 | Set the way the caret is kept visible when going sideways. |
4652 | The exclusion zone is given in pixels. | |
23324ae1 | 4653 | */ |
6d7b19b0 | 4654 | void SetXCaretPolicy(int caretPolicy, int caretSlop); |
23324ae1 FM |
4655 | |
4656 | /** | |
6d7b19b0 RD |
4657 | Set the way the line the caret is on is kept visible. |
4658 | The exclusion zone is given in lines. | |
23324ae1 | 4659 | */ |
6d7b19b0 | 4660 | void SetYCaretPolicy(int caretPolicy, int caretSlop); |
23324ae1 FM |
4661 | |
4662 | /** | |
6d7b19b0 | 4663 | Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE). |
23324ae1 | 4664 | */ |
6d7b19b0 | 4665 | void SetPrintWrapMode(int mode); |
23324ae1 | 4666 | |
65d6e39b | 4667 | /** |
6d7b19b0 | 4668 | Is printing line wrapped? |
65d6e39b | 4669 | */ |
6d7b19b0 | 4670 | int GetPrintWrapMode() const; |
65d6e39b | 4671 | |
23324ae1 | 4672 | /** |
6d7b19b0 | 4673 | Set a fore colour for active hotspots. |
23324ae1 | 4674 | */ |
6d7b19b0 | 4675 | void SetHotspotActiveForeground(bool useSetting, const wxColour& fore); |
23324ae1 FM |
4676 | |
4677 | /** | |
6d7b19b0 | 4678 | Get the fore colour for active hotspots. |
23324ae1 | 4679 | */ |
6d7b19b0 | 4680 | wxColour GetHotspotActiveForeground() const; |
23324ae1 FM |
4681 | |
4682 | /** | |
6d7b19b0 | 4683 | Set a back colour for active hotspots. |
23324ae1 | 4684 | */ |
6d7b19b0 | 4685 | void SetHotspotActiveBackground(bool useSetting, const wxColour& back); |
23324ae1 FM |
4686 | |
4687 | /** | |
6d7b19b0 | 4688 | Get the back colour for active hotspots. |
23324ae1 | 4689 | */ |
6d7b19b0 | 4690 | wxColour GetHotspotActiveBackground() const; |
23324ae1 FM |
4691 | |
4692 | /** | |
6d7b19b0 | 4693 | Enable / Disable underlining active hotspots. |
23324ae1 | 4694 | */ |
6d7b19b0 | 4695 | void SetHotspotActiveUnderline(bool underline); |
23324ae1 FM |
4696 | |
4697 | /** | |
6d7b19b0 | 4698 | Get whether underlining for active hotspots. |
23324ae1 | 4699 | */ |
6d7b19b0 | 4700 | bool GetHotspotActiveUnderline() const; |
23324ae1 FM |
4701 | |
4702 | /** | |
6d7b19b0 | 4703 | Limit hotspots to single line so hotspots on two lines don't merge. |
23324ae1 | 4704 | */ |
6d7b19b0 | 4705 | void SetHotspotSingleLine(bool singleLine); |
23324ae1 FM |
4706 | |
4707 | /** | |
6d7b19b0 | 4708 | Get the HotspotSingleLine property |
23324ae1 | 4709 | */ |
6d7b19b0 | 4710 | bool GetHotspotSingleLine() const; |
23324ae1 FM |
4711 | |
4712 | /** | |
6d7b19b0 | 4713 | Move caret between paragraphs (delimited by empty lines). |
23324ae1 | 4714 | */ |
6d7b19b0 RD |
4715 | void ParaDown(); |
4716 | void ParaDownExtend(); | |
4717 | void ParaUp(); | |
4718 | void ParaUpExtend(); | |
23324ae1 FM |
4719 | |
4720 | /** | |
6d7b19b0 RD |
4721 | Given a valid document position, return the previous position taking code |
4722 | page into account. Returns 0 if passed 0. | |
23324ae1 | 4723 | */ |
6d7b19b0 | 4724 | int PositionBefore(int pos); |
23324ae1 FM |
4725 | |
4726 | /** | |
6d7b19b0 RD |
4727 | Given a valid document position, return the next position taking code |
4728 | page into account. Maximum value returned is the last position in the document. | |
23324ae1 | 4729 | */ |
6d7b19b0 | 4730 | int PositionAfter(int pos); |
23324ae1 FM |
4731 | |
4732 | /** | |
6d7b19b0 | 4733 | Copy a range of text to the clipboard. Positions are clipped into the document. |
23324ae1 | 4734 | */ |
6d7b19b0 | 4735 | void CopyRange(int start, int end); |
23324ae1 FM |
4736 | |
4737 | /** | |
6d7b19b0 | 4738 | Copy argument text to the clipboard. |
23324ae1 | 4739 | */ |
6d7b19b0 | 4740 | void CopyText(int length, const wxString& text); |
23324ae1 FM |
4741 | |
4742 | /** | |
6d7b19b0 RD |
4743 | Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE/SC_SEL_THIN) or |
4744 | by lines (SC_SEL_LINES). | |
23324ae1 | 4745 | */ |
6d7b19b0 | 4746 | void SetSelectionMode(int mode); |
23324ae1 FM |
4747 | |
4748 | /** | |
6d7b19b0 | 4749 | Get the mode of the current selection. |
23324ae1 | 4750 | */ |
6d7b19b0 | 4751 | int GetSelectionMode() const; |
23324ae1 FM |
4752 | |
4753 | /** | |
6d7b19b0 | 4754 | Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line). |
23324ae1 | 4755 | */ |
6d7b19b0 | 4756 | int GetLineSelStartPosition(int line); |
23324ae1 FM |
4757 | |
4758 | /** | |
6d7b19b0 | 4759 | Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line). |
23324ae1 | 4760 | */ |
6d7b19b0 | 4761 | int GetLineSelEndPosition(int line); |
23324ae1 FM |
4762 | |
4763 | /** | |
6d7b19b0 | 4764 | Move caret down one line, extending rectangular selection to new caret position. |
23324ae1 | 4765 | */ |
6d7b19b0 | 4766 | void LineDownRectExtend(); |
23324ae1 FM |
4767 | |
4768 | /** | |
6d7b19b0 | 4769 | Move caret up one line, extending rectangular selection to new caret position. |
23324ae1 | 4770 | */ |
6d7b19b0 | 4771 | void LineUpRectExtend(); |
23324ae1 FM |
4772 | |
4773 | /** | |
6d7b19b0 | 4774 | Move caret left one character, extending rectangular selection to new caret position. |
23324ae1 | 4775 | */ |
6d7b19b0 | 4776 | void CharLeftRectExtend(); |
23324ae1 FM |
4777 | |
4778 | /** | |
6d7b19b0 | 4779 | Move caret right one character, extending rectangular selection to new caret position. |
23324ae1 | 4780 | */ |
6d7b19b0 | 4781 | void CharRightRectExtend(); |
23324ae1 FM |
4782 | |
4783 | /** | |
6d7b19b0 | 4784 | Move caret to first position on line, extending rectangular selection to new caret position. |
23324ae1 | 4785 | */ |
6d7b19b0 | 4786 | void HomeRectExtend(); |
23324ae1 FM |
4787 | |
4788 | /** | |
6d7b19b0 RD |
4789 | Move caret to before first visible character on line. |
4790 | If already there move to first character on line. | |
4791 | In either case, extend rectangular selection to new caret position. | |
23324ae1 | 4792 | */ |
6d7b19b0 | 4793 | void VCHomeRectExtend(); |
23324ae1 FM |
4794 | |
4795 | /** | |
6d7b19b0 | 4796 | Move caret to last position on line, extending rectangular selection to new caret position. |
23324ae1 | 4797 | */ |
6d7b19b0 | 4798 | void LineEndRectExtend(); |
23324ae1 FM |
4799 | |
4800 | /** | |
6d7b19b0 | 4801 | Move caret one page up, extending rectangular selection to new caret position. |
23324ae1 | 4802 | */ |
6d7b19b0 | 4803 | void PageUpRectExtend(); |
23324ae1 FM |
4804 | |
4805 | /** | |
6d7b19b0 | 4806 | Move caret one page down, extending rectangular selection to new caret position. |
23324ae1 | 4807 | */ |
6d7b19b0 | 4808 | void PageDownRectExtend(); |
23324ae1 | 4809 | |
65d6e39b | 4810 | /** |
6d7b19b0 | 4811 | Move caret to top of page, or one page up if already at top of page. |
65d6e39b | 4812 | */ |
6d7b19b0 | 4813 | void StutteredPageUp(); |
65d6e39b RD |
4814 | |
4815 | /** | |
6d7b19b0 | 4816 | Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. |
65d6e39b | 4817 | */ |
6d7b19b0 | 4818 | void StutteredPageUpExtend(); |
65d6e39b RD |
4819 | |
4820 | /** | |
6d7b19b0 | 4821 | Move caret to bottom of page, or one page down if already at bottom of page. |
65d6e39b | 4822 | */ |
6d7b19b0 | 4823 | void StutteredPageDown(); |
65d6e39b | 4824 | |
23324ae1 | 4825 | /** |
6d7b19b0 | 4826 | Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. |
23324ae1 | 4827 | */ |
6d7b19b0 | 4828 | void StutteredPageDownExtend(); |
23324ae1 | 4829 | |
9e96e16f | 4830 | /** |
6d7b19b0 | 4831 | Move caret left one word, position cursor at end of word. |
9e96e16f | 4832 | */ |
6d7b19b0 | 4833 | void WordLeftEnd(); |
9e96e16f RD |
4834 | |
4835 | /** | |
6d7b19b0 | 4836 | Move caret left one word, position cursor at end of word, extending selection to new caret position. |
9e96e16f | 4837 | */ |
6d7b19b0 | 4838 | void WordLeftEndExtend(); |
9e96e16f | 4839 | |
23324ae1 | 4840 | /** |
6d7b19b0 | 4841 | Move caret right one word, position cursor at end of word. |
23324ae1 | 4842 | */ |
6d7b19b0 | 4843 | void WordRightEnd(); |
23324ae1 | 4844 | |
65d6e39b | 4845 | /** |
6d7b19b0 | 4846 | Move caret right one word, position cursor at end of word, extending selection to new caret position. |
65d6e39b | 4847 | */ |
6d7b19b0 | 4848 | void WordRightEndExtend(); |
65d6e39b | 4849 | |
23324ae1 | 4850 | /** |
6d7b19b0 RD |
4851 | Set the set of characters making up whitespace for when moving or selecting by word. |
4852 | Should be called after SetWordChars. | |
23324ae1 | 4853 | */ |
6d7b19b0 | 4854 | void SetWhitespaceChars(const wxString& characters); |
23324ae1 FM |
4855 | |
4856 | /** | |
6d7b19b0 | 4857 | Get the set of characters making up whitespace for when moving or selecting by word. |
23324ae1 | 4858 | */ |
6d7b19b0 | 4859 | wxString GetWhitespaceChars() const; |
23324ae1 FM |
4860 | |
4861 | /** | |
6d7b19b0 RD |
4862 | Set the set of characters making up punctuation characters |
4863 | Should be called after SetWordChars. | |
23324ae1 | 4864 | */ |
6d7b19b0 | 4865 | void SetPunctuationChars(const wxString& characters); |
23324ae1 FM |
4866 | |
4867 | /** | |
6d7b19b0 | 4868 | Get the set of characters making up punctuation characters |
23324ae1 | 4869 | */ |
6d7b19b0 | 4870 | wxString GetPunctuationChars() const; |
23324ae1 FM |
4871 | |
4872 | /** | |
6d7b19b0 | 4873 | Reset the set of characters for whitespace and word characters to the defaults. |
23324ae1 | 4874 | */ |
6d7b19b0 | 4875 | void SetCharsDefault(); |
23324ae1 FM |
4876 | |
4877 | /** | |
6d7b19b0 | 4878 | Get currently selected item position in the auto-completion list |
23324ae1 | 4879 | */ |
6d7b19b0 | 4880 | int AutoCompGetCurrent() const; |
23324ae1 FM |
4881 | |
4882 | /** | |
6d7b19b0 | 4883 | Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference. |
23324ae1 | 4884 | */ |
6d7b19b0 | 4885 | void AutoCompSetCaseInsensitiveBehaviour(int behaviour); |
23324ae1 FM |
4886 | |
4887 | /** | |
6d7b19b0 | 4888 | Get auto-completion case insensitive behaviour. |
23324ae1 | 4889 | */ |
6d7b19b0 | 4890 | int AutoCompGetCaseInsensitiveBehaviour() const; |
23324ae1 FM |
4891 | |
4892 | /** | |
6d7b19b0 | 4893 | Enlarge the document to a particular size of text bytes. |
23324ae1 | 4894 | */ |
6d7b19b0 | 4895 | void Allocate(int bytes); |
23324ae1 FM |
4896 | |
4897 | /** | |
6d7b19b0 RD |
4898 | Find the position of a column on a line taking into account tabs and |
4899 | multi-byte characters. If beyond end of line, return line end position. | |
23324ae1 | 4900 | */ |
6d7b19b0 | 4901 | int FindColumn(int line, int column); |
23324ae1 FM |
4902 | |
4903 | /** | |
6d7b19b0 | 4904 | Can the caret preferred x position only be changed by explicit movement commands? |
23324ae1 | 4905 | */ |
6d7b19b0 | 4906 | int GetCaretSticky() const; |
23324ae1 FM |
4907 | |
4908 | /** | |
6d7b19b0 | 4909 | Stop the caret preferred x position changing when the user types. |
23324ae1 | 4910 | */ |
6d7b19b0 | 4911 | void SetCaretSticky(int useCaretStickyBehaviour); |
23324ae1 FM |
4912 | |
4913 | /** | |
6d7b19b0 | 4914 | Switch between sticky and non-sticky: meant to be bound to a key. |
23324ae1 | 4915 | */ |
6d7b19b0 | 4916 | void ToggleCaretSticky(); |
23324ae1 FM |
4917 | |
4918 | /** | |
6d7b19b0 | 4919 | Enable/Disable convert-on-paste for line endings |
23324ae1 | 4920 | */ |
6d7b19b0 | 4921 | void SetPasteConvertEndings(bool convert); |
23324ae1 FM |
4922 | |
4923 | /** | |
6d7b19b0 | 4924 | Get convert-on-paste setting |
23324ae1 | 4925 | */ |
6d7b19b0 | 4926 | bool GetPasteConvertEndings() const; |
23324ae1 FM |
4927 | |
4928 | /** | |
6d7b19b0 | 4929 | Duplicate the selection. If selection empty duplicate the line containing the caret. |
23324ae1 | 4930 | */ |
6d7b19b0 | 4931 | void SelectionDuplicate(); |
23324ae1 FM |
4932 | |
4933 | /** | |
6d7b19b0 | 4934 | Set background alpha of the caret line. |
23324ae1 | 4935 | */ |
6d7b19b0 | 4936 | void SetCaretLineBackAlpha(int alpha); |
23324ae1 FM |
4937 | |
4938 | /** | |
6d7b19b0 | 4939 | Get the background alpha of the caret line. |
23324ae1 | 4940 | */ |
6d7b19b0 | 4941 | int GetCaretLineBackAlpha() const; |
23324ae1 FM |
4942 | |
4943 | /** | |
6d7b19b0 | 4944 | Set the style of the caret to be drawn. |
23324ae1 | 4945 | */ |
6d7b19b0 | 4946 | void SetCaretStyle(int caretStyle); |
23324ae1 FM |
4947 | |
4948 | /** | |
6d7b19b0 | 4949 | Returns the current style of the caret. |
23324ae1 | 4950 | */ |
6d7b19b0 | 4951 | int GetCaretStyle() const; |
23324ae1 FM |
4952 | |
4953 | /** | |
6d7b19b0 | 4954 | Set the indicator used for IndicatorFillRange and IndicatorClearRange |
23324ae1 | 4955 | */ |
6d7b19b0 | 4956 | void SetIndicatorCurrent(int indicator); |
23324ae1 FM |
4957 | |
4958 | /** | |
6d7b19b0 | 4959 | Get the current indicator |
23324ae1 | 4960 | */ |
6d7b19b0 | 4961 | int GetIndicatorCurrent() const; |
23324ae1 FM |
4962 | |
4963 | /** | |
6d7b19b0 | 4964 | Set the value used for IndicatorFillRange |
23324ae1 | 4965 | */ |
6d7b19b0 | 4966 | void SetIndicatorValue(int value); |
23324ae1 FM |
4967 | |
4968 | /** | |
6d7b19b0 | 4969 | Get the current indicator value |
23324ae1 | 4970 | */ |
6d7b19b0 | 4971 | int GetIndicatorValue() const; |
23324ae1 FM |
4972 | |
4973 | /** | |
6d7b19b0 | 4974 | Turn a indicator on over a range. |
23324ae1 | 4975 | */ |
6d7b19b0 | 4976 | void IndicatorFillRange(int position, int fillLength); |
23324ae1 FM |
4977 | |
4978 | /** | |
6d7b19b0 | 4979 | Turn a indicator off over a range. |
23324ae1 | 4980 | */ |
6d7b19b0 | 4981 | void IndicatorClearRange(int position, int clearLength); |
23324ae1 FM |
4982 | |
4983 | /** | |
6d7b19b0 | 4984 | Are any indicators present at position? |
23324ae1 | 4985 | */ |
6d7b19b0 | 4986 | int IndicatorAllOnFor(int position); |
23324ae1 FM |
4987 | |
4988 | /** | |
6d7b19b0 | 4989 | What value does a particular indicator have at at a position? |
23324ae1 | 4990 | */ |
6d7b19b0 | 4991 | int IndicatorValueAt(int indicator, int position); |
23324ae1 FM |
4992 | |
4993 | /** | |
6d7b19b0 | 4994 | Where does a particular indicator start? |
23324ae1 | 4995 | */ |
6d7b19b0 | 4996 | int IndicatorStart(int indicator, int position); |
23324ae1 FM |
4997 | |
4998 | /** | |
6d7b19b0 | 4999 | Where does a particular indicator end? |
23324ae1 | 5000 | */ |
6d7b19b0 | 5001 | int IndicatorEnd(int indicator, int position); |
23324ae1 FM |
5002 | |
5003 | /** | |
6d7b19b0 | 5004 | Set number of entries in position cache |
23324ae1 | 5005 | */ |
6d7b19b0 | 5006 | void SetPositionCacheSize(int size); |
23324ae1 FM |
5007 | |
5008 | /** | |
6d7b19b0 | 5009 | How many entries are allocated to the position cache? |
23324ae1 | 5010 | */ |
6d7b19b0 | 5011 | int GetPositionCacheSize() const; |
23324ae1 | 5012 | |
65d6e39b | 5013 | /** |
6d7b19b0 | 5014 | Copy the selection, if selection empty copy the line with the caret |
65d6e39b | 5015 | */ |
6d7b19b0 | 5016 | void CopyAllowLine(); |
65d6e39b RD |
5017 | |
5018 | /** | |
6d7b19b0 RD |
5019 | Compact the document buffer and return a read-only pointer to the |
5020 | characters in the document. | |
65d6e39b | 5021 | */ |
6d7b19b0 | 5022 | const char* GetCharacterPointer() const; |
65d6e39b RD |
5023 | |
5024 | /** | |
6d7b19b0 RD |
5025 | Return a read-only pointer to a range of characters in the document. |
5026 | May move the gap so that the range is contiguous, but will only move up | |
5027 | to rangeLength bytes. | |
5028 | */ | |
5029 | const char* GetRangePointer(int position, int rangeLength) const; | |
65d6e39b RD |
5030 | |
5031 | /** | |
6d7b19b0 RD |
5032 | Return a position which, to avoid performance costs, should not be within |
5033 | the range of a call to GetRangePointer. | |
5034 | */ | |
5035 | int GetGapPosition() const; | |
65d6e39b | 5036 | |
23324ae1 | 5037 | /** |
6d7b19b0 | 5038 | Always interpret keyboard input as Unicode |
23324ae1 | 5039 | */ |
6d7b19b0 | 5040 | void SetKeysUnicode(bool keysUnicode); |
23324ae1 FM |
5041 | |
5042 | /** | |
6d7b19b0 | 5043 | Are keys always interpreted as Unicode? |
23324ae1 | 5044 | */ |
6d7b19b0 | 5045 | bool GetKeysUnicode() const; |
23324ae1 FM |
5046 | |
5047 | /** | |
6d7b19b0 | 5048 | Set the alpha fill colour of the given indicator. |
23324ae1 | 5049 | */ |
6d7b19b0 | 5050 | void IndicatorSetAlpha(int indicator, int alpha); |
23324ae1 FM |
5051 | |
5052 | /** | |
6d7b19b0 | 5053 | Get the alpha fill colour of the given indicator. |
23324ae1 | 5054 | */ |
6d7b19b0 | 5055 | int IndicatorGetAlpha(int indicator) const; |
23324ae1 FM |
5056 | |
5057 | /** | |
6d7b19b0 | 5058 | Set the alpha outline colour of the given indicator. |
23324ae1 | 5059 | */ |
6d7b19b0 | 5060 | void IndicatorSetOutlineAlpha(int indicator, int alpha); |
23324ae1 FM |
5061 | |
5062 | /** | |
6d7b19b0 | 5063 | Get the alpha outline colour of the given indicator. |
23324ae1 | 5064 | */ |
6d7b19b0 | 5065 | int IndicatorGetOutlineAlpha(int indicator) const; |
23324ae1 FM |
5066 | |
5067 | /** | |
6d7b19b0 | 5068 | Set extra ascent for each line |
23324ae1 | 5069 | */ |
6d7b19b0 | 5070 | void SetExtraAscent(int extraAscent); |
23324ae1 FM |
5071 | |
5072 | /** | |
6d7b19b0 | 5073 | Get extra ascent for each line |
23324ae1 | 5074 | */ |
6d7b19b0 | 5075 | int GetExtraAscent() const; |
23324ae1 FM |
5076 | |
5077 | /** | |
6d7b19b0 | 5078 | Set extra descent for each line |
23324ae1 | 5079 | */ |
6d7b19b0 | 5080 | void SetExtraDescent(int extraDescent); |
23324ae1 FM |
5081 | |
5082 | /** | |
6d7b19b0 | 5083 | Get extra descent for each line |
23324ae1 | 5084 | */ |
6d7b19b0 | 5085 | int GetExtraDescent() const; |
23324ae1 FM |
5086 | |
5087 | /** | |
6d7b19b0 | 5088 | Which symbol was defined for markerNumber with MarkerDefine |
23324ae1 | 5089 | */ |
6d7b19b0 | 5090 | int GetMarkerSymbolDefined(int markerNumber); |
23324ae1 FM |
5091 | |
5092 | /** | |
6d7b19b0 | 5093 | Set the text in the text margin for a line |
23324ae1 | 5094 | */ |
6d7b19b0 | 5095 | void MarginSetText(int line, const wxString& text); |
23324ae1 FM |
5096 | |
5097 | /** | |
6d7b19b0 | 5098 | Get the text in the text margin for a line |
23324ae1 | 5099 | */ |
6d7b19b0 | 5100 | wxString MarginGetText(int line) const; |
23324ae1 FM |
5101 | |
5102 | /** | |
6d7b19b0 | 5103 | Set the style number for the text margin for a line |
23324ae1 | 5104 | */ |
6d7b19b0 | 5105 | void MarginSetStyle(int line, int style); |
23324ae1 FM |
5106 | |
5107 | /** | |
6d7b19b0 | 5108 | Get the style number for the text margin for a line |
23324ae1 | 5109 | */ |
6d7b19b0 | 5110 | int MarginGetStyle(int line) const; |
23324ae1 FM |
5111 | |
5112 | /** | |
6d7b19b0 | 5113 | Set the style in the text margin for a line |
23324ae1 | 5114 | */ |
6d7b19b0 | 5115 | void MarginSetStyles(int line, const wxString& styles); |
23324ae1 FM |
5116 | |
5117 | /** | |
6d7b19b0 | 5118 | Get the styles in the text margin for a line |
23324ae1 | 5119 | */ |
6d7b19b0 | 5120 | wxString MarginGetStyles(int line) const; |
23324ae1 FM |
5121 | |
5122 | /** | |
6d7b19b0 | 5123 | Clear the margin text on all lines |
23324ae1 | 5124 | */ |
6d7b19b0 | 5125 | void MarginTextClearAll(); |
23324ae1 FM |
5126 | |
5127 | /** | |
6d7b19b0 | 5128 | Get the start of the range of style numbers used for margin text |
23324ae1 | 5129 | */ |
6d7b19b0 | 5130 | void MarginSetStyleOffset(int style); |
23324ae1 FM |
5131 | |
5132 | /** | |
6d7b19b0 | 5133 | Get the start of the range of style numbers used for margin text |
23324ae1 | 5134 | */ |
6d7b19b0 | 5135 | int MarginGetStyleOffset() const; |
23324ae1 FM |
5136 | |
5137 | /** | |
6d7b19b0 | 5138 | Set the margin options. |
23324ae1 | 5139 | */ |
6d7b19b0 | 5140 | void SetMarginOptions(int marginOptions); |
23324ae1 FM |
5141 | |
5142 | /** | |
6d7b19b0 | 5143 | Get the margin options. |
23324ae1 | 5144 | */ |
6d7b19b0 | 5145 | int GetMarginOptions() const; |
23324ae1 FM |
5146 | |
5147 | /** | |
6d7b19b0 | 5148 | Set the annotation text for a line |
23324ae1 | 5149 | */ |
6d7b19b0 | 5150 | void AnnotationSetText(int line, const wxString& text); |
23324ae1 FM |
5151 | |
5152 | /** | |
6d7b19b0 | 5153 | Get the annotation text for a line |
23324ae1 | 5154 | */ |
6d7b19b0 | 5155 | wxString AnnotationGetText(int line) const; |
23324ae1 FM |
5156 | |
5157 | /** | |
6d7b19b0 | 5158 | Set the style number for the annotations for a line |
23324ae1 | 5159 | */ |
6d7b19b0 | 5160 | void AnnotationSetStyle(int line, int style); |
23324ae1 FM |
5161 | |
5162 | /** | |
6d7b19b0 | 5163 | Get the style number for the annotations for a line |
23324ae1 | 5164 | */ |
6d7b19b0 | 5165 | int AnnotationGetStyle(int line) const; |
23324ae1 FM |
5166 | |
5167 | /** | |
6d7b19b0 | 5168 | Set the annotation styles for a line |
23324ae1 | 5169 | */ |
6d7b19b0 | 5170 | void AnnotationSetStyles(int line, const wxString& styles); |
23324ae1 FM |
5171 | |
5172 | /** | |
6d7b19b0 | 5173 | Get the annotation styles for a line |
23324ae1 | 5174 | */ |
6d7b19b0 | 5175 | wxString AnnotationGetStyles(int line) const; |
23324ae1 FM |
5176 | |
5177 | /** | |
6d7b19b0 | 5178 | Get the number of annotation lines for a line |
23324ae1 | 5179 | */ |
6d7b19b0 | 5180 | int AnnotationGetLines(int line) const; |
23324ae1 FM |
5181 | |
5182 | /** | |
6d7b19b0 | 5183 | Clear the annotations from all lines |
23324ae1 | 5184 | */ |
6d7b19b0 | 5185 | void AnnotationClearAll(); |
23324ae1 FM |
5186 | |
5187 | /** | |
6d7b19b0 | 5188 | Set the visibility for the annotations for a view |
23324ae1 | 5189 | */ |
6d7b19b0 | 5190 | void AnnotationSetVisible(int visible); |
23324ae1 FM |
5191 | |
5192 | /** | |
6d7b19b0 | 5193 | Get the visibility for the annotations for a view |
23324ae1 | 5194 | */ |
6d7b19b0 | 5195 | int AnnotationGetVisible() const; |
23324ae1 FM |
5196 | |
5197 | /** | |
6d7b19b0 | 5198 | Get the start of the range of style numbers used for annotations |
23324ae1 | 5199 | */ |
6d7b19b0 | 5200 | void AnnotationSetStyleOffset(int style); |
23324ae1 FM |
5201 | |
5202 | /** | |
6d7b19b0 | 5203 | Get the start of the range of style numbers used for annotations |
23324ae1 | 5204 | */ |
6d7b19b0 | 5205 | int AnnotationGetStyleOffset() const; |
23324ae1 FM |
5206 | |
5207 | /** | |
6d7b19b0 | 5208 | Add a container action to the undo stack |
23324ae1 | 5209 | */ |
6d7b19b0 | 5210 | void AddUndoAction(int token, int flags); |
23324ae1 FM |
5211 | |
5212 | /** | |
6d7b19b0 | 5213 | Find the position of a character from a point within the window. |
23324ae1 | 5214 | */ |
6d7b19b0 | 5215 | int CharPositionFromPoint(int x, int y); |
9e96e16f | 5216 | |
9e96e16f | 5217 | /** |
6d7b19b0 RD |
5218 | Find the position of a character from a point within the window. |
5219 | Return INVALID_POSITION if not close to text. | |
9e96e16f | 5220 | */ |
6d7b19b0 | 5221 | int CharPositionFromPointClose(int x, int y); |
9e96e16f RD |
5222 | |
5223 | /** | |
6d7b19b0 | 5224 | Set whether multiple selections can be made |
9e96e16f | 5225 | */ |
6d7b19b0 | 5226 | void SetMultipleSelection(bool multipleSelection); |
9e96e16f RD |
5227 | |
5228 | /** | |
6d7b19b0 | 5229 | Whether multiple selections can be made |
9e96e16f | 5230 | */ |
6d7b19b0 | 5231 | bool GetMultipleSelection() const; |
9e96e16f RD |
5232 | |
5233 | /** | |
6d7b19b0 | 5234 | Set whether typing can be performed into multiple selections |
9e96e16f | 5235 | */ |
6d7b19b0 | 5236 | void SetAdditionalSelectionTyping(bool additionalSelectionTyping); |
9e96e16f RD |
5237 | |
5238 | /** | |
6d7b19b0 | 5239 | Whether typing can be performed into multiple selections |
9e96e16f | 5240 | */ |
6d7b19b0 | 5241 | bool GetAdditionalSelectionTyping() const; |
9e96e16f | 5242 | |
65d6e39b | 5243 | /** |
6d7b19b0 | 5244 | Set whether additional carets will blink |
65d6e39b | 5245 | */ |
6d7b19b0 | 5246 | void SetAdditionalCaretsBlink(bool additionalCaretsBlink); |
65d6e39b RD |
5247 | |
5248 | /** | |
6d7b19b0 | 5249 | Whether additional carets will blink |
65d6e39b | 5250 | */ |
6d7b19b0 RD |
5251 | bool GetAdditionalCaretsBlink() const; |
5252 | ||
9e96e16f | 5253 | /** |
6d7b19b0 | 5254 | Set whether additional carets are visible |
9e96e16f | 5255 | */ |
6d7b19b0 | 5256 | void SetAdditionalCaretsVisible(bool additionalCaretsBlink); |
9e96e16f RD |
5257 | |
5258 | /** | |
6d7b19b0 | 5259 | Whether additional carets are visible |
9e96e16f | 5260 | */ |
6d7b19b0 | 5261 | bool GetAdditionalCaretsVisible() const; |
9e96e16f RD |
5262 | |
5263 | /** | |
6d7b19b0 | 5264 | How many selections are there? |
9e96e16f | 5265 | */ |
6d7b19b0 | 5266 | int GetSelections() const; |
9e96e16f RD |
5267 | |
5268 | /** | |
6d7b19b0 | 5269 | Clear selections to a single empty stream selection |
9e96e16f | 5270 | */ |
6d7b19b0 | 5271 | void ClearSelections(); |
9e96e16f | 5272 | |
65d6e39b | 5273 | /** |
6d7b19b0 | 5274 | Add a selection |
65d6e39b | 5275 | */ |
6d7b19b0 | 5276 | int AddSelection(int caret, int anchor); |
65d6e39b RD |
5277 | |
5278 | /** | |
6d7b19b0 | 5279 | Set the main selection |
65d6e39b | 5280 | */ |
6d7b19b0 | 5281 | void SetMainSelection(int selection); |
65d6e39b | 5282 | |
9e96e16f | 5283 | /** |
6d7b19b0 | 5284 | Which selection is the main selection |
9e96e16f | 5285 | */ |
6d7b19b0 RD |
5286 | int GetMainSelection() const; |
5287 | void SetSelectionNCaret(int selection, int pos); | |
5288 | int GetSelectionNCaret(int selection) const; | |
5289 | void SetSelectionNAnchor(int selection, int posAnchor); | |
5290 | int GetSelectionNAnchor(int selection) const; | |
5291 | void SetSelectionNCaretVirtualSpace(int selection, int space); | |
5292 | int GetSelectionNCaretVirtualSpace(int selection) const; | |
5293 | void SetSelectionNAnchorVirtualSpace(int selection, int space); | |
5294 | int GetSelectionNAnchorVirtualSpace(int selection) const; | |
9e96e16f RD |
5295 | |
5296 | /** | |
6d7b19b0 | 5297 | Sets the position that starts the selection - this becomes the anchor. |
9e96e16f | 5298 | */ |
6d7b19b0 | 5299 | void SetSelectionNStart(int selection, int pos); |
9e96e16f RD |
5300 | |
5301 | /** | |
6d7b19b0 | 5302 | Returns the position at the start of the selection. |
9e96e16f | 5303 | */ |
6d7b19b0 | 5304 | int GetSelectionNStart(int selection) const; |
9e96e16f RD |
5305 | |
5306 | /** | |
6d7b19b0 | 5307 | Sets the position that ends the selection - this becomes the currentPosition. |
9e96e16f | 5308 | */ |
6d7b19b0 | 5309 | void SetSelectionNEnd(int selection, int pos); |
9e96e16f RD |
5310 | |
5311 | /** | |
6d7b19b0 | 5312 | Returns the position at the end of the selection. |
9e96e16f | 5313 | */ |
6d7b19b0 RD |
5314 | int GetSelectionNEnd(int selection) const; |
5315 | void SetRectangularSelectionCaret(int pos); | |
5316 | int GetRectangularSelectionCaret() const; | |
5317 | void SetRectangularSelectionAnchor(int posAnchor); | |
5318 | int GetRectangularSelectionAnchor() const; | |
5319 | void SetRectangularSelectionCaretVirtualSpace(int space); | |
5320 | int GetRectangularSelectionCaretVirtualSpace() const; | |
5321 | void SetRectangularSelectionAnchorVirtualSpace(int space); | |
5322 | int GetRectangularSelectionAnchorVirtualSpace() const; | |
5323 | void SetVirtualSpaceOptions(int virtualSpaceOptions); | |
5324 | int GetVirtualSpaceOptions() const; | |
9e96e16f RD |
5325 | |
5326 | /** | |
6d7b19b0 RD |
5327 | On GTK+, allow selecting the modifier key to use for mouse-based |
5328 | rectangular selection. Often the window manager requires Alt+Mouse Drag | |
5329 | for moving windows. | |
5330 | Valid values are SCMOD_CTRL(default), SCMOD_ALT, or SCMOD_SUPER. | |
9e96e16f | 5331 | */ |
6d7b19b0 | 5332 | void SetRectangularSelectionModifier(int modifier); |
9e96e16f RD |
5333 | |
5334 | /** | |
6d7b19b0 | 5335 | Get the modifier key used for rectangular selection. |
9e96e16f | 5336 | */ |
6d7b19b0 | 5337 | int GetRectangularSelectionModifier() const; |
9e96e16f RD |
5338 | |
5339 | /** | |
6d7b19b0 RD |
5340 | Set the foreground colour of additional selections. |
5341 | Must have previously called SetSelFore with non-zero first argument for this to have an effect. | |
9e96e16f | 5342 | */ |
6d7b19b0 | 5343 | void SetAdditionalSelForeground(const wxColour& fore); |
9e96e16f RD |
5344 | |
5345 | /** | |
6d7b19b0 RD |
5346 | Set the background colour of additional selections. |
5347 | Must have previously called SetSelBack with non-zero first argument for this to have an effect. | |
9e96e16f | 5348 | */ |
6d7b19b0 | 5349 | void SetAdditionalSelBackground(const wxColour& back); |
9e96e16f RD |
5350 | |
5351 | /** | |
6d7b19b0 | 5352 | Set the alpha of the selection. |
9e96e16f | 5353 | */ |
6d7b19b0 | 5354 | void SetAdditionalSelAlpha(int alpha); |
9e96e16f RD |
5355 | |
5356 | /** | |
6d7b19b0 | 5357 | Get the alpha of the selection. |
9e96e16f | 5358 | */ |
6d7b19b0 | 5359 | int GetAdditionalSelAlpha() const; |
9e96e16f RD |
5360 | |
5361 | /** | |
6d7b19b0 | 5362 | Set the foreground colour of additional carets. |
9e96e16f | 5363 | */ |
6d7b19b0 | 5364 | void SetAdditionalCaretForeground(const wxColour& fore); |
9e96e16f RD |
5365 | |
5366 | /** | |
6d7b19b0 | 5367 | Get the foreground colour of additional carets. |
9e96e16f | 5368 | */ |
6d7b19b0 | 5369 | wxColour GetAdditionalCaretForeground() const; |
9e96e16f RD |
5370 | |
5371 | /** | |
6d7b19b0 | 5372 | Set the main selection to the next selection. |
9e96e16f | 5373 | */ |
6d7b19b0 | 5374 | void RotateSelection(); |
9e96e16f | 5375 | |
65d6e39b | 5376 | /** |
6d7b19b0 | 5377 | Swap that caret and anchor of the main selection. |
65d6e39b | 5378 | */ |
6d7b19b0 | 5379 | void SwapMainAnchorCaret(); |
65d6e39b RD |
5380 | |
5381 | /** | |
6d7b19b0 RD |
5382 | Indicate that the internal state of a lexer has changed over a range and therefore |
5383 | there may be a need to redraw. | |
65d6e39b | 5384 | */ |
6d7b19b0 | 5385 | int ChangeLexerState(int start, int end); |
65d6e39b | 5386 | |
9e96e16f | 5387 | /** |
6d7b19b0 RD |
5388 | Find the next line at or after lineStart that is a contracted fold header line. |
5389 | Return -1 when no more lines. | |
9e96e16f | 5390 | */ |
6d7b19b0 | 5391 | int ContractedFoldNext(int lineStart); |
9e96e16f RD |
5392 | |
5393 | /** | |
6d7b19b0 | 5394 | Centre current line in window. |
9e96e16f | 5395 | */ |
6d7b19b0 | 5396 | void VerticalCentreCaret(); |
9e96e16f RD |
5397 | |
5398 | /** | |
6d7b19b0 | 5399 | Move the selected lines up one line, shifting the line above after the selection |
9e96e16f | 5400 | */ |
6d7b19b0 | 5401 | void MoveSelectedLinesUp(); |
9e96e16f RD |
5402 | |
5403 | /** | |
6d7b19b0 | 5404 | Move the selected lines down one line, shifting the line below before the selection |
9e96e16f | 5405 | */ |
6d7b19b0 | 5406 | void MoveSelectedLinesDown(); |
9e96e16f RD |
5407 | |
5408 | /** | |
6d7b19b0 | 5409 | Set the identifier reported as idFrom in notification messages. |
9e96e16f | 5410 | */ |
6d7b19b0 | 5411 | void SetIdentifier(int identifier); |
9e96e16f RD |
5412 | |
5413 | /** | |
6d7b19b0 | 5414 | Get the identifier. |
9e96e16f | 5415 | */ |
6d7b19b0 | 5416 | int GetIdentifier() const; |
9e96e16f RD |
5417 | |
5418 | /** | |
6d7b19b0 | 5419 | Set the width for future RGBA image data. |
9e96e16f | 5420 | */ |
6d7b19b0 | 5421 | void RGBAImageSetWidth(int width); |
9e96e16f RD |
5422 | |
5423 | /** | |
6d7b19b0 | 5424 | Set the height for future RGBA image data. |
9e96e16f | 5425 | */ |
6d7b19b0 | 5426 | void RGBAImageSetHeight(int height); |
9e96e16f | 5427 | |
95725e35 | 5428 | /** |
6d7b19b0 RD |
5429 | Define a marker from RGBA data. |
5430 | It has the width and height from RGBAImageSetWidth/Height | |
95725e35 | 5431 | */ |
6d7b19b0 | 5432 | void MarkerDefineRGBAImage(int markerNumber, const unsigned char* pixels); |
95725e35 | 5433 | |
9e96e16f | 5434 | /** |
6d7b19b0 RD |
5435 | Register an RGBA image for use in autocompletion lists. |
5436 | It has the width and height from RGBAImageSetWidth/Height | |
9e96e16f | 5437 | */ |
6d7b19b0 | 5438 | void RegisterRGBAImage(int type, const unsigned char* pixels); |
9e96e16f RD |
5439 | |
5440 | /** | |
6d7b19b0 | 5441 | Scroll to start of document. |
9e96e16f | 5442 | */ |
6d7b19b0 | 5443 | void ScrollToStart(); |
9e96e16f RD |
5444 | |
5445 | /** | |
6d7b19b0 | 5446 | Scroll to end of document. |
9e96e16f | 5447 | */ |
6d7b19b0 | 5448 | void ScrollToEnd(); |
9e96e16f RD |
5449 | |
5450 | /** | |
6d7b19b0 | 5451 | Set the technology used. |
9e96e16f | 5452 | */ |
6d7b19b0 | 5453 | void SetTechnology(int technology); |
9e96e16f RD |
5454 | |
5455 | /** | |
6d7b19b0 | 5456 | Get the tech. |
9e96e16f | 5457 | */ |
6d7b19b0 | 5458 | int GetTechnology() const; |
9e96e16f RD |
5459 | |
5460 | /** | |
6d7b19b0 | 5461 | Create an ILoader*. |
9e96e16f | 5462 | */ |
6d7b19b0 | 5463 | void* CreateLoader(int bytes) const; |
9e96e16f RD |
5464 | |
5465 | /** | |
6d7b19b0 | 5466 | Start notifying the container of all key presses and commands. |
9e96e16f | 5467 | */ |
6d7b19b0 | 5468 | void StartRecord(); |
9e96e16f RD |
5469 | |
5470 | /** | |
6d7b19b0 | 5471 | Stop notifying the container of all key presses and commands. |
9e96e16f | 5472 | */ |
6d7b19b0 | 5473 | void StopRecord(); |
9e96e16f RD |
5474 | |
5475 | /** | |
6d7b19b0 | 5476 | Set the lexing language of the document. |
9e96e16f | 5477 | */ |
6d7b19b0 | 5478 | void SetLexer(int lexer); |
9e96e16f RD |
5479 | |
5480 | /** | |
6d7b19b0 | 5481 | Retrieve the lexing language of the document. |
9e96e16f | 5482 | */ |
6d7b19b0 | 5483 | int GetLexer() const; |
9e96e16f RD |
5484 | |
5485 | /** | |
6d7b19b0 | 5486 | Colourise a segment of the document using the current lexing language. |
9e96e16f | 5487 | */ |
6d7b19b0 | 5488 | void Colourise(int start, int end); |
9e96e16f RD |
5489 | |
5490 | /** | |
6d7b19b0 | 5491 | Set up a value that may be used by a lexer for some optional feature. |
9e96e16f | 5492 | */ |
6d7b19b0 | 5493 | void SetProperty(const wxString& key, const wxString& value); |
9e96e16f RD |
5494 | |
5495 | /** | |
6d7b19b0 | 5496 | Set up the key words used by the lexer. |
9e96e16f | 5497 | */ |
6d7b19b0 | 5498 | void SetKeyWords(int keywordSet, const wxString& keyWords); |
9e96e16f RD |
5499 | |
5500 | /** | |
6d7b19b0 | 5501 | Set the lexing language of the document based on string name. |
9e96e16f | 5502 | */ |
6d7b19b0 | 5503 | void SetLexerLanguage(const wxString& language); |
9e96e16f RD |
5504 | |
5505 | /** | |
6d7b19b0 | 5506 | Retrieve a 'property' value previously set with SetProperty. |
9e96e16f | 5507 | */ |
6d7b19b0 | 5508 | wxString GetProperty(const wxString& key); |
9e96e16f RD |
5509 | |
5510 | /** | |
6d7b19b0 RD |
5511 | Retrieve a 'property' value previously set with SetProperty, |
5512 | with '$()' variable replacement on returned buffer. | |
9e96e16f | 5513 | */ |
6d7b19b0 | 5514 | wxString GetPropertyExpanded(const wxString& key); |
9e96e16f RD |
5515 | |
5516 | /** | |
6d7b19b0 RD |
5517 | Retrieve a 'property' value previously set with SetProperty, |
5518 | interpreted as an int AFTER any '$()' variable replacement. | |
9e96e16f | 5519 | */ |
6d7b19b0 | 5520 | int GetPropertyInt(const wxString& key) const; |
9e96e16f RD |
5521 | |
5522 | /** | |
6d7b19b0 | 5523 | Retrieve the number of bits the current lexer needs for styling. |
9e96e16f | 5524 | */ |
6d7b19b0 | 5525 | int GetStyleBitsNeeded() const; |
9e96e16f RD |
5526 | |
5527 | /** | |
6d7b19b0 | 5528 | For private communication between an application and a known lexer. |
9e96e16f | 5529 | */ |
6d7b19b0 | 5530 | void* PrivateLexerCall(int operation, void* pointer); |
9e96e16f RD |
5531 | |
5532 | /** | |
6d7b19b0 | 5533 | Retrieve a '\n' separated list of properties understood by the current lexer. |
9e96e16f | 5534 | */ |
6d7b19b0 | 5535 | wxString PropertyNames() const; |
9e96e16f RD |
5536 | |
5537 | /** | |
6d7b19b0 | 5538 | Retrieve the type of a property. |
9e96e16f | 5539 | */ |
6d7b19b0 | 5540 | int PropertyType(const wxString& name); |
9e96e16f RD |
5541 | |
5542 | /** | |
6d7b19b0 | 5543 | Describe a property. |
9e96e16f | 5544 | */ |
6d7b19b0 | 5545 | wxString DescribeProperty(const wxString& name) const; |
9e96e16f RD |
5546 | |
5547 | /** | |
6d7b19b0 | 5548 | Retrieve a '\n' separated list of descriptions of the keyword sets understood by the current lexer. |
9e96e16f | 5549 | */ |
6d7b19b0 RD |
5550 | wxString DescribeKeyWordSets() const; |
5551 | ||
5552 | //}}} | |
5553 | ||
5554 | ||
5555 | ||
5556 | // **** Manually declared methods | |
5557 | ||
9e96e16f RD |
5558 | |
5559 | /** | |
6d7b19b0 | 5560 | Returns the line number of the line with the caret. |
9e96e16f | 5561 | */ |
6d7b19b0 | 5562 | int GetCurrentLine(); |
9e96e16f RD |
5563 | |
5564 | /** | |
6d7b19b0 RD |
5565 | Extract style settings from a spec-string which is composed of one or |
5566 | more of the following comma separated elements: | |
5567 | ||
5568 | bold turns on bold | |
5569 | italic turns on italics | |
5570 | fore:[name or #RRGGBB] sets the foreground colour | |
5571 | back:[name or #RRGGBB] sets the background colour | |
5572 | face:[facename] sets the font face name to use | |
5573 | size:[num] sets the font size in points | |
5574 | eol turns on eol filling | |
5575 | underline turns on underlining | |
9e96e16f | 5576 | */ |
6d7b19b0 RD |
5577 | void StyleSetSpec(int styleNum, const wxString& spec); |
5578 | ||
9e96e16f RD |
5579 | |
5580 | /** | |
6d7b19b0 | 5581 | Get the font of a style. |
9e96e16f | 5582 | */ |
6d7b19b0 RD |
5583 | wxFont StyleGetFont(int style); |
5584 | ||
9e96e16f RD |
5585 | |
5586 | /** | |
6d7b19b0 RD |
5587 | Set style size, face, bold, italic, and underline attributes from |
5588 | a wxFont's attributes. | |
9e96e16f | 5589 | */ |
6d7b19b0 RD |
5590 | void StyleSetFont(int styleNum, wxFont& font); |
5591 | ||
5592 | ||
9e96e16f RD |
5593 | |
5594 | /** | |
6d7b19b0 | 5595 | Set all font style attributes at once. |
9e96e16f | 5596 | */ |
6d7b19b0 RD |
5597 | void StyleSetFontAttr(int styleNum, int size, |
5598 | const wxString& faceName, | |
5599 | bool bold, bool italic, | |
5600 | bool underline, | |
5601 | wxFontEncoding encoding=wxFONTENCODING_DEFAULT); | |
5602 | ||
9e96e16f RD |
5603 | |
5604 | /** | |
6d7b19b0 RD |
5605 | Set the character set of the font in a style. Converts the Scintilla |
5606 | character set values to a wxFontEncoding. | |
9e96e16f | 5607 | */ |
6d7b19b0 | 5608 | void StyleSetCharacterSet(int style, int characterSet); |
9e96e16f RD |
5609 | |
5610 | /** | |
6d7b19b0 | 5611 | Set the font encoding to be used by a style. |
9e96e16f | 5612 | */ |
6d7b19b0 RD |
5613 | void StyleSetFontEncoding(int style, wxFontEncoding encoding); |
5614 | ||
9e96e16f RD |
5615 | |
5616 | /** | |
6d7b19b0 | 5617 | Perform one of the operations defined by the wxSTC_CMD_* constants. |
9e96e16f | 5618 | */ |
6d7b19b0 RD |
5619 | void CmdKeyExecute(int cmd); |
5620 | ||
9e96e16f RD |
5621 | |
5622 | /** | |
6d7b19b0 | 5623 | Set the left and right margin in the edit area, measured in pixels. |
9e96e16f | 5624 | */ |
6d7b19b0 RD |
5625 | void SetMargins(int left, int right); |
5626 | ||
9e96e16f RD |
5627 | |
5628 | /** | |
6d7b19b0 | 5629 | Retrieve the point in the window where a position is displayed. |
9e96e16f | 5630 | */ |
6d7b19b0 RD |
5631 | wxPoint PointFromPosition(int pos); |
5632 | ||
9e96e16f RD |
5633 | |
5634 | /** | |
6d7b19b0 | 5635 | Scroll enough to make the given line visible |
9e96e16f | 5636 | */ |
6d7b19b0 RD |
5637 | void ScrollToLine(int line); |
5638 | ||
65d6e39b RD |
5639 | |
5640 | /** | |
6d7b19b0 | 5641 | Scroll enough to make the given column visible |
65d6e39b | 5642 | */ |
6d7b19b0 RD |
5643 | void ScrollToColumn(int column); |
5644 | ||
65d6e39b RD |
5645 | |
5646 | /** | |
6d7b19b0 | 5647 | Send a message to Scintilla |
65d6e39b | 5648 | */ |
6d7b19b0 RD |
5649 | wxIntPtr SendMsg(int msg, wxUIntPtr wp=0, wxIntPtr lp=0) const; |
5650 | ||
65d6e39b RD |
5651 | |
5652 | /** | |
6d7b19b0 | 5653 | Set the vertical scrollbar to use instead of the ont that's built-in. |
65d6e39b | 5654 | */ |
6d7b19b0 RD |
5655 | void SetVScrollBar(wxScrollBar* bar); |
5656 | ||
65d6e39b RD |
5657 | |
5658 | /** | |
6d7b19b0 | 5659 | Set the horizontal scrollbar to use instead of the ont that's built-in. |
65d6e39b | 5660 | */ |
6d7b19b0 | 5661 | void SetHScrollBar(wxScrollBar* bar); |
65d6e39b RD |
5662 | |
5663 | /** | |
6d7b19b0 | 5664 | Can be used to prevent the EVT_CHAR handler from adding the char |
65d6e39b | 5665 | */ |
6d7b19b0 RD |
5666 | bool GetLastKeydownProcessed(); |
5667 | void SetLastKeydownProcessed(bool val); | |
65d6e39b RD |
5668 | |
5669 | /** | |
6d7b19b0 | 5670 | Write the contents of the editor to filename |
65d6e39b | 5671 | */ |
6d7b19b0 | 5672 | bool SaveFile(const wxString& filename); |
65d6e39b RD |
5673 | |
5674 | /** | |
6d7b19b0 | 5675 | Load the contents of filename into the editor |
65d6e39b | 5676 | */ |
6d7b19b0 | 5677 | bool LoadFile(const wxString& filename); |
65d6e39b RD |
5678 | |
5679 | /** | |
6d7b19b0 | 5680 | Allow for simulating a DnD DragOver |
65d6e39b | 5681 | */ |
6d7b19b0 | 5682 | wxDragResult DoDragOver(wxCoord x, wxCoord y, wxDragResult defaultRes); |
65d6e39b RD |
5683 | |
5684 | /** | |
6d7b19b0 | 5685 | Allow for simulating a DnD DropText |
65d6e39b | 5686 | */ |
6d7b19b0 | 5687 | bool DoDropText(long x, long y, const wxString& data); |
65d6e39b RD |
5688 | |
5689 | /** | |
6d7b19b0 | 5690 | Clear annotations from the given line. |
65d6e39b | 5691 | */ |
6d7b19b0 RD |
5692 | void AnnotationClearLine(int line); |
5693 | ||
65d6e39b RD |
5694 | |
5695 | /** | |
6d7b19b0 | 5696 | Add text to the document at current position. |
65d6e39b | 5697 | */ |
6d7b19b0 | 5698 | void AddTextRaw(const char* text, int length=-1); |
65d6e39b RD |
5699 | |
5700 | /** | |
6d7b19b0 | 5701 | Insert string at a position. |
65d6e39b | 5702 | */ |
6d7b19b0 | 5703 | void InsertTextRaw(int pos, const char* text); |
65d6e39b RD |
5704 | |
5705 | /** | |
6d7b19b0 RD |
5706 | Retrieve the text of the line containing the caret. |
5707 | Returns the index of the caret on the line. | |
65d6e39b | 5708 | */ |
6d7b19b0 | 5709 | wxCharBuffer GetCurLineRaw(int* linePos=NULL); |
65d6e39b RD |
5710 | |
5711 | /** | |
6d7b19b0 | 5712 | Retrieve the contents of a line. |
65d6e39b | 5713 | */ |
6d7b19b0 | 5714 | wxCharBuffer GetLineRaw(int line); |
65d6e39b RD |
5715 | |
5716 | /** | |
6d7b19b0 | 5717 | Retrieve the selected text. |
65d6e39b | 5718 | */ |
6d7b19b0 | 5719 | wxCharBuffer GetSelectedTextRaw(); |
65d6e39b RD |
5720 | |
5721 | /** | |
6d7b19b0 | 5722 | Retrieve a range of text. |
65d6e39b | 5723 | */ |
6d7b19b0 | 5724 | wxCharBuffer GetTextRangeRaw(int startPos, int endPos); |
65d6e39b RD |
5725 | |
5726 | /** | |
6d7b19b0 | 5727 | Replace the contents of the document with the argument text. |
65d6e39b | 5728 | */ |
6d7b19b0 | 5729 | void SetTextRaw(const char* text); |
65d6e39b RD |
5730 | |
5731 | /** | |
6d7b19b0 | 5732 | Retrieve all the text in the document. |
65d6e39b | 5733 | */ |
6d7b19b0 | 5734 | wxCharBuffer GetTextRaw(); |
65d6e39b RD |
5735 | |
5736 | /** | |
6d7b19b0 | 5737 | Append a string to the end of the document without changing the selection. |
65d6e39b | 5738 | */ |
6d7b19b0 | 5739 | void AppendTextRaw(const char* text, int length=-1); |
65d6e39b | 5740 | |
ccec9093 | 5741 | |
ccec9093 | 5742 | static wxVersionInfo GetLibraryVersionInfo(); |
6d7b19b0 RD |
5743 | |
5744 | ||
5745 | ||
5746 | // wxTextEntryBase pure virtual methods | |
5747 | // ---------------------------------------------- | |
5748 | ||
5749 | virtual void WriteText(const wxString& text); | |
5750 | virtual void Remove(long from, long to); | |
5751 | virtual void Replace(long from, long to, const wxString& text); | |
5752 | ||
5753 | virtual void SetInsertionPoint(long pos); | |
5754 | virtual long GetInsertionPoint() const; | |
5755 | virtual long GetLastPosition() const; | |
5756 | ||
5757 | virtual void SetSelection(long from, long to); | |
5758 | virtual void SelectNone(); | |
5759 | virtual void GetSelection(long *from, long *to) const; | |
5760 | ||
5761 | virtual bool IsEditable() const; | |
5762 | virtual void SetEditable(bool editable); | |
5763 | ||
5764 | // wxTextAreaBase pure virtual methods | |
5765 | // --------------------------------------------- | |
5766 | ||
5767 | virtual int GetLineLength(long n) const; | |
5768 | virtual wxString GetLineText(long n) const; | |
5769 | virtual int GetNumberOfLines() const; | |
5770 | ||
5771 | virtual bool IsModified() const; | |
5772 | virtual void MarkDirty(); | |
5773 | virtual void DiscardEdits(); | |
5774 | ||
5775 | virtual bool SetStyle(long start, long end, const wxTextAttr& style); | |
5776 | virtual bool GetStyle(long position, wxTextAttr& style); | |
5777 | virtual bool SetDefaultStyle(const wxTextAttr& style); | |
5778 | ||
5779 | virtual long XYToPosition(long x, long y) const; | |
5780 | virtual bool PositionToXY(long pos, long *x, long *y) const; | |
5781 | ||
5782 | virtual void ShowPosition(long pos); | |
5783 | ||
5784 | virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const; | |
5785 | virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, | |
5786 | wxTextCoord *col, | |
5787 | wxTextCoord *row) const; | |
5788 | }; | |
5789 | ||
5790 | //---------------------------------------------------------------------- | |
5791 | ||
5792 | /** | |
5793 | @class wxStyledTextEvent | |
5794 | ||
5795 | The type of events sent from wxStyledTextCtrl. | |
5796 | ||
5797 | @todo list styled text ctrl events. | |
5798 | ||
5799 | @library{stc} | |
5800 | @category{events,stc} | |
5801 | */ | |
5802 | ||
5803 | class wxStyledTextEvent : public wxCommandEvent { | |
5804 | public: | |
5805 | wxStyledTextEvent(wxEventType commandType=0, int id=0); | |
5806 | wxStyledTextEvent(const wxStyledTextEvent& event); | |
5807 | ~wxStyledTextEvent(); | |
5808 | ||
5809 | void SetPosition(int pos); | |
5810 | void SetKey(int k); | |
5811 | void SetModifiers(int m); | |
5812 | void SetModificationType(int t); | |
5813 | void SetText(const wxString& t); | |
5814 | void SetLength(int len); | |
5815 | void SetLinesAdded(int num); | |
5816 | void SetLine(int val); | |
5817 | void SetFoldLevelNow(int val); | |
5818 | void SetFoldLevelPrev(int val); | |
5819 | void SetMargin(int val); | |
5820 | void SetMessage(int val); | |
5821 | void SetWParam(int val); | |
5822 | void SetLParam(int val); | |
5823 | void SetListType(int val); | |
5824 | void SetX(int val); | |
5825 | void SetY(int val); | |
5826 | void SetToken(int val); | |
5827 | void SetAnnotationLinesAdded(int val); | |
5828 | void SetUpdated(int val); | |
5829 | void SetDragText(const wxString& val); | |
5830 | void SetDragFlags(int flags); | |
5831 | void SetDragResult(wxDragResult val); | |
5832 | ||
5833 | int GetPosition() const; | |
5834 | int GetKey() const; | |
5835 | int GetModifiers() const; | |
5836 | int GetModificationType() const; | |
5837 | wxString GetText() const; | |
5838 | int GetLength() const; | |
5839 | int GetLinesAdded() const; | |
5840 | int GetLine() const; | |
5841 | int GetFoldLevelNow() const; | |
5842 | int GetFoldLevelPrev() const; | |
5843 | int GetMargin() const; | |
5844 | int GetMessage() const; | |
5845 | int GetWParam() const; | |
5846 | int GetLParam() const; | |
5847 | int GetListType() const; | |
5848 | int GetX() const; | |
5849 | int GetY() const; | |
5850 | int GetToken() const; | |
5851 | int GetAnnotationsLinesAdded() const; | |
5852 | int GetUpdated() const; | |
5853 | ||
5854 | wxString GetDragText(); | |
5855 | int GetDragFlags(); | |
5856 | wxDragResult GetDragResult(); | |
5857 | ||
5858 | bool GetShift() const; | |
5859 | bool GetControl() const; | |
5860 | bool GetAlt() const; | |
23324ae1 | 5861 | }; |
e54c96f1 | 5862 | |
6d7b19b0 RD |
5863 | |
5864 | ||
5865 | const wxEventType wxEVT_STC_CHANGE; | |
5866 | const wxEventType wxEVT_STC_STYLENEEDED; | |
5867 | const wxEventType wxEVT_STC_CHARADDED; | |
5868 | const wxEventType wxEVT_STC_SAVEPOINTREACHED; | |
5869 | const wxEventType wxEVT_STC_SAVEPOINTLEFT; | |
5870 | const wxEventType wxEVT_STC_ROMODIFYATTEMPT; | |
5871 | const wxEventType wxEVT_STC_KEY; | |
5872 | const wxEventType wxEVT_STC_DOUBLECLICK; | |
5873 | const wxEventType wxEVT_STC_UPDATEUI; | |
5874 | const wxEventType wxEVT_STC_MODIFIED; | |
5875 | const wxEventType wxEVT_STC_MACRORECORD; | |
5876 | const wxEventType wxEVT_STC_MARGINCLICK; | |
5877 | const wxEventType wxEVT_STC_NEEDSHOWN; | |
5878 | const wxEventType wxEVT_STC_PAINTED; | |
5879 | const wxEventType wxEVT_STC_USERLISTSELECTION; | |
5880 | const wxEventType wxEVT_STC_URIDROPPED; | |
5881 | const wxEventType wxEVT_STC_DWELLSTART; | |
5882 | const wxEventType wxEVT_STC_DWELLEND; | |
5883 | const wxEventType wxEVT_STC_START_DRAG; | |
5884 | const wxEventType wxEVT_STC_DRAG_OVER; | |
5885 | const wxEventType wxEVT_STC_DO_DROP; | |
5886 | const wxEventType wxEVT_STC_ZOOM; | |
5887 | const wxEventType wxEVT_STC_HOTSPOT_CLICK; | |
5888 | const wxEventType wxEVT_STC_HOTSPOT_DCLICK; | |
5889 | const wxEventType wxEVT_STC_CALLTIP_CLICK; | |
5890 | const wxEventType wxEVT_STC_AUTOCOMP_SELECTION; | |
5891 | const wxEventType wxEVT_STC_INDICATOR_CLICK; | |
5892 | const wxEventType wxEVT_STC_INDICATOR_RELEASE; | |
5893 | const wxEventType wxEVT_STC_AUTOCOMP_CANCELLED; | |
5894 | const wxEventType wxEVT_STC_AUTOCOMP_CHAR_DELETED; | |
5895 | const wxEventType wxEVT_STC_HOTSPOT_RELEASE_CLICK; |