1 ////////////////////////////////////////////////////////////////////////////
3 // Purpose: A wxWindows 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.
14 // Created: 13-Jan-2000
16 // Copyright: (c) 2000 by Total Control Software
17 // Licence: wxWindows license
18 /////////////////////////////////////////////////////////////////////////////
27 //----------------------------------------------------------------------
28 // BEGIN generated section. The following code is automatically generated
29 // by gen_iface.py. Do not edit this file. Edit stc.h.in instead
32 #define wxSTC_INVALID_POSITION -1
34 // Define start of Scintilla messages to be greater than all edit (EM_*) messages
35 // as many EM_ messages can be used although that use is deprecated.
36 #define wxSTC_START 2000
37 #define wxSTC_OPTIONAL_START 3000
38 #define wxSTC_LEXER_START 4000
39 #define wxSTC_CMD_REDO 2011
40 #define wxSTC_CMD_SELECTALL 2013
41 #define wxSTC_WS_INVISIBLE 0
42 #define wxSTC_WS_VISIBLEALWAYS 1
43 #define wxSTC_WS_VISIBLEAFTERINDENT 2
44 #define wxSTC_EOL_CRLF 0
45 #define wxSTC_EOL_CR 1
46 #define wxSTC_EOL_LF 2
48 // The SC_CP_UTF8 value can be used to enter Unicode mode.
49 // This is the same value as CP_UTF8 in Windows
50 #define wxSTC_CP_UTF8 65001
51 #define wxSTC_MARKER_MAX 31
52 #define wxSTC_MARK_CIRCLE 0
53 #define wxSTC_MARK_ROUNDRECT 1
54 #define wxSTC_MARK_ARROW 2
55 #define wxSTC_MARK_SMALLRECT 3
56 #define wxSTC_MARK_SHORTARROW 4
57 #define wxSTC_MARK_EMPTY 5
58 #define wxSTC_MARK_ARROWDOWN 6
59 #define wxSTC_MARK_MINUS 7
60 #define wxSTC_MARK_PLUS 8
62 // Shapes used for outlining column
63 #define wxSTC_MARK_VLINE 9
64 #define wxSTC_MARK_LCORNER 10
65 #define wxSTC_MARK_TCORNER 11
66 #define wxSTC_MARK_BOXPLUS 12
67 #define wxSTC_MARK_BOXPLUSCONNECTED 13
68 #define wxSTC_MARK_BOXMINUS 14
69 #define wxSTC_MARK_BOXMINUSCONNECTED 15
70 #define wxSTC_MARK_LCORNERCURVE 16
71 #define wxSTC_MARK_TCORNERCURVE 17
72 #define wxSTC_MARK_CIRCLEPLUS 18
73 #define wxSTC_MARK_CIRCLEPLUSCONNECTED 19
74 #define wxSTC_MARK_CIRCLEMINUS 20
75 #define wxSTC_MARK_CIRCLEMINUSCONNECTED 21
77 // Invisible mark that only sets the line background color
78 #define wxSTC_MARK_BACKGROUND 22
79 #define wxSTC_MARK_CHARACTER 10000
81 // Markers used for outlining column
82 #define wxSTC_MARKNUM_FOLDEREND 25
83 #define wxSTC_MARKNUM_FOLDEROPENMID 26
84 #define wxSTC_MARKNUM_FOLDERMIDTAIL 27
85 #define wxSTC_MARKNUM_FOLDERTAIL 28
86 #define wxSTC_MARKNUM_FOLDERSUB 29
87 #define wxSTC_MARKNUM_FOLDER 30
88 #define wxSTC_MARKNUM_FOLDEROPEN 31
89 #define wxSTC_MASK_FOLDERS 0xFE000000
90 #define wxSTC_MARGIN_SYMBOL 0
91 #define wxSTC_MARGIN_NUMBER 1
93 // Styles in range 32..37 are predefined for parts of the UI and are not used as normal styles.
94 // Styles 38 and 39 are for future use.
95 #define wxSTC_STYLE_DEFAULT 32
96 #define wxSTC_STYLE_LINENUMBER 33
97 #define wxSTC_STYLE_BRACELIGHT 34
98 #define wxSTC_STYLE_BRACEBAD 35
99 #define wxSTC_STYLE_CONTROLCHAR 36
100 #define wxSTC_STYLE_INDENTGUIDE 37
101 #define wxSTC_STYLE_LASTPREDEFINED 39
102 #define wxSTC_STYLE_MAX 127
104 // Character set identifiers are used in StyleSetCharacterSet.
105 // The values are the same as the Windows *_CHARSET values.
106 #define wxSTC_CHARSET_ANSI 0
107 #define wxSTC_CHARSET_DEFAULT 1
108 #define wxSTC_CHARSET_BALTIC 186
109 #define wxSTC_CHARSET_CHINESEBIG5 136
110 #define wxSTC_CHARSET_EASTEUROPE 238
111 #define wxSTC_CHARSET_GB2312 134
112 #define wxSTC_CHARSET_GREEK 161
113 #define wxSTC_CHARSET_HANGUL 129
114 #define wxSTC_CHARSET_MAC 77
115 #define wxSTC_CHARSET_OEM 255
116 #define wxSTC_CHARSET_RUSSIAN 204
117 #define wxSTC_CHARSET_SHIFTJIS 128
118 #define wxSTC_CHARSET_SYMBOL 2
119 #define wxSTC_CHARSET_TURKISH 162
120 #define wxSTC_CHARSET_JOHAB 130
121 #define wxSTC_CHARSET_HEBREW 177
122 #define wxSTC_CHARSET_ARABIC 178
123 #define wxSTC_CHARSET_VIETNAMESE 163
124 #define wxSTC_CHARSET_THAI 222
125 #define wxSTC_CASE_MIXED 0
126 #define wxSTC_CASE_UPPER 1
127 #define wxSTC_CASE_LOWER 2
128 #define wxSTC_INDIC_MAX 7
129 #define wxSTC_INDIC_PLAIN 0
130 #define wxSTC_INDIC_SQUIGGLE 1
131 #define wxSTC_INDIC_TT 2
132 #define wxSTC_INDIC_DIAGONAL 3
133 #define wxSTC_INDIC_STRIKE 4
134 #define wxSTC_INDIC0_MASK 0x20
135 #define wxSTC_INDIC1_MASK 0x40
136 #define wxSTC_INDIC2_MASK 0x80
137 #define wxSTC_INDICS_MASK 0xE0
139 // PrintColourMode - use same colours as screen.
140 #define wxSTC_PRINT_NORMAL 0
142 // PrintColourMode - invert the light value of each style for printing.
143 #define wxSTC_PRINT_INVERTLIGHT 1
145 // PrintColourMode - force black text on white background for printing.
146 #define wxSTC_PRINT_BLACKONWHITE 2
148 // PrintColourMode - text stays coloured, but all background is forced to be white for printing.
149 #define wxSTC_PRINT_COLOURONWHITE 3
151 // PrintColourMode - only the default-background is forced to be white for printing.
152 #define wxSTC_PRINT_COLOURONWHITEDEFAULTBG 4
153 #define wxSTC_FIND_WHOLEWORD 2
154 #define wxSTC_FIND_MATCHCASE 4
155 #define wxSTC_FIND_WORDSTART 0x00100000
156 #define wxSTC_FIND_REGEXP 0x00200000
157 #define wxSTC_CMD_UNDO 2176
158 #define wxSTC_CMD_CUT 2177
159 #define wxSTC_CMD_COPY 2178
160 #define wxSTC_CMD_PASTE 2179
161 #define wxSTC_FOLDLEVELBASE 0x400
162 #define wxSTC_FOLDLEVELWHITEFLAG 0x1000
163 #define wxSTC_FOLDLEVELHEADERFLAG 0x2000
164 #define wxSTC_FOLDLEVELNUMBERMASK 0x0FFF
165 #define wxSTC_TIME_FOREVER 10000000
166 #define wxSTC_WRAP_NONE 0
167 #define wxSTC_WRAP_WORD 1
168 #define wxSTC_CACHE_NONE 0
169 #define wxSTC_CACHE_CARET 1
170 #define wxSTC_CACHE_PAGE 2
171 #define wxSTC_CACHE_DOCUMENT 3
172 #define wxSTC_CMD_LINEDOWN 2300
173 #define wxSTC_CMD_LINEDOWNEXTEND 2301
174 #define wxSTC_CMD_LINEUP 2302
175 #define wxSTC_CMD_LINEUPEXTEND 2303
176 #define wxSTC_CMD_CHARLEFT 2304
177 #define wxSTC_CMD_CHARLEFTEXTEND 2305
178 #define wxSTC_CMD_CHARRIGHT 2306
179 #define wxSTC_CMD_CHARRIGHTEXTEND 2307
180 #define wxSTC_CMD_WORDLEFT 2308
181 #define wxSTC_CMD_WORDLEFTEXTEND 2309
182 #define wxSTC_CMD_WORDRIGHT 2310
183 #define wxSTC_CMD_WORDRIGHTEXTEND 2311
184 #define wxSTC_CMD_HOME 2312
185 #define wxSTC_CMD_HOMEEXTEND 2313
186 #define wxSTC_CMD_LINEEND 2314
187 #define wxSTC_CMD_LINEENDEXTEND 2315
188 #define wxSTC_CMD_DOCUMENTSTART 2316
189 #define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317
190 #define wxSTC_CMD_DOCUMENTEND 2318
191 #define wxSTC_CMD_DOCUMENTENDEXTEND 2319
192 #define wxSTC_CMD_PAGEUP 2320
193 #define wxSTC_CMD_PAGEUPEXTEND 2321
194 #define wxSTC_CMD_PAGEDOWN 2322
195 #define wxSTC_CMD_PAGEDOWNEXTEND 2323
196 #define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324
197 #define wxSTC_CMD_CANCEL 2325
198 #define wxSTC_CMD_DELETEBACK 2326
199 #define wxSTC_CMD_TAB 2327
200 #define wxSTC_CMD_BACKTAB 2328
201 #define wxSTC_CMD_NEWLINE 2329
202 #define wxSTC_CMD_FORMFEED 2330
203 #define wxSTC_CMD_VCHOME 2331
204 #define wxSTC_CMD_VCHOMEEXTEND 2332
205 #define wxSTC_CMD_ZOOMIN 2333
206 #define wxSTC_CMD_ZOOMOUT 2334
207 #define wxSTC_CMD_DELWORDLEFT 2335
208 #define wxSTC_CMD_DELWORDRIGHT 2336
209 #define wxSTC_CMD_LINECUT 2337
210 #define wxSTC_CMD_LINEDELETE 2338
211 #define wxSTC_CMD_LINETRANSPOSE 2339
212 #define wxSTC_CMD_LOWERCASE 2340
213 #define wxSTC_CMD_UPPERCASE 2341
214 #define wxSTC_CMD_LINESCROLLDOWN 2342
215 #define wxSTC_CMD_LINESCROLLUP 2343
216 #define wxSTC_CMD_DELETEBACKNOTLINE 2344
217 #define wxSTC_EDGE_NONE 0
218 #define wxSTC_EDGE_LINE 1
219 #define wxSTC_EDGE_BACKGROUND 2
221 // Show caret within N lines of edge when it's scrolled to view
222 // If CARET_SLOP not set then centre caret on screen when it's
224 #define wxSTC_CARET_SLOP 0x01
227 #define wxSTC_CARET_CENTER 0x02
229 // If CARET_SLOP also set then reposition whenever outside slop border
230 // If CARET_SLOP not set then recentre even when visible
231 #define wxSTC_CARET_STRICT 0x04
233 // If CARET_XEVEN set then both left and right margins are given equal weight
234 // rather than favouring left following behaviour.
235 #define wxSTC_CARET_XEVEN 0x08
237 // If CARET_XJUMPS set then when caret reaches the margin the display jumps
238 // enough to leave the caret solidly within the display.
239 #define wxSTC_CARET_XJUMPS 0x10
240 #define wxSTC_CURSORNORMAL -1
241 #define wxSTC_CURSORWAIT 3
243 // Constants for use with SetVisiblePolicy, similar to SetCaretPolicy
244 #define wxSTC_VISIBLE_SLOP 0x01
245 #define wxSTC_VISIBLE_STRICT 0x04
248 // Type of modification and the action which caused the modification
249 // These are defined as a bit mask to make it easy to specify which notifications are wanted.
250 // One bit is set from each of SC_MOD_* and SC_PERFORMED_*.
251 #define wxSTC_MOD_INSERTTEXT 0x1
252 #define wxSTC_MOD_DELETETEXT 0x2
253 #define wxSTC_MOD_CHANGESTYLE 0x4
254 #define wxSTC_MOD_CHANGEFOLD 0x8
255 #define wxSTC_PERFORMED_USER 0x10
256 #define wxSTC_PERFORMED_UNDO 0x20
257 #define wxSTC_PERFORMED_REDO 0x40
258 #define wxSTC_LASTSTEPINUNDOREDO 0x100
259 #define wxSTC_MOD_CHANGEMARKER 0x200
260 #define wxSTC_MOD_BEFOREINSERT 0x400
261 #define wxSTC_MOD_BEFOREDELETE 0x800
262 #define wxSTC_MODEVENTMASKALL 0xF77
264 // Symbolic key codes and modifier flags
265 // ASCII and other printable characters below 256
266 // Extended keys above 300
267 #define wxSTC_KEY_DOWN 300
268 #define wxSTC_KEY_UP 301
269 #define wxSTC_KEY_LEFT 302
270 #define wxSTC_KEY_RIGHT 303
271 #define wxSTC_KEY_HOME 304
272 #define wxSTC_KEY_END 305
273 #define wxSTC_KEY_PRIOR 306
274 #define wxSTC_KEY_NEXT 307
275 #define wxSTC_KEY_DELETE 308
276 #define wxSTC_KEY_INSERT 309
277 #define wxSTC_KEY_ESCAPE 7
278 #define wxSTC_KEY_BACK 8
279 #define wxSTC_KEY_TAB 9
280 #define wxSTC_KEY_RETURN 13
281 #define wxSTC_KEY_ADD 310
282 #define wxSTC_KEY_SUBTRACT 311
283 #define wxSTC_KEY_DIVIDE 312
284 #define wxSTC_SCMOD_SHIFT 1
285 #define wxSTC_SCMOD_CTRL 2
286 #define wxSTC_SCMOD_ALT 4
289 #define wxSTC_LEX_CONTAINER 0
290 #define wxSTC_LEX_NULL 1
291 #define wxSTC_LEX_PYTHON 2
292 #define wxSTC_LEX_CPP 3
293 #define wxSTC_LEX_HTML 4
294 #define wxSTC_LEX_XML 5
295 #define wxSTC_LEX_PERL 6
296 #define wxSTC_LEX_SQL 7
297 #define wxSTC_LEX_VB 8
298 #define wxSTC_LEX_PROPERTIES 9
299 #define wxSTC_LEX_ERRORLIST 10
300 #define wxSTC_LEX_MAKEFILE 11
301 #define wxSTC_LEX_BATCH 12
302 #define wxSTC_LEX_XCODE 13
303 #define wxSTC_LEX_LATEX 14
304 #define wxSTC_LEX_LUA 15
305 #define wxSTC_LEX_DIFF 16
306 #define wxSTC_LEX_CONF 17
307 #define wxSTC_LEX_PASCAL 18
308 #define wxSTC_LEX_AVE 19
309 #define wxSTC_LEX_ADA 20
310 #define wxSTC_LEX_LISP 21
311 #define wxSTC_LEX_RUBY 22
312 #define wxSTC_LEX_EIFFEL 23
313 #define wxSTC_LEX_EIFFELKW 24
314 #define wxSTC_LEX_TCL 25
315 #define wxSTC_LEX_NNCRONTAB 26
316 #define wxSTC_LEX_BULLANT 27
317 #define wxSTC_LEX_VBSCRIPT 28
318 #define wxSTC_LEX_ASP 29
319 #define wxSTC_LEX_PHP 30
320 #define wxSTC_LEX_BAAN 31
321 #define wxSTC_LEX_MATLAB 32
323 // When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
324 // value assigned in sequence from SCLEX_AUTOMATIC+1.
325 #define wxSTC_LEX_AUTOMATIC 1000
327 // Lexical states for SCLEX_PYTHON
328 #define wxSTC_P_DEFAULT 0
329 #define wxSTC_P_COMMENTLINE 1
330 #define wxSTC_P_NUMBER 2
331 #define wxSTC_P_STRING 3
332 #define wxSTC_P_CHARACTER 4
333 #define wxSTC_P_WORD 5
334 #define wxSTC_P_TRIPLE 6
335 #define wxSTC_P_TRIPLEDOUBLE 7
336 #define wxSTC_P_CLASSNAME 8
337 #define wxSTC_P_DEFNAME 9
338 #define wxSTC_P_OPERATOR 10
339 #define wxSTC_P_IDENTIFIER 11
340 #define wxSTC_P_COMMENTBLOCK 12
341 #define wxSTC_P_STRINGEOL 13
343 // Lexical states for SCLEX_CPP
344 #define wxSTC_C_DEFAULT 0
345 #define wxSTC_C_COMMENT 1
346 #define wxSTC_C_COMMENTLINE 2
347 #define wxSTC_C_COMMENTDOC 3
348 #define wxSTC_C_NUMBER 4
349 #define wxSTC_C_WORD 5
350 #define wxSTC_C_STRING 6
351 #define wxSTC_C_CHARACTER 7
352 #define wxSTC_C_UUID 8
353 #define wxSTC_C_PREPROCESSOR 9
354 #define wxSTC_C_OPERATOR 10
355 #define wxSTC_C_IDENTIFIER 11
356 #define wxSTC_C_STRINGEOL 12
357 #define wxSTC_C_VERBATIM 13
358 #define wxSTC_C_REGEX 14
359 #define wxSTC_C_COMMENTLINEDOC 15
360 #define wxSTC_C_WORD2 16
361 #define wxSTC_C_COMMENTDOCKEYWORD 17
362 #define wxSTC_C_COMMENTDOCKEYWORDERROR 18
364 // Lexical states for SCLEX_VB, SCLEX_VBSCRIPT
365 #define wxSTC_B_DEFAULT 0
366 #define wxSTC_B_COMMENT 1
367 #define wxSTC_B_NUMBER 2
368 #define wxSTC_B_KEYWORD 3
369 #define wxSTC_B_STRING 4
370 #define wxSTC_B_PREPROCESSOR 5
371 #define wxSTC_B_OPERATOR 6
372 #define wxSTC_B_IDENTIFIER 7
373 #define wxSTC_B_DATE 8
375 // Lexical states for SCLEX_HTML, SCLEX_XML
376 #define wxSTC_H_DEFAULT 0
377 #define wxSTC_H_TAG 1
378 #define wxSTC_H_TAGUNKNOWN 2
379 #define wxSTC_H_ATTRIBUTE 3
380 #define wxSTC_H_ATTRIBUTEUNKNOWN 4
381 #define wxSTC_H_NUMBER 5
382 #define wxSTC_H_DOUBLESTRING 6
383 #define wxSTC_H_SINGLESTRING 7
384 #define wxSTC_H_OTHER 8
385 #define wxSTC_H_COMMENT 9
386 #define wxSTC_H_ENTITY 10
389 #define wxSTC_H_TAGEND 11
390 #define wxSTC_H_XMLSTART 12
391 #define wxSTC_H_XMLEND 13
392 #define wxSTC_H_SCRIPT 14
393 #define wxSTC_H_ASP 15
394 #define wxSTC_H_ASPAT 16
395 #define wxSTC_H_CDATA 17
396 #define wxSTC_H_QUESTION 18
399 #define wxSTC_H_VALUE 19
402 #define wxSTC_H_XCCOMMENT 20
405 #define wxSTC_H_SGML_DEFAULT 21
406 #define wxSTC_H_SGML_COMMAND 22
407 #define wxSTC_H_SGML_1ST_PARAM 23
408 #define wxSTC_H_SGML_DOUBLESTRING 24
409 #define wxSTC_H_SGML_SIMPLESTRING 25
410 #define wxSTC_H_SGML_ERROR 26
411 #define wxSTC_H_SGML_SPECIAL 27
412 #define wxSTC_H_SGML_ENTITY 28
413 #define wxSTC_H_SGML_COMMENT 29
414 #define wxSTC_H_SGML_1ST_PARAM_COMMENT 30
415 #define wxSTC_H_SGML_BLOCK_DEFAULT 31
417 // Embedded Javascript
418 #define wxSTC_HJ_START 40
419 #define wxSTC_HJ_DEFAULT 41
420 #define wxSTC_HJ_COMMENT 42
421 #define wxSTC_HJ_COMMENTLINE 43
422 #define wxSTC_HJ_COMMENTDOC 44
423 #define wxSTC_HJ_NUMBER 45
424 #define wxSTC_HJ_WORD 46
425 #define wxSTC_HJ_KEYWORD 47
426 #define wxSTC_HJ_DOUBLESTRING 48
427 #define wxSTC_HJ_SINGLESTRING 49
428 #define wxSTC_HJ_SYMBOLS 50
429 #define wxSTC_HJ_STRINGEOL 51
430 #define wxSTC_HJ_REGEX 52
433 #define wxSTC_HJA_START 55
434 #define wxSTC_HJA_DEFAULT 56
435 #define wxSTC_HJA_COMMENT 57
436 #define wxSTC_HJA_COMMENTLINE 58
437 #define wxSTC_HJA_COMMENTDOC 59
438 #define wxSTC_HJA_NUMBER 60
439 #define wxSTC_HJA_WORD 61
440 #define wxSTC_HJA_KEYWORD 62
441 #define wxSTC_HJA_DOUBLESTRING 63
442 #define wxSTC_HJA_SINGLESTRING 64
443 #define wxSTC_HJA_SYMBOLS 65
444 #define wxSTC_HJA_STRINGEOL 66
445 #define wxSTC_HJA_REGEX 67
448 #define wxSTC_HB_START 70
449 #define wxSTC_HB_DEFAULT 71
450 #define wxSTC_HB_COMMENTLINE 72
451 #define wxSTC_HB_NUMBER 73
452 #define wxSTC_HB_WORD 74
453 #define wxSTC_HB_STRING 75
454 #define wxSTC_HB_IDENTIFIER 76
455 #define wxSTC_HB_STRINGEOL 77
458 #define wxSTC_HBA_START 80
459 #define wxSTC_HBA_DEFAULT 81
460 #define wxSTC_HBA_COMMENTLINE 82
461 #define wxSTC_HBA_NUMBER 83
462 #define wxSTC_HBA_WORD 84
463 #define wxSTC_HBA_STRING 85
464 #define wxSTC_HBA_IDENTIFIER 86
465 #define wxSTC_HBA_STRINGEOL 87
468 #define wxSTC_HP_START 90
469 #define wxSTC_HP_DEFAULT 91
470 #define wxSTC_HP_COMMENTLINE 92
471 #define wxSTC_HP_NUMBER 93
472 #define wxSTC_HP_STRING 94
473 #define wxSTC_HP_CHARACTER 95
474 #define wxSTC_HP_WORD 96
475 #define wxSTC_HP_TRIPLE 97
476 #define wxSTC_HP_TRIPLEDOUBLE 98
477 #define wxSTC_HP_CLASSNAME 99
478 #define wxSTC_HP_DEFNAME 100
479 #define wxSTC_HP_OPERATOR 101
480 #define wxSTC_HP_IDENTIFIER 102
483 #define wxSTC_HPA_START 105
484 #define wxSTC_HPA_DEFAULT 106
485 #define wxSTC_HPA_COMMENTLINE 107
486 #define wxSTC_HPA_NUMBER 108
487 #define wxSTC_HPA_STRING 109
488 #define wxSTC_HPA_CHARACTER 110
489 #define wxSTC_HPA_WORD 111
490 #define wxSTC_HPA_TRIPLE 112
491 #define wxSTC_HPA_TRIPLEDOUBLE 113
492 #define wxSTC_HPA_CLASSNAME 114
493 #define wxSTC_HPA_DEFNAME 115
494 #define wxSTC_HPA_OPERATOR 116
495 #define wxSTC_HPA_IDENTIFIER 117
498 #define wxSTC_HPHP_DEFAULT 118
499 #define wxSTC_HPHP_HSTRING 119
500 #define wxSTC_HPHP_SIMPLESTRING 120
501 #define wxSTC_HPHP_WORD 121
502 #define wxSTC_HPHP_NUMBER 122
503 #define wxSTC_HPHP_VARIABLE 123
504 #define wxSTC_HPHP_COMMENT 124
505 #define wxSTC_HPHP_COMMENTLINE 125
506 #define wxSTC_HPHP_HSTRING_VARIABLE 126
507 #define wxSTC_HPHP_OPERATOR 127
509 // Lexical states for SCLEX_PERL
510 #define wxSTC_PL_DEFAULT 0
511 #define wxSTC_PL_ERROR 1
512 #define wxSTC_PL_COMMENTLINE 2
513 #define wxSTC_PL_POD 3
514 #define wxSTC_PL_NUMBER 4
515 #define wxSTC_PL_WORD 5
516 #define wxSTC_PL_STRING 6
517 #define wxSTC_PL_CHARACTER 7
518 #define wxSTC_PL_PUNCTUATION 8
519 #define wxSTC_PL_PREPROCESSOR 9
520 #define wxSTC_PL_OPERATOR 10
521 #define wxSTC_PL_IDENTIFIER 11
522 #define wxSTC_PL_SCALAR 12
523 #define wxSTC_PL_ARRAY 13
524 #define wxSTC_PL_HASH 14
525 #define wxSTC_PL_SYMBOLTABLE 15
526 #define wxSTC_PL_REGEX 17
527 #define wxSTC_PL_REGSUBST 18
528 #define wxSTC_PL_LONGQUOTE 19
529 #define wxSTC_PL_BACKTICKS 20
530 #define wxSTC_PL_DATASECTION 21
531 #define wxSTC_PL_HERE_DELIM 22
532 #define wxSTC_PL_HERE_Q 23
533 #define wxSTC_PL_HERE_QQ 24
534 #define wxSTC_PL_HERE_QX 25
535 #define wxSTC_PL_STRING_Q 26
536 #define wxSTC_PL_STRING_QQ 27
537 #define wxSTC_PL_STRING_QX 28
538 #define wxSTC_PL_STRING_QR 29
539 #define wxSTC_PL_STRING_QW 30
541 // Lexical states for SCLEX_LATEX
542 #define wxSTC_L_DEFAULT 0
543 #define wxSTC_L_COMMAND 1
544 #define wxSTC_L_TAG 2
545 #define wxSTC_L_MATH 3
546 #define wxSTC_L_COMMENT 4
548 // Lexical states for SCLEX_LUA
549 #define wxSTC_LUA_DEFAULT 0
550 #define wxSTC_LUA_COMMENT 1
551 #define wxSTC_LUA_COMMENTLINE 2
552 #define wxSTC_LUA_COMMENTDOC 3
553 #define wxSTC_LUA_NUMBER 4
554 #define wxSTC_LUA_WORD 5
555 #define wxSTC_LUA_STRING 6
556 #define wxSTC_LUA_CHARACTER 7
557 #define wxSTC_LUA_LITERALSTRING 8
558 #define wxSTC_LUA_PREPROCESSOR 9
559 #define wxSTC_LUA_OPERATOR 10
560 #define wxSTC_LUA_IDENTIFIER 11
561 #define wxSTC_LUA_STRINGEOL 12
562 #define wxSTC_LUA_WORD2 13
563 #define wxSTC_LUA_WORD3 14
564 #define wxSTC_LUA_WORD4 15
565 #define wxSTC_LUA_WORD5 16
566 #define wxSTC_LUA_WORD6 17
568 // Lexical states for SCLEX_ERRORLIST
569 #define wxSTC_ERR_DEFAULT 0
570 #define wxSTC_ERR_PYTHON 1
571 #define wxSTC_ERR_GCC 2
572 #define wxSTC_ERR_MS 3
573 #define wxSTC_ERR_CMD 4
574 #define wxSTC_ERR_BORLAND 5
575 #define wxSTC_ERR_PERL 6
576 #define wxSTC_ERR_NET 7
577 #define wxSTC_ERR_LUA 8
578 #define wxSTC_ERR_DIFF_CHANGED 10
579 #define wxSTC_ERR_DIFF_ADDITION 11
580 #define wxSTC_ERR_DIFF_DELETION 12
581 #define wxSTC_ERR_DIFF_MESSAGE 13
583 // Lexical states for SCLEX_BATCH
584 #define wxSTC_BAT_DEFAULT 0
585 #define wxSTC_BAT_COMMENT 1
586 #define wxSTC_BAT_WORD 2
587 #define wxSTC_BAT_LABEL 3
588 #define wxSTC_BAT_HIDE 4
589 #define wxSTC_BAT_COMMAND 5
590 #define wxSTC_BAT_IDENTIFIER 6
591 #define wxSTC_BAT_OPERATOR 7
593 // Lexical states for SCLEX_MAKEFILE
594 #define wxSTC_MAKE_DEFAULT 0
595 #define wxSTC_MAKE_COMMENT 1
596 #define wxSTC_MAKE_PREPROCESSOR 2
597 #define wxSTC_MAKE_IDENTIFIER 3
598 #define wxSTC_MAKE_OPERATOR 4
599 #define wxSTC_MAKE_TARGET 5
600 #define wxSTC_MAKE_IDEOL 9
602 // Lexical states for the SCLEX_CONF (Apache Configuration Files Lexer)
603 #define wxSTC_CONF_DEFAULT 0
604 #define wxSTC_CONF_COMMENT 1
605 #define wxSTC_CONF_NUMBER 2
606 #define wxSTC_CONF_IDENTIFIER 3
607 #define wxSTC_CONF_EXTENSION 4
608 #define wxSTC_CONF_PARAMETER 5
609 #define wxSTC_CONF_STRING 6
610 #define wxSTC_CONF_OPERATOR 7
611 #define wxSTC_CONF_IP 8
612 #define wxSTC_CONF_DIRECTIVE 9
615 #define wxSTC_AVE_DEFAULT 0
616 #define wxSTC_AVE_COMMENT 1
617 #define wxSTC_AVE_NUMBER 2
618 #define wxSTC_AVE_WORD 3
619 #define wxSTC_AVE_KEYWORD 4
620 #define wxSTC_AVE_STATEMENT 5
621 #define wxSTC_AVE_STRING 6
622 #define wxSTC_AVE_ENUM 7
623 #define wxSTC_AVE_STRINGEOL 8
624 #define wxSTC_AVE_IDENTIFIER 9
625 #define wxSTC_AVE_OPERATOR 10
627 // Lexical states for SCLEX_ADA
628 #define wxSTC_ADA_DEFAULT 0
629 #define wxSTC_ADA_COMMENT 1
630 #define wxSTC_ADA_NUMBER 2
631 #define wxSTC_ADA_WORD 3
632 #define wxSTC_ADA_STRING 4
633 #define wxSTC_ADA_CHARACTER 5
634 #define wxSTC_ADA_OPERATOR 6
635 #define wxSTC_ADA_IDENTIFIER 7
636 #define wxSTC_ADA_STRINGEOL 8
638 // Lexical states for SCLEX_BAAN
639 #define wxSTC_BAAN_DEFAULT 0
640 #define wxSTC_BAAN_COMMENT 1
641 #define wxSTC_BAAN_COMMENTDOC 2
642 #define wxSTC_BAAN_NUMBER 3
643 #define wxSTC_BAAN_WORD 4
644 #define wxSTC_BAAN_STRING 5
645 #define wxSTC_BAAN_PREPROCESSOR 6
646 #define wxSTC_BAAN_OPERATOR 7
647 #define wxSTC_BAAN_IDENTIFIER 8
648 #define wxSTC_BAAN_STRINGEOL 9
649 #define wxSTC_BAAN_WORD2 10
651 // Lexical states for SCLEX_LISP
652 #define wxSTC_LISP_DEFAULT 0
653 #define wxSTC_LISP_COMMENT 1
654 #define wxSTC_LISP_NUMBER 2
655 #define wxSTC_LISP_KEYWORD 3
656 #define wxSTC_LISP_STRING 6
657 #define wxSTC_LISP_STRINGEOL 8
658 #define wxSTC_LISP_IDENTIFIER 9
659 #define wxSTC_LISP_OPERATOR 10
661 // Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW
662 #define wxSTC_EIFFEL_DEFAULT 0
663 #define wxSTC_EIFFEL_COMMENTLINE 1
664 #define wxSTC_EIFFEL_NUMBER 2
665 #define wxSTC_EIFFEL_WORD 3
666 #define wxSTC_EIFFEL_STRING 4
667 #define wxSTC_EIFFEL_CHARACTER 5
668 #define wxSTC_EIFFEL_OPERATOR 6
669 #define wxSTC_EIFFEL_IDENTIFIER 7
670 #define wxSTC_EIFFEL_STRINGEOL 8
672 // Lexical states for the SCLEX_NNCRONTAB (nnCron crontab Lexer)
673 #define wxSTC_NNCRONTAB_DEFAULT 0
674 #define wxSTC_NNCRONTAB_COMMENT 1
675 #define wxSTC_NNCRONTAB_TASK 2
676 #define wxSTC_NNCRONTAB_SECTION 3
677 #define wxSTC_NNCRONTAB_KEYWORD 4
678 #define wxSTC_NNCRONTAB_MODIFIER 5
679 #define wxSTC_NNCRONTAB_ASTERISK 6
680 #define wxSTC_NNCRONTAB_NUMBER 7
681 #define wxSTC_NNCRONTAB_STRING 8
682 #define wxSTC_NNCRONTAB_ENVIRONMENT 9
683 #define wxSTC_NNCRONTAB_IDENTIFIER 10
685 // Lexical states for SCLEX_MATLAB
686 #define wxSTC_MATLAB_DEFAULT 0
687 #define wxSTC_MATLAB_COMMENT 1
688 #define wxSTC_MATLAB_COMMAND 2
689 #define wxSTC_MATLAB_NUMBER 3
690 #define wxSTC_MATLAB_KEYWORD 4
691 #define wxSTC_MATLAB_STRING 5
692 #define wxSTC_MATLAB_OPERATOR 6
693 #define wxSTC_MATLAB_IDENTIFIER 7
695 // END of generated section
696 //----------------------------------------------------------------------
698 class ScintillaWX
; // forward declare
700 struct SCNotification
;
703 extern const wxChar
* wxSTCNameStr
;
705 //----------------------------------------------------------------------
707 class wxStyledTextCtrl
: public wxControl
{
711 wxStyledTextCtrl(wxWindow
*parent
, wxWindowID id
,
712 const wxPoint
& pos
= wxDefaultPosition
,
713 const wxSize
& size
= wxDefaultSize
, long style
= 0,
714 const char* name
= "styledtext");
715 %pragma
(python
) addtomethod
= "__init__:self._setOORInfo(self)"
718 wxStyledTextCtrl(wxWindow
*parent
, wxWindowID id
,
719 const wxPoint
& pos
= wxDefaultPosition
,
720 const wxSize
& size
= wxDefaultSize
, long style
= 0,
721 const wxString
& name
= wxSTCNameStr
);
729 //----------------------------------------------------------------------
730 // BEGIN generated section. The following code is automatically generated
731 // by gen_iface.py. Do not edit this file. Edit stc.h.in instead
735 // Add text to the document
736 void AddText(const wxString
& text
);
738 // Add array of cells to document
739 void AddStyledText(const wxString
& text
);
741 // Insert string at a position
742 void InsertText(int pos
, const wxString
& text
);
744 // Delete all text in the document
747 // Set all style bytes to 0, remove all folding information
748 void ClearDocumentStyle();
750 // The number of characters in the document
753 // Returns the character byte at the position
754 int GetCharAt(int pos
);
756 // Returns the position of the caret
759 // Returns the position of the opposite end of the selection to the caret
762 // Returns the style byte at the position
763 int GetStyleAt(int pos
);
765 // Redoes the next action on the undo history
768 // Choose between collecting actions into the undo
769 // history and discarding them.
770 void SetUndoCollection(bool collectUndo
);
772 // Select all the text in the document.
775 // Remember the current position in the undo history as the position
776 // at which the document was saved.
779 // Retrieve a buffer of cells.
780 wxString
GetStyledText(int startPos
, int endPos
);
782 // Are there any redoable actions in the undo history.
785 // Retrieve the line number at which a particular marker is located
786 int MarkerLineFromHandle(int handle
);
789 void MarkerDeleteHandle(int handle
);
791 // Is undo history being collected?
792 bool GetUndoCollection();
794 // Are white space characters currently visible?
795 // Returns one of SCWS_* constants.
796 int GetViewWhiteSpace();
798 // Make white space characters invisible, always visible or visible outside indentation.
799 void SetViewWhiteSpace(int viewWS
);
801 // Find the position from a point within the window.
802 int PositionFromPoint(wxPoint pt
);
804 // Find the position from a point within the window but return
805 // INVALID_POSITION if not close to text.
806 int PositionFromPointClose(int x
, int y
);
808 // Set caret to start of a line and ensure it is visible.
809 void GotoLine(int line
);
811 // Set caret to a position and ensure it is visible.
812 void GotoPos(int pos
);
814 // Set the selection anchor to a position. The anchor is the opposite
815 // end of the selection from the caret.
816 void SetAnchor(int posAnchor
);
818 // Retrieve the text of the line containing the caret.
819 // Returns the index of the caret on the line.
821 wxString
GetCurLine(int* OUTPUT
);
823 wxString
GetCurLine(int* linePos
=NULL
);
826 // Retrieve the position of the last correctly styled character.
829 // Convert all line endings in the document to one mode.
830 void ConvertEOLs(int eolMode
);
832 // Retrieve the current end of line mode - one of CRLF, CR, or LF.
835 // Set the current end of line mode.
836 void SetEOLMode(int eolMode
);
838 // Set the current styling position to pos and the styling mask to mask.
839 // The styling mask can be used to protect some bits in each styling byte from
841 void StartStyling(int pos
, int mask
);
843 // Change style from current styling position for length characters to a style
844 // and move the current styling position to after this newly styled segment.
845 void SetStyling(int length
, int style
);
847 // Is drawing done first into a buffer or direct to the screen.
848 bool GetBufferedDraw();
850 // If drawing is buffered then each line of text is drawn into a bitmap buffer
851 // before drawing it to the screen to avoid flicker.
852 void SetBufferedDraw(bool buffered
);
854 // Change the visible size of a tab to be a multiple of the width of a space
856 void SetTabWidth(int tabWidth
);
858 // Retrieve the visible size of a tab.
861 // Set the code page used to interpret the bytes of the document as characters.
862 // The SC_CP_UTF8 value can be used to enter Unicode mode.
863 void SetCodePage(int codePage
);
865 // Set the symbol used for a particular marker number,
866 // and optionally the fore and background colours.
867 void MarkerDefine(int markerNumber
, int markerSymbol
,
868 const wxColour
& foreground
= wxNullColour
,
869 const wxColour
& background
= wxNullColour
);
871 // Set the foreground colour used for a particular marker number.
872 void MarkerSetForeground(int markerNumber
, const wxColour
& fore
);
874 // Set the background colour used for a particular marker number.
875 void MarkerSetBackground(int markerNumber
, const wxColour
& back
);
877 // Add a marker to a line, returning an ID which can be used to find or delete the marker.
878 int MarkerAdd(int line
, int markerNumber
);
880 // Delete a marker from a line
881 void MarkerDelete(int line
, int markerNumber
);
883 // Delete all markers with a particular number from all lines
884 void MarkerDeleteAll(int markerNumber
);
886 // Get a bit mask of all the markers set on a line.
887 int MarkerGet(int line
);
889 // Find the next line after lineStart that includes a marker in mask.
890 int MarkerNext(int lineStart
, int markerMask
);
892 // Find the previous line before lineStart that includes a marker in mask.
893 int MarkerPrevious(int lineStart
, int markerMask
);
895 // Set a margin to be either numeric or symbolic.
896 void SetMarginType(int margin
, int marginType
);
898 // Retrieve the type of a margin.
899 int GetMarginType(int margin
);
901 // Set the width of a margin to a width expressed in pixels.
902 void SetMarginWidth(int margin
, int pixelWidth
);
904 // Retrieve the width of a margin in pixels.
905 int GetMarginWidth(int margin
);
907 // Set a mask that determines which markers are displayed in a margin.
908 void SetMarginMask(int margin
, int mask
);
910 // Retrieve the marker mask of a margin.
911 int GetMarginMask(int margin
);
913 // Make a margin sensitive or insensitive to mouse clicks.
914 void SetMarginSensitive(int margin
, bool sensitive
);
916 // Retrieve the mouse click sensitivity of a margin.
917 bool GetMarginSensitive(int margin
);
919 // Clear all the styles and make equivalent to the global default style.
920 void StyleClearAll();
922 // Set the foreground colour of a style.
923 void StyleSetForeground(int style
, const wxColour
& fore
);
925 // Set the background colour of a style.
926 void StyleSetBackground(int style
, const wxColour
& back
);
928 // Set a style to be bold or not.
929 void StyleSetBold(int style
, bool bold
);
931 // Set a style to be italic or not.
932 void StyleSetItalic(int style
, bool italic
);
934 // Set the size of characters of a style.
935 void StyleSetSize(int style
, int sizePoints
);
937 // Set the font of a style.
938 void StyleSetFaceName(int style
, const wxString
& fontName
);
940 // Set a style to have its end of line filled or not.
941 void StyleSetEOLFilled(int style
, bool filled
);
943 // Reset the default style to its state at startup
944 void StyleResetDefault();
946 // Set a style to be underlined or not.
947 void StyleSetUnderline(int style
, bool underline
);
949 // Set a style to be mixed case, or to force upper or lower case.
950 void StyleSetCase(int style
, int caseForce
);
952 // Set the foreground colour of the selection and whether to use this setting.
953 void SetSelForeground(bool useSetting
, const wxColour
& fore
);
955 // Set the background colour of the selection and whether to use this setting.
956 void SetSelBackground(bool useSetting
, const wxColour
& back
);
958 // Set the foreground colour of the caret.
959 void SetCaretForeground(const wxColour
& fore
);
961 // When key+modifier combination km is pressed perform msg.
962 void CmdKeyAssign(int key
, int modifiers
, int cmd
);
964 // When key+modifier combination km do nothing.
965 void CmdKeyClear(int key
, int modifiers
);
967 // Drop all key mappings.
968 void CmdKeyClearAll();
970 // Set the styles for a segment of the document.
971 void SetStyleBytes(int length
, char* styleBytes
);
973 // Set a style to be visible or not.
974 void StyleSetVisible(int style
, bool visible
);
976 // Get the time in milliseconds that the caret is on and off.
977 int GetCaretPeriod();
979 // Get the time in milliseconds that the caret is on and off. 0 = steady on.
980 void SetCaretPeriod(int periodMilliseconds
);
982 // Set the set of characters making up words for when moving or selecting
984 void SetWordChars(const wxString
& characters
);
986 // Start a sequence of actions that is undone and redone as a unit.
988 void BeginUndoAction();
990 // End a sequence of actions that is undone and redone as a unit.
991 void EndUndoAction();
993 // Set an indicator to plain, squiggle or TT.
994 void IndicatorSetStyle(int indic
, int style
);
996 // Retrieve the style of an indicator.
997 int IndicatorGetStyle(int indic
);
999 // Set the foreground colour of an indicator.
1000 void IndicatorSetForeground(int indic
, const wxColour
& fore
);
1002 // Retrieve the foreground colour of an indicator.
1003 wxColour
IndicatorGetForeground(int indic
);
1005 // Divide each styling byte into lexical class bits (default:5) and indicator
1006 // bits (default:3). If a lexer requires more than 32 lexical states, then this
1007 // is used to expand the possible states.
1008 void SetStyleBits(int bits
);
1010 // Retrieve number of bits in style bytes used to hold the lexical state.
1013 // Used to hold extra styling information for each line.
1014 void SetLineState(int line
, int state
);
1016 // Retrieve the extra styling information for a line.
1017 int GetLineState(int line
);
1019 // Retrieve the last line number that has line state.
1020 int GetMaxLineState();
1022 // Is the background of the line containing the caret in a different colour?
1023 bool GetCaretLineVisible();
1025 // Dsplay the background of the line containing the caret in a different colour.
1026 void SetCaretLineVisible(bool show
);
1028 // Get the colour of the background of the line containing the caret.
1029 wxColour
GetCaretLineBack();
1031 // Set the colour of the background of the line containing the caret.
1032 void SetCaretLineBack(const wxColour
& back
);
1034 // Set a style to be changeable or not (read only).
1035 // Experimental feature, currently buggy.
1036 void StyleSetChangeable(int style
, bool changeable
);
1038 // Display a auto-completion list.
1039 // The lenEntered parameter indicates how many characters before
1040 // the caret should be used to provide context.
1041 void AutoCompShow(int lenEntered
, const wxString
& itemList
);
1043 // Remove the auto-completion list from the screen.
1044 void AutoCompCancel();
1046 // Is there an auto-completion list visible?
1047 bool AutoCompActive();
1049 // Retrieve the position of the caret when the auto-completion list was
1051 int AutoCompPosStart();
1053 // User has selected an item so remove the list and insert the selection.
1054 void AutoCompComplete();
1056 // Define a set of character that when typed cancel the auto-completion list.
1057 void AutoCompStops(const wxString
& characterSet
);
1059 // Change the separator character in the string setting up an auto-completion
1060 // list. Default is space but can be changed if items contain space.
1061 void AutoCompSetSeparator(int separatorCharacter
);
1063 // Retrieve the auto-completion list separator character.
1064 int AutoCompGetSeparator();
1066 // Select the item in the auto-completion list that starts with a string.
1067 void AutoCompSelect(const wxString
& text
);
1069 // Should the auto-completion list be cancelled if the user backspaces to a
1070 // position before where the box was created.
1071 void AutoCompSetCancelAtStart(bool cancel
);
1073 // Retrieve whether auto-completion cancelled by backspacing before start.
1074 bool AutoCompGetCancelAtStart();
1076 // Define a set of characters that when typed will cause the autocompletion to
1077 // choose the selected item.
1078 void AutoCompSetFillUps(const wxString
& characterSet
);
1080 // Should a single item auto-completion list automatically choose the item.
1081 void AutoCompSetChooseSingle(bool chooseSingle
);
1083 // Retrieve whether a single item auto-completion list automatically choose the item.
1084 bool AutoCompGetChooseSingle();
1086 // Set whether case is significant when performing auto-completion searches.
1087 void AutoCompSetIgnoreCase(bool ignoreCase
);
1089 // Retrieve state of ignore case flag.
1090 bool AutoCompGetIgnoreCase();
1092 // Display a list of strings and send notification when user chooses one.
1093 void UserListShow(int listType
, const wxString
& itemList
);
1095 // Set whether or not autocompletion is hidden automatically when nothing matches
1096 void AutoCompSetAutoHide(bool autoHide
);
1098 // Retrieve whether or not autocompletion is hidden automatically when nothing matches
1099 bool AutoCompGetAutoHide();
1101 // Set whether or not autocompletion deletes any word characters after the inserted text upon completion
1102 void AutoCompSetDropRestOfWord(bool dropRestOfWord
);
1104 // Retrieve whether or not autocompletion deletes any word characters after the inserted text upon completion
1105 bool AutoCompGetDropRestOfWord();
1107 // Set the number of spaces used for one level of indentation.
1108 void SetIndent(int indentSize
);
1110 // Retrieve indentation size.
1113 // Indentation will only use space characters if useTabs is false, otherwise
1114 // it will use a combination of tabs and spaces.
1115 void SetUseTabs(bool useTabs
);
1117 // Retrieve whether tabs will be used in indentation.
1120 // Change the indentation of a line to a number of columns.
1121 void SetLineIndentation(int line
, int indentSize
);
1123 // Retrieve the number of columns that a line is indented.
1124 int GetLineIndentation(int line
);
1126 // Retrieve the position before the first non indentation character on a line.
1127 int GetLineIndentPosition(int line
);
1129 // Retrieve the column number of a position, taking tab width into account.
1130 int GetColumn(int pos
);
1132 // Show or hide the horizontal scroll bar.
1133 void SetUseHorizontalScrollBar(bool show
);
1135 // Is the horizontal scroll bar visible?
1136 bool GetUseHorizontalScrollBar();
1138 // Show or hide indentation guides.
1139 void SetIndentationGuides(bool show
);
1141 // Are the indentation guides visible?
1142 bool GetIndentationGuides();
1144 // Set the highlighted indentation guide column.
1145 // 0 = no highlighted guide.
1146 void SetHighlightGuide(int column
);
1148 // Get the highlighted indentation guide column.
1149 int GetHighlightGuide();
1151 // Get the position after the last visible characters on a line.
1152 int GetLineEndPosition(int line
);
1154 // Get the code page used to interpret the bytes of the document as characters.
1157 // Get the foreground colour of the caret.
1158 wxColour
GetCaretForeground();
1160 // In read-only mode?
1163 // Sets the position of the caret.
1164 void SetCurrentPos(int pos
);
1166 // Sets the position that starts the selection - this becomes the anchor.
1167 void SetSelectionStart(int pos
);
1169 // Returns the position at the start of the selection.
1170 int GetSelectionStart();
1172 // Sets the position that ends the selection - this becomes the currentPosition.
1173 void SetSelectionEnd(int pos
);
1175 // Returns the position at the end of the selection.
1176 int GetSelectionEnd();
1178 // Sets the print magnification added to the point size of each style for printing.
1179 void SetPrintMagnification(int magnification
);
1181 // Returns the print magnification.
1182 int GetPrintMagnification();
1184 // Modify colours when printing for clearer printed text.
1185 void SetPrintColourMode(int mode
);
1187 // Returns the print colour mode.
1188 int GetPrintColourMode();
1190 // Find some text in the document.
1191 int FindText(int minPos
, int maxPos
,
1192 const wxString
& text
,
1193 bool caseSensitive
, bool wholeWord
);
1195 // On Windows will draw the document into a display context such as a printer.
1196 int FormatRange(bool doDraw
,
1200 wxDC
* target
, // Why does it use two? Can they be the same?
1204 // Retrieve the line at the top of the display.
1205 int GetFirstVisibleLine();
1207 // Retrieve the contents of a line.
1208 wxString
GetLine(int line
);
1210 // Returns the number of lines in the document. There is always at least one.
1213 // Sets the size in pixels of the left margin.
1214 void SetMarginLeft(int pixelWidth
);
1216 // Returns the size in pixels of the left margin.
1217 int GetMarginLeft();
1219 // Sets the size in pixels of the right margin.
1220 void SetMarginRight(int pixelWidth
);
1222 // Returns the size in pixels of the right margin.
1223 int GetMarginRight();
1225 // Is the document different from when it was last saved?
1228 // Select a range of text.
1229 void SetSelection(int start
, int end
);
1231 // Retrieve the selected text.
1232 wxString
GetSelectedText();
1234 // Retrieve a range of text.
1235 wxString
GetTextRange(int startPos
, int endPos
);
1237 // Draw the selection in normal style or with selection highlighted.
1238 void HideSelection(bool normal
);
1240 // Retrieve the line containing a position.
1241 int LineFromPosition(int pos
);
1243 // Retrieve the position at the start of a line.
1244 int PositionFromLine(int line
);
1246 // Scroll horizontally and vertically.
1247 void LineScroll(int columns
, int lines
);
1249 // Ensure the caret is visible.
1250 void EnsureCaretVisible();
1252 // Replace the selected text with the argument text.
1253 void ReplaceSelection(const wxString
& text
);
1255 // Set to read only or read write.
1256 void SetReadOnly(bool readOnly
);
1258 // Will a paste succeed?
1261 // Are there any undoable actions in the undo history.
1264 // Delete the undo history.
1265 void EmptyUndoBuffer();
1267 // Undo one action in the undo history.
1270 // Cut the selection to the clipboard.
1273 // Copy the selection to the clipboard.
1276 // Paste the contents of the clipboard into the document replacing the selection.
1279 // Clear the selection.
1282 // Replace the contents of the document with the argument text.
1283 void SetText(const wxString
& text
);
1285 // Retrieve all the text in the document.
1288 // Retrieve the number of characters in the document.
1289 int GetTextLength();
1291 // Set to overtype (true) or insert mode
1292 void SetOvertype(bool overtype
);
1294 // Returns true if overtype mode is active otherwise false is returned.
1297 // Set the width of the insert mode caret
1298 void SetCaretWidth(int pixelWidth
);
1300 // Returns the width of the insert mode caret
1301 int GetCaretWidth();
1303 // Sets the position that starts the target which is used for updating the
1304 // document without affecting the scroll position.
1305 void SetTargetStart(int pos
);
1307 // Get the position that starts the target.
1308 int GetTargetStart();
1310 // Sets the position that ends the target which is used for updating the
1311 // document without affecting the scroll position.
1312 void SetTargetEnd(int pos
);
1314 // Get the position that ends the target.
1317 // Replace the target text with the argument text.
1318 // Text is counted so it can contain nulls.
1319 // Returns the length of the replacement text.
1320 int ReplaceTarget(const wxString
& text
);
1322 // Replace the target text with the argument text after \d processing.
1323 // Text is counted so it can contain nulls.
1324 // Looks for \d where d is between 1 and 9 and replaces these with the strings
1325 // matched in the last search operation which were surrounded by \( and \).
1326 // Returns the length of the replacement text including any change
1327 // caused by processing the \d patterns.
1328 int ReplaceTargetRE(const wxString
& text
);
1330 // Search for a counted string in the target and set the target to the found
1331 // range. Text is counted so it can contain nulls.
1332 // Returns length of range or -1 for failure in which case target is not moved.
1333 int SearchInTarget(const wxString
& text
);
1335 // Set the search flags used by SearchInTarget
1336 void SetSearchFlags(int flags
);
1338 // Get the search flags used by SearchInTarget
1339 int GetSearchFlags();
1341 // Show a call tip containing a definition near position pos.
1342 void CallTipShow(int pos
, const wxString
& definition
);
1344 // Remove the call tip from the screen.
1345 void CallTipCancel();
1347 // Is there an active call tip?
1348 bool CallTipActive();
1350 // Retrieve the position where the caret was before displaying the call tip.
1351 int CallTipPosAtStart();
1353 // Highlight a segment of the definition.
1354 void CallTipSetHighlight(int start
, int end
);
1356 // Set the background colour for the call tip.
1357 void CallTipSetBackground(const wxColour
& back
);
1359 // Find the display line of a document line taking hidden lines into account.
1360 int VisibleFromDocLine(int line
);
1362 // Find the document line of a display line taking hidden lines into account.
1363 int DocLineFromVisible(int lineDisplay
);
1365 // Set the fold level of a line.
1366 // This encodes an integer level along with flags indicating whether the
1367 // line is a header and whether it is effectively white space.
1368 void SetFoldLevel(int line
, int level
);
1370 // Retrieve the fold level of a line.
1371 int GetFoldLevel(int line
);
1373 // Find the last child line of a header line.
1374 int GetLastChild(int line
, int level
);
1376 // Find the parent line of a child line.
1377 int GetFoldParent(int line
);
1379 // Make a range of lines visible.
1380 void ShowLines(int lineStart
, int lineEnd
);
1382 // Make a range of lines invisible.
1383 void HideLines(int lineStart
, int lineEnd
);
1385 // Is a line visible?
1386 bool GetLineVisible(int line
);
1388 // Show the children of a header line.
1389 void SetFoldExpanded(int line
, bool expanded
);
1391 // Is a header line expanded?
1392 bool GetFoldExpanded(int line
);
1394 // Switch a header line between expanded and contracted.
1395 void ToggleFold(int line
);
1397 // Ensure a particular line is visible by expanding any header line hiding it.
1398 void EnsureVisible(int line
);
1400 // Set some debugging options for folding
1401 void SetFoldFlags(int flags
);
1403 // Ensure a particular line is visible by expanding any header line hiding it.
1404 // Use the currently set visibility policy to determine which range to display.
1405 void EnsureVisibleEnforcePolicy(int line
);
1407 // Sets whether a tab pressed when caret is within indentation indents
1408 void SetTabIndents(bool tabIndents
);
1410 // Does a tab pressed when caret is within indentation indent?
1411 bool GetTabIndents();
1413 // Sets whether a backspace pressed when caret is within indentation unindents
1414 void SetBackSpaceUnIndents(bool bsUnIndents
);
1416 // Does a backspace pressed when caret is within indentation unindent?
1417 bool GetBackSpaceUnIndents();
1419 // Sets the time the mouse must sit still to generate a mouse dwell event
1420 void SetMouseDwellTime(int periodMilliseconds
);
1422 // Retrieve the time the mouse must sit still to generate a mouse dwell event
1423 int GetMouseDwellTime();
1425 // Get position of start of word
1426 int WordStartPosition(int pos
, bool onlyWordCharacters
);
1428 // Get position of end of word
1429 int WordEndPosition(int pos
, bool onlyWordCharacters
);
1431 // Sets whether text is word wrapped
1432 void SetWrapMode(int mode
);
1434 // Retrieve whether text is word wrapped
1437 // Sets the degree of caching of layout information
1438 void SetLayoutCache(int mode
);
1440 // Retrieve the degree of caching of layout information
1441 int GetLayoutCache();
1443 // Delete the selection or if no selection, the character before the caret.
1444 // Will not delete the chraacter before at the start of a line.
1445 void DeleteBackNotLine();
1447 // Move the caret inside current view if it's not there already
1448 void MoveCaretInsideView();
1450 // How many characters are on a line, not including end of line characters.
1451 int LineLength(int line
);
1453 // Highlight the characters at two positions.
1454 void BraceHighlight(int pos1
, int pos2
);
1456 // Highlight the character at a position indicating there is no matching brace.
1457 void BraceBadLight(int pos
);
1459 // Find the position of a matching brace or INVALID_POSITION if no match.
1460 int BraceMatch(int pos
);
1462 // Are the end of line characters visible.
1465 // Make the end of line characters visible or invisible
1466 void SetViewEOL(bool visible
);
1468 // Retrieve a pointer to the document object.
1469 void* GetDocPointer();
1471 // Change the document object used.
1472 void SetDocPointer(void* docPointer
);
1474 // Set which document modification events are sent to the container.
1475 void SetModEventMask(int mask
);
1477 // Retrieve the column number which text should be kept within.
1478 int GetEdgeColumn();
1480 // Set the column number of the edge.
1481 // If text goes past the edge then it is highlighted.
1482 void SetEdgeColumn(int column
);
1484 // Retrieve the edge highlight mode.
1487 // The edge may be displayed by a line (EDGE_LINE) or by highlighting text that
1488 // goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).
1489 void SetEdgeMode(int mode
);
1491 // Retrieve the colour used in edge indication.
1492 wxColour
GetEdgeColour();
1494 // Change the colour used in edge indication.
1495 void SetEdgeColour(const wxColour
& edgeColour
);
1497 // Sets the current caret position to be the search anchor.
1498 void SearchAnchor();
1500 // Find some text starting at the search anchor.
1501 // Does not ensure the selection is visible.
1502 int SearchNext(int flags
, const wxString
& text
);
1504 // Find some text starting at the search anchor and moving backwards.
1505 // Does not ensure the selection is visible.
1506 int SearchPrev(int flags
, const wxString
& text
);
1508 // Set the way the line the caret is on is kept visible.
1509 void SetCaretPolicy(int caretPolicy
, int caretSlop
);
1511 // Retrieves the number of lines completely visible.
1512 int LinesOnScreen();
1514 // Set whether a pop up menu is displayed automatically when the user presses
1515 // the wrong mouse button.
1516 void UsePopUp(bool allowPopUp
);
1518 // Is the selection a rectangular. The alternative is the more common stream selection.
1519 bool SelectionIsRectangle();
1521 // Set the zoom level. This number of points is added to the size of all fonts.
1522 // It may be positive to magnify or negative to reduce.
1523 void SetZoom(int zoom
);
1525 // Retrieve the zoom level.
1528 // Create a new document object.
1529 // Starts with reference count of 1 and not selected into editor.
1530 void* CreateDocument();
1532 // Extend life of document.
1533 void AddRefDocument(void* docPointer
);
1535 // Release a reference to the document, deleting document if it fades to black.
1536 void ReleaseDocument(void* docPointer
);
1538 // Get which document modification events are sent to the container.
1539 int GetModEventMask();
1541 // Change internal focus flag
1542 void SetSTCFocus(bool focus
);
1544 // Get internal focus flag
1547 // Change error status - 0 = OK
1548 void SetStatus(int statusCode
);
1553 // Set whether the mouse is captured when its button is pressed
1554 void SetMouseDownCaptures(bool captures
);
1556 // Get whether mouse gets captured
1557 bool GetMouseDownCaptures();
1559 // Sets the cursor to one of the SC_CURSOR* values
1560 void SetCursor(int cursorType
);
1565 // Change the way control characters are displayed:
1566 // If symbol is < 32, keep the drawn way, else, use the given character
1567 void SetControlCharSymbol(int symbol
);
1569 // Get the way control characters are displayed
1570 int GetControlCharSymbol();
1572 // Move to the previous change in capitalistion
1573 void WordPartLeft();
1575 // Move to the previous change in capitalistion extending selection to new caret position.
1576 void WordPartLeftExtend();
1578 // Move to the change next in capitalistion
1579 void WordPartRight();
1581 // Move to the next change in capitalistion extending selection to new caret position.
1582 void WordPartRightExtend();
1584 // Set the way the display area is determined when a particular line is to be moved to.
1585 void SetVisiblePolicy(int visiblePolicy
, int visibleSlop
);
1587 // Delete back from the current position to the start of the line
1590 // Delete forwards from the current position to the end of the line
1591 void DelLineRight();
1593 // Get and Set the xOffset (ie, horizonal scroll position)
1594 void SetXOffset(int newOffset
);
1597 // Start notifying the container of all key presses and commands.
1600 // Stop notifying the container of all key presses and commands.
1603 // Set the lexing language of the document.
1604 void SetLexer(int lexer
);
1606 // Retrieve the lexing language of the document.
1609 // Colourise a segment of the document using the current lexing language.
1610 void Colourise(int start
, int end
);
1612 // Set up a value that may be used by a lexer for some optional feature.
1613 void SetProperty(const wxString
& key
, const wxString
& value
);
1615 // Set up the key words used by the lexer.
1616 void SetKeyWords(int keywordSet
, const wxString
& keyWords
);
1618 // Set the lexing language of the document based on string name.
1619 void SetLexerLanguage(const wxString
& language
);
1621 // END of generated section
1622 //----------------------------------------------------------------------
1626 // Returns the line number of the line with the caret.
1627 int GetCurrentLine();
1629 // Extract style settings from a spec-string which is composed of one or
1630 // more of the following comma separated elements:
1632 // bold turns on bold
1633 // italic turns on italics
1634 // fore:#RRGGBB sets the foreground colour
1635 // back:#RRGGBB sets the background colour
1636 // face:[facename] sets the font face name to use
1637 // size:[num] sets the font size in points
1638 // eol turns on eol filling
1639 // underline turns on underlining
1641 void StyleSetSpec(int styleNum
, const wxString
& spec
);
1645 // Set style size, face, bold, italic, and underline attributes from
1646 // a wxFont's attributes.
1647 void StyleSetFont(int styleNum
, wxFont
& font
);
1651 // Set all font style attributes at once.
1652 void StyleSetFontAttr(int styleNum
, int size
,
1653 const wxString
& faceName
,
1654 bool bold
, bool italic
,
1659 // Perform one of the operations defined by the wxSTC_CMD_* constants.
1660 void CmdKeyExecute(int cmd
);
1664 // Set the left and right margin in the edit area, measured in pixels.
1665 void SetMargins(int left
, int right
);
1668 // Retrieve the start and end positions of the current selection.
1670 void GetSelection(int* OUTPUT
, int* OUTPUT
);
1672 void GetSelection(int* startPos
, int* endPos
);
1675 // Retrieve the point in the window where a position is displayed.
1676 wxPoint
PointFromPosition(int pos
);
1679 // Scroll enough to make the given line visible
1680 void ScrollToLine(int line
);
1683 // Scroll enough to make the given column visible
1684 void ScrollToColumn(int column
);
1687 // Send a message to Scintilla
1688 long SendMsg(int msg
, long wp
=0, long lp
=0);
1691 // Set the vertical scrollbar to use instead of the ont that's built-in.
1692 void SetVScrollBar(wxScrollBar
* bar
) { m_vScrollBar
= bar
; }
1695 // Set the horizontal scrollbar to use instead of the ont that's built-in.
1696 void SetHScrollBar(wxScrollBar
* bar
) { m_hScrollBar
= bar
; }
1698 //----------------------------------------------------------------------
1704 void OnPaint(wxPaintEvent
& evt
);
1705 void OnScrollWin(wxScrollWinEvent
& evt
);
1706 void OnScroll(wxScrollEvent
& evt
);
1707 void OnSize(wxSizeEvent
& evt
);
1708 void OnMouseLeftDown(wxMouseEvent
& evt
);
1709 void OnMouseMove(wxMouseEvent
& evt
);
1710 void OnMouseLeftUp(wxMouseEvent
& evt
);
1711 void OnMouseRightUp(wxMouseEvent
& evt
);
1712 void OnContextMenu(wxContextMenuEvent
& evt
);
1713 void OnMouseWheel(wxMouseEvent
& evt
);
1714 void OnChar(wxKeyEvent
& evt
);
1715 void OnKeyDown(wxKeyEvent
& evt
);
1716 void OnLoseFocus(wxFocusEvent
& evt
);
1717 void OnGainFocus(wxFocusEvent
& evt
);
1718 void OnSysColourChanged(wxSysColourChangedEvent
& evt
);
1719 void OnEraseBackground(wxEraseEvent
& evt
);
1720 void OnMenu(wxCommandEvent
& evt
);
1721 void OnListBox(wxCommandEvent
& evt
);
1724 // Turn notifications from Scintilla into events
1725 void NotifyChange();
1726 void NotifyParent(SCNotification
* scn
);
1730 DECLARE_EVENT_TABLE()
1731 DECLARE_CLASS(wxStyledTextCtrl
)
1734 wxStopWatch m_stopWatch
;
1735 wxScrollBar
* m_vScrollBar
;
1736 wxScrollBar
* m_hScrollBar
;
1738 bool m_lastKeyDownConsumed
;
1740 friend class ScintillaWX
;
1741 friend class Platform
;
1745 //----------------------------------------------------------------------
1747 class wxStyledTextEvent
: public wxCommandEvent
{
1749 wxStyledTextEvent(wxEventType commandType
=0, int id
=0);
1751 wxStyledTextEvent(const wxStyledTextEvent
& event
);
1753 ~wxStyledTextEvent() {}
1755 void SetPosition(int pos
) { m_position
= pos
; }
1756 void SetKey(int k
) { m_key
= k
; }
1757 void SetModifiers(int m
) { m_modifiers
= m
; }
1758 void SetModificationType(int t
) { m_modificationType
= t
; }
1759 void SetText(const char* t
) { m_text
= t
; }
1760 void SetLength(int len
) { m_length
= len
; }
1761 void SetLinesAdded(int num
) { m_linesAdded
= num
; }
1762 void SetLine(int val
) { m_line
= val
; }
1763 void SetFoldLevelNow(int val
) { m_foldLevelNow
= val
; }
1764 void SetFoldLevelPrev(int val
) { m_foldLevelPrev
= val
; }
1765 void SetMargin(int val
) { m_margin
= val
; }
1766 void SetMessage(int val
) { m_message
= val
; }
1767 void SetWParam(int val
) { m_wParam
= val
; }
1768 void SetLParam(int val
) { m_lParam
= val
; }
1769 void SetListType(int val
) { m_listType
= val
; }
1770 void SetX(int val
) { m_x
= val
; }
1771 void SetY(int val
) { m_y
= val
; }
1772 void SetDragText(const wxString
& val
) { m_dragText
= val
; }
1773 void SetDragAllowMove(bool val
) { m_dragAllowMove
= val
; }
1774 void SetDragResult(wxDragResult val
) { m_dragResult
= val
; }
1776 int GetPosition() const { return m_position
; }
1777 int GetKey() const { return m_key
; }
1778 int GetModifiers() const { return m_modifiers
; }
1779 int GetModificationType() const { return m_modificationType
; }
1780 wxString
GetText() const { return m_text
; }
1781 int GetLength() const { return m_length
; }
1782 int GetLinesAdded() const { return m_linesAdded
; }
1783 int GetLine() const { return m_line
; }
1784 int GetFoldLevelNow() const { return m_foldLevelNow
; }
1785 int GetFoldLevelPrev() const { return m_foldLevelPrev
; }
1786 int GetMargin() const { return m_margin
; }
1787 int GetMessage() const { return m_message
; }
1788 int GetWParam() const { return m_wParam
; }
1789 int GetLParam() const { return m_lParam
; }
1790 int GetListType() const { return m_listType
; }
1791 int GetX() const { return m_x
; }
1792 int GetY() const { return m_y
; }
1793 wxString
GetDragText() { return m_dragText
; }
1794 bool GetDragAllowMove() { return m_dragAllowMove
; }
1795 wxDragResult
GetDragResult() { return m_dragResult
; }
1797 bool GetShift() const;
1798 bool GetControl() const;
1799 bool GetAlt() const;
1801 virtual wxEvent
* Clone() const { return new wxStyledTextEvent(*this); }
1805 DECLARE_DYNAMIC_CLASS(wxStyledTextEvent
)
1811 int m_modificationType
; // wxEVT_STC_MODIFIED
1817 int m_foldLevelPrev
;
1819 int m_margin
; // wxEVT_STC_MARGINCLICK
1821 int m_message
; // wxEVT_STC_MACRORECORD
1829 wxString m_dragText
; // wxEVT_STC_START_DRAG, wxEVT_STC_DO_DROP
1830 bool m_dragAllowMove
; // wxEVT_STC_START_DRAG
1832 wxDragResult m_dragResult
; // wxEVT_STC_DRAG_OVER,wxEVT_STC_DO_DROP
1837 BEGIN_DECLARE_EVENT_TYPES()
1838 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_CHANGE
, 1650)
1839 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_STYLENEEDED
, 1651)
1840 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_CHARADDED
, 1652)
1841 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_SAVEPOINTREACHED
, 1653)
1842 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_SAVEPOINTLEFT
, 1654)
1843 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_ROMODIFYATTEMPT
, 1655)
1844 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_KEY
, 1656)
1845 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DOUBLECLICK
, 1657)
1846 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_UPDATEUI
, 1658)
1847 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_MODIFIED
, 1659)
1848 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_MACRORECORD
, 1660)
1849 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_MARGINCLICK
, 1661)
1850 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_NEEDSHOWN
, 1662)
1851 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_POSCHANGED
, 1663)
1852 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_PAINTED
, 1664)
1853 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_USERLISTSELECTION
, 1665)
1854 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_URIDROPPED
, 1666)
1855 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DWELLSTART
, 1667)
1856 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DWELLEND
, 1668)
1857 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_START_DRAG
, 1669)
1858 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DRAG_OVER
, 1670)
1859 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DO_DROP
, 1671)
1860 END_DECLARE_EVENT_TYPES()
1864 wxEVT_STC_STYLENEEDED
,
1865 wxEVT_STC_CHARADDED
,
1866 wxEVT_STC_SAVEPOINTREACHED
,
1867 wxEVT_STC_SAVEPOINTLEFT
,
1868 wxEVT_STC_ROMODIFYATTEMPT
,
1870 wxEVT_STC_DOUBLECLICK
,
1873 wxEVT_STC_MACRORECORD
,
1874 wxEVT_STC_MARGINCLICK
,
1875 wxEVT_STC_NEEDSHOWN
,
1876 wxEVT_STC_POSCHANGED
,
1878 wxEVT_STC_USERLISTSELECTION
,
1879 wxEVT_STC_URIDROPPED
,
1880 wxEVT_STC_DWELLSTART
,
1882 wxEVT_STC_START_DRAG
,
1883 wxEVT_STC_DRAG_OVER
,
1891 typedef void (wxEvtHandler::*wxStyledTextEventFunction
)(wxStyledTextEvent
&);
1893 #define EVT_STC_CHANGE(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHANGE, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1894 #define EVT_STC_STYLENEEDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_STYLENEEDED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1895 #define EVT_STC_CHARADDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHARADDED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1896 #define EVT_STC_SAVEPOINTREACHED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTREACHED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1897 #define EVT_STC_SAVEPOINTLEFT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTLEFT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1898 #define EVT_STC_ROMODIFYATTEMPT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ROMODIFYATTEMPT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1899 #define EVT_STC_KEY(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_KEY, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1900 #define EVT_STC_DOUBLECLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DOUBLECLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1901 #define EVT_STC_UPDATEUI(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_UPDATEUI, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1902 #define EVT_STC_MODIFIED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MODIFIED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1903 #define EVT_STC_MACRORECORD(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MACRORECORD, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1904 #define EVT_STC_MARGINCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MARGINCLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1905 #define EVT_STC_NEEDSHOWN(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_NEEDSHOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1906 #define EVT_STC_POSCHANGED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_POSCHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1907 #define EVT_STC_PAINTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_PAINTED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1908 #define EVT_STC_USERLISTSELECTION(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_USERLISTSELECTION, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1909 #define EVT_STC_URIDROPPED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_URIDROPPED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1910 #define EVT_STC_DWELLSTART(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLSTART, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1911 #define EVT_STC_DWELLEND(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLEND, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1912 #define EVT_STC_START_DRAG(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_START_DRAG, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1913 #define EVT_STC_DRAG_OVER(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DRAG_OVER, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1914 #define EVT_STC_DO_DROP(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DO_DROP, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1917 //----------------------------------------------------------------------
1918 //----------------------------------------------------------------------