Fix stc doxygen warnings and regen stc files.
[wxWidgets.git] / interface / wx / stc / stc.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: stc/stc.h
3 // Purpose: interface of wxStyledTextCtrl
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
7
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.
12 */
13
14
15 // STC constants {{{
16
17 #define wxSTC_INVALID_POSITION -1
18
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
2179
2180 /// Move caret left one character extending selection to new caret position.
2181 #define wxSTC_CMD_CHARLEFTEXTEND 2305
2182
2183 /// Move caret right one character.
2184 #define wxSTC_CMD_CHARRIGHT 2306
2185
2186 /// Move caret right one character extending selection to new caret position.
2187 #define wxSTC_CMD_CHARRIGHTEXTEND 2307
2188
2189 /// Move caret left one word.
2190 #define wxSTC_CMD_WORDLEFT 2308
2191
2192 /// Move caret left one word extending selection to new caret position.
2193 #define wxSTC_CMD_WORDLEFTEXTEND 2309
2194
2195 /// Move caret right one word.
2196 #define wxSTC_CMD_WORDRIGHT 2310
2197
2198 /// Move caret right one word extending selection to new caret position.
2199 #define wxSTC_CMD_WORDRIGHTEXTEND 2311
2200
2201 /// Move caret to first position on line.
2202 #define wxSTC_CMD_HOME 2312
2203
2204 /// Move caret to first position on line extending selection to new caret position.
2205 #define wxSTC_CMD_HOMEEXTEND 2313
2206
2207 /// Move caret to last position on line.
2208 #define wxSTC_CMD_LINEEND 2314
2209
2210 /// Move caret to last position on line extending selection to new caret position.
2211 #define wxSTC_CMD_LINEENDEXTEND 2315
2212
2213 /// Move caret to first position in document.
2214 #define wxSTC_CMD_DOCUMENTSTART 2316
2215
2216 /// Move caret to first position in document extending selection to new caret position.
2217 #define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317
2218
2219 /// Move caret to last position in document.
2220 #define wxSTC_CMD_DOCUMENTEND 2318
2221
2222 /// Move caret to last position in document extending selection to new caret position.
2223 #define wxSTC_CMD_DOCUMENTENDEXTEND 2319
2224
2225 /// Move caret one page up.
2226 #define wxSTC_CMD_PAGEUP 2320
2227
2228 /// Move caret one page up extending selection to new caret position.
2229 #define wxSTC_CMD_PAGEUPEXTEND 2321
2230
2231 /// Move caret one page down.
2232 #define wxSTC_CMD_PAGEDOWN 2322
2233
2234 /// Move caret one page down extending selection to new caret position.
2235 #define wxSTC_CMD_PAGEDOWNEXTEND 2323
2236
2237 /// Switch from insert to overtype mode or the reverse.
2238 #define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324
2239
2240 /// Cancel any modes such as call tip or auto-completion list display.
2241 #define wxSTC_CMD_CANCEL 2325
2242
2243 /// Delete the selection or if no selection, the character before the caret.
2244 #define wxSTC_CMD_DELETEBACK 2326
2245
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
2249
2250 /// Dedent the selected lines.
2251 #define wxSTC_CMD_BACKTAB 2328
2252
2253 /// Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
2254 #define wxSTC_CMD_NEWLINE 2329
2255
2256 /// Insert a Form Feed character.
2257 #define wxSTC_CMD_FORMFEED 2330
2258
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
2262
2263 /// Like VCHome but extending selection to new caret position.
2264 #define wxSTC_CMD_VCHOMEEXTEND 2332
2265
2266 /// Magnify the displayed text by increasing the sizes by 1 point.
2267 #define wxSTC_CMD_ZOOMIN 2333
2268
2269 /// Make the displayed text smaller by decreasing the sizes by 1 point.
2270 #define wxSTC_CMD_ZOOMOUT 2334
2271
2272 /// Delete the word to the left of the caret.
2273 #define wxSTC_CMD_DELWORDLEFT 2335
2274
2275 /// Delete the word to the right of the caret.
2276 #define wxSTC_CMD_DELWORDRIGHT 2336
2277
2278 /// Delete the word to the right of the caret, but not the trailing non-word characters.
2279 #define wxSTC_CMD_DELWORDRIGHTEND 2518
2280
2281 /// Cut the line containing the caret.
2282 #define wxSTC_CMD_LINECUT 2337
2283
2284 /// Delete the line containing the caret.
2285 #define wxSTC_CMD_LINEDELETE 2338
2286
2287 /// Switch the current line with the previous.
2288 #define wxSTC_CMD_LINETRANSPOSE 2339
2289
2290 /// Duplicate the current line.
2291 #define wxSTC_CMD_LINEDUPLICATE 2404
2292
2293 /// Transform the selection to lower case.
2294 #define wxSTC_CMD_LOWERCASE 2340
2295
2296 /// Transform the selection to upper case.
2297 #define wxSTC_CMD_UPPERCASE 2341
2298
2299 /// Scroll the document down, keeping the caret visible.
2300 #define wxSTC_CMD_LINESCROLLDOWN 2342
2301
2302 /// Scroll the document up, keeping the caret visible.
2303 #define wxSTC_CMD_LINESCROLLUP 2343
2304
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
2308
2309 /// Move caret to first position on display line.
2310 #define wxSTC_CMD_HOMEDISPLAY 2345
2311
2312 /// Move caret to first position on display line extending selection to
2313 /// new caret position.
2314 #define wxSTC_CMD_HOMEDISPLAYEXTEND 2346
2315
2316 /// Move caret to last position on display line.
2317 #define wxSTC_CMD_LINEENDDISPLAY 2347
2318
2319 /// Move caret to last position on display line extending selection to new
2320 /// caret position.
2321 #define wxSTC_CMD_LINEENDDISPLAYEXTEND 2348
2322
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
2334
2335 /// Copy the line containing the caret.
2336 #define wxSTC_CMD_LINECOPY 2455
2337
2338 /// Move to the previous change in capitalisation.
2339 #define wxSTC_CMD_WORDPARTLEFT 2390
2340
2341 /// Move to the previous change in capitalisation extending selection
2342 /// to new caret position.
2343 #define wxSTC_CMD_WORDPARTLEFTEXTEND 2391
2344
2345 /// Move to the change next in capitalisation.
2346 #define wxSTC_CMD_WORDPARTRIGHT 2392
2347
2348 /// Move to the next change in capitalisation extending selection
2349 /// to new caret position.
2350 #define wxSTC_CMD_WORDPARTRIGHTEXTEND 2393
2351
2352 /// Delete back from the current position to the start of the line.
2353 #define wxSTC_CMD_DELLINELEFT 2395
2354
2355 /// Delete forwards from the current position to the end of the line.
2356 #define wxSTC_CMD_DELLINERIGHT 2396
2357
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
2363
2364 /// Move caret down one line, extending rectangular selection to new caret position.
2365 #define wxSTC_CMD_LINEDOWNRECTEXTEND 2426
2366
2367 /// Move caret up one line, extending rectangular selection to new caret position.
2368 #define wxSTC_CMD_LINEUPRECTEXTEND 2427
2369
2370 /// Move caret left one character, extending rectangular selection to new caret position.
2371 #define wxSTC_CMD_CHARLEFTRECTEXTEND 2428
2372
2373 /// Move caret right one character, extending rectangular selection to new caret position.
2374 #define wxSTC_CMD_CHARRIGHTRECTEXTEND 2429
2375
2376 /// Move caret to first position on line, extending rectangular selection to new caret position.
2377 #define wxSTC_CMD_HOMERECTEXTEND 2430
2378
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
2383
2384 /// Move caret to last position on line, extending rectangular selection to new caret position.
2385 #define wxSTC_CMD_LINEENDRECTEXTEND 2432
2386
2387 /// Move caret one page up, extending rectangular selection to new caret position.
2388 #define wxSTC_CMD_PAGEUPRECTEXTEND 2433
2389
2390 /// Move caret one page down, extending rectangular selection to new caret position.
2391 #define wxSTC_CMD_PAGEDOWNRECTEXTEND 2434
2392
2393 /// Move caret to top of page, or one page up if already at top of page.
2394 #define wxSTC_CMD_STUTTEREDPAGEUP 2435
2395
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
2398
2399 /// Move caret to bottom of page, or one page down if already at bottom of page.
2400 #define wxSTC_CMD_STUTTEREDPAGEDOWN 2437
2401
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
2404
2405 /// Move caret left one word, position cursor at end of word.
2406 #define wxSTC_CMD_WORDLEFTEND 2439
2407
2408 /// Move caret left one word, position cursor at end of word, extending selection to new caret position.
2409 #define wxSTC_CMD_WORDLEFTENDEXTEND 2440
2410
2411 /// Move caret right one word, position cursor at end of word.
2412 #define wxSTC_CMD_WORDRIGHTEND 2441
2413
2414 /// Move caret right one word, position cursor at end of word, extending selection to new caret position.
2415 #define wxSTC_CMD_WORDRIGHTENDEXTEND 2442
2416
2417 /// Centre current line in window.
2418 #define wxSTC_CMD_VERTICALCENTRECARET 2619
2419
2420 /// Move the selected lines up one line, shifting the line above after the selection
2421 #define wxSTC_CMD_MOVESELECTEDLINESUP 2620
2422
2423 /// Move the selected lines down one line, shifting the line below before the selection
2424 #define wxSTC_CMD_MOVESELECTEDLINESDOWN 2621
2425
2426 /// Scroll to start of document.
2427 #define wxSTC_CMD_SCROLLTOSTART 2628
2428
2429 /// Scroll to end of document.
2430 #define wxSTC_CMD_SCROLLTOEND 2629
2431
2432 //}}}
2433
2434
2435
2436
2437 /**
2438 @class wxStyledTextCtrl
2439
2440 A wxWidgets implementation of the Scintilla source code editing component.
2441
2442 As well as features found in standard text editing components, Scintilla
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
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
2450 foreground and background colours and multiple fonts.
2451
2452 wxStyledTextCtrl is a 1 to 1 mapping of "raw" scintilla interface, whose
2453 documentation can be found in the Scintilla website (http://www.scintilla.org/).
2454
2455 @beginEventEmissionTable{wxStyledTextEvent}
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
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
2516 @event{EVT_STC_HOTSPOT_RELEASE_CLICK(id, fn)}
2517 TOWRITE
2518 @endEventTable
2519
2520 @library{wxstc}
2521 @category{stc}
2522
2523 @see wxStyledTextEvent
2524 */
2525
2526 class wxStyledTextCtrl : public wxControl, public wxTextEntry
2527 {
2528 public:
2529
2530 /**
2531 Ctor.
2532 */
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);
2537 /**
2538 Default ctor.
2539 */
2540 wxStyledTextCtrl();
2541
2542
2543 /**
2544 Destructor.
2545 */
2546 ~wxStyledTextCtrl();
2547
2548 /**
2549 Create the UI elements for a STC that was created with the default ctor. (For 2-phase create.)
2550 */
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
2559
2560 /**
2561 Add text to the document at current position.
2562 */
2563 void AddText(const wxString& text);
2564
2565 /**
2566 Add array of cells to document.
2567 */
2568 void AddStyledText(const wxMemoryBuffer& data);
2569
2570 /**
2571 Insert string at a position.
2572 */
2573 void InsertText(int pos, const wxString& text);
2574
2575 /**
2576 Delete all text in the document.
2577 */
2578 void ClearAll();
2579
2580 /**
2581 Delete a range of text in the document.
2582 */
2583 void DeleteRange(int pos, int deleteLength);
2584
2585 /**
2586 Set all style bytes to 0, remove all folding information.
2587 */
2588 void ClearDocumentStyle();
2589
2590 /**
2591 Returns the number of bytes in the document.
2592 */
2593 int GetLength() const;
2594
2595 /**
2596 Returns the character byte at the position.
2597 */
2598 int GetCharAt(int pos) const;
2599
2600 /**
2601 Returns the position of the caret.
2602 */
2603 int GetCurrentPos() const;
2604
2605 /**
2606 Returns the position of the opposite end of the selection to the caret.
2607 */
2608 int GetAnchor() const;
2609
2610 /**
2611 Returns the style byte at the position.
2612 */
2613 int GetStyleAt(int pos) const;
2614
2615 /**
2616 Redoes the next action on the undo history.
2617 */
2618 void Redo();
2619
2620 /**
2621 Choose between collecting actions into the undo
2622 history and discarding them.
2623 */
2624 void SetUndoCollection(bool collectUndo);
2625
2626 /**
2627 Select all the text in the document.
2628 */
2629 void SelectAll();
2630
2631 /**
2632 Remember the current position in the undo history as the position
2633 at which the document was saved.
2634 */
2635 void SetSavePoint();
2636
2637 /**
2638 Retrieve a buffer of cells.
2639 */
2640 wxMemoryBuffer GetStyledText(int startPos, int endPos);
2641
2642 /**
2643 Are there any redoable actions in the undo history?
2644 */
2645 bool CanRedo() const;
2646
2647 /**
2648 Retrieve the line number at which a particular marker is located.
2649 */
2650 int MarkerLineFromHandle(int handle);
2651
2652 /**
2653 Delete a marker.
2654 */
2655 void MarkerDeleteHandle(int handle);
2656
2657 /**
2658 Is undo history being collected?
2659 */
2660 bool GetUndoCollection() const;
2661
2662 /**
2663 Are white space characters currently visible?
2664 Returns one of SCWS_* constants.
2665 */
2666 int GetViewWhiteSpace() const;
2667
2668 /**
2669 Make white space characters invisible, always visible or visible outside indentation.
2670 */
2671 void SetViewWhiteSpace(int viewWS);
2672
2673 /**
2674 Find the position from a point within the window.
2675 */
2676 int PositionFromPoint(wxPoint pt) const;
2677
2678 /**
2679 Find the position from a point within the window but return
2680 INVALID_POSITION if not close to text.
2681 */
2682 int PositionFromPointClose(int x, int y);
2683
2684 /**
2685 Set caret to start of a line and ensure it is visible.
2686 */
2687 void GotoLine(int line);
2688
2689 /**
2690 Set caret to a position and ensure it is visible.
2691 */
2692 void GotoPos(int pos);
2693
2694 /**
2695 Set the selection anchor to a position. The anchor is the opposite
2696 end of the selection from the caret.
2697 */
2698 void SetAnchor(int posAnchor);
2699
2700 /**
2701 Retrieve the text of the line containing the caret.
2702 Returns the index of the caret on the line.
2703 */
2704 wxString GetCurLine(int* linePos=NULL);
2705
2706 /**
2707 Retrieve the position of the last correctly styled character.
2708 */
2709 int GetEndStyled() const;
2710
2711 /**
2712 Convert all line endings in the document to one mode.
2713 */
2714 void ConvertEOLs(int eolMode);
2715
2716 /**
2717 Retrieve the current end of line mode - one of CRLF, CR, or LF.
2718 */
2719 int GetEOLMode() const;
2720
2721 /**
2722 Set the current end of line mode.
2723 */
2724 void SetEOLMode(int eolMode);
2725
2726 /**
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.
2729 */
2730 void StartStyling(int pos, int mask);
2731
2732 /**
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.
2735 */
2736 void SetStyling(int length, int style);
2737
2738 /**
2739 Is drawing done first into a buffer or direct to the screen?
2740 */
2741 bool GetBufferedDraw() const;
2742
2743 /**
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.
2746 */
2747 void SetBufferedDraw(bool buffered);
2748
2749 /**
2750 Change the visible size of a tab to be a multiple of the width of a space character.
2751 */
2752 void SetTabWidth(int tabWidth);
2753
2754 /**
2755 Retrieve the visible size of a tab.
2756 */
2757 int GetTabWidth() const;
2758
2759 /**
2760 Set the code page used to interpret the bytes of the document as characters.
2761 */
2762 void SetCodePage(int codePage);
2763
2764 /**
2765 Set the symbol used for a particular marker number,
2766 and optionally the fore and background colours.
2767 */
2768 void MarkerDefine(int markerNumber, int markerSymbol,
2769 const wxColour& foreground = wxNullColour,
2770 const wxColour& background = wxNullColour);
2771
2772 /**
2773 Set the foreground colour used for a particular marker number.
2774 */
2775 void MarkerSetForeground(int markerNumber, const wxColour& fore);
2776
2777 /**
2778 Set the background colour used for a particular marker number.
2779 */
2780 void MarkerSetBackground(int markerNumber, const wxColour& back);
2781
2782 /**
2783 Set the background colour used for a particular marker number when its folding block is selected.
2784 */
2785 void MarkerSetBackgroundSelected(int markerNumber, const wxColour& back);
2786
2787 /**
2788 Enable/disable highlight for current folding bloc (smallest one that contains the caret)
2789 */
2790 void MarkerEnableHighlight(bool enabled);
2791
2792 /**
2793 Add a marker to a line, returning an ID which can be used to find or delete the marker.
2794 */
2795 int MarkerAdd(int line, int markerNumber);
2796
2797 /**
2798 Delete a marker from a line.
2799 */
2800 void MarkerDelete(int line, int markerNumber);
2801
2802 /**
2803 Delete all markers with a particular number from all lines.
2804 */
2805 void MarkerDeleteAll(int markerNumber);
2806
2807 /**
2808 Get a bit mask of all the markers set on a line.
2809 */
2810 int MarkerGet(int line);
2811
2812 /**
2813 Find the next line at or after lineStart that includes a marker in mask.
2814 Return -1 when no more lines.
2815 */
2816 int MarkerNext(int lineStart, int markerMask);
2817
2818 /**
2819 Find the previous line before lineStart that includes a marker in mask.
2820 */
2821 int MarkerPrevious(int lineStart, int markerMask);
2822
2823 /**
2824 Define a marker from a bitmap
2825 */
2826 void MarkerDefineBitmap(int markerNumber, const wxBitmap& bmp);
2827
2828 /**
2829 Add a set of markers to a line.
2830 */
2831 void MarkerAddSet(int line, int set);
2832
2833 /**
2834 Set the alpha used for a marker that is drawn in the text area, not the margin.
2835 */
2836 void MarkerSetAlpha(int markerNumber, int alpha);
2837
2838 /**
2839 Set a margin to be either numeric or symbolic.
2840 */
2841 void SetMarginType(int margin, int marginType);
2842
2843 /**
2844 Retrieve the type of a margin.
2845 */
2846 int GetMarginType(int margin) const;
2847
2848 /**
2849 Set the width of a margin to a width expressed in pixels.
2850 */
2851 void SetMarginWidth(int margin, int pixelWidth);
2852
2853 /**
2854 Retrieve the width of a margin in pixels.
2855 */
2856 int GetMarginWidth(int margin) const;
2857
2858 /**
2859 Set a mask that determines which markers are displayed in a margin.
2860 */
2861 void SetMarginMask(int margin, int mask);
2862
2863 /**
2864 Retrieve the marker mask of a margin.
2865 */
2866 int GetMarginMask(int margin) const;
2867
2868 /**
2869 Make a margin sensitive or insensitive to mouse clicks.
2870 */
2871 void SetMarginSensitive(int margin, bool sensitive);
2872
2873 /**
2874 Retrieve the mouse click sensitivity of a margin.
2875 */
2876 bool GetMarginSensitive(int margin) const;
2877
2878 /**
2879 Set the cursor shown when the mouse is inside a margin.
2880 */
2881 void SetMarginCursor(int margin, int cursor);
2882
2883 /**
2884 Retrieve the cursor shown in a margin.
2885 */
2886 int GetMarginCursor(int margin) const;
2887
2888 /**
2889 Clear all the styles and make equivalent to the global default style.
2890 */
2891 void StyleClearAll();
2892
2893 /**
2894 Set the foreground colour of a style.
2895 */
2896 void StyleSetForeground(int style, const wxColour& fore);
2897
2898 /**
2899 Set the background colour of a style.
2900 */
2901 void StyleSetBackground(int style, const wxColour& back);
2902
2903 /**
2904 Set a style to be bold or not.
2905 */
2906 void StyleSetBold(int style, bool bold);
2907
2908 /**
2909 Set a style to be italic or not.
2910 */
2911 void StyleSetItalic(int style, bool italic);
2912
2913 /**
2914 Set the size of characters of a style.
2915 */
2916 void StyleSetSize(int style, int sizePoints);
2917
2918 /**
2919 Set the font of a style.
2920 */
2921 void StyleSetFaceName(int style, const wxString& fontName);
2922
2923 /**
2924 Set a style to have its end of line filled or not.
2925 */
2926 void StyleSetEOLFilled(int style, bool filled);
2927
2928 /**
2929 Reset the default style to its state at startup
2930 */
2931 void StyleResetDefault();
2932
2933 /**
2934 Set a style to be underlined or not.
2935 */
2936 void StyleSetUnderline(int style, bool underline);
2937
2938 /**
2939 Get the foreground colour of a style.
2940 */
2941 wxColour StyleGetForeground(int style) const;
2942
2943 /**
2944 Get the background colour of a style.
2945 */
2946 wxColour StyleGetBackground(int style) const;
2947
2948 /**
2949 Get is a style bold or not.
2950 */
2951 bool StyleGetBold(int style) const;
2952
2953 /**
2954 Get is a style italic or not.
2955 */
2956 bool StyleGetItalic(int style) const;
2957
2958 /**
2959 Get the size of characters of a style.
2960 */
2961 int StyleGetSize(int style) const;
2962
2963 /**
2964 Get the font facename of a style
2965 */
2966 wxString StyleGetFaceName(int style);
2967
2968 /**
2969 Get is a style to have its end of line filled or not.
2970 */
2971 bool StyleGetEOLFilled(int style) const;
2972
2973 /**
2974 Get is a style underlined or not.
2975 */
2976 bool StyleGetUnderline(int style) const;
2977
2978 /**
2979 Get is a style mixed case, or to force upper or lower case.
2980 */
2981 int StyleGetCase(int style) const;
2982
2983 /**
2984 Get the character set of the font in a style.
2985 */
2986 int StyleGetCharacterSet(int style) const;
2987
2988 /**
2989 Get is a style visible or not.
2990 */
2991 bool StyleGetVisible(int style) const;
2992
2993 /**
2994 Get is a style changeable or not (read only).
2995 Experimental feature, currently buggy.
2996 */
2997 bool StyleGetChangeable(int style) const;
2998
2999 /**
3000 Get is a style a hotspot or not.
3001 */
3002 bool StyleGetHotSpot(int style) const;
3003
3004 /**
3005 Set a style to be mixed case, or to force upper or lower case.
3006 */
3007 void StyleSetCase(int style, int caseForce);
3008
3009 /**
3010 Set the size of characters of a style. Size is in points multiplied by 100.
3011 */
3012 void StyleSetSizeFractional(int style, int caseForce);
3013
3014 /**
3015 Get the size of characters of a style in points multiplied by 100
3016 */
3017 int StyleGetSizeFractional(int style) const;
3018
3019 /**
3020 Set the weight of characters of a style.
3021 */
3022 void StyleSetWeight(int style, int weight);
3023
3024 /**
3025 Get the weight of characters of a style.
3026 */
3027 int StyleGetWeight(int style) const;
3028
3029 /**
3030 Set a style to be a hotspot or not.
3031 */
3032 void StyleSetHotSpot(int style, bool hotspot);
3033
3034 /**
3035 Set the foreground colour of the main and additional selections and whether to use this setting.
3036 */
3037 void SetSelForeground(bool useSetting, const wxColour& fore);
3038
3039 /**
3040 Set the background colour of the main and additional selections and whether to use this setting.
3041 */
3042 void SetSelBackground(bool useSetting, const wxColour& back);
3043
3044 /**
3045 Get the alpha of the selection.
3046 */
3047 int GetSelAlpha() const;
3048
3049 /**
3050 Set the alpha of the selection.
3051 */
3052 void SetSelAlpha(int alpha);
3053
3054 /**
3055 Is the selection end of line filled?
3056 */
3057 bool GetSelEOLFilled() const;
3058
3059 /**
3060 Set the selection to have its end of line filled or not.
3061 */
3062 void SetSelEOLFilled(bool filled);
3063
3064 /**
3065 Set the foreground colour of the caret.
3066 */
3067 void SetCaretForeground(const wxColour& fore);
3068
3069 /**
3070 When key+modifier combination km is pressed perform msg.
3071 */
3072 void CmdKeyAssign(int key, int modifiers, int cmd);
3073
3074 /**
3075 When key+modifier combination km is pressed do nothing.
3076 */
3077 void CmdKeyClear(int key, int modifiers);
3078
3079 /**
3080 Drop all key mappings.
3081 */
3082 void CmdKeyClearAll();
3083
3084 /**
3085 Set the styles for a segment of the document.
3086 */
3087 void SetStyleBytes(int length, char* styleBytes);
3088
3089 /**
3090 Set a style to be visible or not.
3091 */
3092 void StyleSetVisible(int style, bool visible);
3093
3094 /**
3095 Get the time in milliseconds that the caret is on and off.
3096 */
3097 int GetCaretPeriod() const;
3098
3099 /**
3100 Get the time in milliseconds that the caret is on and off. 0 = steady on.
3101 */
3102 void SetCaretPeriod(int periodMilliseconds);
3103
3104 /**
3105 Set the set of characters making up words for when moving or selecting by word.
3106 First sets defaults like SetCharsDefault.
3107 */
3108 void SetWordChars(const wxString& characters);
3109
3110 /**
3111 Get the set of characters making up words for when moving or selecting by word.
3112 */
3113 wxString GetWordChars() const;
3114
3115 /**
3116 Start a sequence of actions that is undone and redone as a unit.
3117 May be nested.
3118 */
3119 void BeginUndoAction();
3120
3121 /**
3122 End a sequence of actions that is undone and redone as a unit.
3123 */
3124 void EndUndoAction();
3125
3126 /**
3127 Set an indicator to plain, squiggle or TT.
3128 */
3129 void IndicatorSetStyle(int indic, int style);
3130
3131 /**
3132 Retrieve the style of an indicator.
3133 */
3134 int IndicatorGetStyle(int indic) const;
3135
3136 /**
3137 Set the foreground colour of an indicator.
3138 */
3139 void IndicatorSetForeground(int indic, const wxColour& fore);
3140
3141 /**
3142 Retrieve the foreground colour of an indicator.
3143 */
3144 wxColour IndicatorGetForeground(int indic) const;
3145
3146 /**
3147 Set an indicator to draw under text or over(default).
3148 */
3149 void IndicatorSetUnder(int indic, bool under);
3150
3151 /**
3152 Retrieve whether indicator drawn under or over text.
3153 */
3154 bool IndicatorGetUnder(int indic) const;
3155
3156 /**
3157 Set the foreground colour of all whitespace and whether to use this setting.
3158 */
3159 void SetWhitespaceForeground(bool useSetting, const wxColour& fore);
3160
3161 /**
3162 Set the background colour of all whitespace and whether to use this setting.
3163 */
3164 void SetWhitespaceBackground(bool useSetting, const wxColour& back);
3165
3166 /**
3167 Set the size of the dots used to mark space characters.
3168 */
3169 void SetWhitespaceSize(int size);
3170
3171 /**
3172 Get the size of the dots used to mark space characters.
3173 */
3174 int GetWhitespaceSize() const;
3175
3176 /**
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.
3180 */
3181 void SetStyleBits(int bits);
3182
3183 /**
3184 Retrieve number of bits in style bytes used to hold the lexical state.
3185 */
3186 int GetStyleBits() const;
3187
3188 /**
3189 Used to hold extra styling information for each line.
3190 */
3191 void SetLineState(int line, int state);
3192
3193 /**
3194 Retrieve the extra styling information for a line.
3195 */
3196 int GetLineState(int line) const;
3197
3198 /**
3199 Retrieve the last line number that has line state.
3200 */
3201 int GetMaxLineState() const;
3202
3203 /**
3204 Is the background of the line containing the caret in a different colour?
3205 */
3206 bool GetCaretLineVisible() const;
3207
3208 /**
3209 Display the background of the line containing the caret in a different colour.
3210 */
3211 void SetCaretLineVisible(bool show);
3212
3213 /**
3214 Get the colour of the background of the line containing the caret.
3215 */
3216 wxColour GetCaretLineBackground() const;
3217
3218 /**
3219 Set the colour of the background of the line containing the caret.
3220 */
3221 void SetCaretLineBackground(const wxColour& back);
3222
3223 /**
3224 Set a style to be changeable or not (read only).
3225 Experimental feature, currently buggy.
3226 */
3227 void StyleSetChangeable(int style, bool changeable);
3228
3229 /**
3230 Display a auto-completion list.
3231 The lenEntered parameter indicates how many characters before
3232 the caret should be used to provide context.
3233 */
3234 void AutoCompShow(int lenEntered, const wxString& itemList);
3235
3236 /**
3237 Remove the auto-completion list from the screen.
3238 */
3239 void AutoCompCancel();
3240
3241 /**
3242 Is there an auto-completion list visible?
3243 */
3244 bool AutoCompActive();
3245
3246 /**
3247 Retrieve the position of the caret when the auto-completion list was displayed.
3248 */
3249 int AutoCompPosStart();
3250
3251 /**
3252 User has selected an item so remove the list and insert the selection.
3253 */
3254 void AutoCompComplete();
3255
3256 /**
3257 Define a set of character that when typed cancel the auto-completion list.
3258 */
3259 void AutoCompStops(const wxString& characterSet);
3260
3261 /**
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.
3264 */
3265 void AutoCompSetSeparator(int separatorCharacter);
3266
3267 /**
3268 Retrieve the auto-completion list separator character.
3269 */
3270 int AutoCompGetSeparator() const;
3271
3272 /**
3273 Select the item in the auto-completion list that starts with a string.
3274 */
3275 void AutoCompSelect(const wxString& text);
3276
3277 /**
3278 Should the auto-completion list be cancelled if the user backspaces to a
3279 position before where the box was created.
3280 */
3281 void AutoCompSetCancelAtStart(bool cancel);
3282
3283 /**
3284 Retrieve whether auto-completion cancelled by backspacing before start.
3285 */
3286 bool AutoCompGetCancelAtStart() const;
3287
3288 /**
3289 Define a set of characters that when typed will cause the autocompletion to
3290 choose the selected item.
3291 */
3292 void AutoCompSetFillUps(const wxString& characterSet);
3293
3294 /**
3295 Should a single item auto-completion list automatically choose the item.
3296 */
3297 void AutoCompSetChooseSingle(bool chooseSingle);
3298
3299 /**
3300 Retrieve whether a single item auto-completion list automatically choose the item.
3301 */
3302 bool AutoCompGetChooseSingle() const;
3303
3304 /**
3305 Set whether case is significant when performing auto-completion searches.
3306 */
3307 void AutoCompSetIgnoreCase(bool ignoreCase);
3308
3309 /**
3310 Retrieve state of ignore case flag.
3311 */
3312 bool AutoCompGetIgnoreCase() const;
3313
3314 /**
3315 Display a list of strings and send notification when user chooses one.
3316 */
3317 void UserListShow(int listType, const wxString& itemList);
3318
3319 /**
3320 Set whether or not autocompletion is hidden automatically when nothing matches.
3321 */
3322 void AutoCompSetAutoHide(bool autoHide);
3323
3324 /**
3325 Retrieve whether or not autocompletion is hidden automatically when nothing matches.
3326 */
3327 bool AutoCompGetAutoHide() const;
3328
3329 /**
3330 Set whether or not autocompletion deletes any word characters
3331 after the inserted text upon completion.
3332 */
3333 void AutoCompSetDropRestOfWord(bool dropRestOfWord);
3334
3335 /**
3336 Retrieve whether or not autocompletion deletes any word characters
3337 after the inserted text upon completion.
3338 */
3339 bool AutoCompGetDropRestOfWord() const;
3340
3341 /**
3342 Register an image for use in autocompletion lists.
3343 */
3344 void RegisterImage(int type, const wxBitmap& bmp);
3345
3346 /**
3347 Clear all the registered images.
3348 */
3349 void ClearRegisteredImages();
3350
3351 /**
3352 Retrieve the auto-completion list type-separator character.
3353 */
3354 int AutoCompGetTypeSeparator() const;
3355
3356 /**
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 '?'.
3359 */
3360 void AutoCompSetTypeSeparator(int separatorCharacter);
3361
3362 /**
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.
3365 */
3366 void AutoCompSetMaxWidth(int characterCount);
3367
3368 /**
3369 Get the maximum width, in characters, of auto-completion and user lists.
3370 */
3371 int AutoCompGetMaxWidth() const;
3372
3373 /**
3374 Set the maximum height, in rows, of auto-completion and user lists.
3375 The default is 5 rows.
3376 */
3377 void AutoCompSetMaxHeight(int rowCount);
3378
3379 /**
3380 Set the maximum height, in rows, of auto-completion and user lists.
3381 */
3382 int AutoCompGetMaxHeight() const;
3383
3384 /**
3385 Set the number of spaces used for one level of indentation.
3386 */
3387 void SetIndent(int indentSize);
3388
3389 /**
3390 Retrieve indentation size.
3391 */
3392 int GetIndent() const;
3393
3394 /**
3395 Indentation will only use space characters if useTabs is false, otherwise
3396 it will use a combination of tabs and spaces.
3397 */
3398 void SetUseTabs(bool useTabs);
3399
3400 /**
3401 Retrieve whether tabs will be used in indentation.
3402 */
3403 bool GetUseTabs() const;
3404
3405 /**
3406 Change the indentation of a line to a number of columns.
3407 */
3408 void SetLineIndentation(int line, int indentSize);
3409
3410 /**
3411 Retrieve the number of columns that a line is indented.
3412 */
3413 int GetLineIndentation(int line) const;
3414
3415 /**
3416 Retrieve the position before the first non indentation character on a line.
3417 */
3418 int GetLineIndentPosition(int line) const;
3419
3420 /**
3421 Retrieve the column number of a position, taking tab width into account.
3422 */
3423 int GetColumn(int pos) const;
3424
3425 /**
3426 Count characters between two positions.
3427 */
3428 int CountCharacters(int startPos, int endPos);
3429
3430 /**
3431 Show or hide the horizontal scroll bar.
3432 */
3433 void SetUseHorizontalScrollBar(bool show);
3434
3435 /**
3436 Is the horizontal scroll bar visible?
3437 */
3438 bool GetUseHorizontalScrollBar() const;
3439
3440 /**
3441 Show or hide indentation guides.
3442 */
3443 void SetIndentationGuides(int indentView);
3444
3445 /**
3446 Are the indentation guides visible?
3447 */
3448 int GetIndentationGuides() const;
3449
3450 /**
3451 Set the highlighted indentation guide column.
3452 0 = no highlighted guide.
3453 */
3454 void SetHighlightGuide(int column);
3455
3456 /**
3457 Get the highlighted indentation guide column.
3458 */
3459 int GetHighlightGuide() const;
3460
3461 /**
3462 Get the position after the last visible characters on a line.
3463 */
3464 int GetLineEndPosition(int line) const;
3465
3466 /**
3467 Get the code page used to interpret the bytes of the document as characters.
3468 */
3469 int GetCodePage() const;
3470
3471 /**
3472 Get the foreground colour of the caret.
3473 */
3474 wxColour GetCaretForeground() const;
3475
3476 /**
3477 In read-only mode?
3478 */
3479 bool GetReadOnly() const;
3480
3481 /**
3482 Sets the position of the caret.
3483 */
3484 void SetCurrentPos(int pos);
3485
3486 /**
3487 Sets the position that starts the selection - this becomes the anchor.
3488 */
3489 void SetSelectionStart(int pos);
3490
3491 /**
3492 Returns the position at the start of the selection.
3493 */
3494 int GetSelectionStart() const;
3495
3496 /**
3497 Sets the position that ends the selection - this becomes the currentPosition.
3498 */
3499 void SetSelectionEnd(int pos);
3500
3501 /**
3502 Returns the position at the end of the selection.
3503 */
3504 int GetSelectionEnd() const;
3505
3506 /**
3507 Set caret to a position, while removing any existing selection.
3508 */
3509 void SetEmptySelection(int pos);
3510
3511 /**
3512 Sets the print magnification added to the point size of each style for printing.
3513 */
3514 void SetPrintMagnification(int magnification);
3515
3516 /**
3517 Returns the print magnification.
3518 */
3519 int GetPrintMagnification() const;
3520
3521 /**
3522 Modify colours when printing for clearer printed text.
3523 */
3524 void SetPrintColourMode(int mode);
3525
3526 /**
3527 Returns the print colour mode.
3528 */
3529 int GetPrintColourMode() const;
3530
3531 /**
3532 Find some text in the document.
3533 */
3534 int FindText(int minPos, int maxPos, const wxString& text, int flags=0);
3535
3536 /**
3537 On Windows, will draw the document into a display context such as a printer.
3538 */
3539 int FormatRange(bool doDraw,
3540 int startPos,
3541 int endPos,
3542 wxDC* draw,
3543 wxDC* target,
3544 wxRect renderRect,
3545 wxRect pageRect);
3546
3547 /**
3548 Retrieve the display line at the top of the display.
3549 */
3550 int GetFirstVisibleLine() const;
3551
3552 /**
3553 Retrieve the contents of a line.
3554 */
3555 wxString GetLine(int line) const;
3556
3557 /**
3558 Returns the number of lines in the document. There is always at least one.
3559 */
3560 int GetLineCount() const;
3561
3562 /**
3563 Sets the size in pixels of the left margin.
3564 */
3565 void SetMarginLeft(int pixelWidth);
3566
3567 /**
3568 Returns the size in pixels of the left margin.
3569 */
3570 int GetMarginLeft() const;
3571
3572 /**
3573 Sets the size in pixels of the right margin.
3574 */
3575 void SetMarginRight(int pixelWidth);
3576
3577 /**
3578 Returns the size in pixels of the right margin.
3579 */
3580 int GetMarginRight() const;
3581
3582 /**
3583 Is the document different from when it was last saved?
3584 */
3585 bool GetModify() const;
3586
3587 /**
3588 Retrieve the selected text.
3589 */
3590 wxString GetSelectedText();
3591
3592 /**
3593 Retrieve a range of text.
3594 */
3595 wxString GetTextRange(int startPos, int endPos);
3596
3597 /**
3598 Draw the selection in normal style or with selection highlighted.
3599 */
3600 void HideSelection(bool normal);
3601
3602 /**
3603 Retrieve the line containing a position.
3604 */
3605 int LineFromPosition(int pos) const;
3606
3607 /**
3608 Retrieve the position at the start of a line.
3609 */
3610 int PositionFromLine(int line) const;
3611
3612 /**
3613 Scroll horizontally and vertically.
3614 */
3615 void LineScroll(int columns, int lines);
3616
3617 /**
3618 Ensure the caret is visible.
3619 */
3620 void EnsureCaretVisible();
3621
3622 /**
3623 Replace the selected text with the argument text.
3624 */
3625 void ReplaceSelection(const wxString& text);
3626
3627 /**
3628 Set to read only or read write.
3629 */
3630 void SetReadOnly(bool readOnly);
3631
3632 /**
3633 Will a paste succeed?
3634 */
3635 bool CanPaste() const;
3636
3637 /**
3638 Are there any undoable actions in the undo history?
3639 */
3640 bool CanUndo() const;
3641
3642 /**
3643 Delete the undo history.
3644 */
3645 void EmptyUndoBuffer();
3646
3647 /**
3648 Undo one action in the undo history.
3649 */
3650 void Undo();
3651
3652 /**
3653 Cut the selection to the clipboard.
3654 */
3655 void Cut();
3656
3657 /**
3658 Copy the selection to the clipboard.
3659 */
3660 void Copy();
3661
3662 /**
3663 Paste the contents of the clipboard into the document replacing the selection.
3664 */
3665 void Paste();
3666
3667 /**
3668 Clear the selection.
3669 */
3670 void Clear();
3671
3672 /**
3673 Replace the contents of the document with the argument text.
3674 */
3675 void SetText(const wxString& text);
3676
3677 /**
3678 Retrieve all the text in the document.
3679 */
3680 wxString GetText() const;
3681
3682 /**
3683 Retrieve the number of characters in the document.
3684 */
3685 int GetTextLength() const;
3686
3687 /**
3688 Set to overtype (true) or insert mode.
3689 */
3690 void SetOvertype(bool overtype);
3691
3692 /**
3693 Returns true if overtype mode is active otherwise false is returned.
3694 */
3695 bool GetOvertype() const;
3696
3697 /**
3698 Set the width of the insert mode caret.
3699 */
3700 void SetCaretWidth(int pixelWidth);
3701
3702 /**
3703 Returns the width of the insert mode caret.
3704 */
3705 int GetCaretWidth() const;
3706
3707 /**
3708 Sets the position that starts the target which is used for updating the
3709 document without affecting the scroll position.
3710 */
3711 void SetTargetStart(int pos);
3712
3713 /**
3714 Get the position that starts the target.
3715 */
3716 int GetTargetStart() const;
3717
3718 /**
3719 Sets the position that ends the target which is used for updating the
3720 document without affecting the scroll position.
3721 */
3722 void SetTargetEnd(int pos);
3723
3724 /**
3725 Get the position that ends the target.
3726 */
3727 int GetTargetEnd() const;
3728
3729 /**
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.
3733 */
3734 int ReplaceTarget(const wxString& text);
3735
3736 /**
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.
3743 */
3744 int ReplaceTargetRE(const wxString& text);
3745
3746 /**
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.
3750 */
3751 int SearchInTarget(const wxString& text);
3752
3753 /**
3754 Set the search flags used by SearchInTarget.
3755 */
3756 void SetSearchFlags(int flags);
3757
3758 /**
3759 Get the search flags used by SearchInTarget.
3760 */
3761 int GetSearchFlags() const;
3762
3763 /**
3764 Show a call tip containing a definition near position pos.
3765 */
3766 void CallTipShow(int pos, const wxString& definition);
3767
3768 /**
3769 Remove the call tip from the screen.
3770 */
3771 void CallTipCancel();
3772
3773 /**
3774 Is there an active call tip?
3775 */
3776 bool CallTipActive();
3777
3778 /**
3779 Retrieve the position where the caret was before displaying the call tip.
3780 */
3781 int CallTipPosAtStart();
3782
3783 /**
3784 Highlight a segment of the definition.
3785 */
3786 void CallTipSetHighlight(int start, int end);
3787
3788 /**
3789 Set the background colour for the call tip.
3790 */
3791 void CallTipSetBackground(const wxColour& back);
3792
3793 /**
3794 Set the foreground colour for the call tip.
3795 */
3796 void CallTipSetForeground(const wxColour& fore);
3797
3798 /**
3799 Set the foreground colour for the highlighted part of the call tip.
3800 */
3801 void CallTipSetForegroundHighlight(const wxColour& fore);
3802
3803 /**
3804 Enable use of STYLE_CALLTIP and set call tip tab size in pixels.
3805 */
3806 void CallTipUseStyle(int tabSize);
3807
3808 /**
3809 Set position of calltip, above or below text.
3810 */
3811 void CallTipSetPosition(bool above);
3812
3813 /**
3814 Find the display line of a document line taking hidden lines into account.
3815 */
3816 int VisibleFromDocLine(int line);
3817
3818 /**
3819 Find the document line of a display line taking hidden lines into account.
3820 */
3821 int DocLineFromVisible(int lineDisplay);
3822
3823 /**
3824 The number of display lines needed to wrap a document line
3825 */
3826 int WrapCount(int line);
3827
3828 /**
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.
3832 */
3833 void SetFoldLevel(int line, int level);
3834
3835 /**
3836 Retrieve the fold level of a line.
3837 */
3838 int GetFoldLevel(int line) const;
3839
3840 /**
3841 Find the last child line of a header line.
3842 */
3843 int GetLastChild(int line, int level) const;
3844
3845 /**
3846 Find the parent line of a child line.
3847 */
3848 int GetFoldParent(int line) const;
3849
3850 /**
3851 Make a range of lines visible.
3852 */
3853 void ShowLines(int lineStart, int lineEnd);
3854
3855 /**
3856 Make a range of lines invisible.
3857 */
3858 void HideLines(int lineStart, int lineEnd);
3859
3860 /**
3861 Is a line visible?
3862 */
3863 bool GetLineVisible(int line) const;
3864
3865 /**
3866 Are all lines visible?
3867 */
3868 bool GetAllLinesVisible() const;
3869
3870 /**
3871 Show the children of a header line.
3872 */
3873 void SetFoldExpanded(int line, bool expanded);
3874
3875 /**
3876 Is a header line expanded?
3877 */
3878 bool GetFoldExpanded(int line) const;
3879
3880 /**
3881 Switch a header line between expanded and contracted.
3882 */
3883 void ToggleFold(int line);
3884
3885 /**
3886 Ensure a particular line is visible by expanding any header line hiding it.
3887 */
3888 void EnsureVisible(int line);
3889
3890 /**
3891 Set some style options for folding.
3892 */
3893 void SetFoldFlags(int flags);
3894
3895 /**
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.
3898 */
3899 void EnsureVisibleEnforcePolicy(int line);
3900
3901 /**
3902 Sets whether a tab pressed when caret is within indentation indents.
3903 */
3904 void SetTabIndents(bool tabIndents);
3905
3906 /**
3907 Does a tab pressed when caret is within indentation indent?
3908 */
3909 bool GetTabIndents() const;
3910
3911 /**
3912 Sets whether a backspace pressed when caret is within indentation unindents.
3913 */
3914 void SetBackSpaceUnIndents(bool bsUnIndents);
3915
3916 /**
3917 Does a backspace pressed when caret is within indentation unindent?
3918 */
3919 bool GetBackSpaceUnIndents() const;
3920
3921 /**
3922 Sets the time the mouse must sit still to generate a mouse dwell event.
3923 */
3924 void SetMouseDwellTime(int periodMilliseconds);
3925
3926 /**
3927 Retrieve the time the mouse must sit still to generate a mouse dwell event.
3928 */
3929 int GetMouseDwellTime() const;
3930
3931 /**
3932 Get position of start of word.
3933 */
3934 int WordStartPosition(int pos, bool onlyWordCharacters);
3935
3936 /**
3937 Get position of end of word.
3938 */
3939 int WordEndPosition(int pos, bool onlyWordCharacters);
3940
3941 /**
3942 Sets whether text is word wrapped.
3943 */
3944 void SetWrapMode(int mode);
3945
3946 /**
3947 Retrieve whether text is word wrapped.
3948 */
3949 int GetWrapMode() const;
3950
3951 /**
3952 Set the display mode of visual flags for wrapped lines.
3953 */
3954 void SetWrapVisualFlags(int wrapVisualFlags);
3955
3956 /**
3957 Retrive the display mode of visual flags for wrapped lines.
3958 */
3959 int GetWrapVisualFlags() const;
3960
3961 /**
3962 Set the location of visual flags for wrapped lines.
3963 */
3964 void SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation);
3965
3966 /**
3967 Retrive the location of visual flags for wrapped lines.
3968 */
3969 int GetWrapVisualFlagsLocation() const;
3970
3971 /**
3972 Set the start indent for wrapped lines.
3973 */
3974 void SetWrapStartIndent(int indent);
3975
3976 /**
3977 Retrive the start indent for wrapped lines.
3978 */
3979 int GetWrapStartIndent() const;
3980
3981 /**
3982 Sets how wrapped sublines are placed. Default is fixed.
3983 */
3984 void SetWrapIndentMode(int mode);
3985
3986 /**
3987 Retrieve how wrapped sublines are placed. Default is fixed.
3988 */
3989 int GetWrapIndentMode() const;
3990
3991 /**
3992 Sets the degree of caching of layout information.
3993 */
3994 void SetLayoutCache(int mode);
3995
3996 /**
3997 Retrieve the degree of caching of layout information.
3998 */
3999 int GetLayoutCache() const;
4000
4001 /**
4002 Sets the document width assumed for scrolling.
4003 */
4004 void SetScrollWidth(int pixelWidth);
4005
4006 /**
4007 Retrieve the document width assumed for scrolling.
4008 */
4009 int GetScrollWidth() const;
4010
4011 /**
4012 Sets whether the maximum width line displayed is used to set scroll width.
4013 */
4014 void SetScrollWidthTracking(bool tracking);
4015
4016 /**
4017 Retrieve whether the scroll width tracks wide lines.
4018 */
4019 bool GetScrollWidthTracking() const;
4020
4021 /**
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.
4025 */
4026 int TextWidth(int style, const wxString& text);
4027
4028 /**
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.
4032 */
4033 void SetEndAtLastLine(bool endAtLastLine);
4034
4035 /**
4036 Retrieve whether the maximum scroll position has the last
4037 line at the bottom of the view.
4038 */
4039 bool GetEndAtLastLine() const;
4040
4041 /**
4042 Retrieve the height of a particular line of text in pixels.
4043 */
4044 int TextHeight(int line);
4045
4046 /**
4047 Show or hide the vertical scroll bar.
4048 */
4049 void SetUseVerticalScrollBar(bool show);
4050
4051 /**
4052 Is the vertical scroll bar visible?
4053 */
4054 bool GetUseVerticalScrollBar() const;
4055
4056 /**
4057 Append a string to the end of the document without changing the selection.
4058 */
4059 void AppendText(const wxString& text);
4060
4061 /**
4062 Is drawing done in two phases with backgrounds drawn before foregrounds?
4063 */
4064 bool GetTwoPhaseDraw() const;
4065
4066 /**
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.
4069 */
4070 void SetTwoPhaseDraw(bool twoPhase);
4071
4072 /**
4073 Scroll so that a display line is at the top of the display.
4074 */
4075 void SetFirstVisibleLine(int lineDisplay);
4076
4077 /**
4078 Change the effect of pasting when there are multiple selections.
4079 */
4080 void SetMultiPaste(int multiPaste);
4081
4082 /**
4083 Retrieve the effect of pasting when there are multiple selections.
4084 */
4085 int GetMultiPaste() const;
4086
4087 /**
4088 Retrieve the value of a tag from a regular expression search.
4089 */
4090 wxString GetTag(int tagNumber) const;
4091
4092 /**
4093 Make the target range start and end be the same as the selection range start and end.
4094 */
4095 void TargetFromSelection();
4096
4097 /**
4098 Join the lines in the target.
4099 */
4100 void LinesJoin();
4101
4102 /**
4103 Split the lines in the target into lines that are less wide than pixelWidth
4104 where possible.
4105 */
4106 void LinesSplit(int pixelWidth);
4107
4108 /**
4109 Set the colours used as a chequerboard pattern in the fold margin
4110 */
4111 void SetFoldMarginColour(bool useSetting, const wxColour& back);
4112 void SetFoldMarginHiColour(bool useSetting, const wxColour& fore);
4113
4114 /**
4115 Move caret down one line.
4116 */
4117 void LineDown();
4118
4119 /**
4120 Move caret down one line extending selection to new caret position.
4121 */
4122 void LineDownExtend();
4123
4124 /**
4125 Move caret up one line.
4126 */
4127 void LineUp();
4128
4129 /**
4130 Move caret up one line extending selection to new caret position.
4131 */
4132 void LineUpExtend();
4133
4134 /**
4135 Move caret left one character.
4136 */
4137 void CharLeft();
4138
4139 /**
4140 Move caret left one character extending selection to new caret position.
4141 */
4142 void CharLeftExtend();
4143
4144 /**
4145 Move caret right one character.
4146 */
4147 void CharRight();
4148
4149 /**
4150 Move caret right one character extending selection to new caret position.
4151 */
4152 void CharRightExtend();
4153
4154 /**
4155 Move caret left one word.
4156 */
4157 void WordLeft();
4158
4159 /**
4160 Move caret left one word extending selection to new caret position.
4161 */
4162 void WordLeftExtend();
4163
4164 /**
4165 Move caret right one word.
4166 */
4167 void WordRight();
4168
4169 /**
4170 Move caret right one word extending selection to new caret position.
4171 */
4172 void WordRightExtend();
4173
4174 /**
4175 Move caret to first position on line.
4176 */
4177 void Home();
4178
4179 /**
4180 Move caret to first position on line extending selection to new caret position.
4181 */
4182 void HomeExtend();
4183
4184 /**
4185 Move caret to last position on line.
4186 */
4187 void LineEnd();
4188
4189 /**
4190 Move caret to last position on line extending selection to new caret position.
4191 */
4192 void LineEndExtend();
4193
4194 /**
4195 Move caret to first position in document.
4196 */
4197 void DocumentStart();
4198
4199 /**
4200 Move caret to first position in document extending selection to new caret position.
4201 */
4202 void DocumentStartExtend();
4203
4204 /**
4205 Move caret to last position in document.
4206 */
4207 void DocumentEnd();
4208
4209 /**
4210 Move caret to last position in document extending selection to new caret position.
4211 */
4212 void DocumentEndExtend();
4213
4214 /**
4215 Move caret one page up.
4216 */
4217 void PageUp();
4218
4219 /**
4220 Move caret one page up extending selection to new caret position.
4221 */
4222 void PageUpExtend();
4223
4224 /**
4225 Move caret one page down.
4226 */
4227 void PageDown();
4228
4229 /**
4230 Move caret one page down extending selection to new caret position.
4231 */
4232 void PageDownExtend();
4233
4234 /**
4235 Switch from insert to overtype mode or the reverse.
4236 */
4237 void EditToggleOvertype();
4238
4239 /**
4240 Cancel any modes such as call tip or auto-completion list display.
4241 */
4242 void Cancel();
4243
4244 /**
4245 Delete the selection or if no selection, the character before the caret.
4246 */
4247 void DeleteBack();
4248
4249 /**
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.
4252 */
4253 void Tab();
4254
4255 /**
4256 Dedent the selected lines.
4257 */
4258 void BackTab();
4259
4260 /**
4261 Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
4262 */
4263 void NewLine();
4264
4265 /**
4266 Insert a Form Feed character.
4267 */
4268 void FormFeed();
4269
4270 /**
4271 Move caret to before first visible character on line.
4272 If already there move to first character on line.
4273 */
4274 void VCHome();
4275
4276 /**
4277 Like VCHome but extending selection to new caret position.
4278 */
4279 void VCHomeExtend();
4280
4281 /**
4282 Magnify the displayed text by increasing the sizes by 1 point.
4283 */
4284 void ZoomIn();
4285
4286 /**
4287 Make the displayed text smaller by decreasing the sizes by 1 point.
4288 */
4289 void ZoomOut();
4290
4291 /**
4292 Delete the word to the left of the caret.
4293 */
4294 void DelWordLeft();
4295
4296 /**
4297 Delete the word to the right of the caret.
4298 */
4299 void DelWordRight();
4300
4301 /**
4302 Delete the word to the right of the caret, but not the trailing non-word characters.
4303 */
4304 void DelWordRightEnd();
4305
4306 /**
4307 Cut the line containing the caret.
4308 */
4309 void LineCut();
4310
4311 /**
4312 Delete the line containing the caret.
4313 */
4314 void LineDelete();
4315
4316 /**
4317 Switch the current line with the previous.
4318 */
4319 void LineTranspose();
4320
4321 /**
4322 Duplicate the current line.
4323 */
4324 void LineDuplicate();
4325
4326 /**
4327 Transform the selection to lower case.
4328 */
4329 void LowerCase();
4330
4331 /**
4332 Transform the selection to upper case.
4333 */
4334 void UpperCase();
4335
4336 /**
4337 Scroll the document down, keeping the caret visible.
4338 */
4339 void LineScrollDown();
4340
4341 /**
4342 Scroll the document up, keeping the caret visible.
4343 */
4344 void LineScrollUp();
4345
4346 /**
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.
4349 */
4350 void DeleteBackNotLine();
4351
4352 /**
4353 Move caret to first position on display line.
4354 */
4355 void HomeDisplay();
4356
4357 /**
4358 Move caret to first position on display line extending selection to
4359 new caret position.
4360 */
4361 void HomeDisplayExtend();
4362
4363 /**
4364 Move caret to last position on display line.
4365 */
4366 void LineEndDisplay();
4367
4368 /**
4369 Move caret to last position on display line extending selection to new
4370 caret position.
4371 */
4372 void LineEndDisplayExtend();
4373
4374 /**
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)?.
4380 */
4381 void HomeWrap();
4382 void HomeWrapExtend();
4383 void LineEndWrap();
4384 void LineEndWrapExtend();
4385 void VCHomeWrap();
4386 void VCHomeWrapExtend();
4387
4388 /**
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.
4526 */
4527 int GetZoom() const;
4528
4529 /**
4530 Create a new document object.
4531 Starts with reference count of 1 and not selected into editor.
4532 */
4533 void* CreateDocument();
4534
4535 /**
4536 Extend life of document.
4537 */
4538 void AddRefDocument(void* docPointer);
4539
4540 /**
4541 Release a reference to the document, deleting document if it fades to black.
4542 */
4543 void ReleaseDocument(void* docPointer);
4544
4545 /**
4546 Get which document modification events are sent to the container.
4547 */
4548 int GetModEventMask() const;
4549
4550 /**
4551 Change internal focus flag.
4552 */
4553 void SetSTCFocus(bool focus);
4554
4555 /**
4556 Get internal focus flag.
4557 */
4558 bool GetSTCFocus() const;
4559
4560 /**
4561 Change error status - 0 = OK.
4562 */
4563 void SetStatus(int statusCode);
4564
4565 /**
4566 Get error status.
4567 */
4568 int GetStatus() const;
4569
4570 /**
4571 Set whether the mouse is captured when its button is pressed.
4572 */
4573 void SetMouseDownCaptures(bool captures);
4574
4575 /**
4576 Get whether mouse gets captured.
4577 */
4578 bool GetMouseDownCaptures() const;
4579
4580 /**
4581 Sets the cursor to one of the SC_CURSOR* values.
4582 */
4583 void SetSTCCursor(int cursorType);
4584
4585 /**
4586 Get cursor type.
4587 */
4588 int GetSTCCursor() const;
4589
4590 /**
4591 Change the way control characters are displayed:
4592 If symbol is < 32, keep the drawn way, else, use the given character.
4593 */
4594 void SetControlCharSymbol(int symbol);
4595
4596 /**
4597 Get the way control characters are displayed.
4598 */
4599 int GetControlCharSymbol() const;
4600
4601 /**
4602 Move to the previous change in capitalisation.
4603 */
4604 void WordPartLeft();
4605
4606 /**
4607 Move to the previous change in capitalisation extending selection
4608 to new caret position.
4609 */
4610 void WordPartLeftExtend();
4611
4612 /**
4613 Move to the change next in capitalisation.
4614 */
4615 void WordPartRight();
4616
4617 /**
4618 Move to the next change in capitalisation extending selection
4619 to new caret position.
4620 */
4621 void WordPartRightExtend();
4622
4623 /**
4624 Set the way the display area is determined when a particular line
4625 is to be moved to by Find, FindNext, GotoLine, etc.
4626 */
4627 void SetVisiblePolicy(int visiblePolicy, int visibleSlop);
4628
4629 /**
4630 Delete back from the current position to the start of the line.
4631 */
4632 void DelLineLeft();
4633
4634 /**
4635 Delete forwards from the current position to the end of the line.
4636 */
4637 void DelLineRight();
4638
4639 /**
4640 Get and Set the xOffset (ie, horizontal scroll position).
4641 */
4642 void SetXOffset(int newOffset);
4643 int GetXOffset() const;
4644
4645 /**
4646 Set the last x chosen value to be the caret x position.
4647 */
4648 void ChooseCaretX();
4649
4650 /**
4651 Set the way the caret is kept visible when going sideways.
4652 The exclusion zone is given in pixels.
4653 */
4654 void SetXCaretPolicy(int caretPolicy, int caretSlop);
4655
4656 /**
4657 Set the way the line the caret is on is kept visible.
4658 The exclusion zone is given in lines.
4659 */
4660 void SetYCaretPolicy(int caretPolicy, int caretSlop);
4661
4662 /**
4663 Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE).
4664 */
4665 void SetPrintWrapMode(int mode);
4666
4667 /**
4668 Is printing line wrapped?
4669 */
4670 int GetPrintWrapMode() const;
4671
4672 /**
4673 Set a fore colour for active hotspots.
4674 */
4675 void SetHotspotActiveForeground(bool useSetting, const wxColour& fore);
4676
4677 /**
4678 Get the fore colour for active hotspots.
4679 */
4680 wxColour GetHotspotActiveForeground() const;
4681
4682 /**
4683 Set a back colour for active hotspots.
4684 */
4685 void SetHotspotActiveBackground(bool useSetting, const wxColour& back);
4686
4687 /**
4688 Get the back colour for active hotspots.
4689 */
4690 wxColour GetHotspotActiveBackground() const;
4691
4692 /**
4693 Enable / Disable underlining active hotspots.
4694 */
4695 void SetHotspotActiveUnderline(bool underline);
4696
4697 /**
4698 Get whether underlining for active hotspots.
4699 */
4700 bool GetHotspotActiveUnderline() const;
4701
4702 /**
4703 Limit hotspots to single line so hotspots on two lines don't merge.
4704 */
4705 void SetHotspotSingleLine(bool singleLine);
4706
4707 /**
4708 Get the HotspotSingleLine property
4709 */
4710 bool GetHotspotSingleLine() const;
4711
4712 /**
4713 Move caret between paragraphs (delimited by empty lines).
4714 */
4715 void ParaDown();
4716 void ParaDownExtend();
4717 void ParaUp();
4718 void ParaUpExtend();
4719
4720 /**
4721 Given a valid document position, return the previous position taking code
4722 page into account. Returns 0 if passed 0.
4723 */
4724 int PositionBefore(int pos);
4725
4726 /**
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.
4729 */
4730 int PositionAfter(int pos);
4731
4732 /**
4733 Copy a range of text to the clipboard. Positions are clipped into the document.
4734 */
4735 void CopyRange(int start, int end);
4736
4737 /**
4738 Copy argument text to the clipboard.
4739 */
4740 void CopyText(int length, const wxString& text);
4741
4742 /**
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).
4745 */
4746 void SetSelectionMode(int mode);
4747
4748 /**
4749 Get the mode of the current selection.
4750 */
4751 int GetSelectionMode() const;
4752
4753 /**
4754 Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line).
4755 */
4756 int GetLineSelStartPosition(int line);
4757
4758 /**
4759 Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line).
4760 */
4761 int GetLineSelEndPosition(int line);
4762
4763 /**
4764 Move caret down one line, extending rectangular selection to new caret position.
4765 */
4766 void LineDownRectExtend();
4767
4768 /**
4769 Move caret up one line, extending rectangular selection to new caret position.
4770 */
4771 void LineUpRectExtend();
4772
4773 /**
4774 Move caret left one character, extending rectangular selection to new caret position.
4775 */
4776 void CharLeftRectExtend();
4777
4778 /**
4779 Move caret right one character, extending rectangular selection to new caret position.
4780 */
4781 void CharRightRectExtend();
4782
4783 /**
4784 Move caret to first position on line, extending rectangular selection to new caret position.
4785 */
4786 void HomeRectExtend();
4787
4788 /**
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.
4792 */
4793 void VCHomeRectExtend();
4794
4795 /**
4796 Move caret to last position on line, extending rectangular selection to new caret position.
4797 */
4798 void LineEndRectExtend();
4799
4800 /**
4801 Move caret one page up, extending rectangular selection to new caret position.
4802 */
4803 void PageUpRectExtend();
4804
4805 /**
4806 Move caret one page down, extending rectangular selection to new caret position.
4807 */
4808 void PageDownRectExtend();
4809
4810 /**
4811 Move caret to top of page, or one page up if already at top of page.
4812 */
4813 void StutteredPageUp();
4814
4815 /**
4816 Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.
4817 */
4818 void StutteredPageUpExtend();
4819
4820 /**
4821 Move caret to bottom of page, or one page down if already at bottom of page.
4822 */
4823 void StutteredPageDown();
4824
4825 /**
4826 Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.
4827 */
4828 void StutteredPageDownExtend();
4829
4830 /**
4831 Move caret left one word, position cursor at end of word.
4832 */
4833 void WordLeftEnd();
4834
4835 /**
4836 Move caret left one word, position cursor at end of word, extending selection to new caret position.
4837 */
4838 void WordLeftEndExtend();
4839
4840 /**
4841 Move caret right one word, position cursor at end of word.
4842 */
4843 void WordRightEnd();
4844
4845 /**
4846 Move caret right one word, position cursor at end of word, extending selection to new caret position.
4847 */
4848 void WordRightEndExtend();
4849
4850 /**
4851 Set the set of characters making up whitespace for when moving or selecting by word.
4852 Should be called after SetWordChars.
4853 */
4854 void SetWhitespaceChars(const wxString& characters);
4855
4856 /**
4857 Get the set of characters making up whitespace for when moving or selecting by word.
4858 */
4859 wxString GetWhitespaceChars() const;
4860
4861 /**
4862 Set the set of characters making up punctuation characters
4863 Should be called after SetWordChars.
4864 */
4865 void SetPunctuationChars(const wxString& characters);
4866
4867 /**
4868 Get the set of characters making up punctuation characters
4869 */
4870 wxString GetPunctuationChars() const;
4871
4872 /**
4873 Reset the set of characters for whitespace and word characters to the defaults.
4874 */
4875 void SetCharsDefault();
4876
4877 /**
4878 Get currently selected item position in the auto-completion list
4879 */
4880 int AutoCompGetCurrent() const;
4881
4882 /**
4883 Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference.
4884 */
4885 void AutoCompSetCaseInsensitiveBehaviour(int behaviour);
4886
4887 /**
4888 Get auto-completion case insensitive behaviour.
4889 */
4890 int AutoCompGetCaseInsensitiveBehaviour() const;
4891
4892 /**
4893 Enlarge the document to a particular size of text bytes.
4894 */
4895 void Allocate(int bytes);
4896
4897 /**
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.
4900 */
4901 int FindColumn(int line, int column);
4902
4903 /**
4904 Can the caret preferred x position only be changed by explicit movement commands?
4905 */
4906 int GetCaretSticky() const;
4907
4908 /**
4909 Stop the caret preferred x position changing when the user types.
4910 */
4911 void SetCaretSticky(int useCaretStickyBehaviour);
4912
4913 /**
4914 Switch between sticky and non-sticky: meant to be bound to a key.
4915 */
4916 void ToggleCaretSticky();
4917
4918 /**
4919 Enable/Disable convert-on-paste for line endings
4920 */
4921 void SetPasteConvertEndings(bool convert);
4922
4923 /**
4924 Get convert-on-paste setting
4925 */
4926 bool GetPasteConvertEndings() const;
4927
4928 /**
4929 Duplicate the selection. If selection empty duplicate the line containing the caret.
4930 */
4931 void SelectionDuplicate();
4932
4933 /**
4934 Set background alpha of the caret line.
4935 */
4936 void SetCaretLineBackAlpha(int alpha);
4937
4938 /**
4939 Get the background alpha of the caret line.
4940 */
4941 int GetCaretLineBackAlpha() const;
4942
4943 /**
4944 Set the style of the caret to be drawn.
4945 */
4946 void SetCaretStyle(int caretStyle);
4947
4948 /**
4949 Returns the current style of the caret.
4950 */
4951 int GetCaretStyle() const;
4952
4953 /**
4954 Set the indicator used for IndicatorFillRange and IndicatorClearRange
4955 */
4956 void SetIndicatorCurrent(int indicator);
4957
4958 /**
4959 Get the current indicator
4960 */
4961 int GetIndicatorCurrent() const;
4962
4963 /**
4964 Set the value used for IndicatorFillRange
4965 */
4966 void SetIndicatorValue(int value);
4967
4968 /**
4969 Get the current indicator value
4970 */
4971 int GetIndicatorValue() const;
4972
4973 /**
4974 Turn a indicator on over a range.
4975 */
4976 void IndicatorFillRange(int position, int fillLength);
4977
4978 /**
4979 Turn a indicator off over a range.
4980 */
4981 void IndicatorClearRange(int position, int clearLength);
4982
4983 /**
4984 Are any indicators present at position?
4985 */
4986 int IndicatorAllOnFor(int position);
4987
4988 /**
4989 What value does a particular indicator have at at a position?
4990 */
4991 int IndicatorValueAt(int indicator, int position);
4992
4993 /**
4994 Where does a particular indicator start?
4995 */
4996 int IndicatorStart(int indicator, int position);
4997
4998 /**
4999 Where does a particular indicator end?
5000 */
5001 int IndicatorEnd(int indicator, int position);
5002
5003 /**
5004 Set number of entries in position cache
5005 */
5006 void SetPositionCacheSize(int size);
5007
5008 /**
5009 How many entries are allocated to the position cache?
5010 */
5011 int GetPositionCacheSize() const;
5012
5013 /**
5014 Copy the selection, if selection empty copy the line with the caret
5015 */
5016 void CopyAllowLine();
5017
5018 /**
5019 Compact the document buffer and return a read-only pointer to the
5020 characters in the document.
5021 */
5022 const char* GetCharacterPointer() const;
5023
5024 /**
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;
5030
5031 /**
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;
5036
5037 /**
5038 Always interpret keyboard input as Unicode
5039 */
5040 void SetKeysUnicode(bool keysUnicode);
5041
5042 /**
5043 Are keys always interpreted as Unicode?
5044 */
5045 bool GetKeysUnicode() const;
5046
5047 /**
5048 Set the alpha fill colour of the given indicator.
5049 */
5050 void IndicatorSetAlpha(int indicator, int alpha);
5051
5052 /**
5053 Get the alpha fill colour of the given indicator.
5054 */
5055 int IndicatorGetAlpha(int indicator) const;
5056
5057 /**
5058 Set the alpha outline colour of the given indicator.
5059 */
5060 void IndicatorSetOutlineAlpha(int indicator, int alpha);
5061
5062 /**
5063 Get the alpha outline colour of the given indicator.
5064 */
5065 int IndicatorGetOutlineAlpha(int indicator) const;
5066
5067 /**
5068 Set extra ascent for each line
5069 */
5070 void SetExtraAscent(int extraAscent);
5071
5072 /**
5073 Get extra ascent for each line
5074 */
5075 int GetExtraAscent() const;
5076
5077 /**
5078 Set extra descent for each line
5079 */
5080 void SetExtraDescent(int extraDescent);
5081
5082 /**
5083 Get extra descent for each line
5084 */
5085 int GetExtraDescent() const;
5086
5087 /**
5088 Which symbol was defined for markerNumber with MarkerDefine
5089 */
5090 int GetMarkerSymbolDefined(int markerNumber);
5091
5092 /**
5093 Set the text in the text margin for a line
5094 */
5095 void MarginSetText(int line, const wxString& text);
5096
5097 /**
5098 Get the text in the text margin for a line
5099 */
5100 wxString MarginGetText(int line) const;
5101
5102 /**
5103 Set the style number for the text margin for a line
5104 */
5105 void MarginSetStyle(int line, int style);
5106
5107 /**
5108 Get the style number for the text margin for a line
5109 */
5110 int MarginGetStyle(int line) const;
5111
5112 /**
5113 Set the style in the text margin for a line
5114 */
5115 void MarginSetStyles(int line, const wxString& styles);
5116
5117 /**
5118 Get the styles in the text margin for a line
5119 */
5120 wxString MarginGetStyles(int line) const;
5121
5122 /**
5123 Clear the margin text on all lines
5124 */
5125 void MarginTextClearAll();
5126
5127 /**
5128 Get the start of the range of style numbers used for margin text
5129 */
5130 void MarginSetStyleOffset(int style);
5131
5132 /**
5133 Get the start of the range of style numbers used for margin text
5134 */
5135 int MarginGetStyleOffset() const;
5136
5137 /**
5138 Set the margin options.
5139 */
5140 void SetMarginOptions(int marginOptions);
5141
5142 /**
5143 Get the margin options.
5144 */
5145 int GetMarginOptions() const;
5146
5147 /**
5148 Set the annotation text for a line
5149 */
5150 void AnnotationSetText(int line, const wxString& text);
5151
5152 /**
5153 Get the annotation text for a line
5154 */
5155 wxString AnnotationGetText(int line) const;
5156
5157 /**
5158 Set the style number for the annotations for a line
5159 */
5160 void AnnotationSetStyle(int line, int style);
5161
5162 /**
5163 Get the style number for the annotations for a line
5164 */
5165 int AnnotationGetStyle(int line) const;
5166
5167 /**
5168 Set the annotation styles for a line
5169 */
5170 void AnnotationSetStyles(int line, const wxString& styles);
5171
5172 /**
5173 Get the annotation styles for a line
5174 */
5175 wxString AnnotationGetStyles(int line) const;
5176
5177 /**
5178 Get the number of annotation lines for a line
5179 */
5180 int AnnotationGetLines(int line) const;
5181
5182 /**
5183 Clear the annotations from all lines
5184 */
5185 void AnnotationClearAll();
5186
5187 /**
5188 Set the visibility for the annotations for a view
5189 */
5190 void AnnotationSetVisible(int visible);
5191
5192 /**
5193 Get the visibility for the annotations for a view
5194 */
5195 int AnnotationGetVisible() const;
5196
5197 /**
5198 Get the start of the range of style numbers used for annotations
5199 */
5200 void AnnotationSetStyleOffset(int style);
5201
5202 /**
5203 Get the start of the range of style numbers used for annotations
5204 */
5205 int AnnotationGetStyleOffset() const;
5206
5207 /**
5208 Add a container action to the undo stack
5209 */
5210 void AddUndoAction(int token, int flags);
5211
5212 /**
5213 Find the position of a character from a point within the window.
5214 */
5215 int CharPositionFromPoint(int x, int y);
5216
5217 /**
5218 Find the position of a character from a point within the window.
5219 Return INVALID_POSITION if not close to text.
5220 */
5221 int CharPositionFromPointClose(int x, int y);
5222
5223 /**
5224 Set whether multiple selections can be made
5225 */
5226 void SetMultipleSelection(bool multipleSelection);
5227
5228 /**
5229 Whether multiple selections can be made
5230 */
5231 bool GetMultipleSelection() const;
5232
5233 /**
5234 Set whether typing can be performed into multiple selections
5235 */
5236 void SetAdditionalSelectionTyping(bool additionalSelectionTyping);
5237
5238 /**
5239 Whether typing can be performed into multiple selections
5240 */
5241 bool GetAdditionalSelectionTyping() const;
5242
5243 /**
5244 Set whether additional carets will blink
5245 */
5246 void SetAdditionalCaretsBlink(bool additionalCaretsBlink);
5247
5248 /**
5249 Whether additional carets will blink
5250 */
5251 bool GetAdditionalCaretsBlink() const;
5252
5253 /**
5254 Set whether additional carets are visible
5255 */
5256 void SetAdditionalCaretsVisible(bool additionalCaretsBlink);
5257
5258 /**
5259 Whether additional carets are visible
5260 */
5261 bool GetAdditionalCaretsVisible() const;
5262
5263 /**
5264 How many selections are there?
5265 */
5266 int GetSelections() const;
5267
5268 /**
5269 Clear selections to a single empty stream selection
5270 */
5271 void ClearSelections();
5272
5273 /**
5274 Add a selection
5275 */
5276 int AddSelection(int caret, int anchor);
5277
5278 /**
5279 Set the main selection
5280 */
5281 void SetMainSelection(int selection);
5282
5283 /**
5284 Which selection is the main selection
5285 */
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;
5295
5296 /**
5297 Sets the position that starts the selection - this becomes the anchor.
5298 */
5299 void SetSelectionNStart(int selection, int pos);
5300
5301 /**
5302 Returns the position at the start of the selection.
5303 */
5304 int GetSelectionNStart(int selection) const;
5305
5306 /**
5307 Sets the position that ends the selection - this becomes the currentPosition.
5308 */
5309 void SetSelectionNEnd(int selection, int pos);
5310
5311 /**
5312 Returns the position at the end of the selection.
5313 */
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;
5325
5326 /**
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.
5331 */
5332 void SetRectangularSelectionModifier(int modifier);
5333
5334 /**
5335 Get the modifier key used for rectangular selection.
5336 */
5337 int GetRectangularSelectionModifier() const;
5338
5339 /**
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.
5342 */
5343 void SetAdditionalSelForeground(const wxColour& fore);
5344
5345 /**
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.
5348 */
5349 void SetAdditionalSelBackground(const wxColour& back);
5350
5351 /**
5352 Set the alpha of the selection.
5353 */
5354 void SetAdditionalSelAlpha(int alpha);
5355
5356 /**
5357 Get the alpha of the selection.
5358 */
5359 int GetAdditionalSelAlpha() const;
5360
5361 /**
5362 Set the foreground colour of additional carets.
5363 */
5364 void SetAdditionalCaretForeground(const wxColour& fore);
5365
5366 /**
5367 Get the foreground colour of additional carets.
5368 */
5369 wxColour GetAdditionalCaretForeground() const;
5370
5371 /**
5372 Set the main selection to the next selection.
5373 */
5374 void RotateSelection();
5375
5376 /**
5377 Swap that caret and anchor of the main selection.
5378 */
5379 void SwapMainAnchorCaret();
5380
5381 /**
5382 Indicate that the internal state of a lexer has changed over a range and therefore
5383 there may be a need to redraw.
5384 */
5385 int ChangeLexerState(int start, int end);
5386
5387 /**
5388 Find the next line at or after lineStart that is a contracted fold header line.
5389 Return -1 when no more lines.
5390 */
5391 int ContractedFoldNext(int lineStart);
5392
5393 /**
5394 Centre current line in window.
5395 */
5396 void VerticalCentreCaret();
5397
5398 /**
5399 Move the selected lines up one line, shifting the line above after the selection
5400 */
5401 void MoveSelectedLinesUp();
5402
5403 /**
5404 Move the selected lines down one line, shifting the line below before the selection
5405 */
5406 void MoveSelectedLinesDown();
5407
5408 /**
5409 Set the identifier reported as idFrom in notification messages.
5410 */
5411 void SetIdentifier(int identifier);
5412
5413 /**
5414 Get the identifier.
5415 */
5416 int GetIdentifier() const;
5417
5418 /**
5419 Set the width for future RGBA image data.
5420 */
5421 void RGBAImageSetWidth(int width);
5422
5423 /**
5424 Set the height for future RGBA image data.
5425 */
5426 void RGBAImageSetHeight(int height);
5427
5428 /**
5429 Define a marker from RGBA data.
5430 It has the width and height from RGBAImageSetWidth/Height
5431 */
5432 void MarkerDefineRGBAImage(int markerNumber, const unsigned char* pixels);
5433
5434 /**
5435 Register an RGBA image for use in autocompletion lists.
5436 It has the width and height from RGBAImageSetWidth/Height
5437 */
5438 void RegisterRGBAImage(int type, const unsigned char* pixels);
5439
5440 /**
5441 Scroll to start of document.
5442 */
5443 void ScrollToStart();
5444
5445 /**
5446 Scroll to end of document.
5447 */
5448 void ScrollToEnd();
5449
5450 /**
5451 Set the technology used.
5452 */
5453 void SetTechnology(int technology);
5454
5455 /**
5456 Get the tech.
5457 */
5458 int GetTechnology() const;
5459
5460 /**
5461 Create an ILoader*.
5462 */
5463 void* CreateLoader(int bytes) const;
5464
5465 /**
5466 Start notifying the container of all key presses and commands.
5467 */
5468 void StartRecord();
5469
5470 /**
5471 Stop notifying the container of all key presses and commands.
5472 */
5473 void StopRecord();
5474
5475 /**
5476 Set the lexing language of the document.
5477 */
5478 void SetLexer(int lexer);
5479
5480 /**
5481 Retrieve the lexing language of the document.
5482 */
5483 int GetLexer() const;
5484
5485 /**
5486 Colourise a segment of the document using the current lexing language.
5487 */
5488 void Colourise(int start, int end);
5489
5490 /**
5491 Set up a value that may be used by a lexer for some optional feature.
5492 */
5493 void SetProperty(const wxString& key, const wxString& value);
5494
5495 /**
5496 Set up the key words used by the lexer.
5497 */
5498 void SetKeyWords(int keywordSet, const wxString& keyWords);
5499
5500 /**
5501 Set the lexing language of the document based on string name.
5502 */
5503 void SetLexerLanguage(const wxString& language);
5504
5505 /**
5506 Retrieve a 'property' value previously set with SetProperty.
5507 */
5508 wxString GetProperty(const wxString& key);
5509
5510 /**
5511 Retrieve a 'property' value previously set with SetProperty,
5512 with '$()' variable replacement on returned buffer.
5513 */
5514 wxString GetPropertyExpanded(const wxString& key);
5515
5516 /**
5517 Retrieve a 'property' value previously set with SetProperty,
5518 interpreted as an int AFTER any '$()' variable replacement.
5519 */
5520 int GetPropertyInt(const wxString& key) const;
5521
5522 /**
5523 Retrieve the number of bits the current lexer needs for styling.
5524 */
5525 int GetStyleBitsNeeded() const;
5526
5527 /**
5528 For private communication between an application and a known lexer.
5529 */
5530 void* PrivateLexerCall(int operation, void* pointer);
5531
5532 /**
5533 Retrieve a '\n' separated list of properties understood by the current lexer.
5534 */
5535 wxString PropertyNames() const;
5536
5537 /**
5538 Retrieve the type of a property.
5539 */
5540 int PropertyType(const wxString& name);
5541
5542 /**
5543 Describe a property.
5544 */
5545 wxString DescribeProperty(const wxString& name) const;
5546
5547 /**
5548 Retrieve a '\n' separated list of descriptions of the keyword sets understood by the current lexer.
5549 */
5550 wxString DescribeKeyWordSets() const;
5551
5552 //}}}
5553
5554
5555
5556 // **** Manually declared methods
5557
5558
5559 /**
5560 Returns the line number of the line with the caret.
5561 */
5562 int GetCurrentLine();
5563
5564 /**
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
5576 */
5577 void StyleSetSpec(int styleNum, const wxString& spec);
5578
5579
5580 /**
5581 Get the font of a style.
5582 */
5583 wxFont StyleGetFont(int style);
5584
5585
5586 /**
5587 Set style size, face, bold, italic, and underline attributes from
5588 a wxFont's attributes.
5589 */
5590 void StyleSetFont(int styleNum, wxFont& font);
5591
5592
5593
5594 /**
5595 Set all font style attributes at once.
5596 */
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
5603
5604 /**
5605 Set the character set of the font in a style. Converts the Scintilla
5606 character set values to a wxFontEncoding.
5607 */
5608 void StyleSetCharacterSet(int style, int characterSet);
5609
5610 /**
5611 Set the font encoding to be used by a style.
5612 */
5613 void StyleSetFontEncoding(int style, wxFontEncoding encoding);
5614
5615
5616 /**
5617 Perform one of the operations defined by the wxSTC_CMD_* constants.
5618 */
5619 void CmdKeyExecute(int cmd);
5620
5621
5622 /**
5623 Set the left and right margin in the edit area, measured in pixels.
5624 */
5625 void SetMargins(int left, int right);
5626
5627
5628 /**
5629 Retrieve the point in the window where a position is displayed.
5630 */
5631 wxPoint PointFromPosition(int pos);
5632
5633
5634 /**
5635 Scroll enough to make the given line visible
5636 */
5637 void ScrollToLine(int line);
5638
5639
5640 /**
5641 Scroll enough to make the given column visible
5642 */
5643 void ScrollToColumn(int column);
5644
5645
5646 /**
5647 Send a message to Scintilla
5648 */
5649 wxIntPtr SendMsg(int msg, wxUIntPtr wp=0, wxIntPtr lp=0) const;
5650
5651
5652 /**
5653 Set the vertical scrollbar to use instead of the ont that's built-in.
5654 */
5655 void SetVScrollBar(wxScrollBar* bar);
5656
5657
5658 /**
5659 Set the horizontal scrollbar to use instead of the ont that's built-in.
5660 */
5661 void SetHScrollBar(wxScrollBar* bar);
5662
5663 /**
5664 Can be used to prevent the EVT_CHAR handler from adding the char
5665 */
5666 bool GetLastKeydownProcessed();
5667 void SetLastKeydownProcessed(bool val);
5668
5669 /**
5670 Write the contents of the editor to filename
5671 */
5672 bool SaveFile(const wxString& filename);
5673
5674 /**
5675 Load the contents of filename into the editor
5676 */
5677 bool LoadFile(const wxString& filename);
5678
5679 /**
5680 Allow for simulating a DnD DragOver
5681 */
5682 wxDragResult DoDragOver(wxCoord x, wxCoord y, wxDragResult defaultRes);
5683
5684 /**
5685 Allow for simulating a DnD DropText
5686 */
5687 bool DoDropText(long x, long y, const wxString& data);
5688
5689 /**
5690 Clear annotations from the given line.
5691 */
5692 void AnnotationClearLine(int line);
5693
5694
5695 /**
5696 Add text to the document at current position.
5697 */
5698 void AddTextRaw(const char* text, int length=-1);
5699
5700 /**
5701 Insert string at a position.
5702 */
5703 void InsertTextRaw(int pos, const char* text);
5704
5705 /**
5706 Retrieve the text of the line containing the caret.
5707 Returns the index of the caret on the line.
5708 */
5709 wxCharBuffer GetCurLineRaw(int* linePos=NULL);
5710
5711 /**
5712 Retrieve the contents of a line.
5713 */
5714 wxCharBuffer GetLineRaw(int line);
5715
5716 /**
5717 Retrieve the selected text.
5718 */
5719 wxCharBuffer GetSelectedTextRaw();
5720
5721 /**
5722 Retrieve a range of text.
5723 */
5724 wxCharBuffer GetTextRangeRaw(int startPos, int endPos);
5725
5726 /**
5727 Replace the contents of the document with the argument text.
5728 */
5729 void SetTextRaw(const char* text);
5730
5731 /**
5732 Retrieve all the text in the document.
5733 */
5734 wxCharBuffer GetTextRaw();
5735
5736 /**
5737 Append a string to the end of the document without changing the selection.
5738 */
5739 void AppendTextRaw(const char* text, int length=-1);
5740
5741
5742 static wxVersionInfo GetLibraryVersionInfo();
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{wxstc}
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;
5861 };
5862
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;