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