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
76 #define wxSTC_MARK_CHARACTER 10000
78 // Markers used for outlining column
79 #define wxSTC_MARKNUM_FOLDEREND 25
80 #define wxSTC_MARKNUM_FOLDEROPENMID 26
81 #define wxSTC_MARKNUM_FOLDERMIDTAIL 27
82 #define wxSTC_MARKNUM_FOLDERTAIL 28
83 #define wxSTC_MARKNUM_FOLDERSUB 29
84 #define wxSTC_MARKNUM_FOLDER 30
85 #define wxSTC_MARKNUM_FOLDEROPEN 31
86 #define wxSTC_MARGIN_SYMBOL 0
87 #define wxSTC_MARGIN_NUMBER 1
89 // Styles in range 32..37 are predefined for parts of the UI and are not used as normal styles.
90 // Styles 38 and 39 are for future use.
91 #define wxSTC_STYLE_DEFAULT 32
92 #define wxSTC_STYLE_LINENUMBER 33
93 #define wxSTC_STYLE_BRACELIGHT 34
94 #define wxSTC_STYLE_BRACEBAD 35
95 #define wxSTC_STYLE_CONTROLCHAR 36
96 #define wxSTC_STYLE_INDENTGUIDE 37
97 #define wxSTC_STYLE_LASTPREDEFINED 39
98 #define wxSTC_STYLE_MAX 127
100 // Character set identifiers are used in StyleSetCharacterSet.
101 // The values are the same as the Windows *_CHARSET values.
102 #define wxSTC_CHARSET_ANSI 0
103 #define wxSTC_CHARSET_DEFAULT 1
104 #define wxSTC_CHARSET_BALTIC 186
105 #define wxSTC_CHARSET_CHINESEBIG5 136
106 #define wxSTC_CHARSET_EASTEUROPE 238
107 #define wxSTC_CHARSET_GB2312 134
108 #define wxSTC_CHARSET_GREEK 161
109 #define wxSTC_CHARSET_HANGUL 129
110 #define wxSTC_CHARSET_MAC 77
111 #define wxSTC_CHARSET_OEM 255
112 #define wxSTC_CHARSET_RUSSIAN 204
113 #define wxSTC_CHARSET_SHIFTJIS 128
114 #define wxSTC_CHARSET_SYMBOL 2
115 #define wxSTC_CHARSET_TURKISH 162
116 #define wxSTC_CHARSET_JOHAB 130
117 #define wxSTC_CHARSET_HEBREW 177
118 #define wxSTC_CHARSET_ARABIC 178
119 #define wxSTC_CHARSET_VIETNAMESE 163
120 #define wxSTC_CHARSET_THAI 222
121 #define wxSTC_CASE_MIXED 0
122 #define wxSTC_CASE_UPPER 1
123 #define wxSTC_CASE_LOWER 2
124 #define wxSTC_INDIC_MAX 7
125 #define wxSTC_INDIC_PLAIN 0
126 #define wxSTC_INDIC_SQUIGGLE 1
127 #define wxSTC_INDIC_TT 2
128 #define wxSTC_INDIC_DIAGONAL 3
129 #define wxSTC_INDIC_STRIKE 4
130 #define wxSTC_INDIC0_MASK 32
131 #define wxSTC_INDIC1_MASK 64
132 #define wxSTC_INDIC2_MASK 128
133 #define wxSTC_INDICS_MASK 224
135 // PrintColourMode - use same colours as screen.
136 #define wxSTC_PRINT_NORMAL 0
138 // PrintColourMode - invert the light value of each style for printing.
139 #define wxSTC_PRINT_INVERTLIGHT 1
141 // PrintColourMode - force black text on white background for printing.
142 #define wxSTC_PRINT_BLACKONWHITE 2
144 // PrintColourMode - text stays coloured, but all background is forced to be white for printing.
145 #define wxSTC_PRINT_COLOURONWHITE 3
147 // PrintColourMode - only the default-background is forced to be white for printing.
148 #define wxSTC_PRINT_COLOURONWHITEDEFAULTBG 4
149 #define wxSTC_FIND_WHOLEWORD 2
150 #define wxSTC_FIND_MATCHCASE 4
151 #define wxSTC_FIND_WORDSTART 0x00100000
152 #define wxSTC_FIND_REGEXP 0x00200000
153 #define wxSTC_CMD_UNDO 2176
154 #define wxSTC_CMD_CUT 2177
155 #define wxSTC_CMD_COPY 2178
156 #define wxSTC_CMD_PASTE 2179
157 #define wxSTC_FOLDLEVELBASE 0x400
158 #define wxSTC_FOLDLEVELWHITEFLAG 0x1000
159 #define wxSTC_FOLDLEVELHEADERFLAG 0x2000
160 #define wxSTC_FOLDLEVELNUMBERMASK 0x0FFF
161 #define wxSTC_TIME_FOREVER 10000000
162 #define wxSTC_CMD_LINEDOWN 2300
163 #define wxSTC_CMD_LINEDOWNEXTEND 2301
164 #define wxSTC_CMD_LINEUP 2302
165 #define wxSTC_CMD_LINEUPEXTEND 2303
166 #define wxSTC_CMD_CHARLEFT 2304
167 #define wxSTC_CMD_CHARLEFTEXTEND 2305
168 #define wxSTC_CMD_CHARRIGHT 2306
169 #define wxSTC_CMD_CHARRIGHTEXTEND 2307
170 #define wxSTC_CMD_WORDLEFT 2308
171 #define wxSTC_CMD_WORDLEFTEXTEND 2309
172 #define wxSTC_CMD_WORDRIGHT 2310
173 #define wxSTC_CMD_WORDRIGHTEXTEND 2311
174 #define wxSTC_CMD_HOME 2312
175 #define wxSTC_CMD_HOMEEXTEND 2313
176 #define wxSTC_CMD_LINEEND 2314
177 #define wxSTC_CMD_LINEENDEXTEND 2315
178 #define wxSTC_CMD_DOCUMENTSTART 2316
179 #define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317
180 #define wxSTC_CMD_DOCUMENTEND 2318
181 #define wxSTC_CMD_DOCUMENTENDEXTEND 2319
182 #define wxSTC_CMD_PAGEUP 2320
183 #define wxSTC_CMD_PAGEUPEXTEND 2321
184 #define wxSTC_CMD_PAGEDOWN 2322
185 #define wxSTC_CMD_PAGEDOWNEXTEND 2323
186 #define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324
187 #define wxSTC_CMD_CANCEL 2325
188 #define wxSTC_CMD_DELETEBACK 2326
189 #define wxSTC_CMD_TAB 2327
190 #define wxSTC_CMD_BACKTAB 2328
191 #define wxSTC_CMD_NEWLINE 2329
192 #define wxSTC_CMD_FORMFEED 2330
193 #define wxSTC_CMD_VCHOME 2331
194 #define wxSTC_CMD_VCHOMEEXTEND 2332
195 #define wxSTC_CMD_ZOOMIN 2333
196 #define wxSTC_CMD_ZOOMOUT 2334
197 #define wxSTC_CMD_DELWORDLEFT 2335
198 #define wxSTC_CMD_DELWORDRIGHT 2336
199 #define wxSTC_CMD_LINECUT 2337
200 #define wxSTC_CMD_LINEDELETE 2338
201 #define wxSTC_CMD_LINETRANSPOSE 2339
202 #define wxSTC_CMD_LOWERCASE 2340
203 #define wxSTC_CMD_UPPERCASE 2341
204 #define wxSTC_CMD_LINESCROLLDOWN 2342
205 #define wxSTC_CMD_LINESCROLLUP 2343
206 #define wxSTC_EDGE_NONE 0
207 #define wxSTC_EDGE_LINE 1
208 #define wxSTC_EDGE_BACKGROUND 2
210 // Show caret within N lines of edge when it's scrolled to view
211 // If CARET_SLOP not set then centre caret on screen when it's
213 #define wxSTC_CARET_SLOP 0x01
216 #define wxSTC_CARET_CENTER 0x02
218 // If CARET_SLOP also set then reposition whenever outside slop border
219 // If CARET_SLOP not set then recentre even when visible
220 #define wxSTC_CARET_STRICT 0x04
222 // If CARET_XEVEN set then both left and right margins are given equal weight
223 // rather than favouring left following behaviour.
224 #define wxSTC_CARET_XEVEN 0x08
226 // If CARET_XJUMPS set then when caret reaches the margin the display jumps
227 // enough to leave the caret solidly within the display.
228 #define wxSTC_CARET_XJUMPS 0x10
229 #define wxSTC_CURSORNORMAL -1
230 #define wxSTC_CURSORWAIT 3
232 // Constants for use with SetVisiblePolicy, similar to SetCaretPolicy
233 #define wxSTC_VISIBLE_SLOP 0x01
234 #define wxSTC_VISIBLE_STRICT 0x04
237 // Type of modification and the action which caused the modification
238 // These are defined as a bit mask to make it easy to specify which notifications are wanted.
239 // One bit is set from each of SC_MOD_* and SC_PERFORMED_*.
240 #define wxSTC_MOD_INSERTTEXT 0x1
241 #define wxSTC_MOD_DELETETEXT 0x2
242 #define wxSTC_MOD_CHANGESTYLE 0x4
243 #define wxSTC_MOD_CHANGEFOLD 0x8
244 #define wxSTC_PERFORMED_USER 0x10
245 #define wxSTC_PERFORMED_UNDO 0x20
246 #define wxSTC_PERFORMED_REDO 0x40
247 #define wxSTC_LASTSTEPINUNDOREDO 0x100
248 #define wxSTC_MOD_CHANGEMARKER 0x200
249 #define wxSTC_MOD_BEFOREINSERT 0x400
250 #define wxSTC_MOD_BEFOREDELETE 0x800
251 #define wxSTC_MODEVENTMASKALL 0xF77
253 // Symbolic key codes and modifier flags
254 // ASCII and other printable characters below 256
255 // Extended keys above 300
256 #define wxSTC_KEY_DOWN 300
257 #define wxSTC_KEY_UP 301
258 #define wxSTC_KEY_LEFT 302
259 #define wxSTC_KEY_RIGHT 303
260 #define wxSTC_KEY_HOME 304
261 #define wxSTC_KEY_END 305
262 #define wxSTC_KEY_PRIOR 306
263 #define wxSTC_KEY_NEXT 307
264 #define wxSTC_KEY_DELETE 308
265 #define wxSTC_KEY_INSERT 309
266 #define wxSTC_KEY_ESCAPE 7
267 #define wxSTC_KEY_BACK 8
268 #define wxSTC_KEY_TAB 9
269 #define wxSTC_KEY_RETURN 13
270 #define wxSTC_KEY_ADD 310
271 #define wxSTC_KEY_SUBTRACT 311
272 #define wxSTC_KEY_DIVIDE 312
273 #define wxSTC_SCMOD_SHIFT 1
274 #define wxSTC_SCMOD_CTRL 2
275 #define wxSTC_SCMOD_ALT 4
278 #define wxSTC_LEX_CONTAINER 0
279 #define wxSTC_LEX_NULL 1
280 #define wxSTC_LEX_PYTHON 2
281 #define wxSTC_LEX_CPP 3
282 #define wxSTC_LEX_HTML 4
283 #define wxSTC_LEX_XML 5
284 #define wxSTC_LEX_PERL 6
285 #define wxSTC_LEX_SQL 7
286 #define wxSTC_LEX_VB 8
287 #define wxSTC_LEX_PROPERTIES 9
288 #define wxSTC_LEX_ERRORLIST 10
289 #define wxSTC_LEX_MAKEFILE 11
290 #define wxSTC_LEX_BATCH 12
291 #define wxSTC_LEX_XCODE 13
292 #define wxSTC_LEX_LATEX 14
293 #define wxSTC_LEX_LUA 15
294 #define wxSTC_LEX_DIFF 16
295 #define wxSTC_LEX_CONF 17
296 #define wxSTC_LEX_PASCAL 18
297 #define wxSTC_LEX_AVE 19
298 #define wxSTC_LEX_ADA 20
299 #define wxSTC_LEX_LISP 21
300 #define wxSTC_LEX_RUBY 22
301 #define wxSTC_LEX_EIFFEL 23
302 #define wxSTC_LEX_EIFFELKW 24
303 #define wxSTC_LEX_TCL 25
304 #define wxSTC_LEX_NNCRONTAB 26
306 // When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
307 // value assigned in sequence from SCLEX_AUTOMATIC+1.
308 #define wxSTC_LEX_AUTOMATIC 1000
310 // Lexical states for SCLEX_PYTHON
311 #define wxSTC_P_DEFAULT 0
312 #define wxSTC_P_COMMENTLINE 1
313 #define wxSTC_P_NUMBER 2
314 #define wxSTC_P_STRING 3
315 #define wxSTC_P_CHARACTER 4
316 #define wxSTC_P_WORD 5
317 #define wxSTC_P_TRIPLE 6
318 #define wxSTC_P_TRIPLEDOUBLE 7
319 #define wxSTC_P_CLASSNAME 8
320 #define wxSTC_P_DEFNAME 9
321 #define wxSTC_P_OPERATOR 10
322 #define wxSTC_P_IDENTIFIER 11
323 #define wxSTC_P_COMMENTBLOCK 12
324 #define wxSTC_P_STRINGEOL 13
326 // Lexical states for SCLEX_CPP, SCLEX_VB
327 #define wxSTC_C_DEFAULT 0
328 #define wxSTC_C_COMMENT 1
329 #define wxSTC_C_COMMENTLINE 2
330 #define wxSTC_C_COMMENTDOC 3
331 #define wxSTC_C_NUMBER 4
332 #define wxSTC_C_WORD 5
333 #define wxSTC_C_STRING 6
334 #define wxSTC_C_CHARACTER 7
335 #define wxSTC_C_UUID 8
336 #define wxSTC_C_PREPROCESSOR 9
337 #define wxSTC_C_OPERATOR 10
338 #define wxSTC_C_IDENTIFIER 11
339 #define wxSTC_C_STRINGEOL 12
340 #define wxSTC_C_VERBATIM 13
341 #define wxSTC_C_REGEX 14
342 #define wxSTC_C_COMMENTLINEDOC 15
343 #define wxSTC_C_WORD2 16
344 #define wxSTC_C_COMMENTDOCKEYWORD 17
345 #define wxSTC_C_COMMENTDOCKEYWORDERROR 18
347 // Lexical states for SCLEX_HTML, SCLEX_XML
348 #define wxSTC_H_DEFAULT 0
349 #define wxSTC_H_TAG 1
350 #define wxSTC_H_TAGUNKNOWN 2
351 #define wxSTC_H_ATTRIBUTE 3
352 #define wxSTC_H_ATTRIBUTEUNKNOWN 4
353 #define wxSTC_H_NUMBER 5
354 #define wxSTC_H_DOUBLESTRING 6
355 #define wxSTC_H_SINGLESTRING 7
356 #define wxSTC_H_OTHER 8
357 #define wxSTC_H_COMMENT 9
358 #define wxSTC_H_ENTITY 10
361 #define wxSTC_H_TAGEND 11
362 #define wxSTC_H_XMLSTART 12
363 #define wxSTC_H_XMLEND 13
364 #define wxSTC_H_SCRIPT 14
365 #define wxSTC_H_ASP 15
366 #define wxSTC_H_ASPAT 16
367 #define wxSTC_H_CDATA 17
368 #define wxSTC_H_QUESTION 18
371 #define wxSTC_H_VALUE 19
374 #define wxSTC_H_XCCOMMENT 20
377 #define wxSTC_H_SGML_DEFAULT 21
378 #define wxSTC_H_SGML_COMMAND 22
379 #define wxSTC_H_SGML_1ST_PARAM 23
380 #define wxSTC_H_SGML_DOUBLESTRING 24
381 #define wxSTC_H_SGML_SIMPLESTRING 25
382 #define wxSTC_H_SGML_ERROR 26
383 #define wxSTC_H_SGML_SPECIAL 27
384 #define wxSTC_H_SGML_ENTITY 28
385 #define wxSTC_H_SGML_COMMENT 29
386 #define wxSTC_H_SGML_1ST_PARAM_COMMENT 30
387 #define wxSTC_H_SGML_BLOCK_DEFAULT 31
389 // Embedded Javascript
390 #define wxSTC_HJ_START 40
391 #define wxSTC_HJ_DEFAULT 41
392 #define wxSTC_HJ_COMMENT 42
393 #define wxSTC_HJ_COMMENTLINE 43
394 #define wxSTC_HJ_COMMENTDOC 44
395 #define wxSTC_HJ_NUMBER 45
396 #define wxSTC_HJ_WORD 46
397 #define wxSTC_HJ_KEYWORD 47
398 #define wxSTC_HJ_DOUBLESTRING 48
399 #define wxSTC_HJ_SINGLESTRING 49
400 #define wxSTC_HJ_SYMBOLS 50
401 #define wxSTC_HJ_STRINGEOL 51
402 #define wxSTC_HJ_REGEX 52
405 #define wxSTC_HJA_START 55
406 #define wxSTC_HJA_DEFAULT 56
407 #define wxSTC_HJA_COMMENT 57
408 #define wxSTC_HJA_COMMENTLINE 58
409 #define wxSTC_HJA_COMMENTDOC 59
410 #define wxSTC_HJA_NUMBER 60
411 #define wxSTC_HJA_WORD 61
412 #define wxSTC_HJA_KEYWORD 62
413 #define wxSTC_HJA_DOUBLESTRING 63
414 #define wxSTC_HJA_SINGLESTRING 64
415 #define wxSTC_HJA_SYMBOLS 65
416 #define wxSTC_HJA_STRINGEOL 66
417 #define wxSTC_HJA_REGEX 67
420 #define wxSTC_HB_START 70
421 #define wxSTC_HB_DEFAULT 71
422 #define wxSTC_HB_COMMENTLINE 72
423 #define wxSTC_HB_NUMBER 73
424 #define wxSTC_HB_WORD 74
425 #define wxSTC_HB_STRING 75
426 #define wxSTC_HB_IDENTIFIER 76
427 #define wxSTC_HB_STRINGEOL 77
430 #define wxSTC_HBA_START 80
431 #define wxSTC_HBA_DEFAULT 81
432 #define wxSTC_HBA_COMMENTLINE 82
433 #define wxSTC_HBA_NUMBER 83
434 #define wxSTC_HBA_WORD 84
435 #define wxSTC_HBA_STRING 85
436 #define wxSTC_HBA_IDENTIFIER 86
437 #define wxSTC_HBA_STRINGEOL 87
440 #define wxSTC_HP_START 90
441 #define wxSTC_HP_DEFAULT 91
442 #define wxSTC_HP_COMMENTLINE 92
443 #define wxSTC_HP_NUMBER 93
444 #define wxSTC_HP_STRING 94
445 #define wxSTC_HP_CHARACTER 95
446 #define wxSTC_HP_WORD 96
447 #define wxSTC_HP_TRIPLE 97
448 #define wxSTC_HP_TRIPLEDOUBLE 98
449 #define wxSTC_HP_CLASSNAME 99
450 #define wxSTC_HP_DEFNAME 100
451 #define wxSTC_HP_OPERATOR 101
452 #define wxSTC_HP_IDENTIFIER 102
455 #define wxSTC_HPA_START 105
456 #define wxSTC_HPA_DEFAULT 106
457 #define wxSTC_HPA_COMMENTLINE 107
458 #define wxSTC_HPA_NUMBER 108
459 #define wxSTC_HPA_STRING 109
460 #define wxSTC_HPA_CHARACTER 110
461 #define wxSTC_HPA_WORD 111
462 #define wxSTC_HPA_TRIPLE 112
463 #define wxSTC_HPA_TRIPLEDOUBLE 113
464 #define wxSTC_HPA_CLASSNAME 114
465 #define wxSTC_HPA_DEFNAME 115
466 #define wxSTC_HPA_OPERATOR 116
467 #define wxSTC_HPA_IDENTIFIER 117
470 #define wxSTC_HPHP_DEFAULT 118
471 #define wxSTC_HPHP_HSTRING 119
472 #define wxSTC_HPHP_SIMPLESTRING 120
473 #define wxSTC_HPHP_WORD 121
474 #define wxSTC_HPHP_NUMBER 122
475 #define wxSTC_HPHP_VARIABLE 123
476 #define wxSTC_HPHP_COMMENT 124
477 #define wxSTC_HPHP_COMMENTLINE 125
478 #define wxSTC_HPHP_HSTRING_VARIABLE 126
479 #define wxSTC_HPHP_OPERATOR 127
481 // Lexical states for SCLEX_PERL
482 #define wxSTC_PL_DEFAULT 0
483 #define wxSTC_PL_ERROR 1
484 #define wxSTC_PL_COMMENTLINE 2
485 #define wxSTC_PL_POD 3
486 #define wxSTC_PL_NUMBER 4
487 #define wxSTC_PL_WORD 5
488 #define wxSTC_PL_STRING 6
489 #define wxSTC_PL_CHARACTER 7
490 #define wxSTC_PL_PUNCTUATION 8
491 #define wxSTC_PL_PREPROCESSOR 9
492 #define wxSTC_PL_OPERATOR 10
493 #define wxSTC_PL_IDENTIFIER 11
494 #define wxSTC_PL_SCALAR 12
495 #define wxSTC_PL_ARRAY 13
496 #define wxSTC_PL_HASH 14
497 #define wxSTC_PL_SYMBOLTABLE 15
498 #define wxSTC_PL_REGEX 17
499 #define wxSTC_PL_REGSUBST 18
500 #define wxSTC_PL_LONGQUOTE 19
501 #define wxSTC_PL_BACKTICKS 20
502 #define wxSTC_PL_DATASECTION 21
503 #define wxSTC_PL_HERE_DELIM 22
504 #define wxSTC_PL_HERE_Q 23
505 #define wxSTC_PL_HERE_QQ 24
506 #define wxSTC_PL_HERE_QX 25
507 #define wxSTC_PL_STRING_Q 26
508 #define wxSTC_PL_STRING_QQ 27
509 #define wxSTC_PL_STRING_QX 28
510 #define wxSTC_PL_STRING_QR 29
511 #define wxSTC_PL_STRING_QW 30
513 // Lexical states for SCLEX_LATEX
514 #define wxSTC_L_DEFAULT 0
515 #define wxSTC_L_COMMAND 1
516 #define wxSTC_L_TAG 2
517 #define wxSTC_L_MATH 3
518 #define wxSTC_L_COMMENT 4
520 // Lexical states for SCLEX_LUA
521 #define wxSTC_LUA_DEFAULT 0
522 #define wxSTC_LUA_COMMENT 1
523 #define wxSTC_LUA_COMMENTLINE 2
524 #define wxSTC_LUA_COMMENTDOC 3
525 #define wxSTC_LUA_NUMBER 4
526 #define wxSTC_LUA_WORD 5
527 #define wxSTC_LUA_STRING 6
528 #define wxSTC_LUA_CHARACTER 7
529 #define wxSTC_LUA_LITERALSTRING 8
530 #define wxSTC_LUA_PREPROCESSOR 9
531 #define wxSTC_LUA_OPERATOR 10
532 #define wxSTC_LUA_IDENTIFIER 11
533 #define wxSTC_LUA_STRINGEOL 12
535 // Lexical states for SCLEX_ERRORLIST
536 #define wxSTC_ERR_DEFAULT 0
537 #define wxSTC_ERR_PYTHON 1
538 #define wxSTC_ERR_GCC 2
539 #define wxSTC_ERR_MS 3
540 #define wxSTC_ERR_CMD 4
541 #define wxSTC_ERR_BORLAND 5
542 #define wxSTC_ERR_PERL 6
543 #define wxSTC_ERR_NET 7
544 #define wxSTC_ERR_LUA 8
545 #define wxSTC_ERR_DIFF_CHANGED 10
546 #define wxSTC_ERR_DIFF_ADDITION 11
547 #define wxSTC_ERR_DIFF_DELETION 12
548 #define wxSTC_ERR_DIFF_MESSAGE 13
550 // Lexical states for SCLEX_BATCH
551 #define wxSTC_BAT_DEFAULT 0
552 #define wxSTC_BAT_COMMENT 1
553 #define wxSTC_BAT_WORD 2
554 #define wxSTC_BAT_LABEL 3
555 #define wxSTC_BAT_HIDE 4
556 #define wxSTC_BAT_COMMAND 5
557 #define wxSTC_BAT_IDENTIFIER 6
558 #define wxSTC_BAT_OPERATOR 7
560 // Lexical states for SCLEX_MAKEFILE
561 #define wxSTC_MAKE_DEFAULT 0
562 #define wxSTC_MAKE_COMMENT 1
563 #define wxSTC_MAKE_PREPROCESSOR 2
564 #define wxSTC_MAKE_IDENTIFIER 3
565 #define wxSTC_MAKE_OPERATOR 4
566 #define wxSTC_MAKE_TARGET 5
567 #define wxSTC_MAKE_IDEOL 9
569 // Lexical states for the SCLEX_CONF (Apache Configuration Files Lexer)
570 #define wxSTC_CONF_DEFAULT 0
571 #define wxSTC_CONF_COMMENT 1
572 #define wxSTC_CONF_NUMBER 2
573 #define wxSTC_CONF_IDENTIFIER 3
574 #define wxSTC_CONF_EXTENSION 4
575 #define wxSTC_CONF_PARAMETER 5
576 #define wxSTC_CONF_STRING 6
577 #define wxSTC_CONF_OPERATOR 7
578 #define wxSTC_CONF_IP 8
579 #define wxSTC_CONF_DIRECTIVE 9
582 #define wxSTC_AVE_DEFAULT 0
583 #define wxSTC_AVE_COMMENT 1
584 #define wxSTC_AVE_NUMBER 2
585 #define wxSTC_AVE_WORD 3
586 #define wxSTC_AVE_KEYWORD 4
587 #define wxSTC_AVE_STATEMENT 5
588 #define wxSTC_AVE_STRING 6
589 #define wxSTC_AVE_ENUM 7
590 #define wxSTC_AVE_STRINGEOL 8
591 #define wxSTC_AVE_IDENTIFIER 9
592 #define wxSTC_AVE_OPERATOR 10
594 // Lexical states for SCLEX_ADA
595 #define wxSTC_ADA_DEFAULT 0
596 #define wxSTC_ADA_COMMENT 1
597 #define wxSTC_ADA_NUMBER 2
598 #define wxSTC_ADA_WORD 3
599 #define wxSTC_ADA_STRING 4
600 #define wxSTC_ADA_CHARACTER 5
601 #define wxSTC_ADA_OPERATOR 6
602 #define wxSTC_ADA_IDENTIFIER 7
603 #define wxSTC_ADA_STRINGEOL 8
605 // Lexical states for SCLEX_LISP
606 #define wxSTC_LISP_DEFAULT 0
607 #define wxSTC_LISP_COMMENT 1
608 #define wxSTC_LISP_NUMBER 2
609 #define wxSTC_LISP_KEYWORD 3
610 #define wxSTC_LISP_STRING 6
611 #define wxSTC_LISP_STRINGEOL 8
612 #define wxSTC_LISP_IDENTIFIER 9
613 #define wxSTC_LISP_OPERATOR 10
615 // Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW
616 #define wxSTC_EIFFEL_DEFAULT 0
617 #define wxSTC_EIFFEL_COMMENTLINE 1
618 #define wxSTC_EIFFEL_NUMBER 2
619 #define wxSTC_EIFFEL_WORD 3
620 #define wxSTC_EIFFEL_STRING 4
621 #define wxSTC_EIFFEL_CHARACTER 5
622 #define wxSTC_EIFFEL_OPERATOR 6
623 #define wxSTC_EIFFEL_IDENTIFIER 7
624 #define wxSTC_EIFFEL_STRINGEOL 8
626 // Lexical states for the SCLEX_NNCRONTAB (nnCron crontab Lexer)
627 #define wxSTC_NNCRONTAB_DEFAULT 0
628 #define wxSTC_NNCRONTAB_COMMENT 1
629 #define wxSTC_NNCRONTAB_TASK 2
630 #define wxSTC_NNCRONTAB_SECTION 3
631 #define wxSTC_NNCRONTAB_KEYWORD 4
632 #define wxSTC_NNCRONTAB_MODIFIER 5
633 #define wxSTC_NNCRONTAB_ASTERISK 6
634 #define wxSTC_NNCRONTAB_NUMBER 7
635 #define wxSTC_NNCRONTAB_STRING 8
636 #define wxSTC_NNCRONTAB_ENVIRONMENT 9
637 #define wxSTC_NNCRONTAB_IDENTIFIER 10
639 // END of generated section
640 //----------------------------------------------------------------------
643 #define wxSTC_MASK_FOLDERS ((1 << wxSTC_MARKNUM_FOLDER) | (1 << wxSTC_MARKNUM_FOLDEROPEN))
647 //----------------------------------------------------------------------
649 class ScintillaWX
; // forward declare
651 struct SCNotification
;
654 extern const wxChar
* wxSTCNameStr
;
656 //----------------------------------------------------------------------
658 class wxStyledTextCtrl
: public wxControl
{
662 wxStyledTextCtrl(wxWindow
*parent
, wxWindowID id
,
663 const wxPoint
& pos
= wxDefaultPosition
,
664 const wxSize
& size
= wxDefaultSize
, long style
= 0,
665 const char* name
= "styledtext");
666 %pragma
(python
) addtomethod
= "__init__:self._setOORInfo(self)"
669 wxStyledTextCtrl(wxWindow
*parent
, wxWindowID id
,
670 const wxPoint
& pos
= wxDefaultPosition
,
671 const wxSize
& size
= wxDefaultSize
, long style
= 0,
672 const wxString
& name
= wxSTCNameStr
);
680 //----------------------------------------------------------------------
681 // BEGIN generated section. The following code is automatically generated
682 // by gen_iface.py. Do not edit this file. Edit stc.h.in instead
686 // Add text to the document
687 void AddText(const wxString
& text
);
689 // Add array of cells to document
690 void AddStyledText(const wxString
& text
);
692 // Insert string at a position
693 void InsertText(int pos
, const wxString
& text
);
695 // Delete all text in the document
698 // Set all style bytes to 0, remove all folding information
699 void ClearDocumentStyle();
701 // The number of characters in the document
704 // Returns the character byte at the position
705 int GetCharAt(int pos
);
707 // Returns the position of the caret
710 // Returns the position of the opposite end of the selection to the caret
713 // Returns the style byte at the position
714 int GetStyleAt(int pos
);
716 // Redoes the next action on the undo history
719 // Choose between collecting actions into the undo
720 // history and discarding them.
721 void SetUndoCollection(bool collectUndo
);
723 // Select all the text in the document.
726 // Remember the current position in the undo history as the position
727 // at which the document was saved.
730 // Retrieve a buffer of cells.
731 wxString
GetStyledText(int startPos
, int endPos
);
733 // Are there any redoable actions in the undo history.
736 // Retrieve the line number at which a particular marker is located
737 int MarkerLineFromHandle(int handle
);
740 void MarkerDeleteHandle(int handle
);
742 // Is undo history being collected?
743 bool GetUndoCollection();
745 // Are white space characters currently visible?
746 // Returns one of SCWS_* constants.
747 int GetViewWhiteSpace();
749 // Make white space characters invisible, always visible or visible outside indentation.
750 void SetViewWhiteSpace(int viewWS
);
752 // Find the position from a point within the window.
753 int PositionFromPoint(wxPoint pt
);
755 // Find the position from a point within the window but return
756 // INVALID_POSITION if not close to text.
757 int PositionFromPointClose(int x
, int y
);
759 // Set caret to start of a line and ensure it is visible.
760 void GotoLine(int line
);
762 // Set caret to a position and ensure it is visible.
763 void GotoPos(int pos
);
765 // Set the selection anchor to a position. The anchor is the opposite
766 // end of the selection from the caret.
767 void SetAnchor(int posAnchor
);
769 // Retrieve the text of the line containing the caret.
770 // Returns the index of the caret on the line.
772 wxString
GetCurLine(int* OUTPUT
);
774 wxString
GetCurLine(int* linePos
=NULL
);
777 // Retrieve the position of the last correctly styled character.
780 // Convert all line endings in the document to one mode.
781 void ConvertEOLs(int eolMode
);
783 // Retrieve the current end of line mode - one of CRLF, CR, or LF.
786 // Set the current end of line mode.
787 void SetEOLMode(int eolMode
);
789 // Set the current styling position to pos and the styling mask to mask.
790 // The styling mask can be used to protect some bits in each styling byte from
792 void StartStyling(int pos
, int mask
);
794 // Change style from current styling position for length characters to a style
795 // and move the current styling position to after this newly styled segment.
796 void SetStyling(int length
, int style
);
798 // Is drawing done first into a buffer or direct to the screen.
799 bool GetBufferedDraw();
801 // If drawing is buffered then each line of text is drawn into a bitmap buffer
802 // before drawing it to the screen to avoid flicker.
803 void SetBufferedDraw(bool buffered
);
805 // Change the visible size of a tab to be a multiple of the width of a space
807 void SetTabWidth(int tabWidth
);
809 // Retrieve the visible size of a tab.
812 // Set the code page used to interpret the bytes of the document as characters.
813 // The SC_CP_UTF8 value can be used to enter Unicode mode.
814 void SetCodePage(int codePage
);
816 // Set the symbol used for a particular marker number,
817 // and optionally the for and background colours.
818 void MarkerDefine(int markerNumber
, int markerSymbol
,
819 const wxColour
& foreground
= wxNullColour
,
820 const wxColour
& background
= wxNullColour
);
822 // Set the foreground colour used for a particular marker number.
823 void MarkerSetForeground(int markerNumber
, const wxColour
& fore
);
825 // Set the background colour used for a particular marker number.
826 void MarkerSetBackground(int markerNumber
, const wxColour
& back
);
828 // Add a marker to a line.
829 void MarkerAdd(int line
, int markerNumber
);
831 // Delete a marker from a line
832 void MarkerDelete(int line
, int markerNumber
);
834 // Delete all markers with a particular number from all lines
835 void MarkerDeleteAll(int markerNumber
);
837 // Get a bit mask of all the markers set on a line.
838 int MarkerGet(int line
);
840 // Find the next line after lineStart that includes a marker in mask.
841 int MarkerNext(int lineStart
, int markerMask
);
843 // Find the previous line before lineStart that includes a marker in mask.
844 int MarkerPrevious(int lineStart
, int markerMask
);
846 // Set a margin to be either numeric or symbolic.
847 void SetMarginType(int margin
, int marginType
);
849 // Retrieve the type of a margin.
850 int GetMarginType(int margin
);
852 // Set the width of a margin to a width expressed in pixels.
853 void SetMarginWidth(int margin
, int pixelWidth
);
855 // Retrieve the width of a margin in pixels.
856 int GetMarginWidth(int margin
);
858 // Set a mask that determines which markers are displayed in a margin.
859 void SetMarginMask(int margin
, int mask
);
861 // Retrieve the marker mask of a margin.
862 int GetMarginMask(int margin
);
864 // Make a margin sensitive or insensitive to mouse clicks.
865 void SetMarginSensitive(int margin
, bool sensitive
);
867 // Retrieve the mouse click sensitivity of a margin.
868 bool GetMarginSensitive(int margin
);
870 // Clear all the styles and make equivalent to the global default style.
871 void StyleClearAll();
873 // Set the foreground colour of a style.
874 void StyleSetForeground(int style
, const wxColour
& fore
);
876 // Set the background colour of a style.
877 void StyleSetBackground(int style
, const wxColour
& back
);
879 // Set a style to be bold or not.
880 void StyleSetBold(int style
, bool bold
);
882 // Set a style to be italic or not.
883 void StyleSetItalic(int style
, bool italic
);
885 // Set the size of characters of a style.
886 void StyleSetSize(int style
, int sizePoints
);
888 // Set the font of a style.
889 void StyleSetFaceName(int style
, const wxString
& fontName
);
891 // Set a style to have its end of line filled or not.
892 void StyleSetEOLFilled(int style
, bool filled
);
894 // Reset the default style to its state at startup
895 void StyleResetDefault();
897 // Set a style to be underlined or not.
898 void StyleSetUnderline(int style
, bool underline
);
900 // Set a style to be mixed case, or to force upper or lower case.
901 void StyleSetCase(int style
, int caseForce
);
903 // Set the foreground colour of the selection and whether to use this setting.
904 void SetSelForeground(bool useSetting
, const wxColour
& fore
);
906 // Set the background colour of the selection and whether to use this setting.
907 void SetSelBackground(bool useSetting
, const wxColour
& back
);
909 // Set the foreground colour of the caret.
910 void SetCaretForeground(const wxColour
& fore
);
912 // When key+modifier combination km is pressed perform msg.
913 void CmdKeyAssign(int key
, int modifiers
, int cmd
);
915 // When key+modifier combination km do nothing.
916 void CmdKeyClear(int key
, int modifiers
);
918 // Drop all key mappings.
919 void CmdKeyClearAll();
921 // Set the styles for a segment of the document.
922 void SetStyleBytes(int length
, char* styleBytes
);
924 // Set a style to be visible or not.
925 void StyleSetVisible(int style
, bool visible
);
927 // Get the time in milliseconds that the caret is on and off.
928 int GetCaretPeriod();
930 // Get the time in milliseconds that the caret is on and off. 0 = steady on.
931 void SetCaretPeriod(int periodMilliseconds
);
933 // Set the set of characters making up words for when moving or selecting
935 void SetWordChars(const wxString
& characters
);
937 // Start a sequence of actions that is undone and redone as a unit.
939 void BeginUndoAction();
941 // End a sequence of actions that is undone and redone as a unit.
942 void EndUndoAction();
944 // Set an indicator to plain, squiggle or TT.
945 void IndicatorSetStyle(int indic
, int style
);
947 // Retrieve the style of an indicator.
948 int IndicatorGetStyle(int indic
);
950 // Set the foreground colour of an indicator.
951 void IndicatorSetForeground(int indic
, const wxColour
& fore
);
953 // Retrieve the foreground colour of an indicator.
954 wxColour
IndicatorGetForeground(int indic
);
956 // Divide each styling byte into lexical class bits (default:5) and indicator
957 // bits (default:3). If a lexer requires more than 32 lexical states, then this
958 // is used to expand the possible states.
959 void SetStyleBits(int bits
);
961 // Retrieve number of bits in style bytes used to hold the lexical state.
964 // Used to hold extra styling information for each line.
965 void SetLineState(int line
, int state
);
967 // Retrieve the extra styling information for a line.
968 int GetLineState(int line
);
970 // Retrieve the last line number that has line state.
971 int GetMaxLineState();
973 // Is the background of the line containing the caret in a different colour?
974 bool GetCaretLineVisible();
976 // Display the background of the line containing the caret in a different colour.
977 void SetCaretLineVisible(bool show
);
979 // Get the colour of the background of the line containing the caret.
980 wxColour
GetCaretLineBack();
982 // Set the colour of the background of the line containing the caret.
983 void SetCaretLineBack(const wxColour
& back
);
985 // Display a auto-completion list.
986 // The lenEntered parameter indicates how many characters before
987 // the caret should be used to provide context.
988 void AutoCompShow(int lenEntered
, const wxString
& itemList
);
990 // Remove the auto-completion list from the screen.
991 void AutoCompCancel();
993 // Is there an auto-completion list visible?
994 bool AutoCompActive();
996 // Retrieve the position of the caret when the auto-completion list was
998 int AutoCompPosStart();
1000 // User has selected an item so remove the list and insert the selection.
1001 void AutoCompComplete();
1003 // Define a set of character that when typed cancel the auto-completion list.
1004 void AutoCompStops(const wxString
& characterSet
);
1006 // Change the separator character in the string setting up an auto-completion
1007 // list. Default is space but can be changed if items contain space.
1008 void AutoCompSetSeparator(int separatorCharacter
);
1010 // Retrieve the auto-completion list separator character.
1011 int AutoCompGetSeparator();
1013 // Select the item in the auto-completion list that starts with a string.
1014 void AutoCompSelect(const wxString
& text
);
1016 // Should the auto-completion list be cancelled if the user backspaces to a
1017 // position before where the box was created.
1018 void AutoCompSetCancelAtStart(bool cancel
);
1020 // Retrieve whether auto-completion cancelled by backspacing before start.
1021 bool AutoCompGetCancelAtStart();
1023 // Define a set of character that when typed fills up the selected word.
1024 void AutoCompSetFillUps(const wxString
& characterSet
);
1026 // Should a single item auto-completion list automatically choose the item.
1027 void AutoCompSetChooseSingle(bool chooseSingle
);
1029 // Retrieve whether a single item auto-completion list automatically choose the item.
1030 bool AutoCompGetChooseSingle();
1032 // Set whether case is significant when performing auto-completion searches.
1033 void AutoCompSetIgnoreCase(bool ignoreCase
);
1035 // Retrieve state of ignore case flag.
1036 bool AutoCompGetIgnoreCase();
1038 // Display a list of strings and send notification when user chooses one.
1039 void UserListShow(int listType
, const wxString
& itemList
);
1041 // Set whether or not autocompletion is hidden automatically when nothing matches
1042 void AutoCompSetAutoHide(bool autoHide
);
1044 // Retrieve whether or not autocompletion is hidden automatically when nothing matches
1045 bool AutoCompGetAutoHide();
1047 // Set the number of spaces used for one level of indentation.
1048 void SetIndent(int indentSize
);
1050 // Retrieve indentation size.
1053 // Indentation will only use space characters if useTabs is false, otherwise
1054 // it will use a combination of tabs and spaces.
1055 void SetUseTabs(bool useTabs
);
1057 // Retrieve whether tabs will be used in indentation.
1060 // Change the indentation of a line to a number of columns.
1061 void SetLineIndentation(int line
, int indentSize
);
1063 // Retrieve the number of columns that a line is indented.
1064 int GetLineIndentation(int line
);
1066 // Retrieve the position before the first non indentation character on a line.
1067 int GetLineIndentPosition(int line
);
1069 // Retrieve the column number of a position, taking tab width into account.
1070 int GetColumn(int pos
);
1072 // Show or hide the horizontal scroll bar.
1073 void SetUseHorizontalScrollBar(bool show
);
1075 // Is the horizontal scroll bar visible?
1076 bool GetUseHorizontalScrollBar();
1078 // Show or hide indentation guides.
1079 void SetIndentationGuides(bool show
);
1081 // Are the indentation guides visible?
1082 bool GetIndentationGuides();
1084 // Set the highlighted indentation guide column.
1085 // 0 = no highlighted guide.
1086 void SetHighlightGuide(int column
);
1088 // Get the highlighted indentation guide column.
1089 int GetHighlightGuide();
1091 // Get the position after the last visible characters on a line.
1092 int GetLineEndPosition(int line
);
1094 // Get the code page used to interpret the bytes of the document as characters.
1097 // Get the foreground colour of the caret.
1098 wxColour
GetCaretForeground();
1100 // In read-only mode?
1103 // Sets the position of the caret.
1104 void SetCurrentPos(int pos
);
1106 // Sets the position that starts the selection - this becomes the anchor.
1107 void SetSelectionStart(int pos
);
1109 // Returns the position at the start of the selection.
1110 int GetSelectionStart();
1112 // Sets the position that ends the selection - this becomes the currentPosition.
1113 void SetSelectionEnd(int pos
);
1115 // Returns the position at the end of the selection.
1116 int GetSelectionEnd();
1118 // Sets the print magnification added to the point size of each style for printing.
1119 void SetPrintMagnification(int magnification
);
1121 // Returns the print magnification.
1122 int GetPrintMagnification();
1124 // Modify colours when printing for clearer printed text.
1125 void SetPrintColourMode(int mode
);
1127 // Returns the print colour mode.
1128 int GetPrintColourMode();
1130 // Find some text in the document.
1131 int FindText(int minPos
, int maxPos
,
1132 const wxString
& text
,
1133 bool caseSensitive
, bool wholeWord
);
1135 // On Windows will draw the document into a display context such as a printer.
1136 int FormatRange(bool doDraw
,
1140 wxDC
* target
, // Why does it use two? Can they be the same?
1144 // Retrieve the line at the top of the display.
1145 int GetFirstVisibleLine();
1147 // Retrieve the contents of a line.
1148 wxString
GetLine(int line
);
1150 // Returns the number of lines in the document. There is always at least one.
1153 // Sets the size in pixels of the left margin.
1154 void SetMarginLeft(int pixelWidth
);
1156 // Returns the size in pixels of the left margin.
1157 int GetMarginLeft();
1159 // Sets the size in pixels of the right margin.
1160 void SetMarginRight(int pixelWidth
);
1162 // Returns the size in pixels of the right margin.
1163 int GetMarginRight();
1165 // Is the document different from when it was last saved?
1168 // Select a range of text.
1169 void SetSelection(int start
, int end
);
1171 // Retrieve the selected text.
1172 wxString
GetSelectedText();
1174 // Retrieve a range of text.
1175 wxString
GetTextRange(int startPos
, int endPos
);
1177 // Draw the selection in normal style or with selection highlighted.
1178 void HideSelection(bool normal
);
1180 // Retrieve the line containing a position.
1181 int LineFromPosition(int pos
);
1183 // Retrieve the position at the start of a line.
1184 int PositionFromLine(int line
);
1186 // Scroll horizontally and vertically.
1187 void LineScroll(int columns
, int lines
);
1189 // Ensure the caret is visible.
1190 void EnsureCaretVisible();
1192 // Replace the selected text with the argument text.
1193 void ReplaceSelection(const wxString
& text
);
1195 // Set to read only or read write.
1196 void SetReadOnly(bool readOnly
);
1198 // Will a paste succeed?
1201 // Are there any undoable actions in the undo history.
1204 // Delete the undo history.
1205 void EmptyUndoBuffer();
1207 // Undo one action in the undo history.
1210 // Cut the selection to the clipboard.
1213 // Copy the selection to the clipboard.
1216 // Paste the contents of the clipboard into the document replacing the selection.
1219 // Clear the selection.
1222 // Replace the contents of the document with the argument text.
1223 void SetText(const wxString
& text
);
1225 // Retrieve all the text in the document.
1228 // Retrieve the number of characters in the document.
1229 int GetTextLength();
1231 // Set to overtype (true) or insert mode
1232 void SetOvertype(bool overtype
);
1234 // Returns true if overtype mode is active otherwise false is returned.
1237 // Set the width of the insert mode caret
1238 void SetCaretWidth(int pixelWidth
);
1240 // Returns the width of the insert mode caret
1241 int GetCaretWidth();
1243 // Sets the position that starts the target which is used for updating the
1244 // document without affecting the scroll position.
1245 void SetTargetStart(int pos
);
1247 // Get the position that starts the target.
1248 int GetTargetStart();
1250 // Sets the position that ends the target which is used for updating the
1251 // document without affecting the scroll position.
1252 void SetTargetEnd(int pos
);
1254 // Get the position that ends the target.
1257 // Replace the target text with the argument text.
1258 // Text is counted so it can contain nulls.
1259 // Returns the length of the replacement text.
1260 int ReplaceTarget(const wxString
& text
);
1262 // Replace the target text with the argument text after \d processing.
1263 // Text is counted so it can contain nulls.
1264 // Looks for \d where d is between 1 and 9 and replaces these with the strings
1265 // matched in the last search operation which were surrounded by \( and \).
1266 // Returns the length of the replacement text including any change
1267 // caused by processing the \d patterns.
1268 int ReplaceTargetRE(const wxString
& text
);
1270 // Search for a counted string in the target and set the target to the found
1271 // range. Text is counted so it can contain nulls.
1272 // Returns length of range or -1 for failure in which case target is not moved.
1273 int SearchInTarget(const wxString
& text
);
1275 // Set the search flags used by SearchInTarget
1276 void SetSearchFlags(int flags
);
1278 // Get the search flags used by SearchInTarget
1279 int GetSearchFlags();
1281 // Show a call tip containing a definition near position pos.
1282 void CallTipShow(int pos
, const wxString
& definition
);
1284 // Remove the call tip from the screen.
1285 void CallTipCancel();
1287 // Is there an active call tip?
1288 bool CallTipActive();
1290 // Retrieve the position where the caret was before displaying the call tip.
1291 int CallTipPosAtStart();
1293 // Highlight a segment of the definition.
1294 void CallTipSetHighlight(int start
, int end
);
1296 // Set the background colour for the call tip.
1297 void CallTipSetBackground(const wxColour
& back
);
1299 // Find the display line of a document line taking hidden lines into account.
1300 int VisibleFromDocLine(int line
);
1302 // Find the document line of a display line taking hidden lines into account.
1303 int DocLineFromVisible(int lineDisplay
);
1305 // Set the fold level of a line.
1306 // This encodes an integer level along with flags indicating whether the
1307 // line is a header and whether it is effectively white space.
1308 void SetFoldLevel(int line
, int level
);
1310 // Retrieve the fold level of a line.
1311 int GetFoldLevel(int line
);
1313 // Find the last child line of a header line.
1314 int GetLastChild(int line
, int level
);
1316 // Find the parent line of a child line.
1317 int GetFoldParent(int line
);
1319 // Make a range of lines visible.
1320 void ShowLines(int lineStart
, int lineEnd
);
1322 // Make a range of lines invisible.
1323 void HideLines(int lineStart
, int lineEnd
);
1325 // Is a line visible?
1326 bool GetLineVisible(int line
);
1328 // Show the children of a header line.
1329 void SetFoldExpanded(int line
, bool expanded
);
1331 // Is a header line expanded?
1332 bool GetFoldExpanded(int line
);
1334 // Switch a header line between expanded and contracted.
1335 void ToggleFold(int line
);
1337 // Ensure a particular line is visible by expanding any header line hiding it.
1338 void EnsureVisible(int line
);
1340 // Set some debugging options for folding
1341 void SetFoldFlags(int flags
);
1343 // Ensure a particular line is visible by expanding any header line hiding it.
1344 // Use the currently set visibility policy to determine which range to display.
1345 void EnsureVisibleEnforcePolicy(int line
);
1347 // Sets whether a tab pressed when caret is within indentation indents
1348 void SetTabIndents(bool tabIndents
);
1350 // Does a tab pressed when caret is within indentation indent?
1351 bool GetTabIndents();
1353 // Sets whether a backspace pressed when caret is within indentation unindents
1354 void SetBackSpaceUnIndents(bool bsUnIndents
);
1356 // Does a backspace pressed when caret is within indentation unindent?
1357 bool GetBackSpaceUnIndents();
1359 // Sets the time the mouse must sit still to generate a mouse dwell event
1360 void SetMouseDwellTime(int periodMilliseconds
);
1362 // Retrieve the time the mouse must sit still to generate a mouse dwell event
1363 int GetMouseDwellTime();
1365 // Move the caret inside current view if it's not there already
1366 void MoveCaretInsideView();
1368 // How many characters are on a line, not including end of line characters.
1369 int LineLength(int line
);
1371 // Highlight the characters at two positions.
1372 void BraceHighlight(int pos1
, int pos2
);
1374 // Highlight the character at a position indicating there is no matching brace.
1375 void BraceBadLight(int pos
);
1377 // Find the position of a matching brace or INVALID_POSITION if no match.
1378 int BraceMatch(int pos
);
1380 // Are the end of line characters visible.
1383 // Make the end of line characters visible or invisible
1384 void SetViewEOL(bool visible
);
1386 // Retrieve a pointer to the document object.
1387 void* GetDocPointer();
1389 // Change the document object used.
1390 void SetDocPointer(void* docPointer
);
1392 // Set which document modification events are sent to the container.
1393 void SetModEventMask(int mask
);
1395 // Retrieve the column number which text should be kept within.
1396 int GetEdgeColumn();
1398 // Set the column number of the edge.
1399 // If text goes past the edge then it is highlighted.
1400 void SetEdgeColumn(int column
);
1402 // Retrieve the edge highlight mode.
1405 // The edge may be displayed by a line (EDGE_LINE) or by highlighting text that
1406 // goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).
1407 void SetEdgeMode(int mode
);
1409 // Retrieve the colour used in edge indication.
1410 wxColour
GetEdgeColour();
1412 // Change the colour used in edge indication.
1413 void SetEdgeColour(const wxColour
& edgeColour
);
1415 // Sets the current caret position to be the search anchor.
1416 void SearchAnchor();
1418 // Find some text starting at the search anchor.
1419 // Does not ensure the selection is visible.
1420 int SearchNext(int flags
, const wxString
& text
);
1422 // Find some text starting at the search anchor and moving backwards.
1423 // Does not ensure the selection is visible.
1424 int SearchPrev(int flags
, const wxString
& text
);
1426 // Set the way the line the caret is on is kept visible.
1427 void SetCaretPolicy(int caretPolicy
, int caretSlop
);
1429 // Retrieves the number of lines completely visible.
1430 int LinesOnScreen();
1432 // Set whether a pop up menu is displayed automatically when the user presses
1433 // the wrong mouse button.
1434 void UsePopUp(bool allowPopUp
);
1436 // Is the selection a rectangular. The alternative is the more common stream selection.
1437 bool SelectionIsRectangle();
1439 // Set the zoom level. This number of points is added to the size of all fonts.
1440 // It may be positive to magnify or negative to reduce.
1441 void SetZoom(int zoom
);
1443 // Retrieve the zoom level.
1446 // Create a new document object.
1447 // Starts with reference count of 1 and not selected into editor.
1448 void* CreateDocument();
1450 // Extend life of document.
1451 void AddRefDocument(void* docPointer
);
1453 // Release a reference to the document, deleting document if it fades to black.
1454 void ReleaseDocument(void* docPointer
);
1456 // Get which document modification events are sent to the container.
1457 int GetModEventMask();
1459 // Change internal focus flag
1460 void SetSTCFocus(bool focus
);
1462 // Get internal focus flag
1465 // Change error status - 0 = OK
1466 void SetStatus(int statusCode
);
1471 // Set whether the mouse is captured when its button is pressed
1472 void SetMouseDownCaptures(bool captures
);
1474 // Get whether mouse gets captured
1475 bool GetMouseDownCaptures();
1477 // Sets the cursor to one of the SC_CURSOR* values
1478 void SetCursor(int cursorType
);
1483 // Move to the previous change in capitalistion
1484 void WordPartLeft();
1486 // Move to the previous change in capitalistion extending selection to new caret position.
1487 void WordPartLeftExtend();
1489 // Move to the change next in capitalistion
1490 void WordPartRight();
1492 // Move to the next change in capitalistion extending selection to new caret position.
1493 void WordPartRightExtend();
1495 // Set the way the display area is determined when a particular line is to be moved to.
1496 void SetVisiblePolicy(int visiblePolicy
, int visibleSlop
);
1498 // Delete back from the current position to the start of the line
1501 // Delete forwards from the current position to the end of the line
1502 void DelLineRight();
1504 // Start notifying the container of all key presses and commands.
1507 // Stop notifying the container of all key presses and commands.
1510 // Set the lexing language of the document.
1511 void SetLexer(int lexer
);
1513 // Retrieve the lexing language of the document.
1516 // Colourise a segment of the document using the current lexing language.
1517 void Colourise(int start
, int end
);
1519 // Set up a value that may be used by a lexer for some optional feature.
1520 void SetProperty(const wxString
& key
, const wxString
& value
);
1522 // Set up the key words used by the lexer.
1523 void SetKeyWords(int keywordSet
, const wxString
& keyWords
);
1525 // Set the lexing language of the document based on string name.
1526 void SetLexerLanguage(const wxString
& language
);
1528 // END of generated section
1529 //----------------------------------------------------------------------
1533 // Returns the line number of the line with the caret.
1534 int GetCurrentLine();
1536 // Extract style settings from a spec-string which is composed of one or
1537 // more of the following comma separated elements:
1539 // bold turns on bold
1540 // italic turns on italics
1541 // fore:#RRGGBB sets the foreground colour
1542 // back:#RRGGBB sets the background colour
1543 // face:[facename] sets the font face name to use
1544 // size:[num] sets the font size in points
1545 // eol turns on eol filling
1546 // underline turns on underlining
1548 void StyleSetSpec(int styleNum
, const wxString
& spec
);
1552 // Set style size, face, bold, italic, and underline attributes from
1553 // a wxFont's attributes.
1554 void StyleSetFont(int styleNum
, wxFont
& font
);
1558 // Set all font style attributes at once.
1559 void StyleSetFontAttr(int styleNum
, int size
,
1560 const wxString
& faceName
,
1561 bool bold
, bool italic
,
1566 // Perform one of the operations defined by the wxSTC_CMD_* constants.
1567 void CmdKeyExecute(int cmd
);
1571 // Set the left and right margin in the edit area, measured in pixels.
1572 void SetMargins(int left
, int right
);
1575 // Retrieve the start and end positions of the current selection.
1577 void GetSelection(int* OUTPUT
, int* OUTPUT
);
1579 void GetSelection(int* startPos
, int* endPos
);
1582 // Retrieve the point in the window where a position is displayed.
1583 wxPoint
PointFromPosition(int pos
);
1586 // Scroll enough to make the given line visible
1587 void ScrollToLine(int line
);
1590 // Scroll enough to make the given column visible
1591 void ScrollToColumn(int column
);
1594 // Send a message to Scintilla
1595 long SendMsg(int msg
, long wp
=0, long lp
=0);
1597 //----------------------------------------------------------------------
1603 void OnPaint(wxPaintEvent
& evt
);
1604 void OnScrollWin(wxScrollWinEvent
& evt
);
1605 void OnSize(wxSizeEvent
& evt
);
1606 void OnMouseLeftDown(wxMouseEvent
& evt
);
1607 void OnMouseMove(wxMouseEvent
& evt
);
1608 void OnMouseLeftUp(wxMouseEvent
& evt
);
1609 void OnContextMenu(wxContextMenuEvent
& evt
);
1610 void OnMouseWheel(wxMouseEvent
& evt
);
1611 void OnChar(wxKeyEvent
& evt
);
1612 void OnKeyDown(wxKeyEvent
& evt
);
1613 void OnLoseFocus(wxFocusEvent
& evt
);
1614 void OnGainFocus(wxFocusEvent
& evt
);
1615 void OnSysColourChanged(wxSysColourChangedEvent
& evt
);
1616 void OnEraseBackground(wxEraseEvent
& evt
);
1617 void OnMenu(wxCommandEvent
& evt
);
1618 void OnListBox(wxCommandEvent
& evt
);
1621 // Turn notifications from Scintilla into events
1622 void NotifyChange();
1623 void NotifyParent(SCNotification
* scn
);
1627 DECLARE_EVENT_TABLE()
1628 DECLARE_CLASS(wxStyledTextCtrl
)
1631 wxStopWatch m_stopWatch
;
1633 bool m_lastKeyDownConsumed
;
1635 friend class ScintillaWX
;
1636 friend class Platform
;
1640 //----------------------------------------------------------------------
1642 class wxStyledTextEvent
: public wxCommandEvent
{
1644 wxStyledTextEvent(wxEventType commandType
=0, int id
=0);
1645 ~wxStyledTextEvent() {}
1647 void SetPosition(int pos
) { m_position
= pos
; }
1648 void SetKey(int k
) { m_key
= k
; }
1649 void SetModifiers(int m
) { m_modifiers
= m
; }
1650 void SetModificationType(int t
) { m_modificationType
= t
; }
1651 void SetText(const char* t
) { m_text
= t
; }
1652 void SetLength(int len
) { m_length
= len
; }
1653 void SetLinesAdded(int num
) { m_linesAdded
= num
; }
1654 void SetLine(int val
) { m_line
= val
; }
1655 void SetFoldLevelNow(int val
) { m_foldLevelNow
= val
; }
1656 void SetFoldLevelPrev(int val
) { m_foldLevelPrev
= val
; }
1657 void SetMargin(int val
) { m_margin
= val
; }
1658 void SetMessage(int val
) { m_message
= val
; }
1659 void SetWParam(int val
) { m_wParam
= val
; }
1660 void SetLParam(int val
) { m_lParam
= val
; }
1661 void SetListType(int val
) { m_listType
= val
; }
1662 void SetX(int val
) { m_x
= val
; }
1663 void SetY(int val
) { m_y
= val
; }
1664 #ifndef __WXMAC__ // #if wxUSE_DRAG_AND_DROP
1665 void SetDragText(const wxString
& val
) { m_dragText
= val
; }
1666 void SetDragAllowMove(bool val
) { m_dragAllowMove
= val
; }
1667 void SetDragResult(wxDragResult val
) { m_dragResult
= val
; }
1670 int GetPosition() const { return m_position
; }
1671 int GetKey() const { return m_key
; }
1672 int GetModifiers() const { return m_modifiers
; }
1673 int GetModificationType() const { return m_modificationType
; }
1674 wxString
GetText() const { return m_text
; }
1675 int GetLength() const { return m_length
; }
1676 int GetLinesAdded() const { return m_linesAdded
; }
1677 int GetLine() const { return m_line
; }
1678 int GetFoldLevelNow() const { return m_foldLevelNow
; }
1679 int GetFoldLevelPrev() const { return m_foldLevelPrev
; }
1680 int GetMargin() const { return m_margin
; }
1681 int GetMessage() const { return m_message
; }
1682 int GetWParam() const { return m_wParam
; }
1683 int GetLParam() const { return m_lParam
; }
1684 int GetListType() const { return m_listType
; }
1685 int GetX() const { return m_x
; }
1686 int GetY() const { return m_y
; }
1687 #ifndef __WXMAC__ // #if wxUSE_DRAG_AND_DROP
1688 wxString
GetDragText() { return m_dragText
; }
1689 bool GetDragAllowMove() { return m_dragAllowMove
; }
1690 wxDragResult
GetDragResult() { return m_dragResult
; }
1693 bool GetShift() const;
1694 bool GetControl() const;
1695 bool GetAlt() const;
1697 void CopyObject(wxObject
& obj
) const;
1701 DECLARE_DYNAMIC_CLASS(wxStyledTextEvent
)
1707 int m_modificationType
; // wxEVT_STC_MODIFIED
1713 int m_foldLevelPrev
;
1715 int m_margin
; // wxEVT_STC_MARGINCLICK
1717 int m_message
; // wxEVT_STC_MACRORECORD
1725 #ifndef __WXMAC__ // #if wxUSE_DRAG_AND_DROP
1726 wxString m_dragText
; // wxEVT_STC_START_DRAG, wxEVT_STC_DO_DROP
1727 bool m_dragAllowMove
; // wxEVT_STC_START_DRAG
1729 wxDragResult m_dragResult
; // wxEVT_STC_DRAG_OVER,wxEVT_STC_DO_DROP
1735 BEGIN_DECLARE_EVENT_TYPES()
1736 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_CHANGE
, 1650)
1737 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_STYLENEEDED
, 1651)
1738 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_CHARADDED
, 1652)
1739 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_SAVEPOINTREACHED
, 1653)
1740 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_SAVEPOINTLEFT
, 1654)
1741 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_ROMODIFYATTEMPT
, 1655)
1742 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_KEY
, 1656)
1743 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DOUBLECLICK
, 1657)
1744 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_UPDATEUI
, 1658)
1745 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_MODIFIED
, 1659)
1746 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_MACRORECORD
, 1660)
1747 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_MARGINCLICK
, 1661)
1748 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_NEEDSHOWN
, 1662)
1749 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_POSCHANGED
, 1663)
1750 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_PAINTED
, 1664)
1751 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_USERLISTSELECTION
, 1665)
1752 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_URIDROPPED
, 1666)
1753 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DWELLSTART
, 1667)
1754 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DWELLEND
, 1668)
1755 #if wxUSE_DRAG_AND_DROP
1756 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_START_DRAG
, 1669)
1757 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DRAG_OVER
, 1670)
1758 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DO_DROP
, 1671)
1760 END_DECLARE_EVENT_TYPES()
1764 wxEVT_STC_STYLENEEDED
,
1765 wxEVT_STC_CHARADDED
,
1766 wxEVT_STC_SAVEPOINTREACHED
,
1767 wxEVT_STC_SAVEPOINTLEFT
,
1768 wxEVT_STC_ROMODIFYATTEMPT
,
1770 wxEVT_STC_DOUBLECLICK
,
1773 wxEVT_STC_MACRORECORD
,
1774 wxEVT_STC_MARGINCLICK
,
1775 wxEVT_STC_NEEDSHOWN
,
1776 wxEVT_STC_POSCHANGED
,
1778 wxEVT_STC_USERLISTSELECTION
,
1779 wxEVT_STC_URIDROPPED
,
1780 wxEVT_STC_DWELLSTART
,
1782 #ifndef __WXMAC__ // #if wxUSE_DRAG_AND_DROP
1783 wxEVT_STC_START_DRAG
,
1784 wxEVT_STC_DRAG_OVER
,
1793 typedef void (wxEvtHandler::*wxStyledTextEventFunction
)(wxStyledTextEvent
&);
1795 #define EVT_STC_CHANGE(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHANGE, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1796 #define EVT_STC_STYLENEEDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_STYLENEEDED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1797 #define EVT_STC_CHARADDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHARADDED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1798 #define EVT_STC_SAVEPOINTREACHED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTREACHED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1799 #define EVT_STC_SAVEPOINTLEFT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTLEFT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1800 #define EVT_STC_ROMODIFYATTEMPT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ROMODIFYATTEMPT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1801 #define EVT_STC_KEY(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_KEY, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1802 #define EVT_STC_DOUBLECLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DOUBLECLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1803 #define EVT_STC_UPDATEUI(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_UPDATEUI, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1804 #define EVT_STC_MODIFIED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MODIFIED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1805 #define EVT_STC_MACRORECORD(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MACRORECORD, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1806 #define EVT_STC_MARGINCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MARGINCLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1807 #define EVT_STC_NEEDSHOWN(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_NEEDSHOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1808 #define EVT_STC_POSCHANGED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_POSCHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1809 #define EVT_STC_PAINTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_PAINTED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1810 #define EVT_STC_USERLISTSELECTION(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_USERLISTSELECTION, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1811 #define EVT_STC_URIDROPPED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_URIDROPPED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1812 #define EVT_STC_DWELLSTART(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLSTART, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1813 #define EVT_STC_DWELLEND(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLEND, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1814 #if wxUSE_DRAG_AND_DROP
1815 #define EVT_STC_START_DRAG(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_START_DRAG, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1816 #define EVT_STC_DRAG_OVER(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DRAG_OVER, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1817 #define EVT_STC_DO_DROP(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DO_DROP, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1821 //----------------------------------------------------------------------
1822 //----------------------------------------------------------------------