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