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