derive wxSTC from wxTextAreaBase to provide wxTextCtrl-like methods (see #9114)
[wxWidgets.git] / include / wx / stc / stc.h
1 ////////////////////////////////////////////////////////////////////////////
2 // Name: wx/stc/stc.h
3 // Purpose: A wxWidgets implementation of Scintilla. This class is the
4 // one meant to be used directly by wx applications. It does not
5 // derive directly from the Scintilla classes, and in fact there
6 // is no mention of Scintilla classes at all in this header.
7 // This class delegates all method calls and events to the
8 // Scintilla objects and so forth. This allows the use of
9 // Scintilla without polluting the namespace with all the
10 // classes and itentifiers from Scintilla.
11 //
12 // Author: Robin Dunn
13 //
14 // Created: 13-Jan-2000
15 // RCS-ID: $Id$
16 // Copyright: (c) 2000 by Total Control Software
17 // Licence: wxWindows license
18 /////////////////////////////////////////////////////////////////////////////
19
20 /*
21 IMPORTANT: include/wx/stc/stc.h is generated by src/stc/gen_iface.py from
22 src/stc/stc.h.in, don't edit stc.h file as your changes will be
23 lost after the next regeneration, edit stc.h.in and rerun the
24 gen_iface.py script instead!
25
26 Parts of this file generated by the script are found in between
27 the special "{{{" and "}}}" markers, the rest of it is copied
28 verbatim from src.h.in.
29 */
30
31 #ifndef _WX_STC_STC_H_
32 #define _WX_STC_STC_H_
33
34 #include "wx/defs.h"
35
36 #if wxUSE_STC
37
38 #include "wx/control.h"
39 #include "wx/dnd.h"
40 #include "wx/stopwatch.h"
41
42 #if wxUSE_TEXTCTRL
43 #include "wx/textctrl.h"
44 #endif // wxUSE_TEXTCTRL
45
46 class WXDLLIMPEXP_FWD_CORE wxScrollBar;
47
48 // SWIG can't handle "#if" type of conditionals, only "#ifdef"
49 #ifdef SWIG
50 #define STC_USE_DND 1
51 #else
52 #if wxUSE_DRAG_AND_DROP
53 #define STC_USE_DND 1
54 #endif
55 #endif
56
57
58 //----------------------------------------------------------------------
59 // STC constants generated section {{{
60
61 #define wxSTC_INVALID_POSITION -1
62
63 // Define start of Scintilla messages to be greater than all Windows edit (EM_*) messages
64 // as many EM_ messages can be used although that use is deprecated.
65 #define wxSTC_START 2000
66 #define wxSTC_OPTIONAL_START 3000
67 #define wxSTC_LEXER_START 4000
68 #define wxSTC_WS_INVISIBLE 0
69 #define wxSTC_WS_VISIBLEALWAYS 1
70 #define wxSTC_WS_VISIBLEAFTERINDENT 2
71 #define wxSTC_EOL_CRLF 0
72 #define wxSTC_EOL_CR 1
73 #define wxSTC_EOL_LF 2
74
75 // The SC_CP_UTF8 value can be used to enter Unicode mode.
76 // This is the same value as CP_UTF8 in Windows
77 #define wxSTC_CP_UTF8 65001
78
79 // The SC_CP_DBCS value can be used to indicate a DBCS mode for GTK+.
80 #define wxSTC_CP_DBCS 1
81 #define wxSTC_MARKER_MAX 31
82 #define wxSTC_MARK_CIRCLE 0
83 #define wxSTC_MARK_ROUNDRECT 1
84 #define wxSTC_MARK_ARROW 2
85 #define wxSTC_MARK_SMALLRECT 3
86 #define wxSTC_MARK_SHORTARROW 4
87 #define wxSTC_MARK_EMPTY 5
88 #define wxSTC_MARK_ARROWDOWN 6
89 #define wxSTC_MARK_MINUS 7
90 #define wxSTC_MARK_PLUS 8
91
92 // Shapes used for outlining column.
93 #define wxSTC_MARK_VLINE 9
94 #define wxSTC_MARK_LCORNER 10
95 #define wxSTC_MARK_TCORNER 11
96 #define wxSTC_MARK_BOXPLUS 12
97 #define wxSTC_MARK_BOXPLUSCONNECTED 13
98 #define wxSTC_MARK_BOXMINUS 14
99 #define wxSTC_MARK_BOXMINUSCONNECTED 15
100 #define wxSTC_MARK_LCORNERCURVE 16
101 #define wxSTC_MARK_TCORNERCURVE 17
102 #define wxSTC_MARK_CIRCLEPLUS 18
103 #define wxSTC_MARK_CIRCLEPLUSCONNECTED 19
104 #define wxSTC_MARK_CIRCLEMINUS 20
105 #define wxSTC_MARK_CIRCLEMINUSCONNECTED 21
106
107 // Invisible mark that only sets the line background color.
108 #define wxSTC_MARK_BACKGROUND 22
109 #define wxSTC_MARK_DOTDOTDOT 23
110 #define wxSTC_MARK_ARROWS 24
111 #define wxSTC_MARK_PIXMAP 25
112 #define wxSTC_MARK_FULLRECT 26
113 #define wxSTC_MARK_CHARACTER 10000
114
115 // Markers used for outlining column.
116 #define wxSTC_MARKNUM_FOLDEREND 25
117 #define wxSTC_MARKNUM_FOLDEROPENMID 26
118 #define wxSTC_MARKNUM_FOLDERMIDTAIL 27
119 #define wxSTC_MARKNUM_FOLDERTAIL 28
120 #define wxSTC_MARKNUM_FOLDERSUB 29
121 #define wxSTC_MARKNUM_FOLDER 30
122 #define wxSTC_MARKNUM_FOLDEROPEN 31
123 #define wxSTC_MASK_FOLDERS 0xFE000000
124 #define wxSTC_MARGIN_SYMBOL 0
125 #define wxSTC_MARGIN_NUMBER 1
126 #define wxSTC_MARGIN_BACK 2
127 #define wxSTC_MARGIN_FORE 3
128
129 // Styles in range 32..38 are predefined for parts of the UI and are not used as normal styles.
130 // Style 39 is for future use.
131 #define wxSTC_STYLE_DEFAULT 32
132 #define wxSTC_STYLE_LINENUMBER 33
133 #define wxSTC_STYLE_BRACELIGHT 34
134 #define wxSTC_STYLE_BRACEBAD 35
135 #define wxSTC_STYLE_CONTROLCHAR 36
136 #define wxSTC_STYLE_INDENTGUIDE 37
137 #define wxSTC_STYLE_CALLTIP 38
138 #define wxSTC_STYLE_LASTPREDEFINED 39
139 #define wxSTC_STYLE_MAX 255
140
141 // Character set identifiers are used in StyleSetCharacterSet.
142 // The values are the same as the Windows *_CHARSET values.
143 #define wxSTC_CHARSET_ANSI 0
144 #define wxSTC_CHARSET_DEFAULT 1
145 #define wxSTC_CHARSET_BALTIC 186
146 #define wxSTC_CHARSET_CHINESEBIG5 136
147 #define wxSTC_CHARSET_EASTEUROPE 238
148 #define wxSTC_CHARSET_GB2312 134
149 #define wxSTC_CHARSET_GREEK 161
150 #define wxSTC_CHARSET_HANGUL 129
151 #define wxSTC_CHARSET_MAC 77
152 #define wxSTC_CHARSET_OEM 255
153 #define wxSTC_CHARSET_RUSSIAN 204
154 #define wxSTC_CHARSET_CYRILLIC 1251
155 #define wxSTC_CHARSET_SHIFTJIS 128
156 #define wxSTC_CHARSET_SYMBOL 2
157 #define wxSTC_CHARSET_TURKISH 162
158 #define wxSTC_CHARSET_JOHAB 130
159 #define wxSTC_CHARSET_HEBREW 177
160 #define wxSTC_CHARSET_ARABIC 178
161 #define wxSTC_CHARSET_VIETNAMESE 163
162 #define wxSTC_CHARSET_THAI 222
163 #define wxSTC_CHARSET_8859_15 1000
164 #define wxSTC_CASE_MIXED 0
165 #define wxSTC_CASE_UPPER 1
166 #define wxSTC_CASE_LOWER 2
167
168 // Indicator style enumeration and some constants
169 #define wxSTC_INDIC_PLAIN 0
170 #define wxSTC_INDIC_SQUIGGLE 1
171 #define wxSTC_INDIC_TT 2
172 #define wxSTC_INDIC_DIAGONAL 3
173 #define wxSTC_INDIC_STRIKE 4
174 #define wxSTC_INDIC_HIDDEN 5
175 #define wxSTC_INDIC_BOX 6
176 #define wxSTC_INDIC_ROUNDBOX 7
177 #define wxSTC_INDIC_MAX 31
178 #define wxSTC_INDIC_CONTAINER 8
179 #define wxSTC_INDIC0_MASK 0x20
180 #define wxSTC_INDIC1_MASK 0x40
181 #define wxSTC_INDIC2_MASK 0x80
182 #define wxSTC_INDICS_MASK 0xE0
183 #define wxSTC_IV_NONE 0
184 #define wxSTC_IV_REAL 1
185 #define wxSTC_IV_LOOKFORWARD 2
186 #define wxSTC_IV_LOOKBOTH 3
187
188 // PrintColourMode - use same colours as screen.
189 #define wxSTC_PRINT_NORMAL 0
190
191 // PrintColourMode - invert the light value of each style for printing.
192 #define wxSTC_PRINT_INVERTLIGHT 1
193
194 // PrintColourMode - force black text on white background for printing.
195 #define wxSTC_PRINT_BLACKONWHITE 2
196
197 // PrintColourMode - text stays coloured, but all background is forced to be white for printing.
198 #define wxSTC_PRINT_COLOURONWHITE 3
199
200 // PrintColourMode - only the default-background is forced to be white for printing.
201 #define wxSTC_PRINT_COLOURONWHITEDEFAULTBG 4
202 #define wxSTC_FIND_WHOLEWORD 2
203 #define wxSTC_FIND_MATCHCASE 4
204 #define wxSTC_FIND_WORDSTART 0x00100000
205 #define wxSTC_FIND_REGEXP 0x00200000
206 #define wxSTC_FIND_POSIX 0x00400000
207 #define wxSTC_FOLDLEVELBASE 0x400
208 #define wxSTC_FOLDLEVELWHITEFLAG 0x1000
209 #define wxSTC_FOLDLEVELHEADERFLAG 0x2000
210 #define wxSTC_FOLDLEVELBOXHEADERFLAG 0x4000
211 #define wxSTC_FOLDLEVELBOXFOOTERFLAG 0x8000
212 #define wxSTC_FOLDLEVELCONTRACTED 0x10000
213 #define wxSTC_FOLDLEVELUNINDENT 0x20000
214 #define wxSTC_FOLDLEVELNUMBERMASK 0x0FFF
215 #define wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002
216 #define wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004
217 #define wxSTC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008
218 #define wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010
219 #define wxSTC_FOLDFLAG_LEVELNUMBERS 0x0040
220 #define wxSTC_FOLDFLAG_BOX 0x0001
221 #define wxSTC_TIME_FOREVER 10000000
222 #define wxSTC_WRAP_NONE 0
223 #define wxSTC_WRAP_WORD 1
224 #define wxSTC_WRAP_CHAR 2
225 #define wxSTC_WRAPVISUALFLAG_NONE 0x0000
226 #define wxSTC_WRAPVISUALFLAG_END 0x0001
227 #define wxSTC_WRAPVISUALFLAG_START 0x0002
228 #define wxSTC_WRAPVISUALFLAGLOC_DEFAULT 0x0000
229 #define wxSTC_WRAPVISUALFLAGLOC_END_BY_TEXT 0x0001
230 #define wxSTC_WRAPVISUALFLAGLOC_START_BY_TEXT 0x0002
231 #define wxSTC_CACHE_NONE 0
232 #define wxSTC_CACHE_CARET 1
233 #define wxSTC_CACHE_PAGE 2
234 #define wxSTC_CACHE_DOCUMENT 3
235 #define wxSTC_EDGE_NONE 0
236 #define wxSTC_EDGE_LINE 1
237 #define wxSTC_EDGE_BACKGROUND 2
238 #define wxSTC_CURSORNORMAL -1
239 #define wxSTC_CURSORWAIT 4
240
241 // Constants for use with SetVisiblePolicy, similar to SetCaretPolicy.
242 #define wxSTC_VISIBLE_SLOP 0x01
243 #define wxSTC_VISIBLE_STRICT 0x04
244
245 // Caret policy, used by SetXCaretPolicy and SetYCaretPolicy.
246 // If CARET_SLOP is set, we can define a slop value: caretSlop.
247 // This value defines an unwanted zone (UZ) where the caret is... unwanted.
248 // This zone is defined as a number of pixels near the vertical margins,
249 // and as a number of lines near the horizontal margins.
250 // By keeping the caret away from the edges, it is seen within its context,
251 // so it is likely that the identifier that the caret is on can be completely seen,
252 // and that the current line is seen with some of the lines following it which are
253 // often dependent on that line.
254 #define wxSTC_CARET_SLOP 0x01
255
256 // If CARET_STRICT is set, the policy is enforced... strictly.
257 // The caret is centred on the display if slop is not set,
258 // and cannot go in the UZ if slop is set.
259 #define wxSTC_CARET_STRICT 0x04
260
261 // If CARET_JUMPS is set, the display is moved more energetically
262 // so the caret can move in the same direction longer before the policy is applied again.
263 #define wxSTC_CARET_JUMPS 0x10
264
265 // If CARET_EVEN is not set, instead of having symmetrical UZs,
266 // the left and bottom UZs are extended up to right and top UZs respectively.
267 // This way, we favour the displaying of useful information: the begining of lines,
268 // where most code reside, and the lines after the caret, eg. the body of a function.
269 #define wxSTC_CARET_EVEN 0x08
270
271 // Selection Modes
272 #define wxSTC_SEL_STREAM 0
273 #define wxSTC_SEL_RECTANGLE 1
274 #define wxSTC_SEL_LINES 2
275 #define wxSTC_ALPHA_TRANSPARENT 0
276 #define wxSTC_ALPHA_OPAQUE 255
277 #define wxSTC_ALPHA_NOALPHA 256
278
279 // Caret Styles
280 #define wxSTC_CARETSTYLE_INVISIBLE 0
281 #define wxSTC_CARETSTYLE_LINE 1
282 #define wxSTC_CARETSTYLE_BLOCK 2
283
284 // Maximum value of keywordSet parameter of SetKeyWords.
285 #define wxSTC_KEYWORDSET_MAX 8
286
287 // Notifications
288 // Type of modification and the action which caused the modification.
289 // These are defined as a bit mask to make it easy to specify which notifications are wanted.
290 // One bit is set from each of SC_MOD_* and SC_PERFORMED_*.
291 #define wxSTC_MOD_INSERTTEXT 0x1
292 #define wxSTC_MOD_DELETETEXT 0x2
293 #define wxSTC_MOD_CHANGESTYLE 0x4
294 #define wxSTC_MOD_CHANGEFOLD 0x8
295 #define wxSTC_PERFORMED_USER 0x10
296 #define wxSTC_PERFORMED_UNDO 0x20
297 #define wxSTC_PERFORMED_REDO 0x40
298 #define wxSTC_MULTISTEPUNDOREDO 0x80
299 #define wxSTC_LASTSTEPINUNDOREDO 0x100
300 #define wxSTC_MOD_CHANGEMARKER 0x200
301 #define wxSTC_MOD_BEFOREINSERT 0x400
302 #define wxSTC_MOD_BEFOREDELETE 0x800
303 #define wxSTC_MULTILINEUNDOREDO 0x1000
304 #define wxSTC_STARTACTION 0x2000
305 #define wxSTC_MOD_CHANGEINDICATOR 0x4000
306 #define wxSTC_MOD_CHANGELINESTATE 0x8000
307 #define wxSTC_MODEVENTMASKALL 0xFFFF
308
309 // Symbolic key codes and modifier flags.
310 // ASCII and other printable characters below 256.
311 // Extended keys above 300.
312 #define wxSTC_KEY_DOWN 300
313 #define wxSTC_KEY_UP 301
314 #define wxSTC_KEY_LEFT 302
315 #define wxSTC_KEY_RIGHT 303
316 #define wxSTC_KEY_HOME 304
317 #define wxSTC_KEY_END 305
318 #define wxSTC_KEY_PRIOR 306
319 #define wxSTC_KEY_NEXT 307
320 #define wxSTC_KEY_DELETE 308
321 #define wxSTC_KEY_INSERT 309
322 #define wxSTC_KEY_ESCAPE 7
323 #define wxSTC_KEY_BACK 8
324 #define wxSTC_KEY_TAB 9
325 #define wxSTC_KEY_RETURN 13
326 #define wxSTC_KEY_ADD 310
327 #define wxSTC_KEY_SUBTRACT 311
328 #define wxSTC_KEY_DIVIDE 312
329 #define wxSTC_KEY_WIN 313
330 #define wxSTC_KEY_RWIN 314
331 #define wxSTC_KEY_MENU 315
332 #define wxSTC_SCMOD_NORM 0
333 #define wxSTC_SCMOD_SHIFT 1
334 #define wxSTC_SCMOD_CTRL 2
335 #define wxSTC_SCMOD_ALT 4
336
337 // For SciLexer.h
338 #define wxSTC_LEX_CONTAINER 0
339 #define wxSTC_LEX_NULL 1
340 #define wxSTC_LEX_PYTHON 2
341 #define wxSTC_LEX_CPP 3
342 #define wxSTC_LEX_HTML 4
343 #define wxSTC_LEX_XML 5
344 #define wxSTC_LEX_PERL 6
345 #define wxSTC_LEX_SQL 7
346 #define wxSTC_LEX_VB 8
347 #define wxSTC_LEX_PROPERTIES 9
348 #define wxSTC_LEX_ERRORLIST 10
349 #define wxSTC_LEX_MAKEFILE 11
350 #define wxSTC_LEX_BATCH 12
351 #define wxSTC_LEX_XCODE 13
352 #define wxSTC_LEX_LATEX 14
353 #define wxSTC_LEX_LUA 15
354 #define wxSTC_LEX_DIFF 16
355 #define wxSTC_LEX_CONF 17
356 #define wxSTC_LEX_PASCAL 18
357 #define wxSTC_LEX_AVE 19
358 #define wxSTC_LEX_ADA 20
359 #define wxSTC_LEX_LISP 21
360 #define wxSTC_LEX_RUBY 22
361 #define wxSTC_LEX_EIFFEL 23
362 #define wxSTC_LEX_EIFFELKW 24
363 #define wxSTC_LEX_TCL 25
364 #define wxSTC_LEX_NNCRONTAB 26
365 #define wxSTC_LEX_BULLANT 27
366 #define wxSTC_LEX_VBSCRIPT 28
367 #define wxSTC_LEX_BAAN 31
368 #define wxSTC_LEX_MATLAB 32
369 #define wxSTC_LEX_SCRIPTOL 33
370 #define wxSTC_LEX_ASM 34
371 #define wxSTC_LEX_CPPNOCASE 35
372 #define wxSTC_LEX_FORTRAN 36
373 #define wxSTC_LEX_F77 37
374 #define wxSTC_LEX_CSS 38
375 #define wxSTC_LEX_POV 39
376 #define wxSTC_LEX_LOUT 40
377 #define wxSTC_LEX_ESCRIPT 41
378 #define wxSTC_LEX_PS 42
379 #define wxSTC_LEX_NSIS 43
380 #define wxSTC_LEX_MMIXAL 44
381 #define wxSTC_LEX_CLW 45
382 #define wxSTC_LEX_CLWNOCASE 46
383 #define wxSTC_LEX_LOT 47
384 #define wxSTC_LEX_YAML 48
385 #define wxSTC_LEX_TEX 49
386 #define wxSTC_LEX_METAPOST 50
387 #define wxSTC_LEX_POWERBASIC 51
388 #define wxSTC_LEX_FORTH 52
389 #define wxSTC_LEX_ERLANG 53
390 #define wxSTC_LEX_OCTAVE 54
391 #define wxSTC_LEX_MSSQL 55
392 #define wxSTC_LEX_VERILOG 56
393 #define wxSTC_LEX_KIX 57
394 #define wxSTC_LEX_GUI4CLI 58
395 #define wxSTC_LEX_SPECMAN 59
396 #define wxSTC_LEX_AU3 60
397 #define wxSTC_LEX_APDL 61
398 #define wxSTC_LEX_BASH 62
399 #define wxSTC_LEX_ASN1 63
400 #define wxSTC_LEX_VHDL 64
401 #define wxSTC_LEX_CAML 65
402 #define wxSTC_LEX_BLITZBASIC 66
403 #define wxSTC_LEX_PUREBASIC 67
404 #define wxSTC_LEX_HASKELL 68
405 #define wxSTC_LEX_PHPSCRIPT 69
406 #define wxSTC_LEX_TADS3 70
407 #define wxSTC_LEX_REBOL 71
408 #define wxSTC_LEX_SMALLTALK 72
409 #define wxSTC_LEX_FLAGSHIP 73
410 #define wxSTC_LEX_CSOUND 74
411 #define wxSTC_LEX_FREEBASIC 75
412 #define wxSTC_LEX_INNOSETUP 76
413 #define wxSTC_LEX_OPAL 77
414 #define wxSTC_LEX_SPICE 78
415 #define wxSTC_LEX_D 79
416 #define wxSTC_LEX_CMAKE 80
417 #define wxSTC_LEX_GAP 81
418 #define wxSTC_LEX_PLM 82
419 #define wxSTC_LEX_PROGRESS 83
420 #define wxSTC_LEX_ABAQUS 84
421 #define wxSTC_LEX_ASYMPTOTE 85
422 #define wxSTC_LEX_R 86
423
424 // When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
425 // value assigned in sequence from SCLEX_AUTOMATIC+1.
426 #define wxSTC_LEX_AUTOMATIC 1000
427
428 // Lexical states for SCLEX_PYTHON
429 #define wxSTC_P_DEFAULT 0
430 #define wxSTC_P_COMMENTLINE 1
431 #define wxSTC_P_NUMBER 2
432 #define wxSTC_P_STRING 3
433 #define wxSTC_P_CHARACTER 4
434 #define wxSTC_P_WORD 5
435 #define wxSTC_P_TRIPLE 6
436 #define wxSTC_P_TRIPLEDOUBLE 7
437 #define wxSTC_P_CLASSNAME 8
438 #define wxSTC_P_DEFNAME 9
439 #define wxSTC_P_OPERATOR 10
440 #define wxSTC_P_IDENTIFIER 11
441 #define wxSTC_P_COMMENTBLOCK 12
442 #define wxSTC_P_STRINGEOL 13
443 #define wxSTC_P_WORD2 14
444 #define wxSTC_P_DECORATOR 15
445
446 // Lexical states for SCLEX_CPP
447 #define wxSTC_C_DEFAULT 0
448 #define wxSTC_C_COMMENT 1
449 #define wxSTC_C_COMMENTLINE 2
450 #define wxSTC_C_COMMENTDOC 3
451 #define wxSTC_C_NUMBER 4
452 #define wxSTC_C_WORD 5
453 #define wxSTC_C_STRING 6
454 #define wxSTC_C_CHARACTER 7
455 #define wxSTC_C_UUID 8
456 #define wxSTC_C_PREPROCESSOR 9
457 #define wxSTC_C_OPERATOR 10
458 #define wxSTC_C_IDENTIFIER 11
459 #define wxSTC_C_STRINGEOL 12
460 #define wxSTC_C_VERBATIM 13
461 #define wxSTC_C_REGEX 14
462 #define wxSTC_C_COMMENTLINEDOC 15
463 #define wxSTC_C_WORD2 16
464 #define wxSTC_C_COMMENTDOCKEYWORD 17
465 #define wxSTC_C_COMMENTDOCKEYWORDERROR 18
466 #define wxSTC_C_GLOBALCLASS 19
467
468 // Lexical states for SCLEX_D
469 #define wxSTC_D_DEFAULT 0
470 #define wxSTC_D_COMMENT 1
471 #define wxSTC_D_COMMENTLINE 2
472 #define wxSTC_D_COMMENTDOC 3
473 #define wxSTC_D_COMMENTNESTED 4
474 #define wxSTC_D_NUMBER 5
475 #define wxSTC_D_WORD 6
476 #define wxSTC_D_WORD2 7
477 #define wxSTC_D_WORD3 8
478 #define wxSTC_D_TYPEDEF 9
479 #define wxSTC_D_STRING 10
480 #define wxSTC_D_STRINGEOL 11
481 #define wxSTC_D_CHARACTER 12
482 #define wxSTC_D_OPERATOR 13
483 #define wxSTC_D_IDENTIFIER 14
484 #define wxSTC_D_COMMENTLINEDOC 15
485 #define wxSTC_D_COMMENTDOCKEYWORD 16
486 #define wxSTC_D_COMMENTDOCKEYWORDERROR 17
487
488 // Lexical states for SCLEX_TCL
489 #define wxSTC_TCL_DEFAULT 0
490 #define wxSTC_TCL_COMMENT 1
491 #define wxSTC_TCL_COMMENTLINE 2
492 #define wxSTC_TCL_NUMBER 3
493 #define wxSTC_TCL_WORD_IN_QUOTE 4
494 #define wxSTC_TCL_IN_QUOTE 5
495 #define wxSTC_TCL_OPERATOR 6
496 #define wxSTC_TCL_IDENTIFIER 7
497 #define wxSTC_TCL_SUBSTITUTION 8
498 #define wxSTC_TCL_SUB_BRACE 9
499 #define wxSTC_TCL_MODIFIER 10
500 #define wxSTC_TCL_EXPAND 11
501 #define wxSTC_TCL_WORD 12
502 #define wxSTC_TCL_WORD2 13
503 #define wxSTC_TCL_WORD3 14
504 #define wxSTC_TCL_WORD4 15
505 #define wxSTC_TCL_WORD5 16
506 #define wxSTC_TCL_WORD6 17
507 #define wxSTC_TCL_WORD7 18
508 #define wxSTC_TCL_WORD8 19
509 #define wxSTC_TCL_COMMENT_BOX 20
510 #define wxSTC_TCL_BLOCK_COMMENT 21
511
512 // Lexical states for SCLEX_HTML, SCLEX_XML
513 #define wxSTC_H_DEFAULT 0
514 #define wxSTC_H_TAG 1
515 #define wxSTC_H_TAGUNKNOWN 2
516 #define wxSTC_H_ATTRIBUTE 3
517 #define wxSTC_H_ATTRIBUTEUNKNOWN 4
518 #define wxSTC_H_NUMBER 5
519 #define wxSTC_H_DOUBLESTRING 6
520 #define wxSTC_H_SINGLESTRING 7
521 #define wxSTC_H_OTHER 8
522 #define wxSTC_H_COMMENT 9
523 #define wxSTC_H_ENTITY 10
524
525 // XML and ASP
526 #define wxSTC_H_TAGEND 11
527 #define wxSTC_H_XMLSTART 12
528 #define wxSTC_H_XMLEND 13
529 #define wxSTC_H_SCRIPT 14
530 #define wxSTC_H_ASP 15
531 #define wxSTC_H_ASPAT 16
532 #define wxSTC_H_CDATA 17
533 #define wxSTC_H_QUESTION 18
534
535 // More HTML
536 #define wxSTC_H_VALUE 19
537
538 // X-Code
539 #define wxSTC_H_XCCOMMENT 20
540
541 // SGML
542 #define wxSTC_H_SGML_DEFAULT 21
543 #define wxSTC_H_SGML_COMMAND 22
544 #define wxSTC_H_SGML_1ST_PARAM 23
545 #define wxSTC_H_SGML_DOUBLESTRING 24
546 #define wxSTC_H_SGML_SIMPLESTRING 25
547 #define wxSTC_H_SGML_ERROR 26
548 #define wxSTC_H_SGML_SPECIAL 27
549 #define wxSTC_H_SGML_ENTITY 28
550 #define wxSTC_H_SGML_COMMENT 29
551 #define wxSTC_H_SGML_1ST_PARAM_COMMENT 30
552 #define wxSTC_H_SGML_BLOCK_DEFAULT 31
553
554 // Embedded Javascript
555 #define wxSTC_HJ_START 40
556 #define wxSTC_HJ_DEFAULT 41
557 #define wxSTC_HJ_COMMENT 42
558 #define wxSTC_HJ_COMMENTLINE 43
559 #define wxSTC_HJ_COMMENTDOC 44
560 #define wxSTC_HJ_NUMBER 45
561 #define wxSTC_HJ_WORD 46
562 #define wxSTC_HJ_KEYWORD 47
563 #define wxSTC_HJ_DOUBLESTRING 48
564 #define wxSTC_HJ_SINGLESTRING 49
565 #define wxSTC_HJ_SYMBOLS 50
566 #define wxSTC_HJ_STRINGEOL 51
567 #define wxSTC_HJ_REGEX 52
568
569 // ASP Javascript
570 #define wxSTC_HJA_START 55
571 #define wxSTC_HJA_DEFAULT 56
572 #define wxSTC_HJA_COMMENT 57
573 #define wxSTC_HJA_COMMENTLINE 58
574 #define wxSTC_HJA_COMMENTDOC 59
575 #define wxSTC_HJA_NUMBER 60
576 #define wxSTC_HJA_WORD 61
577 #define wxSTC_HJA_KEYWORD 62
578 #define wxSTC_HJA_DOUBLESTRING 63
579 #define wxSTC_HJA_SINGLESTRING 64
580 #define wxSTC_HJA_SYMBOLS 65
581 #define wxSTC_HJA_STRINGEOL 66
582 #define wxSTC_HJA_REGEX 67
583
584 // Embedded VBScript
585 #define wxSTC_HB_START 70
586 #define wxSTC_HB_DEFAULT 71
587 #define wxSTC_HB_COMMENTLINE 72
588 #define wxSTC_HB_NUMBER 73
589 #define wxSTC_HB_WORD 74
590 #define wxSTC_HB_STRING 75
591 #define wxSTC_HB_IDENTIFIER 76
592 #define wxSTC_HB_STRINGEOL 77
593
594 // ASP VBScript
595 #define wxSTC_HBA_START 80
596 #define wxSTC_HBA_DEFAULT 81
597 #define wxSTC_HBA_COMMENTLINE 82
598 #define wxSTC_HBA_NUMBER 83
599 #define wxSTC_HBA_WORD 84
600 #define wxSTC_HBA_STRING 85
601 #define wxSTC_HBA_IDENTIFIER 86
602 #define wxSTC_HBA_STRINGEOL 87
603
604 // Embedded Python
605 #define wxSTC_HP_START 90
606 #define wxSTC_HP_DEFAULT 91
607 #define wxSTC_HP_COMMENTLINE 92
608 #define wxSTC_HP_NUMBER 93
609 #define wxSTC_HP_STRING 94
610 #define wxSTC_HP_CHARACTER 95
611 #define wxSTC_HP_WORD 96
612 #define wxSTC_HP_TRIPLE 97
613 #define wxSTC_HP_TRIPLEDOUBLE 98
614 #define wxSTC_HP_CLASSNAME 99
615 #define wxSTC_HP_DEFNAME 100
616 #define wxSTC_HP_OPERATOR 101
617 #define wxSTC_HP_IDENTIFIER 102
618
619 // PHP
620 #define wxSTC_HPHP_COMPLEX_VARIABLE 104
621
622 // ASP Python
623 #define wxSTC_HPA_START 105
624 #define wxSTC_HPA_DEFAULT 106
625 #define wxSTC_HPA_COMMENTLINE 107
626 #define wxSTC_HPA_NUMBER 108
627 #define wxSTC_HPA_STRING 109
628 #define wxSTC_HPA_CHARACTER 110
629 #define wxSTC_HPA_WORD 111
630 #define wxSTC_HPA_TRIPLE 112
631 #define wxSTC_HPA_TRIPLEDOUBLE 113
632 #define wxSTC_HPA_CLASSNAME 114
633 #define wxSTC_HPA_DEFNAME 115
634 #define wxSTC_HPA_OPERATOR 116
635 #define wxSTC_HPA_IDENTIFIER 117
636
637 // PHP
638 #define wxSTC_HPHP_DEFAULT 118
639 #define wxSTC_HPHP_HSTRING 119
640 #define wxSTC_HPHP_SIMPLESTRING 120
641 #define wxSTC_HPHP_WORD 121
642 #define wxSTC_HPHP_NUMBER 122
643 #define wxSTC_HPHP_VARIABLE 123
644 #define wxSTC_HPHP_COMMENT 124
645 #define wxSTC_HPHP_COMMENTLINE 125
646 #define wxSTC_HPHP_HSTRING_VARIABLE 126
647 #define wxSTC_HPHP_OPERATOR 127
648
649 // Lexical states for SCLEX_PERL
650 #define wxSTC_PL_DEFAULT 0
651 #define wxSTC_PL_ERROR 1
652 #define wxSTC_PL_COMMENTLINE 2
653 #define wxSTC_PL_POD 3
654 #define wxSTC_PL_NUMBER 4
655 #define wxSTC_PL_WORD 5
656 #define wxSTC_PL_STRING 6
657 #define wxSTC_PL_CHARACTER 7
658 #define wxSTC_PL_PUNCTUATION 8
659 #define wxSTC_PL_PREPROCESSOR 9
660 #define wxSTC_PL_OPERATOR 10
661 #define wxSTC_PL_IDENTIFIER 11
662 #define wxSTC_PL_SCALAR 12
663 #define wxSTC_PL_ARRAY 13
664 #define wxSTC_PL_HASH 14
665 #define wxSTC_PL_SYMBOLTABLE 15
666 #define wxSTC_PL_VARIABLE_INDEXER 16
667 #define wxSTC_PL_REGEX 17
668 #define wxSTC_PL_REGSUBST 18
669 #define wxSTC_PL_LONGQUOTE 19
670 #define wxSTC_PL_BACKTICKS 20
671 #define wxSTC_PL_DATASECTION 21
672 #define wxSTC_PL_HERE_DELIM 22
673 #define wxSTC_PL_HERE_Q 23
674 #define wxSTC_PL_HERE_QQ 24
675 #define wxSTC_PL_HERE_QX 25
676 #define wxSTC_PL_STRING_Q 26
677 #define wxSTC_PL_STRING_QQ 27
678 #define wxSTC_PL_STRING_QX 28
679 #define wxSTC_PL_STRING_QR 29
680 #define wxSTC_PL_STRING_QW 30
681 #define wxSTC_PL_POD_VERB 31
682 #define wxSTC_PL_SUB_PROTOTYPE 40
683 #define wxSTC_PL_FORMAT_IDENT 41
684 #define wxSTC_PL_FORMAT 42
685
686 // Lexical states for SCLEX_RUBY
687 #define wxSTC_RB_DEFAULT 0
688 #define wxSTC_RB_ERROR 1
689 #define wxSTC_RB_COMMENTLINE 2
690 #define wxSTC_RB_POD 3
691 #define wxSTC_RB_NUMBER 4
692 #define wxSTC_RB_WORD 5
693 #define wxSTC_RB_STRING 6
694 #define wxSTC_RB_CHARACTER 7
695 #define wxSTC_RB_CLASSNAME 8
696 #define wxSTC_RB_DEFNAME 9
697 #define wxSTC_RB_OPERATOR 10
698 #define wxSTC_RB_IDENTIFIER 11
699 #define wxSTC_RB_REGEX 12
700 #define wxSTC_RB_GLOBAL 13
701 #define wxSTC_RB_SYMBOL 14
702 #define wxSTC_RB_MODULE_NAME 15
703 #define wxSTC_RB_INSTANCE_VAR 16
704 #define wxSTC_RB_CLASS_VAR 17
705 #define wxSTC_RB_BACKTICKS 18
706 #define wxSTC_RB_DATASECTION 19
707 #define wxSTC_RB_HERE_DELIM 20
708 #define wxSTC_RB_HERE_Q 21
709 #define wxSTC_RB_HERE_QQ 22
710 #define wxSTC_RB_HERE_QX 23
711 #define wxSTC_RB_STRING_Q 24
712 #define wxSTC_RB_STRING_QQ 25
713 #define wxSTC_RB_STRING_QX 26
714 #define wxSTC_RB_STRING_QR 27
715 #define wxSTC_RB_STRING_QW 28
716 #define wxSTC_RB_WORD_DEMOTED 29
717 #define wxSTC_RB_STDIN 30
718 #define wxSTC_RB_STDOUT 31
719 #define wxSTC_RB_STDERR 40
720 #define wxSTC_RB_UPPER_BOUND 41
721
722 // Lexical states for SCLEX_VB, SCLEX_VBSCRIPT, SCLEX_POWERBASIC
723 #define wxSTC_B_DEFAULT 0
724 #define wxSTC_B_COMMENT 1
725 #define wxSTC_B_NUMBER 2
726 #define wxSTC_B_KEYWORD 3
727 #define wxSTC_B_STRING 4
728 #define wxSTC_B_PREPROCESSOR 5
729 #define wxSTC_B_OPERATOR 6
730 #define wxSTC_B_IDENTIFIER 7
731 #define wxSTC_B_DATE 8
732 #define wxSTC_B_STRINGEOL 9
733 #define wxSTC_B_KEYWORD2 10
734 #define wxSTC_B_KEYWORD3 11
735 #define wxSTC_B_KEYWORD4 12
736 #define wxSTC_B_CONSTANT 13
737 #define wxSTC_B_ASM 14
738 #define wxSTC_B_LABEL 15
739 #define wxSTC_B_ERROR 16
740 #define wxSTC_B_HEXNUMBER 17
741 #define wxSTC_B_BINNUMBER 18
742
743 // Lexical states for SCLEX_PROPERTIES
744 #define wxSTC_PROPS_DEFAULT 0
745 #define wxSTC_PROPS_COMMENT 1
746 #define wxSTC_PROPS_SECTION 2
747 #define wxSTC_PROPS_ASSIGNMENT 3
748 #define wxSTC_PROPS_DEFVAL 4
749 #define wxSTC_PROPS_KEY 5
750
751 // Lexical states for SCLEX_LATEX
752 #define wxSTC_L_DEFAULT 0
753 #define wxSTC_L_COMMAND 1
754 #define wxSTC_L_TAG 2
755 #define wxSTC_L_MATH 3
756 #define wxSTC_L_COMMENT 4
757
758 // Lexical states for SCLEX_LUA
759 #define wxSTC_LUA_DEFAULT 0
760 #define wxSTC_LUA_COMMENT 1
761 #define wxSTC_LUA_COMMENTLINE 2
762 #define wxSTC_LUA_COMMENTDOC 3
763 #define wxSTC_LUA_NUMBER 4
764 #define wxSTC_LUA_WORD 5
765 #define wxSTC_LUA_STRING 6
766 #define wxSTC_LUA_CHARACTER 7
767 #define wxSTC_LUA_LITERALSTRING 8
768 #define wxSTC_LUA_PREPROCESSOR 9
769 #define wxSTC_LUA_OPERATOR 10
770 #define wxSTC_LUA_IDENTIFIER 11
771 #define wxSTC_LUA_STRINGEOL 12
772 #define wxSTC_LUA_WORD2 13
773 #define wxSTC_LUA_WORD3 14
774 #define wxSTC_LUA_WORD4 15
775 #define wxSTC_LUA_WORD5 16
776 #define wxSTC_LUA_WORD6 17
777 #define wxSTC_LUA_WORD7 18
778 #define wxSTC_LUA_WORD8 19
779
780 // Lexical states for SCLEX_ERRORLIST
781 #define wxSTC_ERR_DEFAULT 0
782 #define wxSTC_ERR_PYTHON 1
783 #define wxSTC_ERR_GCC 2
784 #define wxSTC_ERR_MS 3
785 #define wxSTC_ERR_CMD 4
786 #define wxSTC_ERR_BORLAND 5
787 #define wxSTC_ERR_PERL 6
788 #define wxSTC_ERR_NET 7
789 #define wxSTC_ERR_LUA 8
790 #define wxSTC_ERR_CTAG 9
791 #define wxSTC_ERR_DIFF_CHANGED 10
792 #define wxSTC_ERR_DIFF_ADDITION 11
793 #define wxSTC_ERR_DIFF_DELETION 12
794 #define wxSTC_ERR_DIFF_MESSAGE 13
795 #define wxSTC_ERR_PHP 14
796 #define wxSTC_ERR_ELF 15
797 #define wxSTC_ERR_IFC 16
798 #define wxSTC_ERR_IFORT 17
799 #define wxSTC_ERR_ABSF 18
800 #define wxSTC_ERR_TIDY 19
801 #define wxSTC_ERR_JAVA_STACK 20
802 #define wxSTC_ERR_VALUE 21
803
804 // Lexical states for SCLEX_BATCH
805 #define wxSTC_BAT_DEFAULT 0
806 #define wxSTC_BAT_COMMENT 1
807 #define wxSTC_BAT_WORD 2
808 #define wxSTC_BAT_LABEL 3
809 #define wxSTC_BAT_HIDE 4
810 #define wxSTC_BAT_COMMAND 5
811 #define wxSTC_BAT_IDENTIFIER 6
812 #define wxSTC_BAT_OPERATOR 7
813
814 // Lexical states for SCLEX_MAKEFILE
815 #define wxSTC_MAKE_DEFAULT 0
816 #define wxSTC_MAKE_COMMENT 1
817 #define wxSTC_MAKE_PREPROCESSOR 2
818 #define wxSTC_MAKE_IDENTIFIER 3
819 #define wxSTC_MAKE_OPERATOR 4
820 #define wxSTC_MAKE_TARGET 5
821 #define wxSTC_MAKE_IDEOL 9
822
823 // Lexical states for SCLEX_DIFF
824 #define wxSTC_DIFF_DEFAULT 0
825 #define wxSTC_DIFF_COMMENT 1
826 #define wxSTC_DIFF_COMMAND 2
827 #define wxSTC_DIFF_HEADER 3
828 #define wxSTC_DIFF_POSITION 4
829 #define wxSTC_DIFF_DELETED 5
830 #define wxSTC_DIFF_ADDED 6
831
832 // Lexical states for SCLEX_CONF (Apache Configuration Files Lexer)
833 #define wxSTC_CONF_DEFAULT 0
834 #define wxSTC_CONF_COMMENT 1
835 #define wxSTC_CONF_NUMBER 2
836 #define wxSTC_CONF_IDENTIFIER 3
837 #define wxSTC_CONF_EXTENSION 4
838 #define wxSTC_CONF_PARAMETER 5
839 #define wxSTC_CONF_STRING 6
840 #define wxSTC_CONF_OPERATOR 7
841 #define wxSTC_CONF_IP 8
842 #define wxSTC_CONF_DIRECTIVE 9
843
844 // Lexical states for SCLEX_AVE, Avenue
845 #define wxSTC_AVE_DEFAULT 0
846 #define wxSTC_AVE_COMMENT 1
847 #define wxSTC_AVE_NUMBER 2
848 #define wxSTC_AVE_WORD 3
849 #define wxSTC_AVE_STRING 6
850 #define wxSTC_AVE_ENUM 7
851 #define wxSTC_AVE_STRINGEOL 8
852 #define wxSTC_AVE_IDENTIFIER 9
853 #define wxSTC_AVE_OPERATOR 10
854 #define wxSTC_AVE_WORD1 11
855 #define wxSTC_AVE_WORD2 12
856 #define wxSTC_AVE_WORD3 13
857 #define wxSTC_AVE_WORD4 14
858 #define wxSTC_AVE_WORD5 15
859 #define wxSTC_AVE_WORD6 16
860
861 // Lexical states for SCLEX_ADA
862 #define wxSTC_ADA_DEFAULT 0
863 #define wxSTC_ADA_WORD 1
864 #define wxSTC_ADA_IDENTIFIER 2
865 #define wxSTC_ADA_NUMBER 3
866 #define wxSTC_ADA_DELIMITER 4
867 #define wxSTC_ADA_CHARACTER 5
868 #define wxSTC_ADA_CHARACTEREOL 6
869 #define wxSTC_ADA_STRING 7
870 #define wxSTC_ADA_STRINGEOL 8
871 #define wxSTC_ADA_LABEL 9
872 #define wxSTC_ADA_COMMENTLINE 10
873 #define wxSTC_ADA_ILLEGAL 11
874
875 // Lexical states for SCLEX_BAAN
876 #define wxSTC_BAAN_DEFAULT 0
877 #define wxSTC_BAAN_COMMENT 1
878 #define wxSTC_BAAN_COMMENTDOC 2
879 #define wxSTC_BAAN_NUMBER 3
880 #define wxSTC_BAAN_WORD 4
881 #define wxSTC_BAAN_STRING 5
882 #define wxSTC_BAAN_PREPROCESSOR 6
883 #define wxSTC_BAAN_OPERATOR 7
884 #define wxSTC_BAAN_IDENTIFIER 8
885 #define wxSTC_BAAN_STRINGEOL 9
886 #define wxSTC_BAAN_WORD2 10
887
888 // Lexical states for SCLEX_LISP
889 #define wxSTC_LISP_DEFAULT 0
890 #define wxSTC_LISP_COMMENT 1
891 #define wxSTC_LISP_NUMBER 2
892 #define wxSTC_LISP_KEYWORD 3
893 #define wxSTC_LISP_KEYWORD_KW 4
894 #define wxSTC_LISP_SYMBOL 5
895 #define wxSTC_LISP_STRING 6
896 #define wxSTC_LISP_STRINGEOL 8
897 #define wxSTC_LISP_IDENTIFIER 9
898 #define wxSTC_LISP_OPERATOR 10
899 #define wxSTC_LISP_SPECIAL 11
900 #define wxSTC_LISP_MULTI_COMMENT 12
901
902 // Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW
903 #define wxSTC_EIFFEL_DEFAULT 0
904 #define wxSTC_EIFFEL_COMMENTLINE 1
905 #define wxSTC_EIFFEL_NUMBER 2
906 #define wxSTC_EIFFEL_WORD 3
907 #define wxSTC_EIFFEL_STRING 4
908 #define wxSTC_EIFFEL_CHARACTER 5
909 #define wxSTC_EIFFEL_OPERATOR 6
910 #define wxSTC_EIFFEL_IDENTIFIER 7
911 #define wxSTC_EIFFEL_STRINGEOL 8
912
913 // Lexical states for SCLEX_NNCRONTAB (nnCron crontab Lexer)
914 #define wxSTC_NNCRONTAB_DEFAULT 0
915 #define wxSTC_NNCRONTAB_COMMENT 1
916 #define wxSTC_NNCRONTAB_TASK 2
917 #define wxSTC_NNCRONTAB_SECTION 3
918 #define wxSTC_NNCRONTAB_KEYWORD 4
919 #define wxSTC_NNCRONTAB_MODIFIER 5
920 #define wxSTC_NNCRONTAB_ASTERISK 6
921 #define wxSTC_NNCRONTAB_NUMBER 7
922 #define wxSTC_NNCRONTAB_STRING 8
923 #define wxSTC_NNCRONTAB_ENVIRONMENT 9
924 #define wxSTC_NNCRONTAB_IDENTIFIER 10
925
926 // Lexical states for SCLEX_FORTH (Forth Lexer)
927 #define wxSTC_FORTH_DEFAULT 0
928 #define wxSTC_FORTH_COMMENT 1
929 #define wxSTC_FORTH_COMMENT_ML 2
930 #define wxSTC_FORTH_IDENTIFIER 3
931 #define wxSTC_FORTH_CONTROL 4
932 #define wxSTC_FORTH_KEYWORD 5
933 #define wxSTC_FORTH_DEFWORD 6
934 #define wxSTC_FORTH_PREWORD1 7
935 #define wxSTC_FORTH_PREWORD2 8
936 #define wxSTC_FORTH_NUMBER 9
937 #define wxSTC_FORTH_STRING 10
938 #define wxSTC_FORTH_LOCALE 11
939
940 // Lexical states for SCLEX_MATLAB
941 #define wxSTC_MATLAB_DEFAULT 0
942 #define wxSTC_MATLAB_COMMENT 1
943 #define wxSTC_MATLAB_COMMAND 2
944 #define wxSTC_MATLAB_NUMBER 3
945 #define wxSTC_MATLAB_KEYWORD 4
946
947 // single quoted string
948 #define wxSTC_MATLAB_STRING 5
949 #define wxSTC_MATLAB_OPERATOR 6
950 #define wxSTC_MATLAB_IDENTIFIER 7
951 #define wxSTC_MATLAB_DOUBLEQUOTESTRING 8
952
953 // Lexical states for SCLEX_SCRIPTOL
954 #define wxSTC_SCRIPTOL_DEFAULT 0
955 #define wxSTC_SCRIPTOL_WHITE 1
956 #define wxSTC_SCRIPTOL_COMMENTLINE 2
957 #define wxSTC_SCRIPTOL_PERSISTENT 3
958 #define wxSTC_SCRIPTOL_CSTYLE 4
959 #define wxSTC_SCRIPTOL_COMMENTBLOCK 5
960 #define wxSTC_SCRIPTOL_NUMBER 6
961 #define wxSTC_SCRIPTOL_STRING 7
962 #define wxSTC_SCRIPTOL_CHARACTER 8
963 #define wxSTC_SCRIPTOL_STRINGEOL 9
964 #define wxSTC_SCRIPTOL_KEYWORD 10
965 #define wxSTC_SCRIPTOL_OPERATOR 11
966 #define wxSTC_SCRIPTOL_IDENTIFIER 12
967 #define wxSTC_SCRIPTOL_TRIPLE 13
968 #define wxSTC_SCRIPTOL_CLASSNAME 14
969 #define wxSTC_SCRIPTOL_PREPROCESSOR 15
970
971 // Lexical states for SCLEX_ASM
972 #define wxSTC_ASM_DEFAULT 0
973 #define wxSTC_ASM_COMMENT 1
974 #define wxSTC_ASM_NUMBER 2
975 #define wxSTC_ASM_STRING 3
976 #define wxSTC_ASM_OPERATOR 4
977 #define wxSTC_ASM_IDENTIFIER 5
978 #define wxSTC_ASM_CPUINSTRUCTION 6
979 #define wxSTC_ASM_MATHINSTRUCTION 7
980 #define wxSTC_ASM_REGISTER 8
981 #define wxSTC_ASM_DIRECTIVE 9
982 #define wxSTC_ASM_DIRECTIVEOPERAND 10
983 #define wxSTC_ASM_COMMENTBLOCK 11
984 #define wxSTC_ASM_CHARACTER 12
985 #define wxSTC_ASM_STRINGEOL 13
986 #define wxSTC_ASM_EXTINSTRUCTION 14
987
988 // Lexical states for SCLEX_FORTRAN
989 #define wxSTC_F_DEFAULT 0
990 #define wxSTC_F_COMMENT 1
991 #define wxSTC_F_NUMBER 2
992 #define wxSTC_F_STRING1 3
993 #define wxSTC_F_STRING2 4
994 #define wxSTC_F_STRINGEOL 5
995 #define wxSTC_F_OPERATOR 6
996 #define wxSTC_F_IDENTIFIER 7
997 #define wxSTC_F_WORD 8
998 #define wxSTC_F_WORD2 9
999 #define wxSTC_F_WORD3 10
1000 #define wxSTC_F_PREPROCESSOR 11
1001 #define wxSTC_F_OPERATOR2 12
1002 #define wxSTC_F_LABEL 13
1003 #define wxSTC_F_CONTINUATION 14
1004
1005 // Lexical states for SCLEX_CSS
1006 #define wxSTC_CSS_DEFAULT 0
1007 #define wxSTC_CSS_TAG 1
1008 #define wxSTC_CSS_CLASS 2
1009 #define wxSTC_CSS_PSEUDOCLASS 3
1010 #define wxSTC_CSS_UNKNOWN_PSEUDOCLASS 4
1011 #define wxSTC_CSS_OPERATOR 5
1012 #define wxSTC_CSS_IDENTIFIER 6
1013 #define wxSTC_CSS_UNKNOWN_IDENTIFIER 7
1014 #define wxSTC_CSS_VALUE 8
1015 #define wxSTC_CSS_COMMENT 9
1016 #define wxSTC_CSS_ID 10
1017 #define wxSTC_CSS_IMPORTANT 11
1018 #define wxSTC_CSS_DIRECTIVE 12
1019 #define wxSTC_CSS_DOUBLESTRING 13
1020 #define wxSTC_CSS_SINGLESTRING 14
1021 #define wxSTC_CSS_IDENTIFIER2 15
1022 #define wxSTC_CSS_ATTRIBUTE 16
1023
1024 // Lexical states for SCLEX_POV
1025 #define wxSTC_POV_DEFAULT 0
1026 #define wxSTC_POV_COMMENT 1
1027 #define wxSTC_POV_COMMENTLINE 2
1028 #define wxSTC_POV_NUMBER 3
1029 #define wxSTC_POV_OPERATOR 4
1030 #define wxSTC_POV_IDENTIFIER 5
1031 #define wxSTC_POV_STRING 6
1032 #define wxSTC_POV_STRINGEOL 7
1033 #define wxSTC_POV_DIRECTIVE 8
1034 #define wxSTC_POV_BADDIRECTIVE 9
1035 #define wxSTC_POV_WORD2 10
1036 #define wxSTC_POV_WORD3 11
1037 #define wxSTC_POV_WORD4 12
1038 #define wxSTC_POV_WORD5 13
1039 #define wxSTC_POV_WORD6 14
1040 #define wxSTC_POV_WORD7 15
1041 #define wxSTC_POV_WORD8 16
1042
1043 // Lexical states for SCLEX_LOUT
1044 #define wxSTC_LOUT_DEFAULT 0
1045 #define wxSTC_LOUT_COMMENT 1
1046 #define wxSTC_LOUT_NUMBER 2
1047 #define wxSTC_LOUT_WORD 3
1048 #define wxSTC_LOUT_WORD2 4
1049 #define wxSTC_LOUT_WORD3 5
1050 #define wxSTC_LOUT_WORD4 6
1051 #define wxSTC_LOUT_STRING 7
1052 #define wxSTC_LOUT_OPERATOR 8
1053 #define wxSTC_LOUT_IDENTIFIER 9
1054 #define wxSTC_LOUT_STRINGEOL 10
1055
1056 // Lexical states for SCLEX_ESCRIPT
1057 #define wxSTC_ESCRIPT_DEFAULT 0
1058 #define wxSTC_ESCRIPT_COMMENT 1
1059 #define wxSTC_ESCRIPT_COMMENTLINE 2
1060 #define wxSTC_ESCRIPT_COMMENTDOC 3
1061 #define wxSTC_ESCRIPT_NUMBER 4
1062 #define wxSTC_ESCRIPT_WORD 5
1063 #define wxSTC_ESCRIPT_STRING 6
1064 #define wxSTC_ESCRIPT_OPERATOR 7
1065 #define wxSTC_ESCRIPT_IDENTIFIER 8
1066 #define wxSTC_ESCRIPT_BRACE 9
1067 #define wxSTC_ESCRIPT_WORD2 10
1068 #define wxSTC_ESCRIPT_WORD3 11
1069
1070 // Lexical states for SCLEX_PS
1071 #define wxSTC_PS_DEFAULT 0
1072 #define wxSTC_PS_COMMENT 1
1073 #define wxSTC_PS_DSC_COMMENT 2
1074 #define wxSTC_PS_DSC_VALUE 3
1075 #define wxSTC_PS_NUMBER 4
1076 #define wxSTC_PS_NAME 5
1077 #define wxSTC_PS_KEYWORD 6
1078 #define wxSTC_PS_LITERAL 7
1079 #define wxSTC_PS_IMMEVAL 8
1080 #define wxSTC_PS_PAREN_ARRAY 9
1081 #define wxSTC_PS_PAREN_DICT 10
1082 #define wxSTC_PS_PAREN_PROC 11
1083 #define wxSTC_PS_TEXT 12
1084 #define wxSTC_PS_HEXSTRING 13
1085 #define wxSTC_PS_BASE85STRING 14
1086 #define wxSTC_PS_BADSTRINGCHAR 15
1087
1088 // Lexical states for SCLEX_NSIS
1089 #define wxSTC_NSIS_DEFAULT 0
1090 #define wxSTC_NSIS_COMMENT 1
1091 #define wxSTC_NSIS_STRINGDQ 2
1092 #define wxSTC_NSIS_STRINGLQ 3
1093 #define wxSTC_NSIS_STRINGRQ 4
1094 #define wxSTC_NSIS_FUNCTION 5
1095 #define wxSTC_NSIS_VARIABLE 6
1096 #define wxSTC_NSIS_LABEL 7
1097 #define wxSTC_NSIS_USERDEFINED 8
1098 #define wxSTC_NSIS_SECTIONDEF 9
1099 #define wxSTC_NSIS_SUBSECTIONDEF 10
1100 #define wxSTC_NSIS_IFDEFINEDEF 11
1101 #define wxSTC_NSIS_MACRODEF 12
1102 #define wxSTC_NSIS_STRINGVAR 13
1103 #define wxSTC_NSIS_NUMBER 14
1104 #define wxSTC_NSIS_SECTIONGROUP 15
1105 #define wxSTC_NSIS_PAGEEX 16
1106 #define wxSTC_NSIS_FUNCTIONDEF 17
1107 #define wxSTC_NSIS_COMMENTBOX 18
1108
1109 // Lexical states for SCLEX_MMIXAL
1110 #define wxSTC_MMIXAL_LEADWS 0
1111 #define wxSTC_MMIXAL_COMMENT 1
1112 #define wxSTC_MMIXAL_LABEL 2
1113 #define wxSTC_MMIXAL_OPCODE 3
1114 #define wxSTC_MMIXAL_OPCODE_PRE 4
1115 #define wxSTC_MMIXAL_OPCODE_VALID 5
1116 #define wxSTC_MMIXAL_OPCODE_UNKNOWN 6
1117 #define wxSTC_MMIXAL_OPCODE_POST 7
1118 #define wxSTC_MMIXAL_OPERANDS 8
1119 #define wxSTC_MMIXAL_NUMBER 9
1120 #define wxSTC_MMIXAL_REF 10
1121 #define wxSTC_MMIXAL_CHAR 11
1122 #define wxSTC_MMIXAL_STRING 12
1123 #define wxSTC_MMIXAL_REGISTER 13
1124 #define wxSTC_MMIXAL_HEX 14
1125 #define wxSTC_MMIXAL_OPERATOR 15
1126 #define wxSTC_MMIXAL_SYMBOL 16
1127 #define wxSTC_MMIXAL_INCLUDE 17
1128
1129 // Lexical states for SCLEX_CLW
1130 #define wxSTC_CLW_DEFAULT 0
1131 #define wxSTC_CLW_LABEL 1
1132 #define wxSTC_CLW_COMMENT 2
1133 #define wxSTC_CLW_STRING 3
1134 #define wxSTC_CLW_USER_IDENTIFIER 4
1135 #define wxSTC_CLW_INTEGER_CONSTANT 5
1136 #define wxSTC_CLW_REAL_CONSTANT 6
1137 #define wxSTC_CLW_PICTURE_STRING 7
1138 #define wxSTC_CLW_KEYWORD 8
1139 #define wxSTC_CLW_COMPILER_DIRECTIVE 9
1140 #define wxSTC_CLW_RUNTIME_EXPRESSIONS 10
1141 #define wxSTC_CLW_BUILTIN_PROCEDURES_FUNCTION 11
1142 #define wxSTC_CLW_STRUCTURE_DATA_TYPE 12
1143 #define wxSTC_CLW_ATTRIBUTE 13
1144 #define wxSTC_CLW_STANDARD_EQUATE 14
1145 #define wxSTC_CLW_ERROR 15
1146 #define wxSTC_CLW_DEPRECATED 16
1147
1148 // Lexical states for SCLEX_LOT
1149 #define wxSTC_LOT_DEFAULT 0
1150 #define wxSTC_LOT_HEADER 1
1151 #define wxSTC_LOT_BREAK 2
1152 #define wxSTC_LOT_SET 3
1153 #define wxSTC_LOT_PASS 4
1154 #define wxSTC_LOT_FAIL 5
1155 #define wxSTC_LOT_ABORT 6
1156
1157 // Lexical states for SCLEX_YAML
1158 #define wxSTC_YAML_DEFAULT 0
1159 #define wxSTC_YAML_COMMENT 1
1160 #define wxSTC_YAML_IDENTIFIER 2
1161 #define wxSTC_YAML_KEYWORD 3
1162 #define wxSTC_YAML_NUMBER 4
1163 #define wxSTC_YAML_REFERENCE 5
1164 #define wxSTC_YAML_DOCUMENT 6
1165 #define wxSTC_YAML_TEXT 7
1166 #define wxSTC_YAML_ERROR 8
1167 #define wxSTC_YAML_OPERATOR 9
1168
1169 // Lexical states for SCLEX_TEX
1170 #define wxSTC_TEX_DEFAULT 0
1171 #define wxSTC_TEX_SPECIAL 1
1172 #define wxSTC_TEX_GROUP 2
1173 #define wxSTC_TEX_SYMBOL 3
1174 #define wxSTC_TEX_COMMAND 4
1175 #define wxSTC_TEX_TEXT 5
1176 #define wxSTC_METAPOST_DEFAULT 0
1177 #define wxSTC_METAPOST_SPECIAL 1
1178 #define wxSTC_METAPOST_GROUP 2
1179 #define wxSTC_METAPOST_SYMBOL 3
1180 #define wxSTC_METAPOST_COMMAND 4
1181 #define wxSTC_METAPOST_TEXT 5
1182 #define wxSTC_METAPOST_EXTRA 6
1183
1184 // Lexical states for SCLEX_ERLANG
1185 #define wxSTC_ERLANG_DEFAULT 0
1186 #define wxSTC_ERLANG_COMMENT 1
1187 #define wxSTC_ERLANG_VARIABLE 2
1188 #define wxSTC_ERLANG_NUMBER 3
1189 #define wxSTC_ERLANG_KEYWORD 4
1190 #define wxSTC_ERLANG_STRING 5
1191 #define wxSTC_ERLANG_OPERATOR 6
1192 #define wxSTC_ERLANG_ATOM 7
1193 #define wxSTC_ERLANG_FUNCTION_NAME 8
1194 #define wxSTC_ERLANG_CHARACTER 9
1195 #define wxSTC_ERLANG_MACRO 10
1196 #define wxSTC_ERLANG_RECORD 11
1197 #define wxSTC_ERLANG_SEPARATOR 12
1198 #define wxSTC_ERLANG_NODE_NAME 13
1199 #define wxSTC_ERLANG_UNKNOWN 31
1200
1201 // Lexical states for SCLEX_OCTAVE are identical to MatLab
1202 // Lexical states for SCLEX_MSSQL
1203 #define wxSTC_MSSQL_DEFAULT 0
1204 #define wxSTC_MSSQL_COMMENT 1
1205 #define wxSTC_MSSQL_LINE_COMMENT 2
1206 #define wxSTC_MSSQL_NUMBER 3
1207 #define wxSTC_MSSQL_STRING 4
1208 #define wxSTC_MSSQL_OPERATOR 5
1209 #define wxSTC_MSSQL_IDENTIFIER 6
1210 #define wxSTC_MSSQL_VARIABLE 7
1211 #define wxSTC_MSSQL_COLUMN_NAME 8
1212 #define wxSTC_MSSQL_STATEMENT 9
1213 #define wxSTC_MSSQL_DATATYPE 10
1214 #define wxSTC_MSSQL_SYSTABLE 11
1215 #define wxSTC_MSSQL_GLOBAL_VARIABLE 12
1216 #define wxSTC_MSSQL_FUNCTION 13
1217 #define wxSTC_MSSQL_STORED_PROCEDURE 14
1218 #define wxSTC_MSSQL_DEFAULT_PREF_DATATYPE 15
1219 #define wxSTC_MSSQL_COLUMN_NAME_2 16
1220
1221 // Lexical states for SCLEX_VERILOG
1222 #define wxSTC_V_DEFAULT 0
1223 #define wxSTC_V_COMMENT 1
1224 #define wxSTC_V_COMMENTLINE 2
1225 #define wxSTC_V_COMMENTLINEBANG 3
1226 #define wxSTC_V_NUMBER 4
1227 #define wxSTC_V_WORD 5
1228 #define wxSTC_V_STRING 6
1229 #define wxSTC_V_WORD2 7
1230 #define wxSTC_V_WORD3 8
1231 #define wxSTC_V_PREPROCESSOR 9
1232 #define wxSTC_V_OPERATOR 10
1233 #define wxSTC_V_IDENTIFIER 11
1234 #define wxSTC_V_STRINGEOL 12
1235 #define wxSTC_V_USER 19
1236
1237 // Lexical states for SCLEX_KIX
1238 #define wxSTC_KIX_DEFAULT 0
1239 #define wxSTC_KIX_COMMENT 1
1240 #define wxSTC_KIX_STRING1 2
1241 #define wxSTC_KIX_STRING2 3
1242 #define wxSTC_KIX_NUMBER 4
1243 #define wxSTC_KIX_VAR 5
1244 #define wxSTC_KIX_MACRO 6
1245 #define wxSTC_KIX_KEYWORD 7
1246 #define wxSTC_KIX_FUNCTIONS 8
1247 #define wxSTC_KIX_OPERATOR 9
1248 #define wxSTC_KIX_IDENTIFIER 31
1249
1250 // Lexical states for SCLEX_GUI4CLI
1251 #define wxSTC_GC_DEFAULT 0
1252 #define wxSTC_GC_COMMENTLINE 1
1253 #define wxSTC_GC_COMMENTBLOCK 2
1254 #define wxSTC_GC_GLOBAL 3
1255 #define wxSTC_GC_EVENT 4
1256 #define wxSTC_GC_ATTRIBUTE 5
1257 #define wxSTC_GC_CONTROL 6
1258 #define wxSTC_GC_COMMAND 7
1259 #define wxSTC_GC_STRING 8
1260 #define wxSTC_GC_OPERATOR 9
1261
1262 // Lexical states for SCLEX_SPECMAN
1263 #define wxSTC_SN_DEFAULT 0
1264 #define wxSTC_SN_CODE 1
1265 #define wxSTC_SN_COMMENTLINE 2
1266 #define wxSTC_SN_COMMENTLINEBANG 3
1267 #define wxSTC_SN_NUMBER 4
1268 #define wxSTC_SN_WORD 5
1269 #define wxSTC_SN_STRING 6
1270 #define wxSTC_SN_WORD2 7
1271 #define wxSTC_SN_WORD3 8
1272 #define wxSTC_SN_PREPROCESSOR 9
1273 #define wxSTC_SN_OPERATOR 10
1274 #define wxSTC_SN_IDENTIFIER 11
1275 #define wxSTC_SN_STRINGEOL 12
1276 #define wxSTC_SN_REGEXTAG 13
1277 #define wxSTC_SN_SIGNAL 14
1278 #define wxSTC_SN_USER 19
1279
1280 // Lexical states for SCLEX_AU3
1281 #define wxSTC_AU3_DEFAULT 0
1282 #define wxSTC_AU3_COMMENT 1
1283 #define wxSTC_AU3_COMMENTBLOCK 2
1284 #define wxSTC_AU3_NUMBER 3
1285 #define wxSTC_AU3_FUNCTION 4
1286 #define wxSTC_AU3_KEYWORD 5
1287 #define wxSTC_AU3_MACRO 6
1288 #define wxSTC_AU3_STRING 7
1289 #define wxSTC_AU3_OPERATOR 8
1290 #define wxSTC_AU3_VARIABLE 9
1291 #define wxSTC_AU3_SENT 10
1292 #define wxSTC_AU3_PREPROCESSOR 11
1293 #define wxSTC_AU3_SPECIAL 12
1294 #define wxSTC_AU3_EXPAND 13
1295 #define wxSTC_AU3_COMOBJ 14
1296 #define wxSTC_AU3_UDF 15
1297
1298 // Lexical states for SCLEX_APDL
1299 #define wxSTC_APDL_DEFAULT 0
1300 #define wxSTC_APDL_COMMENT 1
1301 #define wxSTC_APDL_COMMENTBLOCK 2
1302 #define wxSTC_APDL_NUMBER 3
1303 #define wxSTC_APDL_STRING 4
1304 #define wxSTC_APDL_OPERATOR 5
1305 #define wxSTC_APDL_WORD 6
1306 #define wxSTC_APDL_PROCESSOR 7
1307 #define wxSTC_APDL_COMMAND 8
1308 #define wxSTC_APDL_SLASHCOMMAND 9
1309 #define wxSTC_APDL_STARCOMMAND 10
1310 #define wxSTC_APDL_ARGUMENT 11
1311 #define wxSTC_APDL_FUNCTION 12
1312
1313 // Lexical states for SCLEX_BASH
1314 #define wxSTC_SH_DEFAULT 0
1315 #define wxSTC_SH_ERROR 1
1316 #define wxSTC_SH_COMMENTLINE 2
1317 #define wxSTC_SH_NUMBER 3
1318 #define wxSTC_SH_WORD 4
1319 #define wxSTC_SH_STRING 5
1320 #define wxSTC_SH_CHARACTER 6
1321 #define wxSTC_SH_OPERATOR 7
1322 #define wxSTC_SH_IDENTIFIER 8
1323 #define wxSTC_SH_SCALAR 9
1324 #define wxSTC_SH_PARAM 10
1325 #define wxSTC_SH_BACKTICKS 11
1326 #define wxSTC_SH_HERE_DELIM 12
1327 #define wxSTC_SH_HERE_Q 13
1328
1329 // Lexical states for SCLEX_ASN1
1330 #define wxSTC_ASN1_DEFAULT 0
1331 #define wxSTC_ASN1_COMMENT 1
1332 #define wxSTC_ASN1_IDENTIFIER 2
1333 #define wxSTC_ASN1_STRING 3
1334 #define wxSTC_ASN1_OID 4
1335 #define wxSTC_ASN1_SCALAR 5
1336 #define wxSTC_ASN1_KEYWORD 6
1337 #define wxSTC_ASN1_ATTRIBUTE 7
1338 #define wxSTC_ASN1_DESCRIPTOR 8
1339 #define wxSTC_ASN1_TYPE 9
1340 #define wxSTC_ASN1_OPERATOR 10
1341
1342 // Lexical states for SCLEX_VHDL
1343 #define wxSTC_VHDL_DEFAULT 0
1344 #define wxSTC_VHDL_COMMENT 1
1345 #define wxSTC_VHDL_COMMENTLINEBANG 2
1346 #define wxSTC_VHDL_NUMBER 3
1347 #define wxSTC_VHDL_STRING 4
1348 #define wxSTC_VHDL_OPERATOR 5
1349 #define wxSTC_VHDL_IDENTIFIER 6
1350 #define wxSTC_VHDL_STRINGEOL 7
1351 #define wxSTC_VHDL_KEYWORD 8
1352 #define wxSTC_VHDL_STDOPERATOR 9
1353 #define wxSTC_VHDL_ATTRIBUTE 10
1354 #define wxSTC_VHDL_STDFUNCTION 11
1355 #define wxSTC_VHDL_STDPACKAGE 12
1356 #define wxSTC_VHDL_STDTYPE 13
1357 #define wxSTC_VHDL_USERWORD 14
1358
1359 // Lexical states for SCLEX_CAML
1360 #define wxSTC_CAML_DEFAULT 0
1361 #define wxSTC_CAML_IDENTIFIER 1
1362 #define wxSTC_CAML_TAGNAME 2
1363 #define wxSTC_CAML_KEYWORD 3
1364 #define wxSTC_CAML_KEYWORD2 4
1365 #define wxSTC_CAML_KEYWORD3 5
1366 #define wxSTC_CAML_LINENUM 6
1367 #define wxSTC_CAML_OPERATOR 7
1368 #define wxSTC_CAML_NUMBER 8
1369 #define wxSTC_CAML_CHAR 9
1370 #define wxSTC_CAML_STRING 11
1371 #define wxSTC_CAML_COMMENT 12
1372 #define wxSTC_CAML_COMMENT1 13
1373 #define wxSTC_CAML_COMMENT2 14
1374 #define wxSTC_CAML_COMMENT3 15
1375
1376 // Lexical states for SCLEX_HASKELL
1377 #define wxSTC_HA_DEFAULT 0
1378 #define wxSTC_HA_IDENTIFIER 1
1379 #define wxSTC_HA_KEYWORD 2
1380 #define wxSTC_HA_NUMBER 3
1381 #define wxSTC_HA_STRING 4
1382 #define wxSTC_HA_CHARACTER 5
1383 #define wxSTC_HA_CLASS 6
1384 #define wxSTC_HA_MODULE 7
1385 #define wxSTC_HA_CAPITAL 8
1386 #define wxSTC_HA_DATA 9
1387 #define wxSTC_HA_IMPORT 10
1388 #define wxSTC_HA_OPERATOR 11
1389 #define wxSTC_HA_INSTANCE 12
1390 #define wxSTC_HA_COMMENTLINE 13
1391 #define wxSTC_HA_COMMENTBLOCK 14
1392 #define wxSTC_HA_COMMENTBLOCK2 15
1393 #define wxSTC_HA_COMMENTBLOCK3 16
1394
1395 // Lexical states of SCLEX_TADS3
1396 #define wxSTC_T3_DEFAULT 0
1397 #define wxSTC_T3_X_DEFAULT 1
1398 #define wxSTC_T3_PREPROCESSOR 2
1399 #define wxSTC_T3_BLOCK_COMMENT 3
1400 #define wxSTC_T3_LINE_COMMENT 4
1401 #define wxSTC_T3_OPERATOR 5
1402 #define wxSTC_T3_KEYWORD 6
1403 #define wxSTC_T3_NUMBER 7
1404 #define wxSTC_T3_IDENTIFIER 8
1405 #define wxSTC_T3_S_STRING 9
1406 #define wxSTC_T3_D_STRING 10
1407 #define wxSTC_T3_X_STRING 11
1408 #define wxSTC_T3_LIB_DIRECTIVE 12
1409 #define wxSTC_T3_MSG_PARAM 13
1410 #define wxSTC_T3_HTML_TAG 14
1411 #define wxSTC_T3_HTML_DEFAULT 15
1412 #define wxSTC_T3_HTML_STRING 16
1413 #define wxSTC_T3_USER1 17
1414 #define wxSTC_T3_USER2 18
1415 #define wxSTC_T3_USER3 19
1416 #define wxSTC_T3_BRACE 20
1417
1418 // Lexical states for SCLEX_REBOL
1419 #define wxSTC_REBOL_DEFAULT 0
1420 #define wxSTC_REBOL_COMMENTLINE 1
1421 #define wxSTC_REBOL_COMMENTBLOCK 2
1422 #define wxSTC_REBOL_PREFACE 3
1423 #define wxSTC_REBOL_OPERATOR 4
1424 #define wxSTC_REBOL_CHARACTER 5
1425 #define wxSTC_REBOL_QUOTEDSTRING 6
1426 #define wxSTC_REBOL_BRACEDSTRING 7
1427 #define wxSTC_REBOL_NUMBER 8
1428 #define wxSTC_REBOL_PAIR 9
1429 #define wxSTC_REBOL_TUPLE 10
1430 #define wxSTC_REBOL_BINARY 11
1431 #define wxSTC_REBOL_MONEY 12
1432 #define wxSTC_REBOL_ISSUE 13
1433 #define wxSTC_REBOL_TAG 14
1434 #define wxSTC_REBOL_FILE 15
1435 #define wxSTC_REBOL_EMAIL 16
1436 #define wxSTC_REBOL_URL 17
1437 #define wxSTC_REBOL_DATE 18
1438 #define wxSTC_REBOL_TIME 19
1439 #define wxSTC_REBOL_IDENTIFIER 20
1440 #define wxSTC_REBOL_WORD 21
1441 #define wxSTC_REBOL_WORD2 22
1442 #define wxSTC_REBOL_WORD3 23
1443 #define wxSTC_REBOL_WORD4 24
1444 #define wxSTC_REBOL_WORD5 25
1445 #define wxSTC_REBOL_WORD6 26
1446 #define wxSTC_REBOL_WORD7 27
1447 #define wxSTC_REBOL_WORD8 28
1448
1449 // Lexical states for SCLEX_SQL
1450 #define wxSTC_SQL_DEFAULT 0
1451 #define wxSTC_SQL_COMMENT 1
1452 #define wxSTC_SQL_COMMENTLINE 2
1453 #define wxSTC_SQL_COMMENTDOC 3
1454 #define wxSTC_SQL_NUMBER 4
1455 #define wxSTC_SQL_WORD 5
1456 #define wxSTC_SQL_STRING 6
1457 #define wxSTC_SQL_CHARACTER 7
1458 #define wxSTC_SQL_SQLPLUS 8
1459 #define wxSTC_SQL_SQLPLUS_PROMPT 9
1460 #define wxSTC_SQL_OPERATOR 10
1461 #define wxSTC_SQL_IDENTIFIER 11
1462 #define wxSTC_SQL_SQLPLUS_COMMENT 13
1463 #define wxSTC_SQL_COMMENTLINEDOC 15
1464 #define wxSTC_SQL_WORD2 16
1465 #define wxSTC_SQL_COMMENTDOCKEYWORD 17
1466 #define wxSTC_SQL_COMMENTDOCKEYWORDERROR 18
1467 #define wxSTC_SQL_USER1 19
1468 #define wxSTC_SQL_USER2 20
1469 #define wxSTC_SQL_USER3 21
1470 #define wxSTC_SQL_USER4 22
1471 #define wxSTC_SQL_QUOTEDIDENTIFIER 23
1472
1473 // Lexical states for SCLEX_SMALLTALK
1474 #define wxSTC_ST_DEFAULT 0
1475 #define wxSTC_ST_STRING 1
1476 #define wxSTC_ST_NUMBER 2
1477 #define wxSTC_ST_COMMENT 3
1478 #define wxSTC_ST_SYMBOL 4
1479 #define wxSTC_ST_BINARY 5
1480 #define wxSTC_ST_BOOL 6
1481 #define wxSTC_ST_SELF 7
1482 #define wxSTC_ST_SUPER 8
1483 #define wxSTC_ST_NIL 9
1484 #define wxSTC_ST_GLOBAL 10
1485 #define wxSTC_ST_RETURN 11
1486 #define wxSTC_ST_SPECIAL 12
1487 #define wxSTC_ST_KWSEND 13
1488 #define wxSTC_ST_ASSIGN 14
1489 #define wxSTC_ST_CHARACTER 15
1490 #define wxSTC_ST_SPEC_SEL 16
1491
1492 // Lexical states for SCLEX_FLAGSHIP (clipper)
1493 #define wxSTC_FS_DEFAULT 0
1494 #define wxSTC_FS_COMMENT 1
1495 #define wxSTC_FS_COMMENTLINE 2
1496 #define wxSTC_FS_COMMENTDOC 3
1497 #define wxSTC_FS_COMMENTLINEDOC 4
1498 #define wxSTC_FS_COMMENTDOCKEYWORD 5
1499 #define wxSTC_FS_COMMENTDOCKEYWORDERROR 6
1500 #define wxSTC_FS_KEYWORD 7
1501 #define wxSTC_FS_KEYWORD2 8
1502 #define wxSTC_FS_KEYWORD3 9
1503 #define wxSTC_FS_KEYWORD4 10
1504 #define wxSTC_FS_NUMBER 11
1505 #define wxSTC_FS_STRING 12
1506 #define wxSTC_FS_PREPROCESSOR 13
1507 #define wxSTC_FS_OPERATOR 14
1508 #define wxSTC_FS_IDENTIFIER 15
1509 #define wxSTC_FS_DATE 16
1510 #define wxSTC_FS_STRINGEOL 17
1511 #define wxSTC_FS_CONSTANT 18
1512 #define wxSTC_FS_ASM 19
1513 #define wxSTC_FS_LABEL 20
1514 #define wxSTC_FS_ERROR 21
1515 #define wxSTC_FS_HEXNUMBER 22
1516 #define wxSTC_FS_BINNUMBER 23
1517
1518 // Lexical states for SCLEX_CSOUND
1519 #define wxSTC_CSOUND_DEFAULT 0
1520 #define wxSTC_CSOUND_COMMENT 1
1521 #define wxSTC_CSOUND_NUMBER 2
1522 #define wxSTC_CSOUND_OPERATOR 3
1523 #define wxSTC_CSOUND_INSTR 4
1524 #define wxSTC_CSOUND_IDENTIFIER 5
1525 #define wxSTC_CSOUND_OPCODE 6
1526 #define wxSTC_CSOUND_HEADERSTMT 7
1527 #define wxSTC_CSOUND_USERKEYWORD 8
1528 #define wxSTC_CSOUND_COMMENTBLOCK 9
1529 #define wxSTC_CSOUND_PARAM 10
1530 #define wxSTC_CSOUND_ARATE_VAR 11
1531 #define wxSTC_CSOUND_KRATE_VAR 12
1532 #define wxSTC_CSOUND_IRATE_VAR 13
1533 #define wxSTC_CSOUND_GLOBAL_VAR 14
1534 #define wxSTC_CSOUND_STRINGEOL 15
1535
1536 // Lexical states for SCLEX_INNOSETUP
1537 #define wxSTC_INNO_DEFAULT 0
1538 #define wxSTC_INNO_COMMENT 1
1539 #define wxSTC_INNO_KEYWORD 2
1540 #define wxSTC_INNO_PARAMETER 3
1541 #define wxSTC_INNO_SECTION 4
1542 #define wxSTC_INNO_PREPROC 5
1543 #define wxSTC_INNO_PREPROC_INLINE 6
1544 #define wxSTC_INNO_COMMENT_PASCAL 7
1545 #define wxSTC_INNO_KEYWORD_PASCAL 8
1546 #define wxSTC_INNO_KEYWORD_USER 9
1547 #define wxSTC_INNO_STRING_DOUBLE 10
1548 #define wxSTC_INNO_STRING_SINGLE 11
1549 #define wxSTC_INNO_IDENTIFIER 12
1550
1551 // Lexical states for SCLEX_OPAL
1552 #define wxSTC_OPAL_SPACE 0
1553 #define wxSTC_OPAL_COMMENT_BLOCK 1
1554 #define wxSTC_OPAL_COMMENT_LINE 2
1555 #define wxSTC_OPAL_INTEGER 3
1556 #define wxSTC_OPAL_KEYWORD 4
1557 #define wxSTC_OPAL_SORT 5
1558 #define wxSTC_OPAL_STRING 6
1559 #define wxSTC_OPAL_PAR 7
1560 #define wxSTC_OPAL_BOOL_CONST 8
1561 #define wxSTC_OPAL_DEFAULT 32
1562
1563 // Lexical states for SCLEX_SPICE
1564 #define wxSTC_SPICE_DEFAULT 0
1565 #define wxSTC_SPICE_IDENTIFIER 1
1566 #define wxSTC_SPICE_KEYWORD 2
1567 #define wxSTC_SPICE_KEYWORD2 3
1568 #define wxSTC_SPICE_KEYWORD3 4
1569 #define wxSTC_SPICE_NUMBER 5
1570 #define wxSTC_SPICE_DELIMITER 6
1571 #define wxSTC_SPICE_VALUE 7
1572 #define wxSTC_SPICE_COMMENTLINE 8
1573
1574 // Lexical states for SCLEX_CMAKE
1575 #define wxSTC_CMAKE_DEFAULT 0
1576 #define wxSTC_CMAKE_COMMENT 1
1577 #define wxSTC_CMAKE_STRINGDQ 2
1578 #define wxSTC_CMAKE_STRINGLQ 3
1579 #define wxSTC_CMAKE_STRINGRQ 4
1580 #define wxSTC_CMAKE_COMMANDS 5
1581 #define wxSTC_CMAKE_PARAMETERS 6
1582 #define wxSTC_CMAKE_VARIABLE 7
1583 #define wxSTC_CMAKE_USERDEFINED 8
1584 #define wxSTC_CMAKE_WHILEDEF 9
1585 #define wxSTC_CMAKE_FOREACHDEF 10
1586 #define wxSTC_CMAKE_IFDEFINEDEF 11
1587 #define wxSTC_CMAKE_MACRODEF 12
1588 #define wxSTC_CMAKE_STRINGVAR 13
1589 #define wxSTC_CMAKE_NUMBER 14
1590
1591 // Lexical states for SCLEX_GAP
1592 #define wxSTC_GAP_DEFAULT 0
1593 #define wxSTC_GAP_IDENTIFIER 1
1594 #define wxSTC_GAP_KEYWORD 2
1595 #define wxSTC_GAP_KEYWORD2 3
1596 #define wxSTC_GAP_KEYWORD3 4
1597 #define wxSTC_GAP_KEYWORD4 5
1598 #define wxSTC_GAP_STRING 6
1599 #define wxSTC_GAP_CHAR 7
1600 #define wxSTC_GAP_OPERATOR 8
1601 #define wxSTC_GAP_COMMENT 9
1602 #define wxSTC_GAP_NUMBER 10
1603 #define wxSTC_GAP_STRINGEOL 11
1604
1605 // Lexical state for SCLEX_PLM
1606 #define wxSTC_PLM_DEFAULT 0
1607 #define wxSTC_PLM_COMMENT 1
1608 #define wxSTC_PLM_STRING 2
1609 #define wxSTC_PLM_NUMBER 3
1610 #define wxSTC_PLM_IDENTIFIER 4
1611 #define wxSTC_PLM_OPERATOR 5
1612 #define wxSTC_PLM_CONTROL 6
1613 #define wxSTC_PLM_KEYWORD 7
1614
1615 // Lexical state for SCLEX_PROGRESS
1616 #define wxSTC_4GL_DEFAULT 0
1617 #define wxSTC_4GL_NUMBER 1
1618 #define wxSTC_4GL_WORD 2
1619 #define wxSTC_4GL_STRING 3
1620 #define wxSTC_4GL_CHARACTER 4
1621 #define wxSTC_4GL_PREPROCESSOR 5
1622 #define wxSTC_4GL_OPERATOR 6
1623 #define wxSTC_4GL_IDENTIFIER 7
1624 #define wxSTC_4GL_BLOCK 8
1625 #define wxSTC_4GL_END 9
1626 #define wxSTC_4GL_COMMENT1 10
1627 #define wxSTC_4GL_COMMENT2 11
1628 #define wxSTC_4GL_COMMENT3 12
1629 #define wxSTC_4GL_COMMENT4 13
1630 #define wxSTC_4GL_COMMENT5 14
1631 #define wxSTC_4GL_COMMENT6 15
1632 #define wxSTC_4GL_DEFAULT_ 16
1633 #define wxSTC_4GL_NUMBER_ 17
1634 #define wxSTC_4GL_WORD_ 18
1635 #define wxSTC_4GL_STRING_ 19
1636 #define wxSTC_4GL_CHARACTER_ 20
1637 #define wxSTC_4GL_PREPROCESSOR_ 21
1638 #define wxSTC_4GL_OPERATOR_ 22
1639 #define wxSTC_4GL_IDENTIFIER_ 23
1640 #define wxSTC_4GL_BLOCK_ 24
1641 #define wxSTC_4GL_END_ 25
1642 #define wxSTC_4GL_COMMENT1_ 26
1643 #define wxSTC_4GL_COMMENT2_ 27
1644 #define wxSTC_4GL_COMMENT3_ 28
1645 #define wxSTC_4GL_COMMENT4_ 29
1646 #define wxSTC_4GL_COMMENT5_ 30
1647 #define wxSTC_4GL_COMMENT6_ 31
1648
1649 // Lexical states for SCLEX_ABAQUS
1650 #define wxSTC_ABAQUS_DEFAULT 0
1651 #define wxSTC_ABAQUS_COMMENT 1
1652 #define wxSTC_ABAQUS_COMMENTBLOCK 2
1653 #define wxSTC_ABAQUS_NUMBER 3
1654 #define wxSTC_ABAQUS_STRING 4
1655 #define wxSTC_ABAQUS_OPERATOR 5
1656 #define wxSTC_ABAQUS_WORD 6
1657 #define wxSTC_ABAQUS_PROCESSOR 7
1658 #define wxSTC_ABAQUS_COMMAND 8
1659 #define wxSTC_ABAQUS_SLASHCOMMAND 9
1660 #define wxSTC_ABAQUS_STARCOMMAND 10
1661 #define wxSTC_ABAQUS_ARGUMENT 11
1662 #define wxSTC_ABAQUS_FUNCTION 12
1663
1664 // Lexical states for SCLEX_ASYMPTOTE
1665 #define wxSTC_ASY_DEFAULT 0
1666 #define wxSTC_ASY_COMMENT 1
1667 #define wxSTC_ASY_COMMENTLINE 2
1668 #define wxSTC_ASY_NUMBER 3
1669 #define wxSTC_ASY_WORD 4
1670 #define wxSTC_ASY_STRING 5
1671 #define wxSTC_ASY_CHARACTER 6
1672 #define wxSTC_ASY_OPERATOR 7
1673 #define wxSTC_ASY_IDENTIFIER 8
1674 #define wxSTC_ASY_STRINGEOL 9
1675 #define wxSTC_ASY_COMMENTLINEDOC 10
1676 #define wxSTC_ASY_WORD2 11
1677
1678 // Lexical states for SCLEX_R
1679 #define wxSTC_R_DEFAULT 0
1680 #define wxSTC_R_COMMENT 1
1681 #define wxSTC_R_KWORD 2
1682 #define wxSTC_R_BASEKWORD 3
1683 #define wxSTC_R_OTHERKWORD 4
1684 #define wxSTC_R_NUMBER 5
1685 #define wxSTC_R_STRING 6
1686 #define wxSTC_R_STRING2 7
1687 #define wxSTC_R_OPERATOR 8
1688 #define wxSTC_R_IDENTIFIER 9
1689 #define wxSTC_R_INFIX 10
1690 #define wxSTC_R_INFIXEOL 11
1691
1692 //}}}
1693 //----------------------------------------------------------------------
1694
1695 //----------------------------------------------------------------------
1696 // Commands that can be bound to keystrokes section {{{
1697
1698
1699 // Redoes the next action on the undo history.
1700 #define wxSTC_CMD_REDO 2011
1701
1702 // Select all the text in the document.
1703 #define wxSTC_CMD_SELECTALL 2013
1704
1705 // Undo one action in the undo history.
1706 #define wxSTC_CMD_UNDO 2176
1707
1708 // Cut the selection to the clipboard.
1709 #define wxSTC_CMD_CUT 2177
1710
1711 // Copy the selection to the clipboard.
1712 #define wxSTC_CMD_COPY 2178
1713
1714 // Paste the contents of the clipboard into the document replacing the selection.
1715 #define wxSTC_CMD_PASTE 2179
1716
1717 // Clear the selection.
1718 #define wxSTC_CMD_CLEAR 2180
1719
1720 // Move caret down one line.
1721 #define wxSTC_CMD_LINEDOWN 2300
1722
1723 // Move caret down one line extending selection to new caret position.
1724 #define wxSTC_CMD_LINEDOWNEXTEND 2301
1725
1726 // Move caret up one line.
1727 #define wxSTC_CMD_LINEUP 2302
1728
1729 // Move caret up one line extending selection to new caret position.
1730 #define wxSTC_CMD_LINEUPEXTEND 2303
1731
1732 // Move caret left one character.
1733 #define wxSTC_CMD_CHARLEFT 2304
1734
1735 // Move caret left one character extending selection to new caret position.
1736 #define wxSTC_CMD_CHARLEFTEXTEND 2305
1737
1738 // Move caret right one character.
1739 #define wxSTC_CMD_CHARRIGHT 2306
1740
1741 // Move caret right one character extending selection to new caret position.
1742 #define wxSTC_CMD_CHARRIGHTEXTEND 2307
1743
1744 // Move caret left one word.
1745 #define wxSTC_CMD_WORDLEFT 2308
1746
1747 // Move caret left one word extending selection to new caret position.
1748 #define wxSTC_CMD_WORDLEFTEXTEND 2309
1749
1750 // Move caret right one word.
1751 #define wxSTC_CMD_WORDRIGHT 2310
1752
1753 // Move caret right one word extending selection to new caret position.
1754 #define wxSTC_CMD_WORDRIGHTEXTEND 2311
1755
1756 // Move caret to first position on line.
1757 #define wxSTC_CMD_HOME 2312
1758
1759 // Move caret to first position on line extending selection to new caret position.
1760 #define wxSTC_CMD_HOMEEXTEND 2313
1761
1762 // Move caret to last position on line.
1763 #define wxSTC_CMD_LINEEND 2314
1764
1765 // Move caret to last position on line extending selection to new caret position.
1766 #define wxSTC_CMD_LINEENDEXTEND 2315
1767
1768 // Move caret to first position in document.
1769 #define wxSTC_CMD_DOCUMENTSTART 2316
1770
1771 // Move caret to first position in document extending selection to new caret position.
1772 #define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317
1773
1774 // Move caret to last position in document.
1775 #define wxSTC_CMD_DOCUMENTEND 2318
1776
1777 // Move caret to last position in document extending selection to new caret position.
1778 #define wxSTC_CMD_DOCUMENTENDEXTEND 2319
1779
1780 // Move caret one page up.
1781 #define wxSTC_CMD_PAGEUP 2320
1782
1783 // Move caret one page up extending selection to new caret position.
1784 #define wxSTC_CMD_PAGEUPEXTEND 2321
1785
1786 // Move caret one page down.
1787 #define wxSTC_CMD_PAGEDOWN 2322
1788
1789 // Move caret one page down extending selection to new caret position.
1790 #define wxSTC_CMD_PAGEDOWNEXTEND 2323
1791
1792 // Switch from insert to overtype mode or the reverse.
1793 #define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324
1794
1795 // Cancel any modes such as call tip or auto-completion list display.
1796 #define wxSTC_CMD_CANCEL 2325
1797
1798 // Delete the selection or if no selection, the character before the caret.
1799 #define wxSTC_CMD_DELETEBACK 2326
1800
1801 // If selection is empty or all on one line replace the selection with a tab character.
1802 // If more than one line selected, indent the lines.
1803 #define wxSTC_CMD_TAB 2327
1804
1805 // Dedent the selected lines.
1806 #define wxSTC_CMD_BACKTAB 2328
1807
1808 // Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
1809 #define wxSTC_CMD_NEWLINE 2329
1810
1811 // Insert a Form Feed character.
1812 #define wxSTC_CMD_FORMFEED 2330
1813
1814 // Move caret to before first visible character on line.
1815 // If already there move to first character on line.
1816 #define wxSTC_CMD_VCHOME 2331
1817
1818 // Like VCHome but extending selection to new caret position.
1819 #define wxSTC_CMD_VCHOMEEXTEND 2332
1820
1821 // Magnify the displayed text by increasing the sizes by 1 point.
1822 #define wxSTC_CMD_ZOOMIN 2333
1823
1824 // Make the displayed text smaller by decreasing the sizes by 1 point.
1825 #define wxSTC_CMD_ZOOMOUT 2334
1826
1827 // Delete the word to the left of the caret.
1828 #define wxSTC_CMD_DELWORDLEFT 2335
1829
1830 // Delete the word to the right of the caret.
1831 #define wxSTC_CMD_DELWORDRIGHT 2336
1832
1833 // Delete the word to the right of the caret, but not the trailing non-word characters.
1834 #define wxSTC_CMD_DELWORDRIGHTEND 2518
1835
1836 // Cut the line containing the caret.
1837 #define wxSTC_CMD_LINECUT 2337
1838
1839 // Delete the line containing the caret.
1840 #define wxSTC_CMD_LINEDELETE 2338
1841
1842 // Switch the current line with the previous.
1843 #define wxSTC_CMD_LINETRANSPOSE 2339
1844
1845 // Duplicate the current line.
1846 #define wxSTC_CMD_LINEDUPLICATE 2404
1847
1848 // Transform the selection to lower case.
1849 #define wxSTC_CMD_LOWERCASE 2340
1850
1851 // Transform the selection to upper case.
1852 #define wxSTC_CMD_UPPERCASE 2341
1853
1854 // Scroll the document down, keeping the caret visible.
1855 #define wxSTC_CMD_LINESCROLLDOWN 2342
1856
1857 // Scroll the document up, keeping the caret visible.
1858 #define wxSTC_CMD_LINESCROLLUP 2343
1859
1860 // Delete the selection or if no selection, the character before the caret.
1861 // Will not delete the character before at the start of a line.
1862 #define wxSTC_CMD_DELETEBACKNOTLINE 2344
1863
1864 // Move caret to first position on display line.
1865 #define wxSTC_CMD_HOMEDISPLAY 2345
1866
1867 // Move caret to first position on display line extending selection to
1868 // new caret position.
1869 #define wxSTC_CMD_HOMEDISPLAYEXTEND 2346
1870
1871 // Move caret to last position on display line.
1872 #define wxSTC_CMD_LINEENDDISPLAY 2347
1873
1874 // Move caret to last position on display line extending selection to new
1875 // caret position.
1876 #define wxSTC_CMD_LINEENDDISPLAYEXTEND 2348
1877
1878 // These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
1879 // except they behave differently when word-wrap is enabled:
1880 // They go first to the start / end of the display line, like (Home|LineEnd)Display
1881 // The difference is that, the cursor is already at the point, it goes on to the start
1882 // or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
1883 #define wxSTC_CMD_HOMEWRAP 2349
1884 #define wxSTC_CMD_HOMEWRAPEXTEND 2450
1885 #define wxSTC_CMD_LINEENDWRAP 2451
1886 #define wxSTC_CMD_LINEENDWRAPEXTEND 2452
1887 #define wxSTC_CMD_VCHOMEWRAP 2453
1888 #define wxSTC_CMD_VCHOMEWRAPEXTEND 2454
1889
1890 // Copy the line containing the caret.
1891 #define wxSTC_CMD_LINECOPY 2455
1892
1893 // Move to the previous change in capitalisation.
1894 #define wxSTC_CMD_WORDPARTLEFT 2390
1895
1896 // Move to the previous change in capitalisation extending selection
1897 // to new caret position.
1898 #define wxSTC_CMD_WORDPARTLEFTEXTEND 2391
1899
1900 // Move to the change next in capitalisation.
1901 #define wxSTC_CMD_WORDPARTRIGHT 2392
1902
1903 // Move to the next change in capitalisation extending selection
1904 // to new caret position.
1905 #define wxSTC_CMD_WORDPARTRIGHTEXTEND 2393
1906
1907 // Delete back from the current position to the start of the line.
1908 #define wxSTC_CMD_DELLINELEFT 2395
1909
1910 // Delete forwards from the current position to the end of the line.
1911 #define wxSTC_CMD_DELLINERIGHT 2396
1912
1913 // Move caret between paragraphs (delimited by empty lines).
1914 #define wxSTC_CMD_PARADOWN 2413
1915 #define wxSTC_CMD_PARADOWNEXTEND 2414
1916 #define wxSTC_CMD_PARAUP 2415
1917 #define wxSTC_CMD_PARAUPEXTEND 2416
1918
1919 // Move caret down one line, extending rectangular selection to new caret position.
1920 #define wxSTC_CMD_LINEDOWNRECTEXTEND 2426
1921
1922 // Move caret up one line, extending rectangular selection to new caret position.
1923 #define wxSTC_CMD_LINEUPRECTEXTEND 2427
1924
1925 // Move caret left one character, extending rectangular selection to new caret position.
1926 #define wxSTC_CMD_CHARLEFTRECTEXTEND 2428
1927
1928 // Move caret right one character, extending rectangular selection to new caret position.
1929 #define wxSTC_CMD_CHARRIGHTRECTEXTEND 2429
1930
1931 // Move caret to first position on line, extending rectangular selection to new caret position.
1932 #define wxSTC_CMD_HOMERECTEXTEND 2430
1933
1934 // Move caret to before first visible character on line.
1935 // If already there move to first character on line.
1936 // In either case, extend rectangular selection to new caret position.
1937 #define wxSTC_CMD_VCHOMERECTEXTEND 2431
1938
1939 // Move caret to last position on line, extending rectangular selection to new caret position.
1940 #define wxSTC_CMD_LINEENDRECTEXTEND 2432
1941
1942 // Move caret one page up, extending rectangular selection to new caret position.
1943 #define wxSTC_CMD_PAGEUPRECTEXTEND 2433
1944
1945 // Move caret one page down, extending rectangular selection to new caret position.
1946 #define wxSTC_CMD_PAGEDOWNRECTEXTEND 2434
1947
1948 // Move caret to top of page, or one page up if already at top of page.
1949 #define wxSTC_CMD_STUTTEREDPAGEUP 2435
1950
1951 // Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.
1952 #define wxSTC_CMD_STUTTEREDPAGEUPEXTEND 2436
1953
1954 // Move caret to bottom of page, or one page down if already at bottom of page.
1955 #define wxSTC_CMD_STUTTEREDPAGEDOWN 2437
1956
1957 // Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.
1958 #define wxSTC_CMD_STUTTEREDPAGEDOWNEXTEND 2438
1959
1960 // Move caret left one word, position cursor at end of word.
1961 #define wxSTC_CMD_WORDLEFTEND 2439
1962
1963 // Move caret left one word, position cursor at end of word, extending selection to new caret position.
1964 #define wxSTC_CMD_WORDLEFTENDEXTEND 2440
1965
1966 // Move caret right one word, position cursor at end of word.
1967 #define wxSTC_CMD_WORDRIGHTEND 2441
1968
1969 // Move caret right one word, position cursor at end of word, extending selection to new caret position.
1970 #define wxSTC_CMD_WORDRIGHTENDEXTEND 2442
1971
1972 //}}}
1973 //----------------------------------------------------------------------
1974
1975 class ScintillaWX; // forward declare
1976 class WordList;
1977 struct SCNotification;
1978
1979 #ifndef SWIG
1980 extern WXDLLIMPEXP_STC const wxChar* wxSTCNameStr;
1981 class WXDLLIMPEXP_FWD_STC wxStyledTextCtrl;
1982 class WXDLLIMPEXP_FWD_STC wxStyledTextEvent;
1983 #endif
1984
1985 //----------------------------------------------------------------------
1986
1987 class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl
1988 #if wxUSE_TEXTCTRL
1989 , public wxTextAreaBase
1990 #endif // wxUSE_TEXTCTRL
1991 {
1992 public:
1993
1994 #ifdef SWIG
1995 %pythonAppend wxStyledTextCtrl "self._setOORInfo(self)"
1996 %pythonAppend wxStyledTextCtrl() ""
1997
1998 wxStyledTextCtrl(wxWindow *parent, wxWindowID id=wxID_ANY,
1999 const wxPoint& pos = wxDefaultPosition,
2000 const wxSize& size = wxDefaultSize, long style = 0,
2001 const wxString& name = wxPySTCNameStr);
2002 %RenameCtor(PreStyledTextCtrl, wxStyledTextCtrl());
2003
2004 #else
2005 wxStyledTextCtrl(wxWindow *parent, wxWindowID id=wxID_ANY,
2006 const wxPoint& pos = wxDefaultPosition,
2007 const wxSize& size = wxDefaultSize, long style = 0,
2008 const wxString& name = wxSTCNameStr);
2009 wxStyledTextCtrl() { m_swx = NULL; }
2010 ~wxStyledTextCtrl();
2011
2012 #endif
2013
2014 bool Create(wxWindow *parent, wxWindowID id=wxID_ANY,
2015 const wxPoint& pos = wxDefaultPosition,
2016 const wxSize& size = wxDefaultSize, long style = 0,
2017 const wxString& name = wxSTCNameStr);
2018
2019
2020 //----------------------------------------------------------------------
2021 // Generated method declaration section {{{
2022
2023
2024 // Add text to the document at current position.
2025 void AddText(const wxString& text);
2026
2027 // Add array of cells to document.
2028 void AddStyledText(const wxMemoryBuffer& data);
2029
2030 // Insert string at a position.
2031 void InsertText(int pos, const wxString& text);
2032
2033 // Delete all text in the document.
2034 void ClearAll();
2035
2036 // Set all style bytes to 0, remove all folding information.
2037 void ClearDocumentStyle();
2038
2039 // Returns the number of characters in the document.
2040 int GetLength() const;
2041
2042 // Returns the character byte at the position.
2043 int GetCharAt(int pos) const;
2044
2045 // Returns the position of the caret.
2046 int GetCurrentPos() const;
2047
2048 // Returns the position of the opposite end of the selection to the caret.
2049 int GetAnchor() const;
2050
2051 // Returns the style byte at the position.
2052 int GetStyleAt(int pos) const;
2053
2054 // Redoes the next action on the undo history.
2055 void Redo();
2056
2057 // Choose between collecting actions into the undo
2058 // history and discarding them.
2059 void SetUndoCollection(bool collectUndo);
2060
2061 // Select all the text in the document.
2062 void SelectAll();
2063
2064 // Remember the current position in the undo history as the position
2065 // at which the document was saved.
2066 void SetSavePoint();
2067
2068 // Retrieve a buffer of cells.
2069 wxMemoryBuffer GetStyledText(int startPos, int endPos);
2070
2071 // Are there any redoable actions in the undo history?
2072 bool CanRedo();
2073
2074 // Retrieve the line number at which a particular marker is located.
2075 int MarkerLineFromHandle(int handle);
2076
2077 // Delete a marker.
2078 void MarkerDeleteHandle(int handle);
2079
2080 // Is undo history being collected?
2081 bool GetUndoCollection() const;
2082
2083 // Are white space characters currently visible?
2084 // Returns one of SCWS_* constants.
2085 int GetViewWhiteSpace() const;
2086
2087 // Make white space characters invisible, always visible or visible outside indentation.
2088 void SetViewWhiteSpace(int viewWS);
2089
2090 // Find the position from a point within the window.
2091 int PositionFromPoint(wxPoint pt) const;
2092
2093 // Find the position from a point within the window but return
2094 // INVALID_POSITION if not close to text.
2095 int PositionFromPointClose(int x, int y);
2096
2097 // Set caret to start of a line and ensure it is visible.
2098 void GotoLine(int line);
2099
2100 // Set caret to a position and ensure it is visible.
2101 void GotoPos(int pos);
2102
2103 // Set the selection anchor to a position. The anchor is the opposite
2104 // end of the selection from the caret.
2105 void SetAnchor(int posAnchor);
2106
2107 // Retrieve the text of the line containing the caret.
2108 // Returns the index of the caret on the line.
2109 #ifdef SWIG
2110 wxString GetCurLine(int* OUTPUT);
2111 #else
2112 wxString GetCurLine(int* linePos=NULL);
2113 #endif
2114
2115 // Retrieve the position of the last correctly styled character.
2116 int GetEndStyled() const;
2117
2118 // Convert all line endings in the document to one mode.
2119 void ConvertEOLs(int eolMode);
2120
2121 // Retrieve the current end of line mode - one of CRLF, CR, or LF.
2122 int GetEOLMode() const;
2123
2124 // Set the current end of line mode.
2125 void SetEOLMode(int eolMode);
2126
2127 // Set the current styling position to pos and the styling mask to mask.
2128 // The styling mask can be used to protect some bits in each styling byte from modification.
2129 void StartStyling(int pos, int mask);
2130
2131 // Change style from current styling position for length characters to a style
2132 // and move the current styling position to after this newly styled segment.
2133 void SetStyling(int length, int style);
2134
2135 // Is drawing done first into a buffer or direct to the screen?
2136 bool GetBufferedDraw() const;
2137
2138 // If drawing is buffered then each line of text is drawn into a bitmap buffer
2139 // before drawing it to the screen to avoid flicker.
2140 void SetBufferedDraw(bool buffered);
2141
2142 // Change the visible size of a tab to be a multiple of the width of a space character.
2143 void SetTabWidth(int tabWidth);
2144
2145 // Retrieve the visible size of a tab.
2146 int GetTabWidth() const;
2147
2148 // Set the code page used to interpret the bytes of the document as characters.
2149 void SetCodePage(int codePage);
2150
2151 // Set the symbol used for a particular marker number,
2152 // and optionally the fore and background colours.
2153 void MarkerDefine(int markerNumber, int markerSymbol,
2154 const wxColour& foreground = wxNullColour,
2155 const wxColour& background = wxNullColour);
2156
2157 // Set the foreground colour used for a particular marker number.
2158 void MarkerSetForeground(int markerNumber, const wxColour& fore);
2159
2160 // Set the background colour used for a particular marker number.
2161 void MarkerSetBackground(int markerNumber, const wxColour& back);
2162
2163 // Add a marker to a line, returning an ID which can be used to find or delete the marker.
2164 int MarkerAdd(int line, int markerNumber);
2165
2166 // Delete a marker from a line.
2167 void MarkerDelete(int line, int markerNumber);
2168
2169 // Delete all markers with a particular number from all lines.
2170 void MarkerDeleteAll(int markerNumber);
2171
2172 // Get a bit mask of all the markers set on a line.
2173 int MarkerGet(int line);
2174
2175 // Find the next line after lineStart that includes a marker in mask.
2176 int MarkerNext(int lineStart, int markerMask);
2177
2178 // Find the previous line before lineStart that includes a marker in mask.
2179 int MarkerPrevious(int lineStart, int markerMask);
2180
2181 // Define a marker from a bitmap
2182 void MarkerDefineBitmap(int markerNumber, const wxBitmap& bmp);
2183
2184 // Add a set of markers to a line.
2185 void MarkerAddSet(int line, int set);
2186
2187 // Set the alpha used for a marker that is drawn in the text area, not the margin.
2188 void MarkerSetAlpha(int markerNumber, int alpha);
2189
2190 // Set a margin to be either numeric or symbolic.
2191 void SetMarginType(int margin, int marginType);
2192
2193 // Retrieve the type of a margin.
2194 int GetMarginType(int margin) const;
2195
2196 // Set the width of a margin to a width expressed in pixels.
2197 void SetMarginWidth(int margin, int pixelWidth);
2198
2199 // Retrieve the width of a margin in pixels.
2200 int GetMarginWidth(int margin) const;
2201
2202 // Set a mask that determines which markers are displayed in a margin.
2203 void SetMarginMask(int margin, int mask);
2204
2205 // Retrieve the marker mask of a margin.
2206 int GetMarginMask(int margin) const;
2207
2208 // Make a margin sensitive or insensitive to mouse clicks.
2209 void SetMarginSensitive(int margin, bool sensitive);
2210
2211 // Retrieve the mouse click sensitivity of a margin.
2212 bool GetMarginSensitive(int margin) const;
2213
2214 // Clear all the styles and make equivalent to the global default style.
2215 void StyleClearAll();
2216
2217 // Set the foreground colour of a style.
2218 void StyleSetForeground(int style, const wxColour& fore);
2219
2220 // Set the background colour of a style.
2221 void StyleSetBackground(int style, const wxColour& back);
2222
2223 // Set a style to be bold or not.
2224 void StyleSetBold(int style, bool bold);
2225
2226 // Set a style to be italic or not.
2227 void StyleSetItalic(int style, bool italic);
2228
2229 // Set the size of characters of a style.
2230 void StyleSetSize(int style, int sizePoints);
2231
2232 // Set the font of a style.
2233 void StyleSetFaceName(int style, const wxString& fontName);
2234
2235 // Set a style to have its end of line filled or not.
2236 void StyleSetEOLFilled(int style, bool filled);
2237
2238 // Reset the default style to its state at startup
2239 void StyleResetDefault();
2240
2241 // Set a style to be underlined or not.
2242 void StyleSetUnderline(int style, bool underline);
2243
2244 // Get the foreground colour of a style.
2245 wxColour StyleGetForeground(int style) const;
2246
2247 // Get the background colour of a style.
2248 wxColour StyleGetBackground(int style) const;
2249
2250 // Get is a style bold or not.
2251 bool StyleGetBold(int style) const;
2252
2253 // Get is a style italic or not.
2254 bool StyleGetItalic(int style) const;
2255
2256 // Get the size of characters of a style.
2257 int StyleGetSize(int style) const;
2258
2259 // Get the font facename of a style
2260 wxString StyleGetFaceName(int style);
2261
2262 // Get is a style to have its end of line filled or not.
2263 bool StyleGetEOLFilled(int style) const;
2264
2265 // Get is a style underlined or not.
2266 bool StyleGetUnderline(int style) const;
2267
2268 // Get is a style mixed case, or to force upper or lower case.
2269 int StyleGetCase(int style) const;
2270
2271 // Get the character set of the font in a style.
2272 int StyleGetCharacterSet(int style) const;
2273
2274 // Get is a style visible or not.
2275 bool StyleGetVisible(int style) const;
2276
2277 // Get is a style changeable or not (read only).
2278 // Experimental feature, currently buggy.
2279 bool StyleGetChangeable(int style) const;
2280
2281 // Get is a style a hotspot or not.
2282 bool StyleGetHotSpot(int style) const;
2283
2284 // Set a style to be mixed case, or to force upper or lower case.
2285 void StyleSetCase(int style, int caseForce);
2286
2287 // Set a style to be a hotspot or not.
2288 void StyleSetHotSpot(int style, bool hotspot);
2289
2290 // Set the foreground colour of the selection and whether to use this setting.
2291 void SetSelForeground(bool useSetting, const wxColour& fore);
2292
2293 // Set the background colour of the selection and whether to use this setting.
2294 void SetSelBackground(bool useSetting, const wxColour& back);
2295
2296 // Get the alpha of the selection.
2297 int GetSelAlpha() const;
2298
2299 // Set the alpha of the selection.
2300 void SetSelAlpha(int alpha);
2301
2302 // Is the selection end of line filled?
2303 bool GetSelEOLFilled() const;
2304
2305 // Set the selection to have its end of line filled or not.
2306 void SetSelEOLFilled(bool filled);
2307
2308 // Set the foreground colour of the caret.
2309 void SetCaretForeground(const wxColour& fore);
2310
2311 // When key+modifier combination km is pressed perform msg.
2312 void CmdKeyAssign(int key, int modifiers, int cmd);
2313
2314 // When key+modifier combination km is pressed do nothing.
2315 void CmdKeyClear(int key, int modifiers);
2316
2317 // Drop all key mappings.
2318 void CmdKeyClearAll();
2319
2320 // Set the styles for a segment of the document.
2321 void SetStyleBytes(int length, char* styleBytes);
2322
2323 // Set a style to be visible or not.
2324 void StyleSetVisible(int style, bool visible);
2325
2326 // Get the time in milliseconds that the caret is on and off.
2327 int GetCaretPeriod() const;
2328
2329 // Get the time in milliseconds that the caret is on and off. 0 = steady on.
2330 void SetCaretPeriod(int periodMilliseconds);
2331
2332 // Set the set of characters making up words for when moving or selecting by word.
2333 // First sets deaults like SetCharsDefault.
2334 void SetWordChars(const wxString& characters);
2335
2336 // Start a sequence of actions that is undone and redone as a unit.
2337 // May be nested.
2338 void BeginUndoAction();
2339
2340 // End a sequence of actions that is undone and redone as a unit.
2341 void EndUndoAction();
2342
2343 // Set an indicator to plain, squiggle or TT.
2344 void IndicatorSetStyle(int indic, int style);
2345
2346 // Retrieve the style of an indicator.
2347 int IndicatorGetStyle(int indic) const;
2348
2349 // Set the foreground colour of an indicator.
2350 void IndicatorSetForeground(int indic, const wxColour& fore);
2351
2352 // Retrieve the foreground colour of an indicator.
2353 wxColour IndicatorGetForeground(int indic) const;
2354
2355 // Set an indicator to draw under text or over(default).
2356 void IndicatorSetUnder(int indic, bool under);
2357
2358 // Retrieve whether indicator drawn under or over text.
2359 bool IndicatorGetUnder(int indic) const;
2360
2361 // Set the foreground colour of all whitespace and whether to use this setting.
2362 void SetWhitespaceForeground(bool useSetting, const wxColour& fore);
2363
2364 // Set the background colour of all whitespace and whether to use this setting.
2365 void SetWhitespaceBackground(bool useSetting, const wxColour& back);
2366
2367 // Divide each styling byte into lexical class bits (default: 5) and indicator
2368 // bits (default: 3). If a lexer requires more than 32 lexical states, then this
2369 // is used to expand the possible states.
2370 void SetStyleBits(int bits);
2371
2372 // Retrieve number of bits in style bytes used to hold the lexical state.
2373 int GetStyleBits() const;
2374
2375 // Used to hold extra styling information for each line.
2376 void SetLineState(int line, int state);
2377
2378 // Retrieve the extra styling information for a line.
2379 int GetLineState(int line) const;
2380
2381 // Retrieve the last line number that has line state.
2382 int GetMaxLineState() const;
2383
2384 // Is the background of the line containing the caret in a different colour?
2385 bool GetCaretLineVisible() const;
2386
2387 // Display the background of the line containing the caret in a different colour.
2388 void SetCaretLineVisible(bool show);
2389
2390 // Get the colour of the background of the line containing the caret.
2391 wxColour GetCaretLineBackground() const;
2392
2393 // Set the colour of the background of the line containing the caret.
2394 void SetCaretLineBackground(const wxColour& back);
2395
2396 // Set a style to be changeable or not (read only).
2397 // Experimental feature, currently buggy.
2398 void StyleSetChangeable(int style, bool changeable);
2399
2400 // Display a auto-completion list.
2401 // The lenEntered parameter indicates how many characters before
2402 // the caret should be used to provide context.
2403 void AutoCompShow(int lenEntered, const wxString& itemList);
2404
2405 // Remove the auto-completion list from the screen.
2406 void AutoCompCancel();
2407
2408 // Is there an auto-completion list visible?
2409 bool AutoCompActive();
2410
2411 // Retrieve the position of the caret when the auto-completion list was displayed.
2412 int AutoCompPosStart();
2413
2414 // User has selected an item so remove the list and insert the selection.
2415 void AutoCompComplete();
2416
2417 // Define a set of character that when typed cancel the auto-completion list.
2418 void AutoCompStops(const wxString& characterSet);
2419
2420 // Change the separator character in the string setting up an auto-completion list.
2421 // Default is space but can be changed if items contain space.
2422 void AutoCompSetSeparator(int separatorCharacter);
2423
2424 // Retrieve the auto-completion list separator character.
2425 int AutoCompGetSeparator() const;
2426
2427 // Select the item in the auto-completion list that starts with a string.
2428 void AutoCompSelect(const wxString& text);
2429
2430 // Should the auto-completion list be cancelled if the user backspaces to a
2431 // position before where the box was created.
2432 void AutoCompSetCancelAtStart(bool cancel);
2433
2434 // Retrieve whether auto-completion cancelled by backspacing before start.
2435 bool AutoCompGetCancelAtStart() const;
2436
2437 // Define a set of characters that when typed will cause the autocompletion to
2438 // choose the selected item.
2439 void AutoCompSetFillUps(const wxString& characterSet);
2440
2441 // Should a single item auto-completion list automatically choose the item.
2442 void AutoCompSetChooseSingle(bool chooseSingle);
2443
2444 // Retrieve whether a single item auto-completion list automatically choose the item.
2445 bool AutoCompGetChooseSingle() const;
2446
2447 // Set whether case is significant when performing auto-completion searches.
2448 void AutoCompSetIgnoreCase(bool ignoreCase);
2449
2450 // Retrieve state of ignore case flag.
2451 bool AutoCompGetIgnoreCase() const;
2452
2453 // Display a list of strings and send notification when user chooses one.
2454 void UserListShow(int listType, const wxString& itemList);
2455
2456 // Set whether or not autocompletion is hidden automatically when nothing matches.
2457 void AutoCompSetAutoHide(bool autoHide);
2458
2459 // Retrieve whether or not autocompletion is hidden automatically when nothing matches.
2460 bool AutoCompGetAutoHide() const;
2461
2462 // Set whether or not autocompletion deletes any word characters
2463 // after the inserted text upon completion.
2464 void AutoCompSetDropRestOfWord(bool dropRestOfWord);
2465
2466 // Retrieve whether or not autocompletion deletes any word characters
2467 // after the inserted text upon completion.
2468 bool AutoCompGetDropRestOfWord() const;
2469
2470 // Register an image for use in autocompletion lists.
2471 void RegisterImage(int type, const wxBitmap& bmp);
2472
2473 // Clear all the registered images.
2474 void ClearRegisteredImages();
2475
2476 // Retrieve the auto-completion list type-separator character.
2477 int AutoCompGetTypeSeparator() const;
2478
2479 // Change the type-separator character in the string setting up an auto-completion list.
2480 // Default is '?' but can be changed if items contain '?'.
2481 void AutoCompSetTypeSeparator(int separatorCharacter);
2482
2483 // Set the maximum width, in characters, of auto-completion and user lists.
2484 // Set to 0 to autosize to fit longest item, which is the default.
2485 void AutoCompSetMaxWidth(int characterCount);
2486
2487 // Get the maximum width, in characters, of auto-completion and user lists.
2488 int AutoCompGetMaxWidth() const;
2489
2490 // Set the maximum height, in rows, of auto-completion and user lists.
2491 // The default is 5 rows.
2492 void AutoCompSetMaxHeight(int rowCount);
2493
2494 // Set the maximum height, in rows, of auto-completion and user lists.
2495 int AutoCompGetMaxHeight() const;
2496
2497 // Set the number of spaces used for one level of indentation.
2498 void SetIndent(int indentSize);
2499
2500 // Retrieve indentation size.
2501 int GetIndent() const;
2502
2503 // Indentation will only use space characters if useTabs is false, otherwise
2504 // it will use a combination of tabs and spaces.
2505 void SetUseTabs(bool useTabs);
2506
2507 // Retrieve whether tabs will be used in indentation.
2508 bool GetUseTabs() const;
2509
2510 // Change the indentation of a line to a number of columns.
2511 void SetLineIndentation(int line, int indentSize);
2512
2513 // Retrieve the number of columns that a line is indented.
2514 int GetLineIndentation(int line) const;
2515
2516 // Retrieve the position before the first non indentation character on a line.
2517 int GetLineIndentPosition(int line) const;
2518
2519 // Retrieve the column number of a position, taking tab width into account.
2520 int GetColumn(int pos) const;
2521
2522 // Show or hide the horizontal scroll bar.
2523 void SetUseHorizontalScrollBar(bool show);
2524
2525 // Is the horizontal scroll bar visible?
2526 bool GetUseHorizontalScrollBar() const;
2527
2528 // Show or hide indentation guides.
2529 void SetIndentationGuides(int indentView);
2530
2531 // Are the indentation guides visible?
2532 int GetIndentationGuides() const;
2533
2534 // Set the highlighted indentation guide column.
2535 // 0 = no highlighted guide.
2536 void SetHighlightGuide(int column);
2537
2538 // Get the highlighted indentation guide column.
2539 int GetHighlightGuide() const;
2540
2541 // Get the position after the last visible characters on a line.
2542 int GetLineEndPosition(int line) const;
2543
2544 // Get the code page used to interpret the bytes of the document as characters.
2545 int GetCodePage() const;
2546
2547 // Get the foreground colour of the caret.
2548 wxColour GetCaretForeground() const;
2549
2550 // In read-only mode?
2551 bool GetReadOnly() const;
2552
2553 // Sets the position of the caret.
2554 void SetCurrentPos(int pos);
2555
2556 // Sets the position that starts the selection - this becomes the anchor.
2557 void SetSelectionStart(int pos);
2558
2559 // Returns the position at the start of the selection.
2560 int GetSelectionStart() const;
2561
2562 // Sets the position that ends the selection - this becomes the currentPosition.
2563 void SetSelectionEnd(int pos);
2564
2565 // Returns the position at the end of the selection.
2566 int GetSelectionEnd() const;
2567
2568 // Sets the print magnification added to the point size of each style for printing.
2569 void SetPrintMagnification(int magnification);
2570
2571 // Returns the print magnification.
2572 int GetPrintMagnification() const;
2573
2574 // Modify colours when printing for clearer printed text.
2575 void SetPrintColourMode(int mode);
2576
2577 // Returns the print colour mode.
2578 int GetPrintColourMode() const;
2579
2580 // Find some text in the document.
2581 int FindText(int minPos, int maxPos, const wxString& text, int flags=0);
2582
2583 // On Windows, will draw the document into a display context such as a printer.
2584 int FormatRange(bool doDraw,
2585 int startPos,
2586 int endPos,
2587 wxDC* draw,
2588 wxDC* target,
2589 wxRect renderRect,
2590 wxRect pageRect);
2591
2592 // Retrieve the display line at the top of the display.
2593 int GetFirstVisibleLine() const;
2594
2595 // Retrieve the contents of a line.
2596 wxString GetLine(int line) const;
2597
2598 // Returns the number of lines in the document. There is always at least one.
2599 int GetLineCount() const;
2600
2601 // Sets the size in pixels of the left margin.
2602 void SetMarginLeft(int pixelWidth);
2603
2604 // Returns the size in pixels of the left margin.
2605 int GetMarginLeft() const;
2606
2607 // Sets the size in pixels of the right margin.
2608 void SetMarginRight(int pixelWidth);
2609
2610 // Returns the size in pixels of the right margin.
2611 int GetMarginRight() const;
2612
2613 // Is the document different from when it was last saved?
2614 bool GetModify() const;
2615
2616 // Select a range of text.
2617 void SetSelection(int start, int end);
2618
2619 // Retrieve the selected text.
2620 wxString GetSelectedText();
2621
2622 // Retrieve a range of text.
2623 wxString GetTextRange(int startPos, int endPos);
2624
2625 // Draw the selection in normal style or with selection highlighted.
2626 void HideSelection(bool normal);
2627
2628 // Retrieve the line containing a position.
2629 int LineFromPosition(int pos) const;
2630
2631 // Retrieve the position at the start of a line.
2632 int PositionFromLine(int line) const;
2633
2634 // Scroll horizontally and vertically.
2635 void LineScroll(int columns, int lines);
2636
2637 // Ensure the caret is visible.
2638 void EnsureCaretVisible();
2639
2640 // Replace the selected text with the argument text.
2641 void ReplaceSelection(const wxString& text);
2642
2643 // Set to read only or read write.
2644 void SetReadOnly(bool readOnly);
2645
2646 // Will a paste succeed?
2647 bool CanPaste();
2648
2649 // Are there any undoable actions in the undo history?
2650 bool CanUndo();
2651
2652 // Delete the undo history.
2653 void EmptyUndoBuffer();
2654
2655 // Undo one action in the undo history.
2656 void Undo();
2657
2658 // Cut the selection to the clipboard.
2659 void Cut();
2660
2661 // Copy the selection to the clipboard.
2662 void Copy();
2663
2664 // Paste the contents of the clipboard into the document replacing the selection.
2665 void Paste();
2666
2667 // Clear the selection.
2668 void Clear();
2669
2670 // Replace the contents of the document with the argument text.
2671 void SetText(const wxString& text);
2672
2673 // Retrieve all the text in the document.
2674 wxString GetText();
2675
2676 // Retrieve the number of characters in the document.
2677 int GetTextLength() const;
2678
2679 // Set to overtype (true) or insert mode.
2680 void SetOvertype(bool overtype);
2681
2682 // Returns true if overtype mode is active otherwise false is returned.
2683 bool GetOvertype() const;
2684
2685 // Set the width of the insert mode caret.
2686 void SetCaretWidth(int pixelWidth);
2687
2688 // Returns the width of the insert mode caret.
2689 int GetCaretWidth() const;
2690
2691 // Sets the position that starts the target which is used for updating the
2692 // document without affecting the scroll position.
2693 void SetTargetStart(int pos);
2694
2695 // Get the position that starts the target.
2696 int GetTargetStart() const;
2697
2698 // Sets the position that ends the target which is used for updating the
2699 // document without affecting the scroll position.
2700 void SetTargetEnd(int pos);
2701
2702 // Get the position that ends the target.
2703 int GetTargetEnd() const;
2704
2705 // Replace the target text with the argument text.
2706 // Text is counted so it can contain NULs.
2707 // Returns the length of the replacement text.
2708 int ReplaceTarget(const wxString& text);
2709
2710 // Replace the target text with the argument text after \d processing.
2711 // Text is counted so it can contain NULs.
2712 // Looks for \d where d is between 1 and 9 and replaces these with the strings
2713 // matched in the last search operation which were surrounded by \( and \).
2714 // Returns the length of the replacement text including any change
2715 // caused by processing the \d patterns.
2716 int ReplaceTargetRE(const wxString& text);
2717
2718 // Search for a counted string in the target and set the target to the found
2719 // range. Text is counted so it can contain NULs.
2720 // Returns length of range or -1 for failure in which case target is not moved.
2721 int SearchInTarget(const wxString& text);
2722
2723 // Set the search flags used by SearchInTarget.
2724 void SetSearchFlags(int flags);
2725
2726 // Get the search flags used by SearchInTarget.
2727 int GetSearchFlags() const;
2728
2729 // Show a call tip containing a definition near position pos.
2730 void CallTipShow(int pos, const wxString& definition);
2731
2732 // Remove the call tip from the screen.
2733 void CallTipCancel();
2734
2735 // Is there an active call tip?
2736 bool CallTipActive();
2737
2738 // Retrieve the position where the caret was before displaying the call tip.
2739 int CallTipPosAtStart();
2740
2741 // Highlight a segment of the definition.
2742 void CallTipSetHighlight(int start, int end);
2743
2744 // Set the background colour for the call tip.
2745 void CallTipSetBackground(const wxColour& back);
2746
2747 // Set the foreground colour for the call tip.
2748 void CallTipSetForeground(const wxColour& fore);
2749
2750 // Set the foreground colour for the highlighted part of the call tip.
2751 void CallTipSetForegroundHighlight(const wxColour& fore);
2752
2753 // Enable use of STYLE_CALLTIP and set call tip tab size in pixels.
2754 void CallTipUseStyle(int tabSize);
2755
2756 // Find the display line of a document line taking hidden lines into account.
2757 int VisibleFromDocLine(int line);
2758
2759 // Find the document line of a display line taking hidden lines into account.
2760 int DocLineFromVisible(int lineDisplay);
2761
2762 // The number of display lines needed to wrap a document line
2763 int WrapCount(int line);
2764
2765 // Set the fold level of a line.
2766 // This encodes an integer level along with flags indicating whether the
2767 // line is a header and whether it is effectively white space.
2768 void SetFoldLevel(int line, int level);
2769
2770 // Retrieve the fold level of a line.
2771 int GetFoldLevel(int line) const;
2772
2773 // Find the last child line of a header line.
2774 int GetLastChild(int line, int level) const;
2775
2776 // Find the parent line of a child line.
2777 int GetFoldParent(int line) const;
2778
2779 // Make a range of lines visible.
2780 void ShowLines(int lineStart, int lineEnd);
2781
2782 // Make a range of lines invisible.
2783 void HideLines(int lineStart, int lineEnd);
2784
2785 // Is a line visible?
2786 bool GetLineVisible(int line) const;
2787
2788 // Show the children of a header line.
2789 void SetFoldExpanded(int line, bool expanded);
2790
2791 // Is a header line expanded?
2792 bool GetFoldExpanded(int line) const;
2793
2794 // Switch a header line between expanded and contracted.
2795 void ToggleFold(int line);
2796
2797 // Ensure a particular line is visible by expanding any header line hiding it.
2798 void EnsureVisible(int line);
2799
2800 // Set some style options for folding.
2801 void SetFoldFlags(int flags);
2802
2803 // Ensure a particular line is visible by expanding any header line hiding it.
2804 // Use the currently set visibility policy to determine which range to display.
2805 void EnsureVisibleEnforcePolicy(int line);
2806
2807 // Sets whether a tab pressed when caret is within indentation indents.
2808 void SetTabIndents(bool tabIndents);
2809
2810 // Does a tab pressed when caret is within indentation indent?
2811 bool GetTabIndents() const;
2812
2813 // Sets whether a backspace pressed when caret is within indentation unindents.
2814 void SetBackSpaceUnIndents(bool bsUnIndents);
2815
2816 // Does a backspace pressed when caret is within indentation unindent?
2817 bool GetBackSpaceUnIndents() const;
2818
2819 // Sets the time the mouse must sit still to generate a mouse dwell event.
2820 void SetMouseDwellTime(int periodMilliseconds);
2821
2822 // Retrieve the time the mouse must sit still to generate a mouse dwell event.
2823 int GetMouseDwellTime() const;
2824
2825 // Get position of start of word.
2826 int WordStartPosition(int pos, bool onlyWordCharacters);
2827
2828 // Get position of end of word.
2829 int WordEndPosition(int pos, bool onlyWordCharacters);
2830
2831 // Sets whether text is word wrapped.
2832 void SetWrapMode(int mode);
2833
2834 // Retrieve whether text is word wrapped.
2835 int GetWrapMode() const;
2836
2837 // Set the display mode of visual flags for wrapped lines.
2838 void SetWrapVisualFlags(int wrapVisualFlags);
2839
2840 // Retrive the display mode of visual flags for wrapped lines.
2841 int GetWrapVisualFlags() const;
2842
2843 // Set the location of visual flags for wrapped lines.
2844 void SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation);
2845
2846 // Retrive the location of visual flags for wrapped lines.
2847 int GetWrapVisualFlagsLocation() const;
2848
2849 // Set the start indent for wrapped lines.
2850 void SetWrapStartIndent(int indent);
2851
2852 // Retrive the start indent for wrapped lines.
2853 int GetWrapStartIndent() const;
2854
2855 // Sets the degree of caching of layout information.
2856 void SetLayoutCache(int mode);
2857
2858 // Retrieve the degree of caching of layout information.
2859 int GetLayoutCache() const;
2860
2861 // Sets the document width assumed for scrolling.
2862 void SetScrollWidth(int pixelWidth);
2863
2864 // Retrieve the document width assumed for scrolling.
2865 int GetScrollWidth() const;
2866
2867 // Sets whether the maximum width line displayed is used to set scroll width.
2868 void SetScrollWidthTracking(bool tracking);
2869
2870 // Retrieve whether the scroll width tracks wide lines.
2871 bool GetScrollWidthTracking() const;
2872
2873 // Measure the pixel width of some text in a particular style.
2874 // NUL terminated text argument.
2875 // Does not handle tab or control characters.
2876 int TextWidth(int style, const wxString& text);
2877
2878 // Sets the scroll range so that maximum scroll position has
2879 // the last line at the bottom of the view (default).
2880 // Setting this to false allows scrolling one page below the last line.
2881 void SetEndAtLastLine(bool endAtLastLine);
2882
2883 // Retrieve whether the maximum scroll position has the last
2884 // line at the bottom of the view.
2885 bool GetEndAtLastLine() const;
2886
2887 // Retrieve the height of a particular line of text in pixels.
2888 int TextHeight(int line);
2889
2890 // Show or hide the vertical scroll bar.
2891 void SetUseVerticalScrollBar(bool show);
2892
2893 // Is the vertical scroll bar visible?
2894 bool GetUseVerticalScrollBar() const;
2895
2896 // Append a string to the end of the document without changing the selection.
2897 void AppendText(const wxString& text);
2898
2899 // Is drawing done in two phases with backgrounds drawn before foregrounds?
2900 bool GetTwoPhaseDraw() const;
2901
2902 // In twoPhaseDraw mode, drawing is performed in two phases, first the background
2903 // and then the foreground. This avoids chopping off characters that overlap the next run.
2904 void SetTwoPhaseDraw(bool twoPhase);
2905
2906 // Make the target range start and end be the same as the selection range start and end.
2907 void TargetFromSelection();
2908
2909 // Join the lines in the target.
2910 void LinesJoin();
2911
2912 // Split the lines in the target into lines that are less wide than pixelWidth
2913 // where possible.
2914 void LinesSplit(int pixelWidth);
2915
2916 // Set the colours used as a chequerboard pattern in the fold margin
2917 void SetFoldMarginColour(bool useSetting, const wxColour& back);
2918 void SetFoldMarginHiColour(bool useSetting, const wxColour& fore);
2919
2920 // Move caret down one line.
2921 void LineDown();
2922
2923 // Move caret down one line extending selection to new caret position.
2924 void LineDownExtend();
2925
2926 // Move caret up one line.
2927 void LineUp();
2928
2929 // Move caret up one line extending selection to new caret position.
2930 void LineUpExtend();
2931
2932 // Move caret left one character.
2933 void CharLeft();
2934
2935 // Move caret left one character extending selection to new caret position.
2936 void CharLeftExtend();
2937
2938 // Move caret right one character.
2939 void CharRight();
2940
2941 // Move caret right one character extending selection to new caret position.
2942 void CharRightExtend();
2943
2944 // Move caret left one word.
2945 void WordLeft();
2946
2947 // Move caret left one word extending selection to new caret position.
2948 void WordLeftExtend();
2949
2950 // Move caret right one word.
2951 void WordRight();
2952
2953 // Move caret right one word extending selection to new caret position.
2954 void WordRightExtend();
2955
2956 // Move caret to first position on line.
2957 void Home();
2958
2959 // Move caret to first position on line extending selection to new caret position.
2960 void HomeExtend();
2961
2962 // Move caret to last position on line.
2963 void LineEnd();
2964
2965 // Move caret to last position on line extending selection to new caret position.
2966 void LineEndExtend();
2967
2968 // Move caret to first position in document.
2969 void DocumentStart();
2970
2971 // Move caret to first position in document extending selection to new caret position.
2972 void DocumentStartExtend();
2973
2974 // Move caret to last position in document.
2975 void DocumentEnd();
2976
2977 // Move caret to last position in document extending selection to new caret position.
2978 void DocumentEndExtend();
2979
2980 // Move caret one page up.
2981 void PageUp();
2982
2983 // Move caret one page up extending selection to new caret position.
2984 void PageUpExtend();
2985
2986 // Move caret one page down.
2987 void PageDown();
2988
2989 // Move caret one page down extending selection to new caret position.
2990 void PageDownExtend();
2991
2992 // Switch from insert to overtype mode or the reverse.
2993 void EditToggleOvertype();
2994
2995 // Cancel any modes such as call tip or auto-completion list display.
2996 void Cancel();
2997
2998 // Delete the selection or if no selection, the character before the caret.
2999 void DeleteBack();
3000
3001 // If selection is empty or all on one line replace the selection with a tab character.
3002 // If more than one line selected, indent the lines.
3003 void Tab();
3004
3005 // Dedent the selected lines.
3006 void BackTab();
3007
3008 // Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
3009 void NewLine();
3010
3011 // Insert a Form Feed character.
3012 void FormFeed();
3013
3014 // Move caret to before first visible character on line.
3015 // If already there move to first character on line.
3016 void VCHome();
3017
3018 // Like VCHome but extending selection to new caret position.
3019 void VCHomeExtend();
3020
3021 // Magnify the displayed text by increasing the sizes by 1 point.
3022 void ZoomIn();
3023
3024 // Make the displayed text smaller by decreasing the sizes by 1 point.
3025 void ZoomOut();
3026
3027 // Delete the word to the left of the caret.
3028 void DelWordLeft();
3029
3030 // Delete the word to the right of the caret.
3031 void DelWordRight();
3032
3033 // Delete the word to the right of the caret, but not the trailing non-word characters.
3034 void DelWordRightEnd();
3035
3036 // Cut the line containing the caret.
3037 void LineCut();
3038
3039 // Delete the line containing the caret.
3040 void LineDelete();
3041
3042 // Switch the current line with the previous.
3043 void LineTranspose();
3044
3045 // Duplicate the current line.
3046 void LineDuplicate();
3047
3048 // Transform the selection to lower case.
3049 void LowerCase();
3050
3051 // Transform the selection to upper case.
3052 void UpperCase();
3053
3054 // Scroll the document down, keeping the caret visible.
3055 void LineScrollDown();
3056
3057 // Scroll the document up, keeping the caret visible.
3058 void LineScrollUp();
3059
3060 // Delete the selection or if no selection, the character before the caret.
3061 // Will not delete the character before at the start of a line.
3062 void DeleteBackNotLine();
3063
3064 // Move caret to first position on display line.
3065 void HomeDisplay();
3066
3067 // Move caret to first position on display line extending selection to
3068 // new caret position.
3069 void HomeDisplayExtend();
3070
3071 // Move caret to last position on display line.
3072 void LineEndDisplay();
3073
3074 // Move caret to last position on display line extending selection to new
3075 // caret position.
3076 void LineEndDisplayExtend();
3077
3078 // These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
3079 // except they behave differently when word-wrap is enabled:
3080 // They go first to the start / end of the display line, like (Home|LineEnd)Display
3081 // The difference is that, the cursor is already at the point, it goes on to the start
3082 // or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
3083 void HomeWrap();
3084 void HomeWrapExtend();
3085 void LineEndWrap();
3086 void LineEndWrapExtend();
3087 void VCHomeWrap();
3088 void VCHomeWrapExtend();
3089
3090 // Copy the line containing the caret.
3091 void LineCopy();
3092
3093 // Move the caret inside current view if it's not there already.
3094 void MoveCaretInsideView();
3095
3096 // How many characters are on a line, not including end of line characters?
3097 int LineLength(int line) const;
3098
3099 // Highlight the characters at two positions.
3100 void BraceHighlight(int pos1, int pos2);
3101
3102 // Highlight the character at a position indicating there is no matching brace.
3103 void BraceBadLight(int pos);
3104
3105 // Find the position of a matching brace or INVALID_POSITION if no match.
3106 int BraceMatch(int pos);
3107
3108 // Are the end of line characters visible?
3109 bool GetViewEOL() const;
3110
3111 // Make the end of line characters visible or invisible.
3112 void SetViewEOL(bool visible);
3113
3114 // Retrieve a pointer to the document object.
3115 void* GetDocPointer();
3116
3117 // Change the document object used.
3118 void SetDocPointer(void* docPointer);
3119
3120 // Set which document modification events are sent to the container.
3121 void SetModEventMask(int mask);
3122
3123 // Retrieve the column number which text should be kept within.
3124 int GetEdgeColumn() const;
3125
3126 // Set the column number of the edge.
3127 // If text goes past the edge then it is highlighted.
3128 void SetEdgeColumn(int column);
3129
3130 // Retrieve the edge highlight mode.
3131 int GetEdgeMode() const;
3132
3133 // The edge may be displayed by a line (EDGE_LINE) or by highlighting text that
3134 // goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).
3135 void SetEdgeMode(int mode);
3136
3137 // Retrieve the colour used in edge indication.
3138 wxColour GetEdgeColour() const;
3139
3140 // Change the colour used in edge indication.
3141 void SetEdgeColour(const wxColour& edgeColour);
3142
3143 // Sets the current caret position to be the search anchor.
3144 void SearchAnchor();
3145
3146 // Find some text starting at the search anchor.
3147 // Does not ensure the selection is visible.
3148 int SearchNext(int flags, const wxString& text);
3149
3150 // Find some text starting at the search anchor and moving backwards.
3151 // Does not ensure the selection is visible.
3152 int SearchPrev(int flags, const wxString& text);
3153
3154 // Retrieves the number of lines completely visible.
3155 int LinesOnScreen() const;
3156
3157 // Set whether a pop up menu is displayed automatically when the user presses
3158 // the wrong mouse button.
3159 void UsePopUp(bool allowPopUp);
3160
3161 // Is the selection rectangular? The alternative is the more common stream selection.
3162 bool SelectionIsRectangle() const;
3163
3164 // Set the zoom level. This number of points is added to the size of all fonts.
3165 // It may be positive to magnify or negative to reduce.
3166 void SetZoom(int zoom);
3167
3168 // Retrieve the zoom level.
3169 int GetZoom() const;
3170
3171 // Create a new document object.
3172 // Starts with reference count of 1 and not selected into editor.
3173 void* CreateDocument();
3174
3175 // Extend life of document.
3176 void AddRefDocument(void* docPointer);
3177
3178 // Release a reference to the document, deleting document if it fades to black.
3179 void ReleaseDocument(void* docPointer);
3180
3181 // Get which document modification events are sent to the container.
3182 int GetModEventMask() const;
3183
3184 // Change internal focus flag.
3185 void SetSTCFocus(bool focus);
3186
3187 // Get internal focus flag.
3188 bool GetSTCFocus() const;
3189
3190 // Change error status - 0 = OK.
3191 void SetStatus(int statusCode);
3192
3193 // Get error status.
3194 int GetStatus() const;
3195
3196 // Set whether the mouse is captured when its button is pressed.
3197 void SetMouseDownCaptures(bool captures);
3198
3199 // Get whether mouse gets captured.
3200 bool GetMouseDownCaptures() const;
3201
3202 // Sets the cursor to one of the SC_CURSOR* values.
3203 void SetSTCCursor(int cursorType);
3204
3205 // Get cursor type.
3206 int GetSTCCursor() const;
3207
3208 // Change the way control characters are displayed:
3209 // If symbol is < 32, keep the drawn way, else, use the given character.
3210 void SetControlCharSymbol(int symbol);
3211
3212 // Get the way control characters are displayed.
3213 int GetControlCharSymbol() const;
3214
3215 // Move to the previous change in capitalisation.
3216 void WordPartLeft();
3217
3218 // Move to the previous change in capitalisation extending selection
3219 // to new caret position.
3220 void WordPartLeftExtend();
3221
3222 // Move to the change next in capitalisation.
3223 void WordPartRight();
3224
3225 // Move to the next change in capitalisation extending selection
3226 // to new caret position.
3227 void WordPartRightExtend();
3228
3229 // Set the way the display area is determined when a particular line
3230 // is to be moved to by Find, FindNext, GotoLine, etc.
3231 void SetVisiblePolicy(int visiblePolicy, int visibleSlop);
3232
3233 // Delete back from the current position to the start of the line.
3234 void DelLineLeft();
3235
3236 // Delete forwards from the current position to the end of the line.
3237 void DelLineRight();
3238
3239 // Get and Set the xOffset (ie, horizonal scroll position).
3240 void SetXOffset(int newOffset);
3241 int GetXOffset() const;
3242
3243 // Set the last x chosen value to be the caret x position.
3244 void ChooseCaretX();
3245
3246 // Set the way the caret is kept visible when going sideway.
3247 // The exclusion zone is given in pixels.
3248 void SetXCaretPolicy(int caretPolicy, int caretSlop);
3249
3250 // Set the way the line the caret is on is kept visible.
3251 // The exclusion zone is given in lines.
3252 void SetYCaretPolicy(int caretPolicy, int caretSlop);
3253
3254 // Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE).
3255 void SetPrintWrapMode(int mode);
3256
3257 // Is printing line wrapped?
3258 int GetPrintWrapMode() const;
3259
3260 // Set a fore colour for active hotspots.
3261 void SetHotspotActiveForeground(bool useSetting, const wxColour& fore);
3262
3263 // Get the fore colour for active hotspots.
3264 wxColour GetHotspotActiveForeground() const;
3265
3266 // Set a back colour for active hotspots.
3267 void SetHotspotActiveBackground(bool useSetting, const wxColour& back);
3268
3269 // Get the back colour for active hotspots.
3270 wxColour GetHotspotActiveBackground() const;
3271
3272 // Enable / Disable underlining active hotspots.
3273 void SetHotspotActiveUnderline(bool underline);
3274
3275 // Get whether underlining for active hotspots.
3276 bool GetHotspotActiveUnderline() const;
3277
3278 // Limit hotspots to single line so hotspots on two lines don't merge.
3279 void SetHotspotSingleLine(bool singleLine);
3280
3281 // Get the HotspotSingleLine property
3282 bool GetHotspotSingleLine() const;
3283
3284 // Move caret between paragraphs (delimited by empty lines).
3285 void ParaDown();
3286 void ParaDownExtend();
3287 void ParaUp();
3288 void ParaUpExtend();
3289
3290 // Given a valid document position, return the previous position taking code
3291 // page into account. Returns 0 if passed 0.
3292 int PositionBefore(int pos);
3293
3294 // Given a valid document position, return the next position taking code
3295 // page into account. Maximum value returned is the last position in the document.
3296 int PositionAfter(int pos);
3297
3298 // Copy a range of text to the clipboard. Positions are clipped into the document.
3299 void CopyRange(int start, int end);
3300
3301 // Copy argument text to the clipboard.
3302 void CopyText(int length, const wxString& text);
3303
3304 // Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE) or
3305 // by lines (SC_SEL_LINES).
3306 void SetSelectionMode(int mode);
3307
3308 // Get the mode of the current selection.
3309 int GetSelectionMode() const;
3310
3311 // Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line).
3312 int GetLineSelStartPosition(int line);
3313
3314 // Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line).
3315 int GetLineSelEndPosition(int line);
3316
3317 // Move caret down one line, extending rectangular selection to new caret position.
3318 void LineDownRectExtend();
3319
3320 // Move caret up one line, extending rectangular selection to new caret position.
3321 void LineUpRectExtend();
3322
3323 // Move caret left one character, extending rectangular selection to new caret position.
3324 void CharLeftRectExtend();
3325
3326 // Move caret right one character, extending rectangular selection to new caret position.
3327 void CharRightRectExtend();
3328
3329 // Move caret to first position on line, extending rectangular selection to new caret position.
3330 void HomeRectExtend();
3331
3332 // Move caret to before first visible character on line.
3333 // If already there move to first character on line.
3334 // In either case, extend rectangular selection to new caret position.
3335 void VCHomeRectExtend();
3336
3337 // Move caret to last position on line, extending rectangular selection to new caret position.
3338 void LineEndRectExtend();
3339
3340 // Move caret one page up, extending rectangular selection to new caret position.
3341 void PageUpRectExtend();
3342
3343 // Move caret one page down, extending rectangular selection to new caret position.
3344 void PageDownRectExtend();
3345
3346 // Move caret to top of page, or one page up if already at top of page.
3347 void StutteredPageUp();
3348
3349 // Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.
3350 void StutteredPageUpExtend();
3351
3352 // Move caret to bottom of page, or one page down if already at bottom of page.
3353 void StutteredPageDown();
3354
3355 // Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.
3356 void StutteredPageDownExtend();
3357
3358 // Move caret left one word, position cursor at end of word.
3359 void WordLeftEnd();
3360
3361 // Move caret left one word, position cursor at end of word, extending selection to new caret position.
3362 void WordLeftEndExtend();
3363
3364 // Move caret right one word, position cursor at end of word.
3365 void WordRightEnd();
3366
3367 // Move caret right one word, position cursor at end of word, extending selection to new caret position.
3368 void WordRightEndExtend();
3369
3370 // Set the set of characters making up whitespace for when moving or selecting by word.
3371 // Should be called after SetWordChars.
3372 void SetWhitespaceChars(const wxString& characters);
3373
3374 // Reset the set of characters for whitespace and word characters to the defaults.
3375 void SetCharsDefault();
3376
3377 // Get currently selected item position in the auto-completion list
3378 int AutoCompGetCurrent();
3379
3380 // Enlarge the document to a particular size of text bytes.
3381 void Allocate(int bytes);
3382
3383 // Find the position of a column on a line taking into account tabs and
3384 // multi-byte characters. If beyond end of line, return line end position.
3385 int FindColumn(int line, int column);
3386
3387 // Can the caret preferred x position only be changed by explicit movement commands?
3388 bool GetCaretSticky() const;
3389
3390 // Stop the caret preferred x position changing when the user types.
3391 void SetCaretSticky(bool useCaretStickyBehaviour);
3392
3393 // Switch between sticky and non-sticky: meant to be bound to a key.
3394 void ToggleCaretSticky();
3395
3396 // Enable/Disable convert-on-paste for line endings
3397 void SetPasteConvertEndings(bool convert);
3398
3399 // Get convert-on-paste setting
3400 bool GetPasteConvertEndings() const;
3401
3402 // Duplicate the selection. If selection empty duplicate the line containing the caret.
3403 void SelectionDuplicate();
3404
3405 // Set background alpha of the caret line.
3406 void SetCaretLineBackAlpha(int alpha);
3407
3408 // Get the background alpha of the caret line.
3409 int GetCaretLineBackAlpha() const;
3410
3411 // Set the style of the caret to be drawn.
3412 void SetCaretStyle(int caretStyle);
3413
3414 // Returns the current style of the caret.
3415 int GetCaretStyle() const;
3416
3417 // Set the indicator used for IndicatorFillRange and IndicatorClearRange
3418 void SetIndicatorCurrent(int indicator);
3419
3420 // Get the current indicator
3421 int GetIndicatorCurrent() const;
3422
3423 // Set the value used for IndicatorFillRange
3424 void SetIndicatorValue(int value);
3425
3426 // Get the current indicator vaue
3427 int GetIndicatorValue() const;
3428
3429 // Turn a indicator on over a range.
3430 void IndicatorFillRange(int position, int fillLength);
3431
3432 // Turn a indicator off over a range.
3433 void IndicatorClearRange(int position, int clearLength);
3434
3435 // Are any indicators present at position?
3436 int IndicatorAllOnFor(int position);
3437
3438 // What value does a particular indicator have at at a position?
3439 int IndicatorValueAt(int indicator, int position);
3440
3441 // Where does a particular indicator start?
3442 int IndicatorStart(int indicator, int position);
3443
3444 // Where does a particular indicator end?
3445 int IndicatorEnd(int indicator, int position);
3446
3447 // Set number of entries in position cache
3448 void SetPositionCacheSize(int size);
3449
3450 // How many entries are allocated to the position cache?
3451 int GetPositionCacheSize() const;
3452
3453 // Start notifying the container of all key presses and commands.
3454 void StartRecord();
3455
3456 // Stop notifying the container of all key presses and commands.
3457 void StopRecord();
3458
3459 // Set the lexing language of the document.
3460 void SetLexer(int lexer);
3461
3462 // Retrieve the lexing language of the document.
3463 int GetLexer() const;
3464
3465 // Colourise a segment of the document using the current lexing language.
3466 void Colourise(int start, int end);
3467
3468 // Set up a value that may be used by a lexer for some optional feature.
3469 void SetProperty(const wxString& key, const wxString& value);
3470
3471 // Set up the key words used by the lexer.
3472 void SetKeyWords(int keywordSet, const wxString& keyWords);
3473
3474 // Set the lexing language of the document based on string name.
3475 void SetLexerLanguage(const wxString& language);
3476
3477 // Retrieve a 'property' value previously set with SetProperty.
3478 wxString GetProperty(const wxString& key);
3479
3480 // Retrieve a 'property' value previously set with SetProperty,
3481 // with '$()' variable replacement on returned buffer.
3482 wxString GetPropertyExpanded(const wxString& key);
3483
3484 // Retrieve a 'property' value previously set with SetProperty,
3485 // interpreted as an int AFTER any '$()' variable replacement.
3486 int GetPropertyInt(const wxString& key) const;
3487
3488 // Retrieve the number of bits the current lexer needs for styling.
3489 int GetStyleBitsNeeded() const;
3490
3491 //}}}
3492 //----------------------------------------------------------------------
3493
3494 // Manually declared methods
3495
3496 // Returns the line number of the line with the caret.
3497 int GetCurrentLine();
3498
3499 // Extract style settings from a spec-string which is composed of one or
3500 // more of the following comma separated elements:
3501 //
3502 // bold turns on bold
3503 // italic turns on italics
3504 // fore:[name or #RRGGBB] sets the foreground colour
3505 // back:[name or #RRGGBB] sets the background colour
3506 // face:[facename] sets the font face name to use
3507 // size:[num] sets the font size in points
3508 // eol turns on eol filling
3509 // underline turns on underlining
3510 //
3511 void StyleSetSpec(int styleNum, const wxString& spec);
3512
3513
3514 // Get the font of a style.
3515 wxFont StyleGetFont(int style);
3516
3517
3518 // Set style size, face, bold, italic, and underline attributes from
3519 // a wxFont's attributes.
3520 void StyleSetFont(int styleNum, wxFont& font);
3521
3522
3523
3524 // Set all font style attributes at once.
3525 void StyleSetFontAttr(int styleNum, int size,
3526 const wxString& faceName,
3527 bool bold, bool italic,
3528 bool underline,
3529 wxFontEncoding encoding=wxFONTENCODING_DEFAULT);
3530
3531
3532 // Set the character set of the font in a style. Converts the Scintilla
3533 // character set values to a wxFontEncoding.
3534 void StyleSetCharacterSet(int style, int characterSet);
3535
3536 // Set the font encoding to be used by a style.
3537 void StyleSetFontEncoding(int style, wxFontEncoding encoding);
3538
3539
3540 // Perform one of the operations defined by the wxSTC_CMD_* constants.
3541 void CmdKeyExecute(int cmd);
3542
3543
3544 // Set the left and right margin in the edit area, measured in pixels.
3545 void SetMargins(int left, int right);
3546
3547
3548 // Retrieve the start and end positions of the current selection.
3549 #ifdef SWIG
3550 void GetSelection(int* OUTPUT, int* OUTPUT);
3551 #else
3552 void GetSelection(int* startPos, int* endPos);
3553 #endif
3554
3555 // Retrieve the point in the window where a position is displayed.
3556 wxPoint PointFromPosition(int pos);
3557
3558
3559 // Scroll enough to make the given line visible
3560 void ScrollToLine(int line);
3561
3562
3563 // Scroll enough to make the given column visible
3564 void ScrollToColumn(int column);
3565
3566
3567 // Send a message to Scintilla
3568 //
3569 // NB: this method is not really const as it can modify the control but it
3570 // has to be declared as such as it's called from both const and
3571 // non-const methods and we can't distinguish between the two
3572 long SendMsg(int msg, long wp=0, long lp=0) const;
3573
3574
3575 // Set the vertical scrollbar to use instead of the ont that's built-in.
3576 void SetVScrollBar(wxScrollBar* bar);
3577
3578
3579 // Set the horizontal scrollbar to use instead of the ont that's built-in.
3580 void SetHScrollBar(wxScrollBar* bar);
3581
3582 // Can be used to prevent the EVT_CHAR handler from adding the char
3583 bool GetLastKeydownProcessed() { return m_lastKeyDownConsumed; }
3584 void SetLastKeydownProcessed(bool val) { m_lastKeyDownConsumed = val; }
3585
3586 // if we derive from wxTextAreaBase it already provides these methods
3587 #if !wxUSE_TEXTCTRL
3588 // Write the contents of the editor to filename
3589 bool SaveFile(const wxString& filename);
3590
3591 // Load the contents of filename into the editor
3592 bool LoadFile(const wxString& filename);
3593 #endif // !wxUSE_TEXTCTRL
3594
3595 #ifdef STC_USE_DND
3596 // Allow for simulating a DnD DragOver
3597 wxDragResult DoDragOver(wxCoord x, wxCoord y, wxDragResult def);
3598
3599 // Allow for simulating a DnD DropText
3600 bool DoDropText(long x, long y, const wxString& data);
3601 #endif
3602
3603 // Specify whether anti-aliased fonts should be used. Will have no effect
3604 // on some platforms, but on some (wxMac for example) can greatly improve
3605 // performance.
3606 void SetUseAntiAliasing(bool useAA);
3607
3608 // Returns the current UseAntiAliasing setting.
3609 bool GetUseAntiAliasing();
3610
3611
3612
3613 // The following methods are nearly equivallent to their similarly named
3614 // cousins above. The difference is that these methods bypass wxString
3615 // and always use a char* even if used in a unicode build of wxWidgets.
3616 // In that case the character data will be utf-8 encoded since that is
3617 // what is used internally by Scintilla in unicode builds.
3618
3619 // Add text to the document at current position.
3620 void AddTextRaw(const char* text);
3621
3622 // Insert string at a position.
3623 void InsertTextRaw(int pos, const char* text);
3624
3625 // Retrieve the text of the line containing the caret.
3626 // Returns the index of the caret on the line.
3627 #ifdef SWIG
3628 wxCharBuffer GetCurLineRaw(int* OUTPUT);
3629 #else
3630 wxCharBuffer GetCurLineRaw(int* linePos=NULL);
3631 #endif
3632
3633 // Retrieve the contents of a line.
3634 wxCharBuffer GetLineRaw(int line);
3635
3636 // Retrieve the selected text.
3637 wxCharBuffer GetSelectedTextRaw();
3638
3639 // Retrieve a range of text.
3640 wxCharBuffer GetTextRangeRaw(int startPos, int endPos);
3641
3642 // Replace the contents of the document with the argument text.
3643 void SetTextRaw(const char* text);
3644
3645 // Retrieve all the text in the document.
3646 wxCharBuffer GetTextRaw();
3647
3648 // Append a string to the end of the document without changing the selection.
3649 void AppendTextRaw(const char* text);
3650
3651 #ifdef SWIG
3652 %pythoncode "_stc_utf8_methods.py"
3653 #endif
3654
3655
3656 // implement wxTextAreaBase pure virtual methods
3657 // ---------------------------------------------
3658
3659 virtual int GetLineLength(long n) const { return GetLine(n).length(); }
3660 virtual wxString GetLineText(long n) const { return GetLine(n); }
3661 virtual int GetNumberOfLines() const { return GetLineCount(); }
3662
3663 virtual bool IsModified() const { return GetModify(); }
3664 virtual void MarkDirty() { wxFAIL_MSG("not implemented"); }
3665 virtual void DiscardEdits() { SetSavePoint(); }
3666
3667 virtual bool SetStyle(long WXUNUSED(start), long WXUNUSED(end),
3668 const wxTextAttr& WXUNUSED(style))
3669 {
3670 wxFAIL_MSG("not implemented");
3671
3672 return false;
3673 }
3674
3675 virtual bool GetStyle(long WXUNUSED(position), wxTextAttr& WXUNUSED(style))
3676 {
3677 wxFAIL_MSG("not implemented");
3678
3679 return false;
3680 }
3681
3682 virtual bool SetDefaultStyle(const wxTextAttr& WXUNUSED(style))
3683 {
3684 wxFAIL_MSG("not implemented");
3685
3686 return false;
3687 }
3688
3689 virtual long XYToPosition(long x, long y) const
3690 {
3691 long pos = PositionFromLine(y);
3692 pos += x;
3693 return pos;
3694 }
3695
3696 virtual bool PositionToXY(long pos, long *x, long *y) const
3697 {
3698 if ( x )
3699 *x = -1; // TODO
3700
3701 if ( y )
3702 {
3703 long l = LineFromPosition(pos);
3704 if ( l == -1 )
3705 return false;
3706 *y = l;
3707 }
3708
3709 return true;
3710 }
3711
3712 virtual void ShowPosition(long pos)
3713 {
3714 EnsureVisible(LineFromPosition(pos));
3715 }
3716
3717 using wxWindow::HitTest;
3718
3719 virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const
3720 {
3721 const long l = PositionFromPoint(pt);
3722 if ( l == -1 )
3723 return wxTE_HT_BELOW; // we don't really know where it was
3724
3725 if ( pos )
3726 *pos = l;
3727
3728 return wxTE_HT_ON_TEXT;
3729 }
3730
3731 #ifndef SWIG
3732 protected:
3733 virtual bool DoLoadFile(const wxString& file, int fileType);
3734 virtual bool DoSaveFile(const wxString& file, int fileType);
3735
3736 // Event handlers
3737 void OnPaint(wxPaintEvent& evt);
3738 void OnScrollWin(wxScrollWinEvent& evt);
3739 void OnScroll(wxScrollEvent& evt);
3740 void OnSize(wxSizeEvent& evt);
3741 void OnMouseLeftDown(wxMouseEvent& evt);
3742 void OnMouseMove(wxMouseEvent& evt);
3743 void OnMouseLeftUp(wxMouseEvent& evt);
3744 void OnMouseRightUp(wxMouseEvent& evt);
3745 void OnMouseMiddleUp(wxMouseEvent& evt);
3746 void OnContextMenu(wxContextMenuEvent& evt);
3747 void OnMouseWheel(wxMouseEvent& evt);
3748 void OnChar(wxKeyEvent& evt);
3749 void OnKeyDown(wxKeyEvent& evt);
3750 void OnLoseFocus(wxFocusEvent& evt);
3751 void OnGainFocus(wxFocusEvent& evt);
3752 void OnSysColourChanged(wxSysColourChangedEvent& evt);
3753 void OnEraseBackground(wxEraseEvent& evt);
3754 void OnMenu(wxCommandEvent& evt);
3755 void OnListBox(wxCommandEvent& evt);
3756 void OnIdle(wxIdleEvent& evt);
3757
3758 virtual wxSize DoGetBestSize() const;
3759
3760 // Turn notifications from Scintilla into events
3761 void NotifyChange();
3762 void NotifyParent(SCNotification* scn);
3763
3764 private:
3765 DECLARE_EVENT_TABLE()
3766 DECLARE_DYNAMIC_CLASS(wxStyledTextCtrl)
3767
3768 protected:
3769
3770 ScintillaWX* m_swx;
3771 wxStopWatch m_stopWatch;
3772 wxScrollBar* m_vScrollBar;
3773 wxScrollBar* m_hScrollBar;
3774
3775 bool m_lastKeyDownConsumed;
3776
3777 friend class ScintillaWX;
3778 friend class Platform;
3779 #endif // !SWIG
3780 };
3781
3782 //----------------------------------------------------------------------
3783
3784 class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent {
3785 public:
3786 wxStyledTextEvent(wxEventType commandType=0, int id=0);
3787 #ifndef SWIG
3788 wxStyledTextEvent(const wxStyledTextEvent& event);
3789 #endif
3790 ~wxStyledTextEvent() {}
3791
3792 void SetPosition(int pos) { m_position = pos; }
3793 void SetKey(int k) { m_key = k; }
3794 void SetModifiers(int m) { m_modifiers = m; }
3795 void SetModificationType(int t) { m_modificationType = t; }
3796 void SetText(const wxString& t) { m_text = t; }
3797 void SetLength(int len) { m_length = len; }
3798 void SetLinesAdded(int num) { m_linesAdded = num; }
3799 void SetLine(int val) { m_line = val; }
3800 void SetFoldLevelNow(int val) { m_foldLevelNow = val; }
3801 void SetFoldLevelPrev(int val) { m_foldLevelPrev = val; }
3802 void SetMargin(int val) { m_margin = val; }
3803 void SetMessage(int val) { m_message = val; }
3804 void SetWParam(int val) { m_wParam = val; }
3805 void SetLParam(int val) { m_lParam = val; }
3806 void SetListType(int val) { m_listType = val; }
3807 void SetX(int val) { m_x = val; }
3808 void SetY(int val) { m_y = val; }
3809 void SetDragText(const wxString& val) { m_dragText = val; }
3810 void SetDragAllowMove(bool val) { m_dragAllowMove = val; }
3811 #ifdef STC_USE_DND
3812 void SetDragResult(wxDragResult val) { m_dragResult = val; }
3813 #endif
3814
3815 int GetPosition() const { return m_position; }
3816 int GetKey() const { return m_key; }
3817 int GetModifiers() const { return m_modifiers; }
3818 int GetModificationType() const { return m_modificationType; }
3819 wxString GetText() const { return m_text; }
3820 int GetLength() const { return m_length; }
3821 int GetLinesAdded() const { return m_linesAdded; }
3822 int GetLine() const { return m_line; }
3823 int GetFoldLevelNow() const { return m_foldLevelNow; }
3824 int GetFoldLevelPrev() const { return m_foldLevelPrev; }
3825 int GetMargin() const { return m_margin; }
3826 int GetMessage() const { return m_message; }
3827 int GetWParam() const { return m_wParam; }
3828 int GetLParam() const { return m_lParam; }
3829 int GetListType() const { return m_listType; }
3830 int GetX() const { return m_x; }
3831 int GetY() const { return m_y; }
3832 wxString GetDragText() { return m_dragText; }
3833 bool GetDragAllowMove() { return m_dragAllowMove; }
3834 #ifdef STC_USE_DND
3835 wxDragResult GetDragResult() { return m_dragResult; }
3836 #endif
3837
3838 bool GetShift() const;
3839 bool GetControl() const;
3840 bool GetAlt() const;
3841
3842 virtual wxEvent* Clone() const { return new wxStyledTextEvent(*this); }
3843
3844 #ifndef SWIG
3845 private:
3846 DECLARE_DYNAMIC_CLASS(wxStyledTextEvent)
3847
3848 int m_position;
3849 int m_key;
3850 int m_modifiers;
3851
3852 int m_modificationType; // wxEVT_STC_MODIFIED
3853 wxString m_text;
3854 int m_length;
3855 int m_linesAdded;
3856 int m_line;
3857 int m_foldLevelNow;
3858 int m_foldLevelPrev;
3859
3860 int m_margin; // wxEVT_STC_MARGINCLICK
3861
3862 int m_message; // wxEVT_STC_MACRORECORD
3863 int m_wParam;
3864 int m_lParam;
3865
3866 int m_listType;
3867 int m_x;
3868 int m_y;
3869
3870 wxString m_dragText; // wxEVT_STC_START_DRAG, wxEVT_STC_DO_DROP
3871 bool m_dragAllowMove; // wxEVT_STC_START_DRAG
3872
3873 #if wxUSE_DRAG_AND_DROP
3874 wxDragResult m_dragResult; // wxEVT_STC_DRAG_OVER,wxEVT_STC_DO_DROP
3875 #endif
3876 #endif
3877 };
3878
3879
3880
3881 #ifndef SWIG
3882 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_CHANGE;
3883 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_STYLENEEDED;
3884 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_CHARADDED;
3885 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_SAVEPOINTREACHED;
3886 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_SAVEPOINTLEFT;
3887 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_ROMODIFYATTEMPT;
3888 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_KEY;
3889 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_DOUBLECLICK;
3890 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_UPDATEUI;
3891 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_MODIFIED;
3892 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_MACRORECORD;
3893 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_MARGINCLICK;
3894 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_NEEDSHOWN;
3895 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_PAINTED;
3896 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_USERLISTSELECTION;
3897 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_URIDROPPED;
3898 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_DWELLSTART;
3899 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_DWELLEND;
3900 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_START_DRAG;
3901 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_DRAG_OVER;
3902 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_DO_DROP;
3903 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_ZOOM;
3904 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_HOTSPOT_CLICK;
3905 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_HOTSPOT_DCLICK;
3906 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_CALLTIP_CLICK;
3907 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_AUTOCOMP_SELECTION;
3908 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_INDICATOR_CLICK;
3909 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_INDICATOR_RELEASE;
3910 #else
3911 enum {
3912 wxEVT_STC_CHANGE,
3913 wxEVT_STC_STYLENEEDED,
3914 wxEVT_STC_CHARADDED,
3915 wxEVT_STC_SAVEPOINTREACHED,
3916 wxEVT_STC_SAVEPOINTLEFT,
3917 wxEVT_STC_ROMODIFYATTEMPT,
3918 wxEVT_STC_KEY,
3919 wxEVT_STC_DOUBLECLICK,
3920 wxEVT_STC_UPDATEUI,
3921 wxEVT_STC_MODIFIED,
3922 wxEVT_STC_MACRORECORD,
3923 wxEVT_STC_MARGINCLICK,
3924 wxEVT_STC_NEEDSHOWN,
3925 wxEVT_STC_PAINTED,
3926 wxEVT_STC_USERLISTSELECTION,
3927 wxEVT_STC_URIDROPPED,
3928 wxEVT_STC_DWELLSTART,
3929 wxEVT_STC_DWELLEND,
3930 wxEVT_STC_START_DRAG,
3931 wxEVT_STC_DRAG_OVER,
3932 wxEVT_STC_DO_DROP,
3933 wxEVT_STC_ZOOM,
3934 wxEVT_STC_HOTSPOT_CLICK,
3935 wxEVT_STC_HOTSPOT_DCLICK,
3936 wxEVT_STC_CALLTIP_CLICK,
3937 wxEVT_STC_AUTOCOMP_SELECTION,
3938 wxEVT_STC_INDICATOR_CLICK,
3939 wxEVT_STC_INDICATOR_RELEASE
3940 };
3941 #endif
3942
3943
3944
3945 #ifndef SWIG
3946 typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&);
3947
3948 #define EVT_STC_CHANGE(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHANGE, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3949 #define EVT_STC_STYLENEEDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_STYLENEEDED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3950 #define EVT_STC_CHARADDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHARADDED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3951 #define EVT_STC_SAVEPOINTREACHED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTREACHED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3952 #define EVT_STC_SAVEPOINTLEFT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTLEFT, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3953 #define EVT_STC_ROMODIFYATTEMPT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ROMODIFYATTEMPT, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3954 #define EVT_STC_KEY(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_KEY, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3955 #define EVT_STC_DOUBLECLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DOUBLECLICK, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3956 #define EVT_STC_UPDATEUI(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_UPDATEUI, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3957 #define EVT_STC_MODIFIED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MODIFIED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3958 #define EVT_STC_MACRORECORD(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MACRORECORD, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3959 #define EVT_STC_MARGINCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MARGINCLICK, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3960 #define EVT_STC_NEEDSHOWN(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_NEEDSHOWN, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3961 #define EVT_STC_PAINTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_PAINTED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3962 #define EVT_STC_USERLISTSELECTION(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_USERLISTSELECTION, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3963 #define EVT_STC_URIDROPPED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_URIDROPPED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3964 #define EVT_STC_DWELLSTART(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLSTART, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3965 #define EVT_STC_DWELLEND(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLEND, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3966 #define EVT_STC_START_DRAG(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_START_DRAG, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3967 #define EVT_STC_DRAG_OVER(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DRAG_OVER, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3968 #define EVT_STC_DO_DROP(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DO_DROP, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3969 #define EVT_STC_ZOOM(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ZOOM, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3970 #define EVT_STC_HOTSPOT_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_CLICK, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3971 #define EVT_STC_HOTSPOT_DCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_DCLICK, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3972 #define EVT_STC_CALLTIP_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CALLTIP_CLICK id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3973 #define EVT_STC_AUTOCOMP_SELECTION(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_AUTOCOMP_SELECTION id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3974 #define EVT_STC_INDICATOR_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_INDICATOR_CLICK id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3975 #define EVT_STC_INDICATOR_RELEASE(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_INDICATOR_RELEASE id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
3976
3977 #endif
3978
3979 #endif // wxUSE_STC
3980
3981 #endif // _WX_STC_STC_H_