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