]>
Commit | Line | Data |
---|---|---|
1 | //////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/stc/stc.h | |
3 | // Purpose: A wxWidgets implementation of Scintilla. This class is the | |
4 | // one meant to be used directly by wx applications. It does not | |
5 | // derive directly from the Scintilla classes, and in fact there | |
6 | // is no mention of Scintilla classes at all in this header. | |
7 | // This class delegates all method calls and events to the | |
8 | // Scintilla objects and so forth. This allows the use of | |
9 | // Scintilla without polluting the namespace with all the | |
10 | // classes and itentifiers from Scintilla. | |
11 | // | |
12 | // Author: Robin Dunn | |
13 | // | |
14 | // Created: 13-Jan-2000 | |
15 | // Copyright: (c) 2000 by Total Control Software | |
16 | // Licence: wxWindows licence | |
17 | ///////////////////////////////////////////////////////////////////////////// | |
18 | ||
19 | /* | |
20 | IMPORTANT: include/wx/stc/stc.h is generated by src/stc/gen_iface.py from | |
21 | src/stc/stc.h.in, don't edit stc.h file as your changes will be | |
22 | lost after the next regeneration, edit stc.h.in and rerun the | |
23 | gen_iface.py script instead! | |
24 | ||
25 | Parts of this file generated by the script are found in between | |
26 | the special "{{{" and "}}}" markers, the rest of it is copied | |
27 | verbatim from src.h.in. | |
28 | */ | |
29 | ||
30 | #ifndef _WX_STC_STC_H_ | |
31 | #define _WX_STC_STC_H_ | |
32 | ||
33 | #include "wx/defs.h" | |
34 | ||
35 | #if wxUSE_STC | |
36 | ||
37 | #include "wx/control.h" | |
38 | #include "wx/dnd.h" | |
39 | #include "wx/stopwatch.h" | |
40 | #include "wx/versioninfo.h" | |
41 | ||
42 | #include "wx/textentry.h" | |
43 | #if wxUSE_TEXTCTRL | |
44 | #include "wx/textctrl.h" | |
45 | #endif // wxUSE_TEXTCTRL | |
46 | ||
47 | class WXDLLIMPEXP_FWD_CORE wxScrollBar; | |
48 | ||
49 | // SWIG can't handle "#if" type of conditionals, only "#ifdef" | |
50 | #ifdef SWIG | |
51 | #define STC_USE_DND 1 | |
52 | #else | |
53 | #if wxUSE_DRAG_AND_DROP | |
54 | #define STC_USE_DND 1 | |
55 | #endif | |
56 | #endif | |
57 | ||
58 | //---------------------------------------------------------------------- | |
59 | // STC constants generated section {{{ | |
60 | ||
61 | #define wxSTC_INVALID_POSITION -1 | |
62 | ||
63 | /// Define start of Scintilla messages to be greater than all Windows edit (EM_*) messages | |
64 | /// as many EM_ messages can be used although that use is deprecated. | |
65 | #define wxSTC_START 2000 | |
66 | #define wxSTC_OPTIONAL_START 3000 | |
67 | #define wxSTC_LEXER_START 4000 | |
68 | #define wxSTC_WS_INVISIBLE 0 | |
69 | #define wxSTC_WS_VISIBLEALWAYS 1 | |
70 | #define wxSTC_WS_VISIBLEAFTERINDENT 2 | |
71 | #define wxSTC_EOL_CRLF 0 | |
72 | #define wxSTC_EOL_CR 1 | |
73 | #define wxSTC_EOL_LF 2 | |
74 | ||
75 | /// The SC_CP_UTF8 value can be used to enter Unicode mode. | |
76 | /// This is the same value as CP_UTF8 in Windows | |
77 | #define wxSTC_CP_UTF8 65001 | |
78 | #define wxSTC_MARKER_MAX 31 | |
79 | #define wxSTC_MARK_CIRCLE 0 | |
80 | #define wxSTC_MARK_ROUNDRECT 1 | |
81 | #define wxSTC_MARK_ARROW 2 | |
82 | #define wxSTC_MARK_SMALLRECT 3 | |
83 | #define wxSTC_MARK_SHORTARROW 4 | |
84 | #define wxSTC_MARK_EMPTY 5 | |
85 | #define wxSTC_MARK_ARROWDOWN 6 | |
86 | #define wxSTC_MARK_MINUS 7 | |
87 | #define wxSTC_MARK_PLUS 8 | |
88 | ||
89 | /// Shapes used for outlining column. | |
90 | #define wxSTC_MARK_VLINE 9 | |
91 | #define wxSTC_MARK_LCORNER 10 | |
92 | #define wxSTC_MARK_TCORNER 11 | |
93 | #define wxSTC_MARK_BOXPLUS 12 | |
94 | #define wxSTC_MARK_BOXPLUSCONNECTED 13 | |
95 | #define wxSTC_MARK_BOXMINUS 14 | |
96 | #define wxSTC_MARK_BOXMINUSCONNECTED 15 | |
97 | #define wxSTC_MARK_LCORNERCURVE 16 | |
98 | #define wxSTC_MARK_TCORNERCURVE 17 | |
99 | #define wxSTC_MARK_CIRCLEPLUS 18 | |
100 | #define wxSTC_MARK_CIRCLEPLUSCONNECTED 19 | |
101 | #define wxSTC_MARK_CIRCLEMINUS 20 | |
102 | #define wxSTC_MARK_CIRCLEMINUSCONNECTED 21 | |
103 | ||
104 | /// Invisible mark that only sets the line background colour. | |
105 | #define wxSTC_MARK_BACKGROUND 22 | |
106 | #define wxSTC_MARK_DOTDOTDOT 23 | |
107 | #define wxSTC_MARK_ARROWS 24 | |
108 | #define wxSTC_MARK_PIXMAP 25 | |
109 | #define wxSTC_MARK_FULLRECT 26 | |
110 | #define wxSTC_MARK_LEFTRECT 27 | |
111 | #define wxSTC_MARK_AVAILABLE 28 | |
112 | #define wxSTC_MARK_UNDERLINE 29 | |
113 | #define wxSTC_MARK_RGBAIMAGE 30 | |
114 | #define wxSTC_MARK_CHARACTER 10000 | |
115 | ||
116 | /// Markers used for outlining column. | |
117 | #define wxSTC_MARKNUM_FOLDEREND 25 | |
118 | #define wxSTC_MARKNUM_FOLDEROPENMID 26 | |
119 | #define wxSTC_MARKNUM_FOLDERMIDTAIL 27 | |
120 | #define wxSTC_MARKNUM_FOLDERTAIL 28 | |
121 | #define wxSTC_MARKNUM_FOLDERSUB 29 | |
122 | #define wxSTC_MARKNUM_FOLDER 30 | |
123 | #define wxSTC_MARKNUM_FOLDEROPEN 31 | |
124 | #define wxSTC_MASK_FOLDERS 0xFE000000 | |
125 | #define wxSTC_MARGIN_SYMBOL 0 | |
126 | #define wxSTC_MARGIN_NUMBER 1 | |
127 | #define wxSTC_MARGIN_BACK 2 | |
128 | #define wxSTC_MARGIN_FORE 3 | |
129 | #define wxSTC_MARGIN_TEXT 4 | |
130 | #define wxSTC_MARGIN_RTEXT 5 | |
131 | ||
132 | /// Styles in range 32..38 are predefined for parts of the UI and are not used as normal styles. | |
133 | /// Style 39 is for future use. | |
134 | #define wxSTC_STYLE_DEFAULT 32 | |
135 | #define wxSTC_STYLE_LINENUMBER 33 | |
136 | #define wxSTC_STYLE_BRACELIGHT 34 | |
137 | #define wxSTC_STYLE_BRACEBAD 35 | |
138 | #define wxSTC_STYLE_CONTROLCHAR 36 | |
139 | #define wxSTC_STYLE_INDENTGUIDE 37 | |
140 | #define wxSTC_STYLE_CALLTIP 38 | |
141 | #define wxSTC_STYLE_LASTPREDEFINED 39 | |
142 | #define wxSTC_STYLE_MAX 255 | |
143 | ||
144 | /// Character set identifiers are used in StyleSetCharacterSet. | |
145 | /// The values are the same as the Windows *_CHARSET values. | |
146 | #define wxSTC_CHARSET_ANSI 0 | |
147 | #define wxSTC_CHARSET_DEFAULT 1 | |
148 | #define wxSTC_CHARSET_BALTIC 186 | |
149 | #define wxSTC_CHARSET_CHINESEBIG5 136 | |
150 | #define wxSTC_CHARSET_EASTEUROPE 238 | |
151 | #define wxSTC_CHARSET_GB2312 134 | |
152 | #define wxSTC_CHARSET_GREEK 161 | |
153 | #define wxSTC_CHARSET_HANGUL 129 | |
154 | #define wxSTC_CHARSET_MAC 77 | |
155 | #define wxSTC_CHARSET_OEM 255 | |
156 | #define wxSTC_CHARSET_RUSSIAN 204 | |
157 | #define wxSTC_CHARSET_CYRILLIC 1251 | |
158 | #define wxSTC_CHARSET_SHIFTJIS 128 | |
159 | #define wxSTC_CHARSET_SYMBOL 2 | |
160 | #define wxSTC_CHARSET_TURKISH 162 | |
161 | #define wxSTC_CHARSET_JOHAB 130 | |
162 | #define wxSTC_CHARSET_HEBREW 177 | |
163 | #define wxSTC_CHARSET_ARABIC 178 | |
164 | #define wxSTC_CHARSET_VIETNAMESE 163 | |
165 | #define wxSTC_CHARSET_THAI 222 | |
166 | #define wxSTC_CHARSET_8859_15 1000 | |
167 | #define wxSTC_CASE_MIXED 0 | |
168 | #define wxSTC_CASE_UPPER 1 | |
169 | #define wxSTC_CASE_LOWER 2 | |
170 | #define wxSTC_FONT_SIZE_MULTIPLIER 100 | |
171 | #define wxSTC_WEIGHT_NORMAL 400 | |
172 | #define wxSTC_WEIGHT_SEMIBOLD 600 | |
173 | #define wxSTC_WEIGHT_BOLD 700 | |
174 | ||
175 | /// Indicator style enumeration and some constants | |
176 | #define wxSTC_INDIC_PLAIN 0 | |
177 | #define wxSTC_INDIC_SQUIGGLE 1 | |
178 | #define wxSTC_INDIC_TT 2 | |
179 | #define wxSTC_INDIC_DIAGONAL 3 | |
180 | #define wxSTC_INDIC_STRIKE 4 | |
181 | #define wxSTC_INDIC_HIDDEN 5 | |
182 | #define wxSTC_INDIC_BOX 6 | |
183 | #define wxSTC_INDIC_ROUNDBOX 7 | |
184 | #define wxSTC_INDIC_STRAIGHTBOX 8 | |
185 | #define wxSTC_INDIC_DASH 9 | |
186 | #define wxSTC_INDIC_DOTS 10 | |
187 | #define wxSTC_INDIC_SQUIGGLELOW 11 | |
188 | #define wxSTC_INDIC_DOTBOX 12 | |
189 | #define wxSTC_INDIC_MAX 31 | |
190 | #define wxSTC_INDIC_CONTAINER 8 | |
191 | #define wxSTC_INDIC0_MASK 0x20 | |
192 | #define wxSTC_INDIC1_MASK 0x40 | |
193 | #define wxSTC_INDIC2_MASK 0x80 | |
194 | #define wxSTC_INDICS_MASK 0xE0 | |
195 | #define wxSTC_IV_NONE 0 | |
196 | #define wxSTC_IV_REAL 1 | |
197 | #define wxSTC_IV_LOOKFORWARD 2 | |
198 | #define wxSTC_IV_LOOKBOTH 3 | |
199 | ||
200 | /// PrintColourMode - use same colours as screen. | |
201 | #define wxSTC_PRINT_NORMAL 0 | |
202 | ||
203 | /// PrintColourMode - invert the light value of each style for printing. | |
204 | #define wxSTC_PRINT_INVERTLIGHT 1 | |
205 | ||
206 | /// PrintColourMode - force black text on white background for printing. | |
207 | #define wxSTC_PRINT_BLACKONWHITE 2 | |
208 | ||
209 | /// PrintColourMode - text stays coloured, but all background is forced to be white for printing. | |
210 | #define wxSTC_PRINT_COLOURONWHITE 3 | |
211 | ||
212 | /// PrintColourMode - only the default-background is forced to be white for printing. | |
213 | #define wxSTC_PRINT_COLOURONWHITEDEFAULTBG 4 | |
214 | #define wxSTC_FIND_WHOLEWORD 2 | |
215 | #define wxSTC_FIND_MATCHCASE 4 | |
216 | #define wxSTC_FIND_WORDSTART 0x00100000 | |
217 | #define wxSTC_FIND_REGEXP 0x00200000 | |
218 | #define wxSTC_FIND_POSIX 0x00400000 | |
219 | #define wxSTC_FOLDLEVELBASE 0x400 | |
220 | #define wxSTC_FOLDLEVELWHITEFLAG 0x1000 | |
221 | #define wxSTC_FOLDLEVELHEADERFLAG 0x2000 | |
222 | #define wxSTC_FOLDLEVELNUMBERMASK 0x0FFF | |
223 | #define wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002 | |
224 | #define wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004 | |
225 | #define wxSTC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008 | |
226 | #define wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010 | |
227 | #define wxSTC_FOLDFLAG_LEVELNUMBERS 0x0040 | |
228 | #define wxSTC_TIME_FOREVER 10000000 | |
229 | #define wxSTC_WRAP_NONE 0 | |
230 | #define wxSTC_WRAP_WORD 1 | |
231 | #define wxSTC_WRAP_CHAR 2 | |
232 | #define wxSTC_WRAPVISUALFLAG_NONE 0x0000 | |
233 | #define wxSTC_WRAPVISUALFLAG_END 0x0001 | |
234 | #define wxSTC_WRAPVISUALFLAG_START 0x0002 | |
235 | #define wxSTC_WRAPVISUALFLAG_MARGIN 0x0004 | |
236 | #define wxSTC_WRAPVISUALFLAGLOC_DEFAULT 0x0000 | |
237 | #define wxSTC_WRAPVISUALFLAGLOC_END_BY_TEXT 0x0001 | |
238 | #define wxSTC_WRAPVISUALFLAGLOC_START_BY_TEXT 0x0002 | |
239 | #define wxSTC_WRAPINDENT_FIXED 0 | |
240 | #define wxSTC_WRAPINDENT_SAME 1 | |
241 | #define wxSTC_WRAPINDENT_INDENT 2 | |
242 | #define wxSTC_CACHE_NONE 0 | |
243 | #define wxSTC_CACHE_CARET 1 | |
244 | #define wxSTC_CACHE_PAGE 2 | |
245 | #define wxSTC_CACHE_DOCUMENT 3 | |
246 | ||
247 | /// Control font anti-aliasing. | |
248 | #define wxSTC_EFF_QUALITY_MASK 0xF | |
249 | #define wxSTC_EFF_QUALITY_DEFAULT 0 | |
250 | #define wxSTC_EFF_QUALITY_NON_ANTIALIASED 1 | |
251 | #define wxSTC_EFF_QUALITY_ANTIALIASED 2 | |
252 | #define wxSTC_EFF_QUALITY_LCD_OPTIMIZED 3 | |
253 | #define wxSTC_MULTIPASTE_ONCE 0 | |
254 | #define wxSTC_MULTIPASTE_EACH 1 | |
255 | #define wxSTC_EDGE_NONE 0 | |
256 | #define wxSTC_EDGE_LINE 1 | |
257 | #define wxSTC_EDGE_BACKGROUND 2 | |
258 | #define wxSTC_STATUS_OK 0 | |
259 | #define wxSTC_STATUS_FAILURE 1 | |
260 | #define wxSTC_STATUS_BADALLOC 2 | |
261 | #define wxSTC_CURSORNORMAL -1 | |
262 | #define wxSTC_CURSORARROW 2 | |
263 | #define wxSTC_CURSORWAIT 4 | |
264 | #define wxSTC_CURSORREVERSEARROW 7 | |
265 | ||
266 | /// Constants for use with SetVisiblePolicy, similar to SetCaretPolicy. | |
267 | #define wxSTC_VISIBLE_SLOP 0x01 | |
268 | #define wxSTC_VISIBLE_STRICT 0x04 | |
269 | ||
270 | /// Caret policy, used by SetXCaretPolicy and SetYCaretPolicy. | |
271 | /// If CARET_SLOP is set, we can define a slop value: caretSlop. | |
272 | /// This value defines an unwanted zone (UZ) where the caret is... unwanted. | |
273 | /// This zone is defined as a number of pixels near the vertical margins, | |
274 | /// and as a number of lines near the horizontal margins. | |
275 | /// By keeping the caret away from the edges, it is seen within its context, | |
276 | /// so it is likely that the identifier that the caret is on can be completely seen, | |
277 | /// and that the current line is seen with some of the lines following it which are | |
278 | /// often dependent on that line. | |
279 | #define wxSTC_CARET_SLOP 0x01 | |
280 | ||
281 | /// If CARET_STRICT is set, the policy is enforced... strictly. | |
282 | /// The caret is centred on the display if slop is not set, | |
283 | /// and cannot go in the UZ if slop is set. | |
284 | #define wxSTC_CARET_STRICT 0x04 | |
285 | ||
286 | /// If CARET_JUMPS is set, the display is moved more energetically | |
287 | /// so the caret can move in the same direction longer before the policy is applied again. | |
288 | #define wxSTC_CARET_JUMPS 0x10 | |
289 | ||
290 | /// If CARET_EVEN is not set, instead of having symmetrical UZs, | |
291 | /// the left and bottom UZs are extended up to right and top UZs respectively. | |
292 | /// This way, we favour the displaying of useful information: the begining of lines, | |
293 | /// where most code reside, and the lines after the caret, eg. the body of a function. | |
294 | #define wxSTC_CARET_EVEN 0x08 | |
295 | #define wxSTC_SEL_STREAM 0 | |
296 | #define wxSTC_SEL_RECTANGLE 1 | |
297 | #define wxSTC_SEL_LINES 2 | |
298 | #define wxSTC_SEL_THIN 3 | |
299 | #define wxSTC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE 0 | |
300 | #define wxSTC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE 1 | |
301 | #define wxSTC_CARETSTICKY_OFF 0 | |
302 | #define wxSTC_CARETSTICKY_ON 1 | |
303 | #define wxSTC_CARETSTICKY_WHITESPACE 2 | |
304 | #define wxSTC_ALPHA_TRANSPARENT 0 | |
305 | #define wxSTC_ALPHA_OPAQUE 255 | |
306 | #define wxSTC_ALPHA_NOALPHA 256 | |
307 | #define wxSTC_CARETSTYLE_INVISIBLE 0 | |
308 | #define wxSTC_CARETSTYLE_LINE 1 | |
309 | #define wxSTC_CARETSTYLE_BLOCK 2 | |
310 | #define wxSTC_MARGINOPTION_NONE 0 | |
311 | #define wxSTC_MARGINOPTION_SUBLINESELECT 1 | |
312 | #define wxSTC_ANNOTATION_HIDDEN 0 | |
313 | #define wxSTC_ANNOTATION_STANDARD 1 | |
314 | #define wxSTC_ANNOTATION_BOXED 2 | |
315 | #define wxSTC_UNDO_MAY_COALESCE 1 | |
316 | #define wxSTC_SCVS_NONE 0 | |
317 | #define wxSTC_SCVS_RECTANGULARSELECTION 1 | |
318 | #define wxSTC_SCVS_USERACCESSIBLE 2 | |
319 | #define wxSTC_TECHNOLOGY_DEFAULT 0 | |
320 | #define wxSTC_TECHNOLOGY_DIRECTWRITE 1 | |
321 | ||
322 | /// Maximum value of keywordSet parameter of SetKeyWords. | |
323 | #define wxSTC_KEYWORDSET_MAX 8 | |
324 | #define wxSTC_TYPE_BOOLEAN 0 | |
325 | #define wxSTC_TYPE_INTEGER 1 | |
326 | #define wxSTC_TYPE_STRING 2 | |
327 | ||
328 | /// Notifications | |
329 | /// Type of modification and the action which caused the modification. | |
330 | /// These are defined as a bit mask to make it easy to specify which notifications are wanted. | |
331 | /// One bit is set from each of SC_MOD_* and SC_PERFORMED_*. | |
332 | #define wxSTC_MOD_INSERTTEXT 0x1 | |
333 | #define wxSTC_MOD_DELETETEXT 0x2 | |
334 | #define wxSTC_MOD_CHANGESTYLE 0x4 | |
335 | #define wxSTC_MOD_CHANGEFOLD 0x8 | |
336 | #define wxSTC_PERFORMED_USER 0x10 | |
337 | #define wxSTC_PERFORMED_UNDO 0x20 | |
338 | #define wxSTC_PERFORMED_REDO 0x40 | |
339 | #define wxSTC_MULTISTEPUNDOREDO 0x80 | |
340 | #define wxSTC_LASTSTEPINUNDOREDO 0x100 | |
341 | #define wxSTC_MOD_CHANGEMARKER 0x200 | |
342 | #define wxSTC_MOD_BEFOREINSERT 0x400 | |
343 | #define wxSTC_MOD_BEFOREDELETE 0x800 | |
344 | #define wxSTC_MULTILINEUNDOREDO 0x1000 | |
345 | #define wxSTC_STARTACTION 0x2000 | |
346 | #define wxSTC_MOD_CHANGEINDICATOR 0x4000 | |
347 | #define wxSTC_MOD_CHANGELINESTATE 0x8000 | |
348 | #define wxSTC_MOD_CHANGEMARGIN 0x10000 | |
349 | #define wxSTC_MOD_CHANGEANNOTATION 0x20000 | |
350 | #define wxSTC_MOD_CONTAINER 0x40000 | |
351 | #define wxSTC_MOD_LEXERSTATE 0x80000 | |
352 | #define wxSTC_MODEVENTMASKALL 0xFFFFF | |
353 | #define wxSTC_UPDATE_CONTENT 0x1 | |
354 | #define wxSTC_UPDATE_SELECTION 0x2 | |
355 | #define wxSTC_UPDATE_V_SCROLL 0x4 | |
356 | #define wxSTC_UPDATE_H_SCROLL 0x8 | |
357 | ||
358 | /// Symbolic key codes and modifier flags. | |
359 | /// ASCII and other printable characters below 256. | |
360 | /// Extended keys above 300. | |
361 | #define wxSTC_KEY_DOWN 300 | |
362 | #define wxSTC_KEY_UP 301 | |
363 | #define wxSTC_KEY_LEFT 302 | |
364 | #define wxSTC_KEY_RIGHT 303 | |
365 | #define wxSTC_KEY_HOME 304 | |
366 | #define wxSTC_KEY_END 305 | |
367 | #define wxSTC_KEY_PRIOR 306 | |
368 | #define wxSTC_KEY_NEXT 307 | |
369 | #define wxSTC_KEY_DELETE 308 | |
370 | #define wxSTC_KEY_INSERT 309 | |
371 | #define wxSTC_KEY_ESCAPE 7 | |
372 | #define wxSTC_KEY_BACK 8 | |
373 | #define wxSTC_KEY_TAB 9 | |
374 | #define wxSTC_KEY_RETURN 13 | |
375 | #define wxSTC_KEY_ADD 310 | |
376 | #define wxSTC_KEY_SUBTRACT 311 | |
377 | #define wxSTC_KEY_DIVIDE 312 | |
378 | #define wxSTC_KEY_WIN 313 | |
379 | #define wxSTC_KEY_RWIN 314 | |
380 | #define wxSTC_KEY_MENU 315 | |
381 | #define wxSTC_SCMOD_NORM 0 | |
382 | #define wxSTC_SCMOD_SHIFT 1 | |
383 | #define wxSTC_SCMOD_CTRL 2 | |
384 | #define wxSTC_SCMOD_ALT 4 | |
385 | #define wxSTC_SCMOD_SUPER 8 | |
386 | #define wxSTC_SCMOD_META 16 | |
387 | ||
388 | /// For SciLexer.h | |
389 | #define wxSTC_LEX_CONTAINER 0 | |
390 | #define wxSTC_LEX_NULL 1 | |
391 | #define wxSTC_LEX_PYTHON 2 | |
392 | #define wxSTC_LEX_CPP 3 | |
393 | #define wxSTC_LEX_HTML 4 | |
394 | #define wxSTC_LEX_XML 5 | |
395 | #define wxSTC_LEX_PERL 6 | |
396 | #define wxSTC_LEX_SQL 7 | |
397 | #define wxSTC_LEX_VB 8 | |
398 | #define wxSTC_LEX_PROPERTIES 9 | |
399 | #define wxSTC_LEX_ERRORLIST 10 | |
400 | #define wxSTC_LEX_MAKEFILE 11 | |
401 | #define wxSTC_LEX_BATCH 12 | |
402 | #define wxSTC_LEX_XCODE 13 | |
403 | #define wxSTC_LEX_LATEX 14 | |
404 | #define wxSTC_LEX_LUA 15 | |
405 | #define wxSTC_LEX_DIFF 16 | |
406 | #define wxSTC_LEX_CONF 17 | |
407 | #define wxSTC_LEX_PASCAL 18 | |
408 | #define wxSTC_LEX_AVE 19 | |
409 | #define wxSTC_LEX_ADA 20 | |
410 | #define wxSTC_LEX_LISP 21 | |
411 | #define wxSTC_LEX_RUBY 22 | |
412 | #define wxSTC_LEX_EIFFEL 23 | |
413 | #define wxSTC_LEX_EIFFELKW 24 | |
414 | #define wxSTC_LEX_TCL 25 | |
415 | #define wxSTC_LEX_NNCRONTAB 26 | |
416 | #define wxSTC_LEX_BULLANT 27 | |
417 | #define wxSTC_LEX_VBSCRIPT 28 | |
418 | #define wxSTC_LEX_BAAN 31 | |
419 | #define wxSTC_LEX_MATLAB 32 | |
420 | #define wxSTC_LEX_SCRIPTOL 33 | |
421 | #define wxSTC_LEX_ASM 34 | |
422 | #define wxSTC_LEX_CPPNOCASE 35 | |
423 | #define wxSTC_LEX_FORTRAN 36 | |
424 | #define wxSTC_LEX_F77 37 | |
425 | #define wxSTC_LEX_CSS 38 | |
426 | #define wxSTC_LEX_POV 39 | |
427 | #define wxSTC_LEX_LOUT 40 | |
428 | #define wxSTC_LEX_ESCRIPT 41 | |
429 | #define wxSTC_LEX_PS 42 | |
430 | #define wxSTC_LEX_NSIS 43 | |
431 | #define wxSTC_LEX_MMIXAL 44 | |
432 | #define wxSTC_LEX_CLW 45 | |
433 | #define wxSTC_LEX_CLWNOCASE 46 | |
434 | #define wxSTC_LEX_LOT 47 | |
435 | #define wxSTC_LEX_YAML 48 | |
436 | #define wxSTC_LEX_TEX 49 | |
437 | #define wxSTC_LEX_METAPOST 50 | |
438 | #define wxSTC_LEX_POWERBASIC 51 | |
439 | #define wxSTC_LEX_FORTH 52 | |
440 | #define wxSTC_LEX_ERLANG 53 | |
441 | #define wxSTC_LEX_OCTAVE 54 | |
442 | #define wxSTC_LEX_MSSQL 55 | |
443 | #define wxSTC_LEX_VERILOG 56 | |
444 | #define wxSTC_LEX_KIX 57 | |
445 | #define wxSTC_LEX_GUI4CLI 58 | |
446 | #define wxSTC_LEX_SPECMAN 59 | |
447 | #define wxSTC_LEX_AU3 60 | |
448 | #define wxSTC_LEX_APDL 61 | |
449 | #define wxSTC_LEX_BASH 62 | |
450 | #define wxSTC_LEX_ASN1 63 | |
451 | #define wxSTC_LEX_VHDL 64 | |
452 | #define wxSTC_LEX_CAML 65 | |
453 | #define wxSTC_LEX_BLITZBASIC 66 | |
454 | #define wxSTC_LEX_PUREBASIC 67 | |
455 | #define wxSTC_LEX_HASKELL 68 | |
456 | #define wxSTC_LEX_PHPSCRIPT 69 | |
457 | #define wxSTC_LEX_TADS3 70 | |
458 | #define wxSTC_LEX_REBOL 71 | |
459 | #define wxSTC_LEX_SMALLTALK 72 | |
460 | #define wxSTC_LEX_FLAGSHIP 73 | |
461 | #define wxSTC_LEX_CSOUND 74 | |
462 | #define wxSTC_LEX_FREEBASIC 75 | |
463 | #define wxSTC_LEX_INNOSETUP 76 | |
464 | #define wxSTC_LEX_OPAL 77 | |
465 | #define wxSTC_LEX_SPICE 78 | |
466 | #define wxSTC_LEX_D 79 | |
467 | #define wxSTC_LEX_CMAKE 80 | |
468 | #define wxSTC_LEX_GAP 81 | |
469 | #define wxSTC_LEX_PLM 82 | |
470 | #define wxSTC_LEX_PROGRESS 83 | |
471 | #define wxSTC_LEX_ABAQUS 84 | |
472 | #define wxSTC_LEX_ASYMPTOTE 85 | |
473 | #define wxSTC_LEX_R 86 | |
474 | #define wxSTC_LEX_MAGIK 87 | |
475 | #define wxSTC_LEX_POWERSHELL 88 | |
476 | #define wxSTC_LEX_MYSQL 89 | |
477 | #define wxSTC_LEX_PO 90 | |
478 | #define wxSTC_LEX_TAL 91 | |
479 | #define wxSTC_LEX_COBOL 92 | |
480 | #define wxSTC_LEX_TACL 93 | |
481 | #define wxSTC_LEX_SORCUS 94 | |
482 | #define wxSTC_LEX_POWERPRO 95 | |
483 | #define wxSTC_LEX_NIMROD 96 | |
484 | #define wxSTC_LEX_SML 97 | |
485 | #define wxSTC_LEX_MARKDOWN 98 | |
486 | #define wxSTC_LEX_TXT2TAGS 99 | |
487 | #define wxSTC_LEX_A68K 100 | |
488 | #define wxSTC_LEX_MODULA 101 | |
489 | #define wxSTC_LEX_COFFEESCRIPT 102 | |
490 | #define wxSTC_LEX_TCMD 103 | |
491 | #define wxSTC_LEX_AVS 104 | |
492 | #define wxSTC_LEX_ECL 105 | |
493 | #define wxSTC_LEX_OSCRIPT 106 | |
494 | #define wxSTC_LEX_VISUALPROLOG 107 | |
495 | ||
496 | /// When a lexer specifies its language as SCLEX_AUTOMATIC it receives a | |
497 | /// value assigned in sequence from SCLEX_AUTOMATIC+1. | |
498 | #define wxSTC_LEX_AUTOMATIC 1000 | |
499 | ||
500 | /// Lexical states for SCLEX_PYTHON | |
501 | #define wxSTC_P_DEFAULT 0 | |
502 | #define wxSTC_P_COMMENTLINE 1 | |
503 | #define wxSTC_P_NUMBER 2 | |
504 | #define wxSTC_P_STRING 3 | |
505 | #define wxSTC_P_CHARACTER 4 | |
506 | #define wxSTC_P_WORD 5 | |
507 | #define wxSTC_P_TRIPLE 6 | |
508 | #define wxSTC_P_TRIPLEDOUBLE 7 | |
509 | #define wxSTC_P_CLASSNAME 8 | |
510 | #define wxSTC_P_DEFNAME 9 | |
511 | #define wxSTC_P_OPERATOR 10 | |
512 | #define wxSTC_P_IDENTIFIER 11 | |
513 | #define wxSTC_P_COMMENTBLOCK 12 | |
514 | #define wxSTC_P_STRINGEOL 13 | |
515 | #define wxSTC_P_WORD2 14 | |
516 | #define wxSTC_P_DECORATOR 15 | |
517 | ||
518 | /// Lexical states for SCLEX_CPP | |
519 | #define wxSTC_C_DEFAULT 0 | |
520 | #define wxSTC_C_COMMENT 1 | |
521 | #define wxSTC_C_COMMENTLINE 2 | |
522 | #define wxSTC_C_COMMENTDOC 3 | |
523 | #define wxSTC_C_NUMBER 4 | |
524 | #define wxSTC_C_WORD 5 | |
525 | #define wxSTC_C_STRING 6 | |
526 | #define wxSTC_C_CHARACTER 7 | |
527 | #define wxSTC_C_UUID 8 | |
528 | #define wxSTC_C_PREPROCESSOR 9 | |
529 | #define wxSTC_C_OPERATOR 10 | |
530 | #define wxSTC_C_IDENTIFIER 11 | |
531 | #define wxSTC_C_STRINGEOL 12 | |
532 | #define wxSTC_C_VERBATIM 13 | |
533 | #define wxSTC_C_REGEX 14 | |
534 | #define wxSTC_C_COMMENTLINEDOC 15 | |
535 | #define wxSTC_C_WORD2 16 | |
536 | #define wxSTC_C_COMMENTDOCKEYWORD 17 | |
537 | #define wxSTC_C_COMMENTDOCKEYWORDERROR 18 | |
538 | #define wxSTC_C_GLOBALCLASS 19 | |
539 | #define wxSTC_C_STRINGRAW 20 | |
540 | #define wxSTC_C_TRIPLEVERBATIM 21 | |
541 | #define wxSTC_C_HASHQUOTEDSTRING 22 | |
542 | #define wxSTC_C_PREPROCESSORCOMMENT 23 | |
543 | ||
544 | /// Lexical states for SCLEX_D | |
545 | #define wxSTC_D_DEFAULT 0 | |
546 | #define wxSTC_D_COMMENT 1 | |
547 | #define wxSTC_D_COMMENTLINE 2 | |
548 | #define wxSTC_D_COMMENTDOC 3 | |
549 | #define wxSTC_D_COMMENTNESTED 4 | |
550 | #define wxSTC_D_NUMBER 5 | |
551 | #define wxSTC_D_WORD 6 | |
552 | #define wxSTC_D_WORD2 7 | |
553 | #define wxSTC_D_WORD3 8 | |
554 | #define wxSTC_D_TYPEDEF 9 | |
555 | #define wxSTC_D_STRING 10 | |
556 | #define wxSTC_D_STRINGEOL 11 | |
557 | #define wxSTC_D_CHARACTER 12 | |
558 | #define wxSTC_D_OPERATOR 13 | |
559 | #define wxSTC_D_IDENTIFIER 14 | |
560 | #define wxSTC_D_COMMENTLINEDOC 15 | |
561 | #define wxSTC_D_COMMENTDOCKEYWORD 16 | |
562 | #define wxSTC_D_COMMENTDOCKEYWORDERROR 17 | |
563 | #define wxSTC_D_STRINGB 18 | |
564 | #define wxSTC_D_STRINGR 19 | |
565 | #define wxSTC_D_WORD5 20 | |
566 | #define wxSTC_D_WORD6 21 | |
567 | #define wxSTC_D_WORD7 22 | |
568 | ||
569 | /// Lexical states for SCLEX_TCL | |
570 | #define wxSTC_TCL_DEFAULT 0 | |
571 | #define wxSTC_TCL_COMMENT 1 | |
572 | #define wxSTC_TCL_COMMENTLINE 2 | |
573 | #define wxSTC_TCL_NUMBER 3 | |
574 | #define wxSTC_TCL_WORD_IN_QUOTE 4 | |
575 | #define wxSTC_TCL_IN_QUOTE 5 | |
576 | #define wxSTC_TCL_OPERATOR 6 | |
577 | #define wxSTC_TCL_IDENTIFIER 7 | |
578 | #define wxSTC_TCL_SUBSTITUTION 8 | |
579 | #define wxSTC_TCL_SUB_BRACE 9 | |
580 | #define wxSTC_TCL_MODIFIER 10 | |
581 | #define wxSTC_TCL_EXPAND 11 | |
582 | #define wxSTC_TCL_WORD 12 | |
583 | #define wxSTC_TCL_WORD2 13 | |
584 | #define wxSTC_TCL_WORD3 14 | |
585 | #define wxSTC_TCL_WORD4 15 | |
586 | #define wxSTC_TCL_WORD5 16 | |
587 | #define wxSTC_TCL_WORD6 17 | |
588 | #define wxSTC_TCL_WORD7 18 | |
589 | #define wxSTC_TCL_WORD8 19 | |
590 | #define wxSTC_TCL_COMMENT_BOX 20 | |
591 | #define wxSTC_TCL_BLOCK_COMMENT 21 | |
592 | ||
593 | /// Lexical states for SCLEX_HTML, SCLEX_XML | |
594 | #define wxSTC_H_DEFAULT 0 | |
595 | #define wxSTC_H_TAG 1 | |
596 | #define wxSTC_H_TAGUNKNOWN 2 | |
597 | #define wxSTC_H_ATTRIBUTE 3 | |
598 | #define wxSTC_H_ATTRIBUTEUNKNOWN 4 | |
599 | #define wxSTC_H_NUMBER 5 | |
600 | #define wxSTC_H_DOUBLESTRING 6 | |
601 | #define wxSTC_H_SINGLESTRING 7 | |
602 | #define wxSTC_H_OTHER 8 | |
603 | #define wxSTC_H_COMMENT 9 | |
604 | #define wxSTC_H_ENTITY 10 | |
605 | ||
606 | /// XML and ASP | |
607 | #define wxSTC_H_TAGEND 11 | |
608 | #define wxSTC_H_XMLSTART 12 | |
609 | #define wxSTC_H_XMLEND 13 | |
610 | #define wxSTC_H_SCRIPT 14 | |
611 | #define wxSTC_H_ASP 15 | |
612 | #define wxSTC_H_ASPAT 16 | |
613 | #define wxSTC_H_CDATA 17 | |
614 | #define wxSTC_H_QUESTION 18 | |
615 | ||
616 | /// More HTML | |
617 | #define wxSTC_H_VALUE 19 | |
618 | ||
619 | /// X-Code | |
620 | #define wxSTC_H_XCCOMMENT 20 | |
621 | ||
622 | /// SGML | |
623 | #define wxSTC_H_SGML_DEFAULT 21 | |
624 | #define wxSTC_H_SGML_COMMAND 22 | |
625 | #define wxSTC_H_SGML_1ST_PARAM 23 | |
626 | #define wxSTC_H_SGML_DOUBLESTRING 24 | |
627 | #define wxSTC_H_SGML_SIMPLESTRING 25 | |
628 | #define wxSTC_H_SGML_ERROR 26 | |
629 | #define wxSTC_H_SGML_SPECIAL 27 | |
630 | #define wxSTC_H_SGML_ENTITY 28 | |
631 | #define wxSTC_H_SGML_COMMENT 29 | |
632 | #define wxSTC_H_SGML_1ST_PARAM_COMMENT 30 | |
633 | #define wxSTC_H_SGML_BLOCK_DEFAULT 31 | |
634 | ||
635 | /// Embedded Javascript | |
636 | #define wxSTC_HJ_START 40 | |
637 | #define wxSTC_HJ_DEFAULT 41 | |
638 | #define wxSTC_HJ_COMMENT 42 | |
639 | #define wxSTC_HJ_COMMENTLINE 43 | |
640 | #define wxSTC_HJ_COMMENTDOC 44 | |
641 | #define wxSTC_HJ_NUMBER 45 | |
642 | #define wxSTC_HJ_WORD 46 | |
643 | #define wxSTC_HJ_KEYWORD 47 | |
644 | #define wxSTC_HJ_DOUBLESTRING 48 | |
645 | #define wxSTC_HJ_SINGLESTRING 49 | |
646 | #define wxSTC_HJ_SYMBOLS 50 | |
647 | #define wxSTC_HJ_STRINGEOL 51 | |
648 | #define wxSTC_HJ_REGEX 52 | |
649 | ||
650 | /// ASP Javascript | |
651 | #define wxSTC_HJA_START 55 | |
652 | #define wxSTC_HJA_DEFAULT 56 | |
653 | #define wxSTC_HJA_COMMENT 57 | |
654 | #define wxSTC_HJA_COMMENTLINE 58 | |
655 | #define wxSTC_HJA_COMMENTDOC 59 | |
656 | #define wxSTC_HJA_NUMBER 60 | |
657 | #define wxSTC_HJA_WORD 61 | |
658 | #define wxSTC_HJA_KEYWORD 62 | |
659 | #define wxSTC_HJA_DOUBLESTRING 63 | |
660 | #define wxSTC_HJA_SINGLESTRING 64 | |
661 | #define wxSTC_HJA_SYMBOLS 65 | |
662 | #define wxSTC_HJA_STRINGEOL 66 | |
663 | #define wxSTC_HJA_REGEX 67 | |
664 | ||
665 | /// Embedded VBScript | |
666 | #define wxSTC_HB_START 70 | |
667 | #define wxSTC_HB_DEFAULT 71 | |
668 | #define wxSTC_HB_COMMENTLINE 72 | |
669 | #define wxSTC_HB_NUMBER 73 | |
670 | #define wxSTC_HB_WORD 74 | |
671 | #define wxSTC_HB_STRING 75 | |
672 | #define wxSTC_HB_IDENTIFIER 76 | |
673 | #define wxSTC_HB_STRINGEOL 77 | |
674 | ||
675 | /// ASP VBScript | |
676 | #define wxSTC_HBA_START 80 | |
677 | #define wxSTC_HBA_DEFAULT 81 | |
678 | #define wxSTC_HBA_COMMENTLINE 82 | |
679 | #define wxSTC_HBA_NUMBER 83 | |
680 | #define wxSTC_HBA_WORD 84 | |
681 | #define wxSTC_HBA_STRING 85 | |
682 | #define wxSTC_HBA_IDENTIFIER 86 | |
683 | #define wxSTC_HBA_STRINGEOL 87 | |
684 | ||
685 | /// Embedded Python | |
686 | #define wxSTC_HP_START 90 | |
687 | #define wxSTC_HP_DEFAULT 91 | |
688 | #define wxSTC_HP_COMMENTLINE 92 | |
689 | #define wxSTC_HP_NUMBER 93 | |
690 | #define wxSTC_HP_STRING 94 | |
691 | #define wxSTC_HP_CHARACTER 95 | |
692 | #define wxSTC_HP_WORD 96 | |
693 | #define wxSTC_HP_TRIPLE 97 | |
694 | #define wxSTC_HP_TRIPLEDOUBLE 98 | |
695 | #define wxSTC_HP_CLASSNAME 99 | |
696 | #define wxSTC_HP_DEFNAME 100 | |
697 | #define wxSTC_HP_OPERATOR 101 | |
698 | #define wxSTC_HP_IDENTIFIER 102 | |
699 | ||
700 | /// PHP | |
701 | #define wxSTC_HPHP_COMPLEX_VARIABLE 104 | |
702 | ||
703 | /// ASP Python | |
704 | #define wxSTC_HPA_START 105 | |
705 | #define wxSTC_HPA_DEFAULT 106 | |
706 | #define wxSTC_HPA_COMMENTLINE 107 | |
707 | #define wxSTC_HPA_NUMBER 108 | |
708 | #define wxSTC_HPA_STRING 109 | |
709 | #define wxSTC_HPA_CHARACTER 110 | |
710 | #define wxSTC_HPA_WORD 111 | |
711 | #define wxSTC_HPA_TRIPLE 112 | |
712 | #define wxSTC_HPA_TRIPLEDOUBLE 113 | |
713 | #define wxSTC_HPA_CLASSNAME 114 | |
714 | #define wxSTC_HPA_DEFNAME 115 | |
715 | #define wxSTC_HPA_OPERATOR 116 | |
716 | #define wxSTC_HPA_IDENTIFIER 117 | |
717 | ||
718 | /// PHP | |
719 | #define wxSTC_HPHP_DEFAULT 118 | |
720 | #define wxSTC_HPHP_HSTRING 119 | |
721 | #define wxSTC_HPHP_SIMPLESTRING 120 | |
722 | #define wxSTC_HPHP_WORD 121 | |
723 | #define wxSTC_HPHP_NUMBER 122 | |
724 | #define wxSTC_HPHP_VARIABLE 123 | |
725 | #define wxSTC_HPHP_COMMENT 124 | |
726 | #define wxSTC_HPHP_COMMENTLINE 125 | |
727 | #define wxSTC_HPHP_HSTRING_VARIABLE 126 | |
728 | #define wxSTC_HPHP_OPERATOR 127 | |
729 | ||
730 | /// Lexical states for SCLEX_PERL | |
731 | #define wxSTC_PL_DEFAULT 0 | |
732 | #define wxSTC_PL_ERROR 1 | |
733 | #define wxSTC_PL_COMMENTLINE 2 | |
734 | #define wxSTC_PL_POD 3 | |
735 | #define wxSTC_PL_NUMBER 4 | |
736 | #define wxSTC_PL_WORD 5 | |
737 | #define wxSTC_PL_STRING 6 | |
738 | #define wxSTC_PL_CHARACTER 7 | |
739 | #define wxSTC_PL_PUNCTUATION 8 | |
740 | #define wxSTC_PL_PREPROCESSOR 9 | |
741 | #define wxSTC_PL_OPERATOR 10 | |
742 | #define wxSTC_PL_IDENTIFIER 11 | |
743 | #define wxSTC_PL_SCALAR 12 | |
744 | #define wxSTC_PL_ARRAY 13 | |
745 | #define wxSTC_PL_HASH 14 | |
746 | #define wxSTC_PL_SYMBOLTABLE 15 | |
747 | #define wxSTC_PL_VARIABLE_INDEXER 16 | |
748 | #define wxSTC_PL_REGEX 17 | |
749 | #define wxSTC_PL_REGSUBST 18 | |
750 | #define wxSTC_PL_LONGQUOTE 19 | |
751 | #define wxSTC_PL_BACKTICKS 20 | |
752 | #define wxSTC_PL_DATASECTION 21 | |
753 | #define wxSTC_PL_HERE_DELIM 22 | |
754 | #define wxSTC_PL_HERE_Q 23 | |
755 | #define wxSTC_PL_HERE_QQ 24 | |
756 | #define wxSTC_PL_HERE_QX 25 | |
757 | #define wxSTC_PL_STRING_Q 26 | |
758 | #define wxSTC_PL_STRING_QQ 27 | |
759 | #define wxSTC_PL_STRING_QX 28 | |
760 | #define wxSTC_PL_STRING_QR 29 | |
761 | #define wxSTC_PL_STRING_QW 30 | |
762 | #define wxSTC_PL_POD_VERB 31 | |
763 | #define wxSTC_PL_SUB_PROTOTYPE 40 | |
764 | #define wxSTC_PL_FORMAT_IDENT 41 | |
765 | #define wxSTC_PL_FORMAT 42 | |
766 | #define wxSTC_PL_STRING_VAR 43 | |
767 | #define wxSTC_PL_XLAT 44 | |
768 | #define wxSTC_PL_REGEX_VAR 54 | |
769 | #define wxSTC_PL_REGSUBST_VAR 55 | |
770 | #define wxSTC_PL_BACKTICKS_VAR 57 | |
771 | #define wxSTC_PL_HERE_QQ_VAR 61 | |
772 | #define wxSTC_PL_HERE_QX_VAR 62 | |
773 | #define wxSTC_PL_STRING_QQ_VAR 64 | |
774 | #define wxSTC_PL_STRING_QX_VAR 65 | |
775 | #define wxSTC_PL_STRING_QR_VAR 66 | |
776 | ||
777 | /// Lexical states for SCLEX_RUBY | |
778 | #define wxSTC_RB_DEFAULT 0 | |
779 | #define wxSTC_RB_ERROR 1 | |
780 | #define wxSTC_RB_COMMENTLINE 2 | |
781 | #define wxSTC_RB_POD 3 | |
782 | #define wxSTC_RB_NUMBER 4 | |
783 | #define wxSTC_RB_WORD 5 | |
784 | #define wxSTC_RB_STRING 6 | |
785 | #define wxSTC_RB_CHARACTER 7 | |
786 | #define wxSTC_RB_CLASSNAME 8 | |
787 | #define wxSTC_RB_DEFNAME 9 | |
788 | #define wxSTC_RB_OPERATOR 10 | |
789 | #define wxSTC_RB_IDENTIFIER 11 | |
790 | #define wxSTC_RB_REGEX 12 | |
791 | #define wxSTC_RB_GLOBAL 13 | |
792 | #define wxSTC_RB_SYMBOL 14 | |
793 | #define wxSTC_RB_MODULE_NAME 15 | |
794 | #define wxSTC_RB_INSTANCE_VAR 16 | |
795 | #define wxSTC_RB_CLASS_VAR 17 | |
796 | #define wxSTC_RB_BACKTICKS 18 | |
797 | #define wxSTC_RB_DATASECTION 19 | |
798 | #define wxSTC_RB_HERE_DELIM 20 | |
799 | #define wxSTC_RB_HERE_Q 21 | |
800 | #define wxSTC_RB_HERE_QQ 22 | |
801 | #define wxSTC_RB_HERE_QX 23 | |
802 | #define wxSTC_RB_STRING_Q 24 | |
803 | #define wxSTC_RB_STRING_QQ 25 | |
804 | #define wxSTC_RB_STRING_QX 26 | |
805 | #define wxSTC_RB_STRING_QR 27 | |
806 | #define wxSTC_RB_STRING_QW 28 | |
807 | #define wxSTC_RB_WORD_DEMOTED 29 | |
808 | #define wxSTC_RB_STDIN 30 | |
809 | #define wxSTC_RB_STDOUT 31 | |
810 | #define wxSTC_RB_STDERR 40 | |
811 | #define wxSTC_RB_UPPER_BOUND 41 | |
812 | ||
813 | /// Lexical states for SCLEX_VB, SCLEX_VBSCRIPT, SCLEX_POWERBASIC | |
814 | #define wxSTC_B_DEFAULT 0 | |
815 | #define wxSTC_B_COMMENT 1 | |
816 | #define wxSTC_B_NUMBER 2 | |
817 | #define wxSTC_B_KEYWORD 3 | |
818 | #define wxSTC_B_STRING 4 | |
819 | #define wxSTC_B_PREPROCESSOR 5 | |
820 | #define wxSTC_B_OPERATOR 6 | |
821 | #define wxSTC_B_IDENTIFIER 7 | |
822 | #define wxSTC_B_DATE 8 | |
823 | #define wxSTC_B_STRINGEOL 9 | |
824 | #define wxSTC_B_KEYWORD2 10 | |
825 | #define wxSTC_B_KEYWORD3 11 | |
826 | #define wxSTC_B_KEYWORD4 12 | |
827 | #define wxSTC_B_CONSTANT 13 | |
828 | #define wxSTC_B_ASM 14 | |
829 | #define wxSTC_B_LABEL 15 | |
830 | #define wxSTC_B_ERROR 16 | |
831 | #define wxSTC_B_HEXNUMBER 17 | |
832 | #define wxSTC_B_BINNUMBER 18 | |
833 | ||
834 | /// Lexical states for SCLEX_PROPERTIES | |
835 | #define wxSTC_PROPS_DEFAULT 0 | |
836 | #define wxSTC_PROPS_COMMENT 1 | |
837 | #define wxSTC_PROPS_SECTION 2 | |
838 | #define wxSTC_PROPS_ASSIGNMENT 3 | |
839 | #define wxSTC_PROPS_DEFVAL 4 | |
840 | #define wxSTC_PROPS_KEY 5 | |
841 | ||
842 | /// Lexical states for SCLEX_LATEX | |
843 | #define wxSTC_L_DEFAULT 0 | |
844 | #define wxSTC_L_COMMAND 1 | |
845 | #define wxSTC_L_TAG 2 | |
846 | #define wxSTC_L_MATH 3 | |
847 | #define wxSTC_L_COMMENT 4 | |
848 | #define wxSTC_L_TAG2 5 | |
849 | #define wxSTC_L_MATH2 6 | |
850 | #define wxSTC_L_COMMENT2 7 | |
851 | #define wxSTC_L_VERBATIM 8 | |
852 | #define wxSTC_L_SHORTCMD 9 | |
853 | #define wxSTC_L_SPECIAL 10 | |
854 | #define wxSTC_L_CMDOPT 11 | |
855 | #define wxSTC_L_ERROR 12 | |
856 | ||
857 | /// Lexical states for SCLEX_LUA | |
858 | #define wxSTC_LUA_DEFAULT 0 | |
859 | #define wxSTC_LUA_COMMENT 1 | |
860 | #define wxSTC_LUA_COMMENTLINE 2 | |
861 | #define wxSTC_LUA_COMMENTDOC 3 | |
862 | #define wxSTC_LUA_NUMBER 4 | |
863 | #define wxSTC_LUA_WORD 5 | |
864 | #define wxSTC_LUA_STRING 6 | |
865 | #define wxSTC_LUA_CHARACTER 7 | |
866 | #define wxSTC_LUA_LITERALSTRING 8 | |
867 | #define wxSTC_LUA_PREPROCESSOR 9 | |
868 | #define wxSTC_LUA_OPERATOR 10 | |
869 | #define wxSTC_LUA_IDENTIFIER 11 | |
870 | #define wxSTC_LUA_STRINGEOL 12 | |
871 | #define wxSTC_LUA_WORD2 13 | |
872 | #define wxSTC_LUA_WORD3 14 | |
873 | #define wxSTC_LUA_WORD4 15 | |
874 | #define wxSTC_LUA_WORD5 16 | |
875 | #define wxSTC_LUA_WORD6 17 | |
876 | #define wxSTC_LUA_WORD7 18 | |
877 | #define wxSTC_LUA_WORD8 19 | |
878 | #define wxSTC_LUA_LABEL 20 | |
879 | ||
880 | /// Lexical states for SCLEX_ERRORLIST | |
881 | #define wxSTC_ERR_DEFAULT 0 | |
882 | #define wxSTC_ERR_PYTHON 1 | |
883 | #define wxSTC_ERR_GCC 2 | |
884 | #define wxSTC_ERR_MS 3 | |
885 | #define wxSTC_ERR_CMD 4 | |
886 | #define wxSTC_ERR_BORLAND 5 | |
887 | #define wxSTC_ERR_PERL 6 | |
888 | #define wxSTC_ERR_NET 7 | |
889 | #define wxSTC_ERR_LUA 8 | |
890 | #define wxSTC_ERR_CTAG 9 | |
891 | #define wxSTC_ERR_DIFF_CHANGED 10 | |
892 | #define wxSTC_ERR_DIFF_ADDITION 11 | |
893 | #define wxSTC_ERR_DIFF_DELETION 12 | |
894 | #define wxSTC_ERR_DIFF_MESSAGE 13 | |
895 | #define wxSTC_ERR_PHP 14 | |
896 | #define wxSTC_ERR_ELF 15 | |
897 | #define wxSTC_ERR_IFC 16 | |
898 | #define wxSTC_ERR_IFORT 17 | |
899 | #define wxSTC_ERR_ABSF 18 | |
900 | #define wxSTC_ERR_TIDY 19 | |
901 | #define wxSTC_ERR_JAVA_STACK 20 | |
902 | #define wxSTC_ERR_VALUE 21 | |
903 | ||
904 | /// Lexical states for SCLEX_BATCH | |
905 | #define wxSTC_BAT_DEFAULT 0 | |
906 | #define wxSTC_BAT_COMMENT 1 | |
907 | #define wxSTC_BAT_WORD 2 | |
908 | #define wxSTC_BAT_LABEL 3 | |
909 | #define wxSTC_BAT_HIDE 4 | |
910 | #define wxSTC_BAT_COMMAND 5 | |
911 | #define wxSTC_BAT_IDENTIFIER 6 | |
912 | #define wxSTC_BAT_OPERATOR 7 | |
913 | ||
914 | /// Lexical states for SCLEX_TCMD | |
915 | #define wxSTC_TCMD_DEFAULT 0 | |
916 | #define wxSTC_TCMD_COMMENT 1 | |
917 | #define wxSTC_TCMD_WORD 2 | |
918 | #define wxSTC_TCMD_LABEL 3 | |
919 | #define wxSTC_TCMD_HIDE 4 | |
920 | #define wxSTC_TCMD_COMMAND 5 | |
921 | #define wxSTC_TCMD_IDENTIFIER 6 | |
922 | #define wxSTC_TCMD_OPERATOR 7 | |
923 | #define wxSTC_TCMD_ENVIRONMENT 8 | |
924 | #define wxSTC_TCMD_EXPANSION 9 | |
925 | #define wxSTC_TCMD_CLABEL 10 | |
926 | ||
927 | /// Lexical states for SCLEX_MAKEFILE | |
928 | #define wxSTC_MAKE_DEFAULT 0 | |
929 | #define wxSTC_MAKE_COMMENT 1 | |
930 | #define wxSTC_MAKE_PREPROCESSOR 2 | |
931 | #define wxSTC_MAKE_IDENTIFIER 3 | |
932 | #define wxSTC_MAKE_OPERATOR 4 | |
933 | #define wxSTC_MAKE_TARGET 5 | |
934 | #define wxSTC_MAKE_IDEOL 9 | |
935 | ||
936 | /// Lexical states for SCLEX_DIFF | |
937 | #define wxSTC_DIFF_DEFAULT 0 | |
938 | #define wxSTC_DIFF_COMMENT 1 | |
939 | #define wxSTC_DIFF_COMMAND 2 | |
940 | #define wxSTC_DIFF_HEADER 3 | |
941 | #define wxSTC_DIFF_POSITION 4 | |
942 | #define wxSTC_DIFF_DELETED 5 | |
943 | #define wxSTC_DIFF_ADDED 6 | |
944 | #define wxSTC_DIFF_CHANGED 7 | |
945 | ||
946 | /// Lexical states for SCLEX_CONF (Apache Configuration Files Lexer) | |
947 | #define wxSTC_CONF_DEFAULT 0 | |
948 | #define wxSTC_CONF_COMMENT 1 | |
949 | #define wxSTC_CONF_NUMBER 2 | |
950 | #define wxSTC_CONF_IDENTIFIER 3 | |
951 | #define wxSTC_CONF_EXTENSION 4 | |
952 | #define wxSTC_CONF_PARAMETER 5 | |
953 | #define wxSTC_CONF_STRING 6 | |
954 | #define wxSTC_CONF_OPERATOR 7 | |
955 | #define wxSTC_CONF_IP 8 | |
956 | #define wxSTC_CONF_DIRECTIVE 9 | |
957 | ||
958 | /// Lexical states for SCLEX_AVE, Avenue | |
959 | #define wxSTC_AVE_DEFAULT 0 | |
960 | #define wxSTC_AVE_COMMENT 1 | |
961 | #define wxSTC_AVE_NUMBER 2 | |
962 | #define wxSTC_AVE_WORD 3 | |
963 | #define wxSTC_AVE_STRING 6 | |
964 | #define wxSTC_AVE_ENUM 7 | |
965 | #define wxSTC_AVE_STRINGEOL 8 | |
966 | #define wxSTC_AVE_IDENTIFIER 9 | |
967 | #define wxSTC_AVE_OPERATOR 10 | |
968 | #define wxSTC_AVE_WORD1 11 | |
969 | #define wxSTC_AVE_WORD2 12 | |
970 | #define wxSTC_AVE_WORD3 13 | |
971 | #define wxSTC_AVE_WORD4 14 | |
972 | #define wxSTC_AVE_WORD5 15 | |
973 | #define wxSTC_AVE_WORD6 16 | |
974 | ||
975 | /// Lexical states for SCLEX_ADA | |
976 | #define wxSTC_ADA_DEFAULT 0 | |
977 | #define wxSTC_ADA_WORD 1 | |
978 | #define wxSTC_ADA_IDENTIFIER 2 | |
979 | #define wxSTC_ADA_NUMBER 3 | |
980 | #define wxSTC_ADA_DELIMITER 4 | |
981 | #define wxSTC_ADA_CHARACTER 5 | |
982 | #define wxSTC_ADA_CHARACTEREOL 6 | |
983 | #define wxSTC_ADA_STRING 7 | |
984 | #define wxSTC_ADA_STRINGEOL 8 | |
985 | #define wxSTC_ADA_LABEL 9 | |
986 | #define wxSTC_ADA_COMMENTLINE 10 | |
987 | #define wxSTC_ADA_ILLEGAL 11 | |
988 | ||
989 | /// Lexical states for SCLEX_BAAN | |
990 | #define wxSTC_BAAN_DEFAULT 0 | |
991 | #define wxSTC_BAAN_COMMENT 1 | |
992 | #define wxSTC_BAAN_COMMENTDOC 2 | |
993 | #define wxSTC_BAAN_NUMBER 3 | |
994 | #define wxSTC_BAAN_WORD 4 | |
995 | #define wxSTC_BAAN_STRING 5 | |
996 | #define wxSTC_BAAN_PREPROCESSOR 6 | |
997 | #define wxSTC_BAAN_OPERATOR 7 | |
998 | #define wxSTC_BAAN_IDENTIFIER 8 | |
999 | #define wxSTC_BAAN_STRINGEOL 9 | |
1000 | #define wxSTC_BAAN_WORD2 10 | |
1001 | ||
1002 | /// Lexical states for SCLEX_LISP | |
1003 | #define wxSTC_LISP_DEFAULT 0 | |
1004 | #define wxSTC_LISP_COMMENT 1 | |
1005 | #define wxSTC_LISP_NUMBER 2 | |
1006 | #define wxSTC_LISP_KEYWORD 3 | |
1007 | #define wxSTC_LISP_KEYWORD_KW 4 | |
1008 | #define wxSTC_LISP_SYMBOL 5 | |
1009 | #define wxSTC_LISP_STRING 6 | |
1010 | #define wxSTC_LISP_STRINGEOL 8 | |
1011 | #define wxSTC_LISP_IDENTIFIER 9 | |
1012 | #define wxSTC_LISP_OPERATOR 10 | |
1013 | #define wxSTC_LISP_SPECIAL 11 | |
1014 | #define wxSTC_LISP_MULTI_COMMENT 12 | |
1015 | ||
1016 | /// Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW | |
1017 | #define wxSTC_EIFFEL_DEFAULT 0 | |
1018 | #define wxSTC_EIFFEL_COMMENTLINE 1 | |
1019 | #define wxSTC_EIFFEL_NUMBER 2 | |
1020 | #define wxSTC_EIFFEL_WORD 3 | |
1021 | #define wxSTC_EIFFEL_STRING 4 | |
1022 | #define wxSTC_EIFFEL_CHARACTER 5 | |
1023 | #define wxSTC_EIFFEL_OPERATOR 6 | |
1024 | #define wxSTC_EIFFEL_IDENTIFIER 7 | |
1025 | #define wxSTC_EIFFEL_STRINGEOL 8 | |
1026 | ||
1027 | /// Lexical states for SCLEX_NNCRONTAB (nnCron crontab Lexer) | |
1028 | #define wxSTC_NNCRONTAB_DEFAULT 0 | |
1029 | #define wxSTC_NNCRONTAB_COMMENT 1 | |
1030 | #define wxSTC_NNCRONTAB_TASK 2 | |
1031 | #define wxSTC_NNCRONTAB_SECTION 3 | |
1032 | #define wxSTC_NNCRONTAB_KEYWORD 4 | |
1033 | #define wxSTC_NNCRONTAB_MODIFIER 5 | |
1034 | #define wxSTC_NNCRONTAB_ASTERISK 6 | |
1035 | #define wxSTC_NNCRONTAB_NUMBER 7 | |
1036 | #define wxSTC_NNCRONTAB_STRING 8 | |
1037 | #define wxSTC_NNCRONTAB_ENVIRONMENT 9 | |
1038 | #define wxSTC_NNCRONTAB_IDENTIFIER 10 | |
1039 | ||
1040 | /// Lexical states for SCLEX_FORTH (Forth Lexer) | |
1041 | #define wxSTC_FORTH_DEFAULT 0 | |
1042 | #define wxSTC_FORTH_COMMENT 1 | |
1043 | #define wxSTC_FORTH_COMMENT_ML 2 | |
1044 | #define wxSTC_FORTH_IDENTIFIER 3 | |
1045 | #define wxSTC_FORTH_CONTROL 4 | |
1046 | #define wxSTC_FORTH_KEYWORD 5 | |
1047 | #define wxSTC_FORTH_DEFWORD 6 | |
1048 | #define wxSTC_FORTH_PREWORD1 7 | |
1049 | #define wxSTC_FORTH_PREWORD2 8 | |
1050 | #define wxSTC_FORTH_NUMBER 9 | |
1051 | #define wxSTC_FORTH_STRING 10 | |
1052 | #define wxSTC_FORTH_LOCALE 11 | |
1053 | ||
1054 | /// Lexical states for SCLEX_MATLAB | |
1055 | #define wxSTC_MATLAB_DEFAULT 0 | |
1056 | #define wxSTC_MATLAB_COMMENT 1 | |
1057 | #define wxSTC_MATLAB_COMMAND 2 | |
1058 | #define wxSTC_MATLAB_NUMBER 3 | |
1059 | #define wxSTC_MATLAB_KEYWORD 4 | |
1060 | ||
1061 | /// single quoted string | |
1062 | #define wxSTC_MATLAB_STRING 5 | |
1063 | #define wxSTC_MATLAB_OPERATOR 6 | |
1064 | #define wxSTC_MATLAB_IDENTIFIER 7 | |
1065 | #define wxSTC_MATLAB_DOUBLEQUOTESTRING 8 | |
1066 | ||
1067 | /// Lexical states for SCLEX_SCRIPTOL | |
1068 | #define wxSTC_SCRIPTOL_DEFAULT 0 | |
1069 | #define wxSTC_SCRIPTOL_WHITE 1 | |
1070 | #define wxSTC_SCRIPTOL_COMMENTLINE 2 | |
1071 | #define wxSTC_SCRIPTOL_PERSISTENT 3 | |
1072 | #define wxSTC_SCRIPTOL_CSTYLE 4 | |
1073 | #define wxSTC_SCRIPTOL_COMMENTBLOCK 5 | |
1074 | #define wxSTC_SCRIPTOL_NUMBER 6 | |
1075 | #define wxSTC_SCRIPTOL_STRING 7 | |
1076 | #define wxSTC_SCRIPTOL_CHARACTER 8 | |
1077 | #define wxSTC_SCRIPTOL_STRINGEOL 9 | |
1078 | #define wxSTC_SCRIPTOL_KEYWORD 10 | |
1079 | #define wxSTC_SCRIPTOL_OPERATOR 11 | |
1080 | #define wxSTC_SCRIPTOL_IDENTIFIER 12 | |
1081 | #define wxSTC_SCRIPTOL_TRIPLE 13 | |
1082 | #define wxSTC_SCRIPTOL_CLASSNAME 14 | |
1083 | #define wxSTC_SCRIPTOL_PREPROCESSOR 15 | |
1084 | ||
1085 | /// Lexical states for SCLEX_ASM | |
1086 | #define wxSTC_ASM_DEFAULT 0 | |
1087 | #define wxSTC_ASM_COMMENT 1 | |
1088 | #define wxSTC_ASM_NUMBER 2 | |
1089 | #define wxSTC_ASM_STRING 3 | |
1090 | #define wxSTC_ASM_OPERATOR 4 | |
1091 | #define wxSTC_ASM_IDENTIFIER 5 | |
1092 | #define wxSTC_ASM_CPUINSTRUCTION 6 | |
1093 | #define wxSTC_ASM_MATHINSTRUCTION 7 | |
1094 | #define wxSTC_ASM_REGISTER 8 | |
1095 | #define wxSTC_ASM_DIRECTIVE 9 | |
1096 | #define wxSTC_ASM_DIRECTIVEOPERAND 10 | |
1097 | #define wxSTC_ASM_COMMENTBLOCK 11 | |
1098 | #define wxSTC_ASM_CHARACTER 12 | |
1099 | #define wxSTC_ASM_STRINGEOL 13 | |
1100 | #define wxSTC_ASM_EXTINSTRUCTION 14 | |
1101 | #define wxSTC_ASM_COMMENTDIRECTIVE 15 | |
1102 | ||
1103 | /// Lexical states for SCLEX_FORTRAN | |
1104 | #define wxSTC_F_DEFAULT 0 | |
1105 | #define wxSTC_F_COMMENT 1 | |
1106 | #define wxSTC_F_NUMBER 2 | |
1107 | #define wxSTC_F_STRING1 3 | |
1108 | #define wxSTC_F_STRING2 4 | |
1109 | #define wxSTC_F_STRINGEOL 5 | |
1110 | #define wxSTC_F_OPERATOR 6 | |
1111 | #define wxSTC_F_IDENTIFIER 7 | |
1112 | #define wxSTC_F_WORD 8 | |
1113 | #define wxSTC_F_WORD2 9 | |
1114 | #define wxSTC_F_WORD3 10 | |
1115 | #define wxSTC_F_PREPROCESSOR 11 | |
1116 | #define wxSTC_F_OPERATOR2 12 | |
1117 | #define wxSTC_F_LABEL 13 | |
1118 | #define wxSTC_F_CONTINUATION 14 | |
1119 | ||
1120 | /// Lexical states for SCLEX_CSS | |
1121 | #define wxSTC_CSS_DEFAULT 0 | |
1122 | #define wxSTC_CSS_TAG 1 | |
1123 | #define wxSTC_CSS_CLASS 2 | |
1124 | #define wxSTC_CSS_PSEUDOCLASS 3 | |
1125 | #define wxSTC_CSS_UNKNOWN_PSEUDOCLASS 4 | |
1126 | #define wxSTC_CSS_OPERATOR 5 | |
1127 | #define wxSTC_CSS_IDENTIFIER 6 | |
1128 | #define wxSTC_CSS_UNKNOWN_IDENTIFIER 7 | |
1129 | #define wxSTC_CSS_VALUE 8 | |
1130 | #define wxSTC_CSS_COMMENT 9 | |
1131 | #define wxSTC_CSS_ID 10 | |
1132 | #define wxSTC_CSS_IMPORTANT 11 | |
1133 | #define wxSTC_CSS_DIRECTIVE 12 | |
1134 | #define wxSTC_CSS_DOUBLESTRING 13 | |
1135 | #define wxSTC_CSS_SINGLESTRING 14 | |
1136 | #define wxSTC_CSS_IDENTIFIER2 15 | |
1137 | #define wxSTC_CSS_ATTRIBUTE 16 | |
1138 | #define wxSTC_CSS_IDENTIFIER3 17 | |
1139 | #define wxSTC_CSS_PSEUDOELEMENT 18 | |
1140 | #define wxSTC_CSS_EXTENDED_IDENTIFIER 19 | |
1141 | #define wxSTC_CSS_EXTENDED_PSEUDOCLASS 20 | |
1142 | #define wxSTC_CSS_EXTENDED_PSEUDOELEMENT 21 | |
1143 | #define wxSTC_CSS_MEDIA 22 | |
1144 | #define wxSTC_CSS_VARIABLE 23 | |
1145 | ||
1146 | /// Lexical states for SCLEX_POV | |
1147 | #define wxSTC_POV_DEFAULT 0 | |
1148 | #define wxSTC_POV_COMMENT 1 | |
1149 | #define wxSTC_POV_COMMENTLINE 2 | |
1150 | #define wxSTC_POV_NUMBER 3 | |
1151 | #define wxSTC_POV_OPERATOR 4 | |
1152 | #define wxSTC_POV_IDENTIFIER 5 | |
1153 | #define wxSTC_POV_STRING 6 | |
1154 | #define wxSTC_POV_STRINGEOL 7 | |
1155 | #define wxSTC_POV_DIRECTIVE 8 | |
1156 | #define wxSTC_POV_BADDIRECTIVE 9 | |
1157 | #define wxSTC_POV_WORD2 10 | |
1158 | #define wxSTC_POV_WORD3 11 | |
1159 | #define wxSTC_POV_WORD4 12 | |
1160 | #define wxSTC_POV_WORD5 13 | |
1161 | #define wxSTC_POV_WORD6 14 | |
1162 | #define wxSTC_POV_WORD7 15 | |
1163 | #define wxSTC_POV_WORD8 16 | |
1164 | ||
1165 | /// Lexical states for SCLEX_LOUT | |
1166 | #define wxSTC_LOUT_DEFAULT 0 | |
1167 | #define wxSTC_LOUT_COMMENT 1 | |
1168 | #define wxSTC_LOUT_NUMBER 2 | |
1169 | #define wxSTC_LOUT_WORD 3 | |
1170 | #define wxSTC_LOUT_WORD2 4 | |
1171 | #define wxSTC_LOUT_WORD3 5 | |
1172 | #define wxSTC_LOUT_WORD4 6 | |
1173 | #define wxSTC_LOUT_STRING 7 | |
1174 | #define wxSTC_LOUT_OPERATOR 8 | |
1175 | #define wxSTC_LOUT_IDENTIFIER 9 | |
1176 | #define wxSTC_LOUT_STRINGEOL 10 | |
1177 | ||
1178 | /// Lexical states for SCLEX_ESCRIPT | |
1179 | #define wxSTC_ESCRIPT_DEFAULT 0 | |
1180 | #define wxSTC_ESCRIPT_COMMENT 1 | |
1181 | #define wxSTC_ESCRIPT_COMMENTLINE 2 | |
1182 | #define wxSTC_ESCRIPT_COMMENTDOC 3 | |
1183 | #define wxSTC_ESCRIPT_NUMBER 4 | |
1184 | #define wxSTC_ESCRIPT_WORD 5 | |
1185 | #define wxSTC_ESCRIPT_STRING 6 | |
1186 | #define wxSTC_ESCRIPT_OPERATOR 7 | |
1187 | #define wxSTC_ESCRIPT_IDENTIFIER 8 | |
1188 | #define wxSTC_ESCRIPT_BRACE 9 | |
1189 | #define wxSTC_ESCRIPT_WORD2 10 | |
1190 | #define wxSTC_ESCRIPT_WORD3 11 | |
1191 | ||
1192 | /// Lexical states for SCLEX_PS | |
1193 | #define wxSTC_PS_DEFAULT 0 | |
1194 | #define wxSTC_PS_COMMENT 1 | |
1195 | #define wxSTC_PS_DSC_COMMENT 2 | |
1196 | #define wxSTC_PS_DSC_VALUE 3 | |
1197 | #define wxSTC_PS_NUMBER 4 | |
1198 | #define wxSTC_PS_NAME 5 | |
1199 | #define wxSTC_PS_KEYWORD 6 | |
1200 | #define wxSTC_PS_LITERAL 7 | |
1201 | #define wxSTC_PS_IMMEVAL 8 | |
1202 | #define wxSTC_PS_PAREN_ARRAY 9 | |
1203 | #define wxSTC_PS_PAREN_DICT 10 | |
1204 | #define wxSTC_PS_PAREN_PROC 11 | |
1205 | #define wxSTC_PS_TEXT 12 | |
1206 | #define wxSTC_PS_HEXSTRING 13 | |
1207 | #define wxSTC_PS_BASE85STRING 14 | |
1208 | #define wxSTC_PS_BADSTRINGCHAR 15 | |
1209 | ||
1210 | /// Lexical states for SCLEX_NSIS | |
1211 | #define wxSTC_NSIS_DEFAULT 0 | |
1212 | #define wxSTC_NSIS_COMMENT 1 | |
1213 | #define wxSTC_NSIS_STRINGDQ 2 | |
1214 | #define wxSTC_NSIS_STRINGLQ 3 | |
1215 | #define wxSTC_NSIS_STRINGRQ 4 | |
1216 | #define wxSTC_NSIS_FUNCTION 5 | |
1217 | #define wxSTC_NSIS_VARIABLE 6 | |
1218 | #define wxSTC_NSIS_LABEL 7 | |
1219 | #define wxSTC_NSIS_USERDEFINED 8 | |
1220 | #define wxSTC_NSIS_SECTIONDEF 9 | |
1221 | #define wxSTC_NSIS_SUBSECTIONDEF 10 | |
1222 | #define wxSTC_NSIS_IFDEFINEDEF 11 | |
1223 | #define wxSTC_NSIS_MACRODEF 12 | |
1224 | #define wxSTC_NSIS_STRINGVAR 13 | |
1225 | #define wxSTC_NSIS_NUMBER 14 | |
1226 | #define wxSTC_NSIS_SECTIONGROUP 15 | |
1227 | #define wxSTC_NSIS_PAGEEX 16 | |
1228 | #define wxSTC_NSIS_FUNCTIONDEF 17 | |
1229 | #define wxSTC_NSIS_COMMENTBOX 18 | |
1230 | ||
1231 | /// Lexical states for SCLEX_MMIXAL | |
1232 | #define wxSTC_MMIXAL_LEADWS 0 | |
1233 | #define wxSTC_MMIXAL_COMMENT 1 | |
1234 | #define wxSTC_MMIXAL_LABEL 2 | |
1235 | #define wxSTC_MMIXAL_OPCODE 3 | |
1236 | #define wxSTC_MMIXAL_OPCODE_PRE 4 | |
1237 | #define wxSTC_MMIXAL_OPCODE_VALID 5 | |
1238 | #define wxSTC_MMIXAL_OPCODE_UNKNOWN 6 | |
1239 | #define wxSTC_MMIXAL_OPCODE_POST 7 | |
1240 | #define wxSTC_MMIXAL_OPERANDS 8 | |
1241 | #define wxSTC_MMIXAL_NUMBER 9 | |
1242 | #define wxSTC_MMIXAL_REF 10 | |
1243 | #define wxSTC_MMIXAL_CHAR 11 | |
1244 | #define wxSTC_MMIXAL_STRING 12 | |
1245 | #define wxSTC_MMIXAL_REGISTER 13 | |
1246 | #define wxSTC_MMIXAL_HEX 14 | |
1247 | #define wxSTC_MMIXAL_OPERATOR 15 | |
1248 | #define wxSTC_MMIXAL_SYMBOL 16 | |
1249 | #define wxSTC_MMIXAL_INCLUDE 17 | |
1250 | ||
1251 | /// Lexical states for SCLEX_CLW | |
1252 | #define wxSTC_CLW_DEFAULT 0 | |
1253 | #define wxSTC_CLW_LABEL 1 | |
1254 | #define wxSTC_CLW_COMMENT 2 | |
1255 | #define wxSTC_CLW_STRING 3 | |
1256 | #define wxSTC_CLW_USER_IDENTIFIER 4 | |
1257 | #define wxSTC_CLW_INTEGER_CONSTANT 5 | |
1258 | #define wxSTC_CLW_REAL_CONSTANT 6 | |
1259 | #define wxSTC_CLW_PICTURE_STRING 7 | |
1260 | #define wxSTC_CLW_KEYWORD 8 | |
1261 | #define wxSTC_CLW_COMPILER_DIRECTIVE 9 | |
1262 | #define wxSTC_CLW_RUNTIME_EXPRESSIONS 10 | |
1263 | #define wxSTC_CLW_BUILTIN_PROCEDURES_FUNCTION 11 | |
1264 | #define wxSTC_CLW_STRUCTURE_DATA_TYPE 12 | |
1265 | #define wxSTC_CLW_ATTRIBUTE 13 | |
1266 | #define wxSTC_CLW_STANDARD_EQUATE 14 | |
1267 | #define wxSTC_CLW_ERROR 15 | |
1268 | #define wxSTC_CLW_DEPRECATED 16 | |
1269 | ||
1270 | /// Lexical states for SCLEX_LOT | |
1271 | #define wxSTC_LOT_DEFAULT 0 | |
1272 | #define wxSTC_LOT_HEADER 1 | |
1273 | #define wxSTC_LOT_BREAK 2 | |
1274 | #define wxSTC_LOT_SET 3 | |
1275 | #define wxSTC_LOT_PASS 4 | |
1276 | #define wxSTC_LOT_FAIL 5 | |
1277 | #define wxSTC_LOT_ABORT 6 | |
1278 | ||
1279 | /// Lexical states for SCLEX_YAML | |
1280 | #define wxSTC_YAML_DEFAULT 0 | |
1281 | #define wxSTC_YAML_COMMENT 1 | |
1282 | #define wxSTC_YAML_IDENTIFIER 2 | |
1283 | #define wxSTC_YAML_KEYWORD 3 | |
1284 | #define wxSTC_YAML_NUMBER 4 | |
1285 | #define wxSTC_YAML_REFERENCE 5 | |
1286 | #define wxSTC_YAML_DOCUMENT 6 | |
1287 | #define wxSTC_YAML_TEXT 7 | |
1288 | #define wxSTC_YAML_ERROR 8 | |
1289 | #define wxSTC_YAML_OPERATOR 9 | |
1290 | ||
1291 | /// Lexical states for SCLEX_TEX | |
1292 | #define wxSTC_TEX_DEFAULT 0 | |
1293 | #define wxSTC_TEX_SPECIAL 1 | |
1294 | #define wxSTC_TEX_GROUP 2 | |
1295 | #define wxSTC_TEX_SYMBOL 3 | |
1296 | #define wxSTC_TEX_COMMAND 4 | |
1297 | #define wxSTC_TEX_TEXT 5 | |
1298 | #define wxSTC_METAPOST_DEFAULT 0 | |
1299 | #define wxSTC_METAPOST_SPECIAL 1 | |
1300 | #define wxSTC_METAPOST_GROUP 2 | |
1301 | #define wxSTC_METAPOST_SYMBOL 3 | |
1302 | #define wxSTC_METAPOST_COMMAND 4 | |
1303 | #define wxSTC_METAPOST_TEXT 5 | |
1304 | #define wxSTC_METAPOST_EXTRA 6 | |
1305 | ||
1306 | /// Lexical states for SCLEX_ERLANG | |
1307 | #define wxSTC_ERLANG_DEFAULT 0 | |
1308 | #define wxSTC_ERLANG_COMMENT 1 | |
1309 | #define wxSTC_ERLANG_VARIABLE 2 | |
1310 | #define wxSTC_ERLANG_NUMBER 3 | |
1311 | #define wxSTC_ERLANG_KEYWORD 4 | |
1312 | #define wxSTC_ERLANG_STRING 5 | |
1313 | #define wxSTC_ERLANG_OPERATOR 6 | |
1314 | #define wxSTC_ERLANG_ATOM 7 | |
1315 | #define wxSTC_ERLANG_FUNCTION_NAME 8 | |
1316 | #define wxSTC_ERLANG_CHARACTER 9 | |
1317 | #define wxSTC_ERLANG_MACRO 10 | |
1318 | #define wxSTC_ERLANG_RECORD 11 | |
1319 | #define wxSTC_ERLANG_PREPROC 12 | |
1320 | #define wxSTC_ERLANG_NODE_NAME 13 | |
1321 | #define wxSTC_ERLANG_COMMENT_FUNCTION 14 | |
1322 | #define wxSTC_ERLANG_COMMENT_MODULE 15 | |
1323 | #define wxSTC_ERLANG_COMMENT_DOC 16 | |
1324 | #define wxSTC_ERLANG_COMMENT_DOC_MACRO 17 | |
1325 | #define wxSTC_ERLANG_ATOM_QUOTED 18 | |
1326 | #define wxSTC_ERLANG_MACRO_QUOTED 19 | |
1327 | #define wxSTC_ERLANG_RECORD_QUOTED 20 | |
1328 | #define wxSTC_ERLANG_NODE_NAME_QUOTED 21 | |
1329 | #define wxSTC_ERLANG_BIFS 22 | |
1330 | #define wxSTC_ERLANG_MODULES 23 | |
1331 | #define wxSTC_ERLANG_MODULES_ATT 24 | |
1332 | #define wxSTC_ERLANG_UNKNOWN 31 | |
1333 | ||
1334 | /// Lexical states for SCLEX_OCTAVE are identical to MatLab | |
1335 | /// Lexical states for SCLEX_MSSQL | |
1336 | #define wxSTC_MSSQL_DEFAULT 0 | |
1337 | #define wxSTC_MSSQL_COMMENT 1 | |
1338 | #define wxSTC_MSSQL_LINE_COMMENT 2 | |
1339 | #define wxSTC_MSSQL_NUMBER 3 | |
1340 | #define wxSTC_MSSQL_STRING 4 | |
1341 | #define wxSTC_MSSQL_OPERATOR 5 | |
1342 | #define wxSTC_MSSQL_IDENTIFIER 6 | |
1343 | #define wxSTC_MSSQL_VARIABLE 7 | |
1344 | #define wxSTC_MSSQL_COLUMN_NAME 8 | |
1345 | #define wxSTC_MSSQL_STATEMENT 9 | |
1346 | #define wxSTC_MSSQL_DATATYPE 10 | |
1347 | #define wxSTC_MSSQL_SYSTABLE 11 | |
1348 | #define wxSTC_MSSQL_GLOBAL_VARIABLE 12 | |
1349 | #define wxSTC_MSSQL_FUNCTION 13 | |
1350 | #define wxSTC_MSSQL_STORED_PROCEDURE 14 | |
1351 | #define wxSTC_MSSQL_DEFAULT_PREF_DATATYPE 15 | |
1352 | #define wxSTC_MSSQL_COLUMN_NAME_2 16 | |
1353 | ||
1354 | /// Lexical states for SCLEX_VERILOG | |
1355 | #define wxSTC_V_DEFAULT 0 | |
1356 | #define wxSTC_V_COMMENT 1 | |
1357 | #define wxSTC_V_COMMENTLINE 2 | |
1358 | #define wxSTC_V_COMMENTLINEBANG 3 | |
1359 | #define wxSTC_V_NUMBER 4 | |
1360 | #define wxSTC_V_WORD 5 | |
1361 | #define wxSTC_V_STRING 6 | |
1362 | #define wxSTC_V_WORD2 7 | |
1363 | #define wxSTC_V_WORD3 8 | |
1364 | #define wxSTC_V_PREPROCESSOR 9 | |
1365 | #define wxSTC_V_OPERATOR 10 | |
1366 | #define wxSTC_V_IDENTIFIER 11 | |
1367 | #define wxSTC_V_STRINGEOL 12 | |
1368 | #define wxSTC_V_USER 19 | |
1369 | ||
1370 | /// Lexical states for SCLEX_KIX | |
1371 | #define wxSTC_KIX_DEFAULT 0 | |
1372 | #define wxSTC_KIX_COMMENT 1 | |
1373 | #define wxSTC_KIX_STRING1 2 | |
1374 | #define wxSTC_KIX_STRING2 3 | |
1375 | #define wxSTC_KIX_NUMBER 4 | |
1376 | #define wxSTC_KIX_VAR 5 | |
1377 | #define wxSTC_KIX_MACRO 6 | |
1378 | #define wxSTC_KIX_KEYWORD 7 | |
1379 | #define wxSTC_KIX_FUNCTIONS 8 | |
1380 | #define wxSTC_KIX_OPERATOR 9 | |
1381 | #define wxSTC_KIX_IDENTIFIER 31 | |
1382 | ||
1383 | /// Lexical states for SCLEX_GUI4CLI | |
1384 | #define wxSTC_GC_DEFAULT 0 | |
1385 | #define wxSTC_GC_COMMENTLINE 1 | |
1386 | #define wxSTC_GC_COMMENTBLOCK 2 | |
1387 | #define wxSTC_GC_GLOBAL 3 | |
1388 | #define wxSTC_GC_EVENT 4 | |
1389 | #define wxSTC_GC_ATTRIBUTE 5 | |
1390 | #define wxSTC_GC_CONTROL 6 | |
1391 | #define wxSTC_GC_COMMAND 7 | |
1392 | #define wxSTC_GC_STRING 8 | |
1393 | #define wxSTC_GC_OPERATOR 9 | |
1394 | ||
1395 | /// Lexical states for SCLEX_SPECMAN | |
1396 | #define wxSTC_SN_DEFAULT 0 | |
1397 | #define wxSTC_SN_CODE 1 | |
1398 | #define wxSTC_SN_COMMENTLINE 2 | |
1399 | #define wxSTC_SN_COMMENTLINEBANG 3 | |
1400 | #define wxSTC_SN_NUMBER 4 | |
1401 | #define wxSTC_SN_WORD 5 | |
1402 | #define wxSTC_SN_STRING 6 | |
1403 | #define wxSTC_SN_WORD2 7 | |
1404 | #define wxSTC_SN_WORD3 8 | |
1405 | #define wxSTC_SN_PREPROCESSOR 9 | |
1406 | #define wxSTC_SN_OPERATOR 10 | |
1407 | #define wxSTC_SN_IDENTIFIER 11 | |
1408 | #define wxSTC_SN_STRINGEOL 12 | |
1409 | #define wxSTC_SN_REGEXTAG 13 | |
1410 | #define wxSTC_SN_SIGNAL 14 | |
1411 | #define wxSTC_SN_USER 19 | |
1412 | ||
1413 | /// Lexical states for SCLEX_AU3 | |
1414 | #define wxSTC_AU3_DEFAULT 0 | |
1415 | #define wxSTC_AU3_COMMENT 1 | |
1416 | #define wxSTC_AU3_COMMENTBLOCK 2 | |
1417 | #define wxSTC_AU3_NUMBER 3 | |
1418 | #define wxSTC_AU3_FUNCTION 4 | |
1419 | #define wxSTC_AU3_KEYWORD 5 | |
1420 | #define wxSTC_AU3_MACRO 6 | |
1421 | #define wxSTC_AU3_STRING 7 | |
1422 | #define wxSTC_AU3_OPERATOR 8 | |
1423 | #define wxSTC_AU3_VARIABLE 9 | |
1424 | #define wxSTC_AU3_SENT 10 | |
1425 | #define wxSTC_AU3_PREPROCESSOR 11 | |
1426 | #define wxSTC_AU3_SPECIAL 12 | |
1427 | #define wxSTC_AU3_EXPAND 13 | |
1428 | #define wxSTC_AU3_COMOBJ 14 | |
1429 | #define wxSTC_AU3_UDF 15 | |
1430 | ||
1431 | /// Lexical states for SCLEX_APDL | |
1432 | #define wxSTC_APDL_DEFAULT 0 | |
1433 | #define wxSTC_APDL_COMMENT 1 | |
1434 | #define wxSTC_APDL_COMMENTBLOCK 2 | |
1435 | #define wxSTC_APDL_NUMBER 3 | |
1436 | #define wxSTC_APDL_STRING 4 | |
1437 | #define wxSTC_APDL_OPERATOR 5 | |
1438 | #define wxSTC_APDL_WORD 6 | |
1439 | #define wxSTC_APDL_PROCESSOR 7 | |
1440 | #define wxSTC_APDL_COMMAND 8 | |
1441 | #define wxSTC_APDL_SLASHCOMMAND 9 | |
1442 | #define wxSTC_APDL_STARCOMMAND 10 | |
1443 | #define wxSTC_APDL_ARGUMENT 11 | |
1444 | #define wxSTC_APDL_FUNCTION 12 | |
1445 | ||
1446 | /// Lexical states for SCLEX_BASH | |
1447 | #define wxSTC_SH_DEFAULT 0 | |
1448 | #define wxSTC_SH_ERROR 1 | |
1449 | #define wxSTC_SH_COMMENTLINE 2 | |
1450 | #define wxSTC_SH_NUMBER 3 | |
1451 | #define wxSTC_SH_WORD 4 | |
1452 | #define wxSTC_SH_STRING 5 | |
1453 | #define wxSTC_SH_CHARACTER 6 | |
1454 | #define wxSTC_SH_OPERATOR 7 | |
1455 | #define wxSTC_SH_IDENTIFIER 8 | |
1456 | #define wxSTC_SH_SCALAR 9 | |
1457 | #define wxSTC_SH_PARAM 10 | |
1458 | #define wxSTC_SH_BACKTICKS 11 | |
1459 | #define wxSTC_SH_HERE_DELIM 12 | |
1460 | #define wxSTC_SH_HERE_Q 13 | |
1461 | ||
1462 | /// Lexical states for SCLEX_ASN1 | |
1463 | #define wxSTC_ASN1_DEFAULT 0 | |
1464 | #define wxSTC_ASN1_COMMENT 1 | |
1465 | #define wxSTC_ASN1_IDENTIFIER 2 | |
1466 | #define wxSTC_ASN1_STRING 3 | |
1467 | #define wxSTC_ASN1_OID 4 | |
1468 | #define wxSTC_ASN1_SCALAR 5 | |
1469 | #define wxSTC_ASN1_KEYWORD 6 | |
1470 | #define wxSTC_ASN1_ATTRIBUTE 7 | |
1471 | #define wxSTC_ASN1_DESCRIPTOR 8 | |
1472 | #define wxSTC_ASN1_TYPE 9 | |
1473 | #define wxSTC_ASN1_OPERATOR 10 | |
1474 | ||
1475 | /// Lexical states for SCLEX_VHDL | |
1476 | #define wxSTC_VHDL_DEFAULT 0 | |
1477 | #define wxSTC_VHDL_COMMENT 1 | |
1478 | #define wxSTC_VHDL_COMMENTLINEBANG 2 | |
1479 | #define wxSTC_VHDL_NUMBER 3 | |
1480 | #define wxSTC_VHDL_STRING 4 | |
1481 | #define wxSTC_VHDL_OPERATOR 5 | |
1482 | #define wxSTC_VHDL_IDENTIFIER 6 | |
1483 | #define wxSTC_VHDL_STRINGEOL 7 | |
1484 | #define wxSTC_VHDL_KEYWORD 8 | |
1485 | #define wxSTC_VHDL_STDOPERATOR 9 | |
1486 | #define wxSTC_VHDL_ATTRIBUTE 10 | |
1487 | #define wxSTC_VHDL_STDFUNCTION 11 | |
1488 | #define wxSTC_VHDL_STDPACKAGE 12 | |
1489 | #define wxSTC_VHDL_STDTYPE 13 | |
1490 | #define wxSTC_VHDL_USERWORD 14 | |
1491 | ||
1492 | /// Lexical states for SCLEX_CAML | |
1493 | #define wxSTC_CAML_DEFAULT 0 | |
1494 | #define wxSTC_CAML_IDENTIFIER 1 | |
1495 | #define wxSTC_CAML_TAGNAME 2 | |
1496 | #define wxSTC_CAML_KEYWORD 3 | |
1497 | #define wxSTC_CAML_KEYWORD2 4 | |
1498 | #define wxSTC_CAML_KEYWORD3 5 | |
1499 | #define wxSTC_CAML_LINENUM 6 | |
1500 | #define wxSTC_CAML_OPERATOR 7 | |
1501 | #define wxSTC_CAML_NUMBER 8 | |
1502 | #define wxSTC_CAML_CHAR 9 | |
1503 | #define wxSTC_CAML_WHITE 10 | |
1504 | #define wxSTC_CAML_STRING 11 | |
1505 | #define wxSTC_CAML_COMMENT 12 | |
1506 | #define wxSTC_CAML_COMMENT1 13 | |
1507 | #define wxSTC_CAML_COMMENT2 14 | |
1508 | #define wxSTC_CAML_COMMENT3 15 | |
1509 | ||
1510 | /// Lexical states for SCLEX_HASKELL | |
1511 | #define wxSTC_HA_DEFAULT 0 | |
1512 | #define wxSTC_HA_IDENTIFIER 1 | |
1513 | #define wxSTC_HA_KEYWORD 2 | |
1514 | #define wxSTC_HA_NUMBER 3 | |
1515 | #define wxSTC_HA_STRING 4 | |
1516 | #define wxSTC_HA_CHARACTER 5 | |
1517 | #define wxSTC_HA_CLASS 6 | |
1518 | #define wxSTC_HA_MODULE 7 | |
1519 | #define wxSTC_HA_CAPITAL 8 | |
1520 | #define wxSTC_HA_DATA 9 | |
1521 | #define wxSTC_HA_IMPORT 10 | |
1522 | #define wxSTC_HA_OPERATOR 11 | |
1523 | #define wxSTC_HA_INSTANCE 12 | |
1524 | #define wxSTC_HA_COMMENTLINE 13 | |
1525 | #define wxSTC_HA_COMMENTBLOCK 14 | |
1526 | #define wxSTC_HA_COMMENTBLOCK2 15 | |
1527 | #define wxSTC_HA_COMMENTBLOCK3 16 | |
1528 | ||
1529 | /// Lexical states of SCLEX_TADS3 | |
1530 | #define wxSTC_T3_DEFAULT 0 | |
1531 | #define wxSTC_T3_X_DEFAULT 1 | |
1532 | #define wxSTC_T3_PREPROCESSOR 2 | |
1533 | #define wxSTC_T3_BLOCK_COMMENT 3 | |
1534 | #define wxSTC_T3_LINE_COMMENT 4 | |
1535 | #define wxSTC_T3_OPERATOR 5 | |
1536 | #define wxSTC_T3_KEYWORD 6 | |
1537 | #define wxSTC_T3_NUMBER 7 | |
1538 | #define wxSTC_T3_IDENTIFIER 8 | |
1539 | #define wxSTC_T3_S_STRING 9 | |
1540 | #define wxSTC_T3_D_STRING 10 | |
1541 | #define wxSTC_T3_X_STRING 11 | |
1542 | #define wxSTC_T3_LIB_DIRECTIVE 12 | |
1543 | #define wxSTC_T3_MSG_PARAM 13 | |
1544 | #define wxSTC_T3_HTML_TAG 14 | |
1545 | #define wxSTC_T3_HTML_DEFAULT 15 | |
1546 | #define wxSTC_T3_HTML_STRING 16 | |
1547 | #define wxSTC_T3_USER1 17 | |
1548 | #define wxSTC_T3_USER2 18 | |
1549 | #define wxSTC_T3_USER3 19 | |
1550 | #define wxSTC_T3_BRACE 20 | |
1551 | ||
1552 | /// Lexical states for SCLEX_REBOL | |
1553 | #define wxSTC_REBOL_DEFAULT 0 | |
1554 | #define wxSTC_REBOL_COMMENTLINE 1 | |
1555 | #define wxSTC_REBOL_COMMENTBLOCK 2 | |
1556 | #define wxSTC_REBOL_PREFACE 3 | |
1557 | #define wxSTC_REBOL_OPERATOR 4 | |
1558 | #define wxSTC_REBOL_CHARACTER 5 | |
1559 | #define wxSTC_REBOL_QUOTEDSTRING 6 | |
1560 | #define wxSTC_REBOL_BRACEDSTRING 7 | |
1561 | #define wxSTC_REBOL_NUMBER 8 | |
1562 | #define wxSTC_REBOL_PAIR 9 | |
1563 | #define wxSTC_REBOL_TUPLE 10 | |
1564 | #define wxSTC_REBOL_BINARY 11 | |
1565 | #define wxSTC_REBOL_MONEY 12 | |
1566 | #define wxSTC_REBOL_ISSUE 13 | |
1567 | #define wxSTC_REBOL_TAG 14 | |
1568 | #define wxSTC_REBOL_FILE 15 | |
1569 | #define wxSTC_REBOL_EMAIL 16 | |
1570 | #define wxSTC_REBOL_URL 17 | |
1571 | #define wxSTC_REBOL_DATE 18 | |
1572 | #define wxSTC_REBOL_TIME 19 | |
1573 | #define wxSTC_REBOL_IDENTIFIER 20 | |
1574 | #define wxSTC_REBOL_WORD 21 | |
1575 | #define wxSTC_REBOL_WORD2 22 | |
1576 | #define wxSTC_REBOL_WORD3 23 | |
1577 | #define wxSTC_REBOL_WORD4 24 | |
1578 | #define wxSTC_REBOL_WORD5 25 | |
1579 | #define wxSTC_REBOL_WORD6 26 | |
1580 | #define wxSTC_REBOL_WORD7 27 | |
1581 | #define wxSTC_REBOL_WORD8 28 | |
1582 | ||
1583 | /// Lexical states for SCLEX_SQL | |
1584 | #define wxSTC_SQL_DEFAULT 0 | |
1585 | #define wxSTC_SQL_COMMENT 1 | |
1586 | #define wxSTC_SQL_COMMENTLINE 2 | |
1587 | #define wxSTC_SQL_COMMENTDOC 3 | |
1588 | #define wxSTC_SQL_NUMBER 4 | |
1589 | #define wxSTC_SQL_WORD 5 | |
1590 | #define wxSTC_SQL_STRING 6 | |
1591 | #define wxSTC_SQL_CHARACTER 7 | |
1592 | #define wxSTC_SQL_SQLPLUS 8 | |
1593 | #define wxSTC_SQL_SQLPLUS_PROMPT 9 | |
1594 | #define wxSTC_SQL_OPERATOR 10 | |
1595 | #define wxSTC_SQL_IDENTIFIER 11 | |
1596 | #define wxSTC_SQL_SQLPLUS_COMMENT 13 | |
1597 | #define wxSTC_SQL_COMMENTLINEDOC 15 | |
1598 | #define wxSTC_SQL_WORD2 16 | |
1599 | #define wxSTC_SQL_COMMENTDOCKEYWORD 17 | |
1600 | #define wxSTC_SQL_COMMENTDOCKEYWORDERROR 18 | |
1601 | #define wxSTC_SQL_USER1 19 | |
1602 | #define wxSTC_SQL_USER2 20 | |
1603 | #define wxSTC_SQL_USER3 21 | |
1604 | #define wxSTC_SQL_USER4 22 | |
1605 | #define wxSTC_SQL_QUOTEDIDENTIFIER 23 | |
1606 | ||
1607 | /// Lexical states for SCLEX_SMALLTALK | |
1608 | #define wxSTC_ST_DEFAULT 0 | |
1609 | #define wxSTC_ST_STRING 1 | |
1610 | #define wxSTC_ST_NUMBER 2 | |
1611 | #define wxSTC_ST_COMMENT 3 | |
1612 | #define wxSTC_ST_SYMBOL 4 | |
1613 | #define wxSTC_ST_BINARY 5 | |
1614 | #define wxSTC_ST_BOOL 6 | |
1615 | #define wxSTC_ST_SELF 7 | |
1616 | #define wxSTC_ST_SUPER 8 | |
1617 | #define wxSTC_ST_NIL 9 | |
1618 | #define wxSTC_ST_GLOBAL 10 | |
1619 | #define wxSTC_ST_RETURN 11 | |
1620 | #define wxSTC_ST_SPECIAL 12 | |
1621 | #define wxSTC_ST_KWSEND 13 | |
1622 | #define wxSTC_ST_ASSIGN 14 | |
1623 | #define wxSTC_ST_CHARACTER 15 | |
1624 | #define wxSTC_ST_SPEC_SEL 16 | |
1625 | ||
1626 | /// Lexical states for SCLEX_FLAGSHIP (clipper) | |
1627 | #define wxSTC_FS_DEFAULT 0 | |
1628 | #define wxSTC_FS_COMMENT 1 | |
1629 | #define wxSTC_FS_COMMENTLINE 2 | |
1630 | #define wxSTC_FS_COMMENTDOC 3 | |
1631 | #define wxSTC_FS_COMMENTLINEDOC 4 | |
1632 | #define wxSTC_FS_COMMENTDOCKEYWORD 5 | |
1633 | #define wxSTC_FS_COMMENTDOCKEYWORDERROR 6 | |
1634 | #define wxSTC_FS_KEYWORD 7 | |
1635 | #define wxSTC_FS_KEYWORD2 8 | |
1636 | #define wxSTC_FS_KEYWORD3 9 | |
1637 | #define wxSTC_FS_KEYWORD4 10 | |
1638 | #define wxSTC_FS_NUMBER 11 | |
1639 | #define wxSTC_FS_STRING 12 | |
1640 | #define wxSTC_FS_PREPROCESSOR 13 | |
1641 | #define wxSTC_FS_OPERATOR 14 | |
1642 | #define wxSTC_FS_IDENTIFIER 15 | |
1643 | #define wxSTC_FS_DATE 16 | |
1644 | #define wxSTC_FS_STRINGEOL 17 | |
1645 | #define wxSTC_FS_CONSTANT 18 | |
1646 | #define wxSTC_FS_WORDOPERATOR 19 | |
1647 | #define wxSTC_FS_DISABLEDCODE 20 | |
1648 | #define wxSTC_FS_DEFAULT_C 21 | |
1649 | #define wxSTC_FS_COMMENTDOC_C 22 | |
1650 | #define wxSTC_FS_COMMENTLINEDOC_C 23 | |
1651 | #define wxSTC_FS_KEYWORD_C 24 | |
1652 | #define wxSTC_FS_KEYWORD2_C 25 | |
1653 | #define wxSTC_FS_NUMBER_C 26 | |
1654 | #define wxSTC_FS_STRING_C 27 | |
1655 | #define wxSTC_FS_PREPROCESSOR_C 28 | |
1656 | #define wxSTC_FS_OPERATOR_C 29 | |
1657 | #define wxSTC_FS_IDENTIFIER_C 30 | |
1658 | #define wxSTC_FS_STRINGEOL_C 31 | |
1659 | ||
1660 | /// Lexical states for SCLEX_CSOUND | |
1661 | #define wxSTC_CSOUND_DEFAULT 0 | |
1662 | #define wxSTC_CSOUND_COMMENT 1 | |
1663 | #define wxSTC_CSOUND_NUMBER 2 | |
1664 | #define wxSTC_CSOUND_OPERATOR 3 | |
1665 | #define wxSTC_CSOUND_INSTR 4 | |
1666 | #define wxSTC_CSOUND_IDENTIFIER 5 | |
1667 | #define wxSTC_CSOUND_OPCODE 6 | |
1668 | #define wxSTC_CSOUND_HEADERSTMT 7 | |
1669 | #define wxSTC_CSOUND_USERKEYWORD 8 | |
1670 | #define wxSTC_CSOUND_COMMENTBLOCK 9 | |
1671 | #define wxSTC_CSOUND_PARAM 10 | |
1672 | #define wxSTC_CSOUND_ARATE_VAR 11 | |
1673 | #define wxSTC_CSOUND_KRATE_VAR 12 | |
1674 | #define wxSTC_CSOUND_IRATE_VAR 13 | |
1675 | #define wxSTC_CSOUND_GLOBAL_VAR 14 | |
1676 | #define wxSTC_CSOUND_STRINGEOL 15 | |
1677 | ||
1678 | /// Lexical states for SCLEX_INNOSETUP | |
1679 | #define wxSTC_INNO_DEFAULT 0 | |
1680 | #define wxSTC_INNO_COMMENT 1 | |
1681 | #define wxSTC_INNO_KEYWORD 2 | |
1682 | #define wxSTC_INNO_PARAMETER 3 | |
1683 | #define wxSTC_INNO_SECTION 4 | |
1684 | #define wxSTC_INNO_PREPROC 5 | |
1685 | #define wxSTC_INNO_INLINE_EXPANSION 6 | |
1686 | #define wxSTC_INNO_COMMENT_PASCAL 7 | |
1687 | #define wxSTC_INNO_KEYWORD_PASCAL 8 | |
1688 | #define wxSTC_INNO_KEYWORD_USER 9 | |
1689 | #define wxSTC_INNO_STRING_DOUBLE 10 | |
1690 | #define wxSTC_INNO_STRING_SINGLE 11 | |
1691 | #define wxSTC_INNO_IDENTIFIER 12 | |
1692 | ||
1693 | /// Lexical states for SCLEX_OPAL | |
1694 | #define wxSTC_OPAL_SPACE 0 | |
1695 | #define wxSTC_OPAL_COMMENT_BLOCK 1 | |
1696 | #define wxSTC_OPAL_COMMENT_LINE 2 | |
1697 | #define wxSTC_OPAL_INTEGER 3 | |
1698 | #define wxSTC_OPAL_KEYWORD 4 | |
1699 | #define wxSTC_OPAL_SORT 5 | |
1700 | #define wxSTC_OPAL_STRING 6 | |
1701 | #define wxSTC_OPAL_PAR 7 | |
1702 | #define wxSTC_OPAL_BOOL_CONST 8 | |
1703 | #define wxSTC_OPAL_DEFAULT 32 | |
1704 | ||
1705 | /// Lexical states for SCLEX_SPICE | |
1706 | #define wxSTC_SPICE_DEFAULT 0 | |
1707 | #define wxSTC_SPICE_IDENTIFIER 1 | |
1708 | #define wxSTC_SPICE_KEYWORD 2 | |
1709 | #define wxSTC_SPICE_KEYWORD2 3 | |
1710 | #define wxSTC_SPICE_KEYWORD3 4 | |
1711 | #define wxSTC_SPICE_NUMBER 5 | |
1712 | #define wxSTC_SPICE_DELIMITER 6 | |
1713 | #define wxSTC_SPICE_VALUE 7 | |
1714 | #define wxSTC_SPICE_COMMENTLINE 8 | |
1715 | ||
1716 | /// Lexical states for SCLEX_CMAKE | |
1717 | #define wxSTC_CMAKE_DEFAULT 0 | |
1718 | #define wxSTC_CMAKE_COMMENT 1 | |
1719 | #define wxSTC_CMAKE_STRINGDQ 2 | |
1720 | #define wxSTC_CMAKE_STRINGLQ 3 | |
1721 | #define wxSTC_CMAKE_STRINGRQ 4 | |
1722 | #define wxSTC_CMAKE_COMMANDS 5 | |
1723 | #define wxSTC_CMAKE_PARAMETERS 6 | |
1724 | #define wxSTC_CMAKE_VARIABLE 7 | |
1725 | #define wxSTC_CMAKE_USERDEFINED 8 | |
1726 | #define wxSTC_CMAKE_WHILEDEF 9 | |
1727 | #define wxSTC_CMAKE_FOREACHDEF 10 | |
1728 | #define wxSTC_CMAKE_IFDEFINEDEF 11 | |
1729 | #define wxSTC_CMAKE_MACRODEF 12 | |
1730 | #define wxSTC_CMAKE_STRINGVAR 13 | |
1731 | #define wxSTC_CMAKE_NUMBER 14 | |
1732 | ||
1733 | /// Lexical states for SCLEX_GAP | |
1734 | #define wxSTC_GAP_DEFAULT 0 | |
1735 | #define wxSTC_GAP_IDENTIFIER 1 | |
1736 | #define wxSTC_GAP_KEYWORD 2 | |
1737 | #define wxSTC_GAP_KEYWORD2 3 | |
1738 | #define wxSTC_GAP_KEYWORD3 4 | |
1739 | #define wxSTC_GAP_KEYWORD4 5 | |
1740 | #define wxSTC_GAP_STRING 6 | |
1741 | #define wxSTC_GAP_CHAR 7 | |
1742 | #define wxSTC_GAP_OPERATOR 8 | |
1743 | #define wxSTC_GAP_COMMENT 9 | |
1744 | #define wxSTC_GAP_NUMBER 10 | |
1745 | #define wxSTC_GAP_STRINGEOL 11 | |
1746 | ||
1747 | /// Lexical state for SCLEX_PLM | |
1748 | #define wxSTC_PLM_DEFAULT 0 | |
1749 | #define wxSTC_PLM_COMMENT 1 | |
1750 | #define wxSTC_PLM_STRING 2 | |
1751 | #define wxSTC_PLM_NUMBER 3 | |
1752 | #define wxSTC_PLM_IDENTIFIER 4 | |
1753 | #define wxSTC_PLM_OPERATOR 5 | |
1754 | #define wxSTC_PLM_CONTROL 6 | |
1755 | #define wxSTC_PLM_KEYWORD 7 | |
1756 | ||
1757 | /// Lexical state for SCLEX_PROGRESS | |
1758 | #define wxSTC_4GL_DEFAULT 0 | |
1759 | #define wxSTC_4GL_NUMBER 1 | |
1760 | #define wxSTC_4GL_WORD 2 | |
1761 | #define wxSTC_4GL_STRING 3 | |
1762 | #define wxSTC_4GL_CHARACTER 4 | |
1763 | #define wxSTC_4GL_PREPROCESSOR 5 | |
1764 | #define wxSTC_4GL_OPERATOR 6 | |
1765 | #define wxSTC_4GL_IDENTIFIER 7 | |
1766 | #define wxSTC_4GL_BLOCK 8 | |
1767 | #define wxSTC_4GL_END 9 | |
1768 | #define wxSTC_4GL_COMMENT1 10 | |
1769 | #define wxSTC_4GL_COMMENT2 11 | |
1770 | #define wxSTC_4GL_COMMENT3 12 | |
1771 | #define wxSTC_4GL_COMMENT4 13 | |
1772 | #define wxSTC_4GL_COMMENT5 14 | |
1773 | #define wxSTC_4GL_COMMENT6 15 | |
1774 | #define wxSTC_4GL_DEFAULT_ 16 | |
1775 | #define wxSTC_4GL_NUMBER_ 17 | |
1776 | #define wxSTC_4GL_WORD_ 18 | |
1777 | #define wxSTC_4GL_STRING_ 19 | |
1778 | #define wxSTC_4GL_CHARACTER_ 20 | |
1779 | #define wxSTC_4GL_PREPROCESSOR_ 21 | |
1780 | #define wxSTC_4GL_OPERATOR_ 22 | |
1781 | #define wxSTC_4GL_IDENTIFIER_ 23 | |
1782 | #define wxSTC_4GL_BLOCK_ 24 | |
1783 | #define wxSTC_4GL_END_ 25 | |
1784 | #define wxSTC_4GL_COMMENT1_ 26 | |
1785 | #define wxSTC_4GL_COMMENT2_ 27 | |
1786 | #define wxSTC_4GL_COMMENT3_ 28 | |
1787 | #define wxSTC_4GL_COMMENT4_ 29 | |
1788 | #define wxSTC_4GL_COMMENT5_ 30 | |
1789 | #define wxSTC_4GL_COMMENT6_ 31 | |
1790 | ||
1791 | /// Lexical states for SCLEX_ABAQUS | |
1792 | #define wxSTC_ABAQUS_DEFAULT 0 | |
1793 | #define wxSTC_ABAQUS_COMMENT 1 | |
1794 | #define wxSTC_ABAQUS_COMMENTBLOCK 2 | |
1795 | #define wxSTC_ABAQUS_NUMBER 3 | |
1796 | #define wxSTC_ABAQUS_STRING 4 | |
1797 | #define wxSTC_ABAQUS_OPERATOR 5 | |
1798 | #define wxSTC_ABAQUS_WORD 6 | |
1799 | #define wxSTC_ABAQUS_PROCESSOR 7 | |
1800 | #define wxSTC_ABAQUS_COMMAND 8 | |
1801 | #define wxSTC_ABAQUS_SLASHCOMMAND 9 | |
1802 | #define wxSTC_ABAQUS_STARCOMMAND 10 | |
1803 | #define wxSTC_ABAQUS_ARGUMENT 11 | |
1804 | #define wxSTC_ABAQUS_FUNCTION 12 | |
1805 | ||
1806 | /// Lexical states for SCLEX_ASYMPTOTE | |
1807 | #define wxSTC_ASY_DEFAULT 0 | |
1808 | #define wxSTC_ASY_COMMENT 1 | |
1809 | #define wxSTC_ASY_COMMENTLINE 2 | |
1810 | #define wxSTC_ASY_NUMBER 3 | |
1811 | #define wxSTC_ASY_WORD 4 | |
1812 | #define wxSTC_ASY_STRING 5 | |
1813 | #define wxSTC_ASY_CHARACTER 6 | |
1814 | #define wxSTC_ASY_OPERATOR 7 | |
1815 | #define wxSTC_ASY_IDENTIFIER 8 | |
1816 | #define wxSTC_ASY_STRINGEOL 9 | |
1817 | #define wxSTC_ASY_COMMENTLINEDOC 10 | |
1818 | #define wxSTC_ASY_WORD2 11 | |
1819 | ||
1820 | /// Lexical states for SCLEX_R | |
1821 | #define wxSTC_R_DEFAULT 0 | |
1822 | #define wxSTC_R_COMMENT 1 | |
1823 | #define wxSTC_R_KWORD 2 | |
1824 | #define wxSTC_R_BASEKWORD 3 | |
1825 | #define wxSTC_R_OTHERKWORD 4 | |
1826 | #define wxSTC_R_NUMBER 5 | |
1827 | #define wxSTC_R_STRING 6 | |
1828 | #define wxSTC_R_STRING2 7 | |
1829 | #define wxSTC_R_OPERATOR 8 | |
1830 | #define wxSTC_R_IDENTIFIER 9 | |
1831 | #define wxSTC_R_INFIX 10 | |
1832 | #define wxSTC_R_INFIXEOL 11 | |
1833 | ||
1834 | /// Lexical state for SCLEX_MAGIKSF | |
1835 | #define wxSTC_MAGIK_DEFAULT 0 | |
1836 | #define wxSTC_MAGIK_COMMENT 1 | |
1837 | #define wxSTC_MAGIK_HYPER_COMMENT 16 | |
1838 | #define wxSTC_MAGIK_STRING 2 | |
1839 | #define wxSTC_MAGIK_CHARACTER 3 | |
1840 | #define wxSTC_MAGIK_NUMBER 4 | |
1841 | #define wxSTC_MAGIK_IDENTIFIER 5 | |
1842 | #define wxSTC_MAGIK_OPERATOR 6 | |
1843 | #define wxSTC_MAGIK_FLOW 7 | |
1844 | #define wxSTC_MAGIK_CONTAINER 8 | |
1845 | #define wxSTC_MAGIK_BRACKET_BLOCK 9 | |
1846 | #define wxSTC_MAGIK_BRACE_BLOCK 10 | |
1847 | #define wxSTC_MAGIK_SQBRACKET_BLOCK 11 | |
1848 | #define wxSTC_MAGIK_UNKNOWN_KEYWORD 12 | |
1849 | #define wxSTC_MAGIK_KEYWORD 13 | |
1850 | #define wxSTC_MAGIK_PRAGMA 14 | |
1851 | #define wxSTC_MAGIK_SYMBOL 15 | |
1852 | ||
1853 | /// Lexical state for SCLEX_POWERSHELL | |
1854 | #define wxSTC_POWERSHELL_DEFAULT 0 | |
1855 | #define wxSTC_POWERSHELL_COMMENT 1 | |
1856 | #define wxSTC_POWERSHELL_STRING 2 | |
1857 | #define wxSTC_POWERSHELL_CHARACTER 3 | |
1858 | #define wxSTC_POWERSHELL_NUMBER 4 | |
1859 | #define wxSTC_POWERSHELL_VARIABLE 5 | |
1860 | #define wxSTC_POWERSHELL_OPERATOR 6 | |
1861 | #define wxSTC_POWERSHELL_IDENTIFIER 7 | |
1862 | #define wxSTC_POWERSHELL_KEYWORD 8 | |
1863 | #define wxSTC_POWERSHELL_CMDLET 9 | |
1864 | #define wxSTC_POWERSHELL_ALIAS 10 | |
1865 | #define wxSTC_POWERSHELL_FUNCTION 11 | |
1866 | #define wxSTC_POWERSHELL_USER1 12 | |
1867 | #define wxSTC_POWERSHELL_COMMENTSTREAM 13 | |
1868 | ||
1869 | /// Lexical state for SCLEX_MYSQL | |
1870 | #define wxSTC_MYSQL_DEFAULT 0 | |
1871 | #define wxSTC_MYSQL_COMMENT 1 | |
1872 | #define wxSTC_MYSQL_COMMENTLINE 2 | |
1873 | #define wxSTC_MYSQL_VARIABLE 3 | |
1874 | #define wxSTC_MYSQL_SYSTEMVARIABLE 4 | |
1875 | #define wxSTC_MYSQL_KNOWNSYSTEMVARIABLE 5 | |
1876 | #define wxSTC_MYSQL_NUMBER 6 | |
1877 | #define wxSTC_MYSQL_MAJORKEYWORD 7 | |
1878 | #define wxSTC_MYSQL_KEYWORD 8 | |
1879 | #define wxSTC_MYSQL_DATABASEOBJECT 9 | |
1880 | #define wxSTC_MYSQL_PROCEDUREKEYWORD 10 | |
1881 | #define wxSTC_MYSQL_STRING 11 | |
1882 | #define wxSTC_MYSQL_SQSTRING 12 | |
1883 | #define wxSTC_MYSQL_DQSTRING 13 | |
1884 | #define wxSTC_MYSQL_OPERATOR 14 | |
1885 | #define wxSTC_MYSQL_FUNCTION 15 | |
1886 | #define wxSTC_MYSQL_IDENTIFIER 16 | |
1887 | #define wxSTC_MYSQL_QUOTEDIDENTIFIER 17 | |
1888 | #define wxSTC_MYSQL_USER1 18 | |
1889 | #define wxSTC_MYSQL_USER2 19 | |
1890 | #define wxSTC_MYSQL_USER3 20 | |
1891 | #define wxSTC_MYSQL_HIDDENCOMMAND 21 | |
1892 | ||
1893 | /// Lexical state for SCLEX_PO | |
1894 | #define wxSTC_PO_DEFAULT 0 | |
1895 | #define wxSTC_PO_COMMENT 1 | |
1896 | #define wxSTC_PO_MSGID 2 | |
1897 | #define wxSTC_PO_MSGID_TEXT 3 | |
1898 | #define wxSTC_PO_MSGSTR 4 | |
1899 | #define wxSTC_PO_MSGSTR_TEXT 5 | |
1900 | #define wxSTC_PO_MSGCTXT 6 | |
1901 | #define wxSTC_PO_MSGCTXT_TEXT 7 | |
1902 | #define wxSTC_PO_FUZZY 8 | |
1903 | ||
1904 | /// Lexical states for SCLEX_PASCAL | |
1905 | #define wxSTC_PAS_DEFAULT 0 | |
1906 | #define wxSTC_PAS_IDENTIFIER 1 | |
1907 | #define wxSTC_PAS_COMMENT 2 | |
1908 | #define wxSTC_PAS_COMMENT2 3 | |
1909 | #define wxSTC_PAS_COMMENTLINE 4 | |
1910 | #define wxSTC_PAS_PREPROCESSOR 5 | |
1911 | #define wxSTC_PAS_PREPROCESSOR2 6 | |
1912 | #define wxSTC_PAS_NUMBER 7 | |
1913 | #define wxSTC_PAS_HEXNUMBER 8 | |
1914 | #define wxSTC_PAS_WORD 9 | |
1915 | #define wxSTC_PAS_STRING 10 | |
1916 | #define wxSTC_PAS_STRINGEOL 11 | |
1917 | #define wxSTC_PAS_CHARACTER 12 | |
1918 | #define wxSTC_PAS_OPERATOR 13 | |
1919 | #define wxSTC_PAS_ASM 14 | |
1920 | ||
1921 | /// Lexical state for SCLEX_SORCUS | |
1922 | #define wxSTC_SORCUS_DEFAULT 0 | |
1923 | #define wxSTC_SORCUS_COMMAND 1 | |
1924 | #define wxSTC_SORCUS_PARAMETER 2 | |
1925 | #define wxSTC_SORCUS_COMMENTLINE 3 | |
1926 | #define wxSTC_SORCUS_STRING 4 | |
1927 | #define wxSTC_SORCUS_STRINGEOL 5 | |
1928 | #define wxSTC_SORCUS_IDENTIFIER 6 | |
1929 | #define wxSTC_SORCUS_OPERATOR 7 | |
1930 | #define wxSTC_SORCUS_NUMBER 8 | |
1931 | #define wxSTC_SORCUS_CONSTANT 9 | |
1932 | ||
1933 | /// Lexical state for SCLEX_POWERPRO | |
1934 | #define wxSTC_POWERPRO_DEFAULT 0 | |
1935 | #define wxSTC_POWERPRO_COMMENTBLOCK 1 | |
1936 | #define wxSTC_POWERPRO_COMMENTLINE 2 | |
1937 | #define wxSTC_POWERPRO_NUMBER 3 | |
1938 | #define wxSTC_POWERPRO_WORD 4 | |
1939 | #define wxSTC_POWERPRO_WORD2 5 | |
1940 | #define wxSTC_POWERPRO_WORD3 6 | |
1941 | #define wxSTC_POWERPRO_WORD4 7 | |
1942 | #define wxSTC_POWERPRO_DOUBLEQUOTEDSTRING 8 | |
1943 | #define wxSTC_POWERPRO_SINGLEQUOTEDSTRING 9 | |
1944 | #define wxSTC_POWERPRO_LINECONTINUE 10 | |
1945 | #define wxSTC_POWERPRO_OPERATOR 11 | |
1946 | #define wxSTC_POWERPRO_IDENTIFIER 12 | |
1947 | #define wxSTC_POWERPRO_STRINGEOL 13 | |
1948 | #define wxSTC_POWERPRO_VERBATIM 14 | |
1949 | #define wxSTC_POWERPRO_ALTQUOTE 15 | |
1950 | #define wxSTC_POWERPRO_FUNCTION 16 | |
1951 | ||
1952 | /// Lexical states for SCLEX_SML | |
1953 | #define wxSTC_SML_DEFAULT 0 | |
1954 | #define wxSTC_SML_IDENTIFIER 1 | |
1955 | #define wxSTC_SML_TAGNAME 2 | |
1956 | #define wxSTC_SML_KEYWORD 3 | |
1957 | #define wxSTC_SML_KEYWORD2 4 | |
1958 | #define wxSTC_SML_KEYWORD3 5 | |
1959 | #define wxSTC_SML_LINENUM 6 | |
1960 | #define wxSTC_SML_OPERATOR 7 | |
1961 | #define wxSTC_SML_NUMBER 8 | |
1962 | #define wxSTC_SML_CHAR 9 | |
1963 | #define wxSTC_SML_STRING 11 | |
1964 | #define wxSTC_SML_COMMENT 12 | |
1965 | #define wxSTC_SML_COMMENT1 13 | |
1966 | #define wxSTC_SML_COMMENT2 14 | |
1967 | #define wxSTC_SML_COMMENT3 15 | |
1968 | ||
1969 | /// Lexical state for SCLEX_MARKDOWN | |
1970 | #define wxSTC_MARKDOWN_DEFAULT 0 | |
1971 | #define wxSTC_MARKDOWN_LINE_BEGIN 1 | |
1972 | #define wxSTC_MARKDOWN_STRONG1 2 | |
1973 | #define wxSTC_MARKDOWN_STRONG2 3 | |
1974 | #define wxSTC_MARKDOWN_EM1 4 | |
1975 | #define wxSTC_MARKDOWN_EM2 5 | |
1976 | #define wxSTC_MARKDOWN_HEADER1 6 | |
1977 | #define wxSTC_MARKDOWN_HEADER2 7 | |
1978 | #define wxSTC_MARKDOWN_HEADER3 8 | |
1979 | #define wxSTC_MARKDOWN_HEADER4 9 | |
1980 | #define wxSTC_MARKDOWN_HEADER5 10 | |
1981 | #define wxSTC_MARKDOWN_HEADER6 11 | |
1982 | #define wxSTC_MARKDOWN_PRECHAR 12 | |
1983 | #define wxSTC_MARKDOWN_ULIST_ITEM 13 | |
1984 | #define wxSTC_MARKDOWN_OLIST_ITEM 14 | |
1985 | #define wxSTC_MARKDOWN_BLOCKQUOTE 15 | |
1986 | #define wxSTC_MARKDOWN_STRIKEOUT 16 | |
1987 | #define wxSTC_MARKDOWN_HRULE 17 | |
1988 | #define wxSTC_MARKDOWN_LINK 18 | |
1989 | #define wxSTC_MARKDOWN_CODE 19 | |
1990 | #define wxSTC_MARKDOWN_CODE2 20 | |
1991 | #define wxSTC_MARKDOWN_CODEBK 21 | |
1992 | ||
1993 | /// Lexical state for SCLEX_TXT2TAGS | |
1994 | #define wxSTC_TXT2TAGS_DEFAULT 0 | |
1995 | #define wxSTC_TXT2TAGS_LINE_BEGIN 1 | |
1996 | #define wxSTC_TXT2TAGS_STRONG1 2 | |
1997 | #define wxSTC_TXT2TAGS_STRONG2 3 | |
1998 | #define wxSTC_TXT2TAGS_EM1 4 | |
1999 | #define wxSTC_TXT2TAGS_EM2 5 | |
2000 | #define wxSTC_TXT2TAGS_HEADER1 6 | |
2001 | #define wxSTC_TXT2TAGS_HEADER2 7 | |
2002 | #define wxSTC_TXT2TAGS_HEADER3 8 | |
2003 | #define wxSTC_TXT2TAGS_HEADER4 9 | |
2004 | #define wxSTC_TXT2TAGS_HEADER5 10 | |
2005 | #define wxSTC_TXT2TAGS_HEADER6 11 | |
2006 | #define wxSTC_TXT2TAGS_PRECHAR 12 | |
2007 | #define wxSTC_TXT2TAGS_ULIST_ITEM 13 | |
2008 | #define wxSTC_TXT2TAGS_OLIST_ITEM 14 | |
2009 | #define wxSTC_TXT2TAGS_BLOCKQUOTE 15 | |
2010 | #define wxSTC_TXT2TAGS_STRIKEOUT 16 | |
2011 | #define wxSTC_TXT2TAGS_HRULE 17 | |
2012 | #define wxSTC_TXT2TAGS_LINK 18 | |
2013 | #define wxSTC_TXT2TAGS_CODE 19 | |
2014 | #define wxSTC_TXT2TAGS_CODE2 20 | |
2015 | #define wxSTC_TXT2TAGS_CODEBK 21 | |
2016 | #define wxSTC_TXT2TAGS_COMMENT 22 | |
2017 | #define wxSTC_TXT2TAGS_OPTION 23 | |
2018 | #define wxSTC_TXT2TAGS_PREPROC 24 | |
2019 | #define wxSTC_TXT2TAGS_POSTPROC 25 | |
2020 | ||
2021 | /// Lexical states for SCLEX_A68K | |
2022 | #define wxSTC_A68K_DEFAULT 0 | |
2023 | #define wxSTC_A68K_COMMENT 1 | |
2024 | #define wxSTC_A68K_NUMBER_DEC 2 | |
2025 | #define wxSTC_A68K_NUMBER_BIN 3 | |
2026 | #define wxSTC_A68K_NUMBER_HEX 4 | |
2027 | #define wxSTC_A68K_STRING1 5 | |
2028 | #define wxSTC_A68K_OPERATOR 6 | |
2029 | #define wxSTC_A68K_CPUINSTRUCTION 7 | |
2030 | #define wxSTC_A68K_EXTINSTRUCTION 8 | |
2031 | #define wxSTC_A68K_REGISTER 9 | |
2032 | #define wxSTC_A68K_DIRECTIVE 10 | |
2033 | #define wxSTC_A68K_MACRO_ARG 11 | |
2034 | #define wxSTC_A68K_LABEL 12 | |
2035 | #define wxSTC_A68K_STRING2 13 | |
2036 | #define wxSTC_A68K_IDENTIFIER 14 | |
2037 | #define wxSTC_A68K_MACRO_DECLARATION 15 | |
2038 | #define wxSTC_A68K_COMMENT_WORD 16 | |
2039 | #define wxSTC_A68K_COMMENT_SPECIAL 17 | |
2040 | #define wxSTC_A68K_COMMENT_DOXYGEN 18 | |
2041 | ||
2042 | /// Lexical states for SCLEX_MODULA | |
2043 | #define wxSTC_MODULA_DEFAULT 0 | |
2044 | #define wxSTC_MODULA_COMMENT 1 | |
2045 | #define wxSTC_MODULA_DOXYCOMM 2 | |
2046 | #define wxSTC_MODULA_DOXYKEY 3 | |
2047 | #define wxSTC_MODULA_KEYWORD 4 | |
2048 | #define wxSTC_MODULA_RESERVED 5 | |
2049 | #define wxSTC_MODULA_NUMBER 6 | |
2050 | #define wxSTC_MODULA_BASENUM 7 | |
2051 | #define wxSTC_MODULA_FLOAT 8 | |
2052 | #define wxSTC_MODULA_STRING 9 | |
2053 | #define wxSTC_MODULA_STRSPEC 10 | |
2054 | #define wxSTC_MODULA_CHAR 11 | |
2055 | #define wxSTC_MODULA_CHARSPEC 12 | |
2056 | #define wxSTC_MODULA_PROC 13 | |
2057 | #define wxSTC_MODULA_PRAGMA 14 | |
2058 | #define wxSTC_MODULA_PRGKEY 15 | |
2059 | #define wxSTC_MODULA_OPERATOR 16 | |
2060 | #define wxSTC_MODULA_BADSTR 17 | |
2061 | ||
2062 | /// Lexical states for SCLEX_COFFEESCRIPT | |
2063 | #define wxSTC_COFFEESCRIPT_DEFAULT 0 | |
2064 | #define wxSTC_COFFEESCRIPT_COMMENT 1 | |
2065 | #define wxSTC_COFFEESCRIPT_COMMENTLINE 2 | |
2066 | #define wxSTC_COFFEESCRIPT_COMMENTDOC 3 | |
2067 | #define wxSTC_COFFEESCRIPT_NUMBER 4 | |
2068 | #define wxSTC_COFFEESCRIPT_WORD 5 | |
2069 | #define wxSTC_COFFEESCRIPT_STRING 6 | |
2070 | #define wxSTC_COFFEESCRIPT_CHARACTER 7 | |
2071 | #define wxSTC_COFFEESCRIPT_UUID 8 | |
2072 | #define wxSTC_COFFEESCRIPT_PREPROCESSOR 9 | |
2073 | #define wxSTC_COFFEESCRIPT_OPERATOR 10 | |
2074 | #define wxSTC_COFFEESCRIPT_IDENTIFIER 11 | |
2075 | #define wxSTC_COFFEESCRIPT_STRINGEOL 12 | |
2076 | #define wxSTC_COFFEESCRIPT_VERBATIM 13 | |
2077 | #define wxSTC_COFFEESCRIPT_REGEX 14 | |
2078 | #define wxSTC_COFFEESCRIPT_COMMENTLINEDOC 15 | |
2079 | #define wxSTC_COFFEESCRIPT_WORD2 16 | |
2080 | #define wxSTC_COFFEESCRIPT_COMMENTDOCKEYWORD 17 | |
2081 | #define wxSTC_COFFEESCRIPT_COMMENTDOCKEYWORDERROR 18 | |
2082 | #define wxSTC_COFFEESCRIPT_GLOBALCLASS 19 | |
2083 | #define wxSTC_COFFEESCRIPT_STRINGRAW 20 | |
2084 | #define wxSTC_COFFEESCRIPT_TRIPLEVERBATIM 21 | |
2085 | #define wxSTC_COFFEESCRIPT_HASHQUOTEDSTRING 22 | |
2086 | #define wxSTC_COFFEESCRIPT_COMMENTBLOCK 22 | |
2087 | #define wxSTC_COFFEESCRIPT_VERBOSE_REGEX 23 | |
2088 | #define wxSTC_COFFEESCRIPT_VERBOSE_REGEX_COMMENT 24 | |
2089 | ||
2090 | /// Lexical states for SCLEX_AVS | |
2091 | #define wxSTC_AVS_DEFAULT 0 | |
2092 | #define wxSTC_AVS_COMMENTBLOCK 1 | |
2093 | #define wxSTC_AVS_COMMENTBLOCKN 2 | |
2094 | #define wxSTC_AVS_COMMENTLINE 3 | |
2095 | #define wxSTC_AVS_NUMBER 4 | |
2096 | #define wxSTC_AVS_OPERATOR 5 | |
2097 | #define wxSTC_AVS_IDENTIFIER 6 | |
2098 | #define wxSTC_AVS_STRING 7 | |
2099 | #define wxSTC_AVS_TRIPLESTRING 8 | |
2100 | #define wxSTC_AVS_KEYWORD 9 | |
2101 | #define wxSTC_AVS_FILTER 10 | |
2102 | #define wxSTC_AVS_PLUGIN 11 | |
2103 | #define wxSTC_AVS_FUNCTION 12 | |
2104 | #define wxSTC_AVS_CLIPPROP 13 | |
2105 | #define wxSTC_AVS_USERDFN 14 | |
2106 | ||
2107 | /// Lexical states for SCLEX_ECL | |
2108 | #define wxSTC_ECL_DEFAULT 0 | |
2109 | #define wxSTC_ECL_COMMENT 1 | |
2110 | #define wxSTC_ECL_COMMENTLINE 2 | |
2111 | #define wxSTC_ECL_NUMBER 3 | |
2112 | #define wxSTC_ECL_STRING 4 | |
2113 | #define wxSTC_ECL_WORD0 5 | |
2114 | #define wxSTC_ECL_OPERATOR 6 | |
2115 | #define wxSTC_ECL_CHARACTER 7 | |
2116 | #define wxSTC_ECL_UUID 8 | |
2117 | #define wxSTC_ECL_PREPROCESSOR 9 | |
2118 | #define wxSTC_ECL_UNKNOWN 10 | |
2119 | #define wxSTC_ECL_IDENTIFIER 11 | |
2120 | #define wxSTC_ECL_STRINGEOL 12 | |
2121 | #define wxSTC_ECL_VERBATIM 13 | |
2122 | #define wxSTC_ECL_REGEX 14 | |
2123 | #define wxSTC_ECL_COMMENTLINEDOC 15 | |
2124 | #define wxSTC_ECL_WORD1 16 | |
2125 | #define wxSTC_ECL_COMMENTDOCKEYWORD 17 | |
2126 | #define wxSTC_ECL_COMMENTDOCKEYWORDERROR 18 | |
2127 | #define wxSTC_ECL_WORD2 19 | |
2128 | #define wxSTC_ECL_WORD3 20 | |
2129 | #define wxSTC_ECL_WORD4 21 | |
2130 | #define wxSTC_ECL_WORD5 22 | |
2131 | #define wxSTC_ECL_COMMENTDOC 23 | |
2132 | #define wxSTC_ECL_ADDED 24 | |
2133 | #define wxSTC_ECL_DELETED 25 | |
2134 | #define wxSTC_ECL_CHANGED 26 | |
2135 | #define wxSTC_ECL_MOVED 27 | |
2136 | ||
2137 | /// Lexical states for SCLEX_OSCRIPT | |
2138 | #define wxSTC_OSCRIPT_DEFAULT 0 | |
2139 | #define wxSTC_OSCRIPT_LINE_COMMENT 1 | |
2140 | #define wxSTC_OSCRIPT_BLOCK_COMMENT 2 | |
2141 | #define wxSTC_OSCRIPT_DOC_COMMENT 3 | |
2142 | #define wxSTC_OSCRIPT_PREPROCESSOR 4 | |
2143 | #define wxSTC_OSCRIPT_NUMBER 5 | |
2144 | #define wxSTC_OSCRIPT_SINGLEQUOTE_STRING 6 | |
2145 | #define wxSTC_OSCRIPT_DOUBLEQUOTE_STRING 7 | |
2146 | #define wxSTC_OSCRIPT_CONSTANT 8 | |
2147 | #define wxSTC_OSCRIPT_IDENTIFIER 9 | |
2148 | #define wxSTC_OSCRIPT_GLOBAL 10 | |
2149 | #define wxSTC_OSCRIPT_KEYWORD 11 | |
2150 | #define wxSTC_OSCRIPT_OPERATOR 12 | |
2151 | #define wxSTC_OSCRIPT_LABEL 13 | |
2152 | #define wxSTC_OSCRIPT_TYPE 14 | |
2153 | #define wxSTC_OSCRIPT_FUNCTION 15 | |
2154 | #define wxSTC_OSCRIPT_OBJECT 16 | |
2155 | #define wxSTC_OSCRIPT_PROPERTY 17 | |
2156 | #define wxSTC_OSCRIPT_METHOD 18 | |
2157 | ||
2158 | /// Lexical states for SCLEX_VISUALPROLOG | |
2159 | #define wxSTC_VISUALPROLOG_DEFAULT 0 | |
2160 | #define wxSTC_VISUALPROLOG_KEY_MAJOR 1 | |
2161 | #define wxSTC_VISUALPROLOG_KEY_MINOR 2 | |
2162 | #define wxSTC_VISUALPROLOG_KEY_DIRECTIVE 3 | |
2163 | #define wxSTC_VISUALPROLOG_COMMENT_BLOCK 4 | |
2164 | #define wxSTC_VISUALPROLOG_COMMENT_LINE 5 | |
2165 | #define wxSTC_VISUALPROLOG_COMMENT_KEY 6 | |
2166 | #define wxSTC_VISUALPROLOG_COMMENT_KEY_ERROR 7 | |
2167 | #define wxSTC_VISUALPROLOG_IDENTIFIER 8 | |
2168 | #define wxSTC_VISUALPROLOG_VARIABLE 9 | |
2169 | #define wxSTC_VISUALPROLOG_ANONYMOUS 10 | |
2170 | #define wxSTC_VISUALPROLOG_NUMBER 11 | |
2171 | #define wxSTC_VISUALPROLOG_OPERATOR 12 | |
2172 | #define wxSTC_VISUALPROLOG_CHARACTER 13 | |
2173 | #define wxSTC_VISUALPROLOG_CHARACTER_TOO_MANY 14 | |
2174 | #define wxSTC_VISUALPROLOG_CHARACTER_ESCAPE_ERROR 15 | |
2175 | #define wxSTC_VISUALPROLOG_STRING 16 | |
2176 | #define wxSTC_VISUALPROLOG_STRING_ESCAPE 17 | |
2177 | #define wxSTC_VISUALPROLOG_STRING_ESCAPE_ERROR 18 | |
2178 | #define wxSTC_VISUALPROLOG_STRING_EOL_OPEN 19 | |
2179 | #define wxSTC_VISUALPROLOG_STRING_VERBATIM 20 | |
2180 | #define wxSTC_VISUALPROLOG_STRING_VERBATIM_SPECIAL 21 | |
2181 | #define wxSTC_VISUALPROLOG_STRING_VERBATIM_EOL 22 | |
2182 | ||
2183 | //}}} | |
2184 | //---------------------------------------------------------------------- | |
2185 | ||
2186 | //---------------------------------------------------------------------- | |
2187 | // Commands that can be bound to keystrokes section {{{ | |
2188 | ||
2189 | ||
2190 | /// Redoes the next action on the undo history. | |
2191 | #define wxSTC_CMD_REDO 2011 | |
2192 | ||
2193 | /// Select all the text in the document. | |
2194 | #define wxSTC_CMD_SELECTALL 2013 | |
2195 | ||
2196 | /// Undo one action in the undo history. | |
2197 | #define wxSTC_CMD_UNDO 2176 | |
2198 | ||
2199 | /// Cut the selection to the clipboard. | |
2200 | #define wxSTC_CMD_CUT 2177 | |
2201 | ||
2202 | /// Copy the selection to the clipboard. | |
2203 | #define wxSTC_CMD_COPY 2178 | |
2204 | ||
2205 | /// Paste the contents of the clipboard into the document replacing the selection. | |
2206 | #define wxSTC_CMD_PASTE 2179 | |
2207 | ||
2208 | /// Clear the selection. | |
2209 | #define wxSTC_CMD_CLEAR 2180 | |
2210 | ||
2211 | /// Move caret down one line. | |
2212 | #define wxSTC_CMD_LINEDOWN 2300 | |
2213 | ||
2214 | /// Move caret down one line extending selection to new caret position. | |
2215 | #define wxSTC_CMD_LINEDOWNEXTEND 2301 | |
2216 | ||
2217 | /// Move caret up one line. | |
2218 | #define wxSTC_CMD_LINEUP 2302 | |
2219 | ||
2220 | /// Move caret up one line extending selection to new caret position. | |
2221 | #define wxSTC_CMD_LINEUPEXTEND 2303 | |
2222 | ||
2223 | /// Move caret left one character. | |
2224 | #define wxSTC_CMD_CHARLEFT 2304 | |
2225 | ||
2226 | /// Move caret left one character extending selection to new caret position. | |
2227 | #define wxSTC_CMD_CHARLEFTEXTEND 2305 | |
2228 | ||
2229 | /// Move caret right one character. | |
2230 | #define wxSTC_CMD_CHARRIGHT 2306 | |
2231 | ||
2232 | /// Move caret right one character extending selection to new caret position. | |
2233 | #define wxSTC_CMD_CHARRIGHTEXTEND 2307 | |
2234 | ||
2235 | /// Move caret left one word. | |
2236 | #define wxSTC_CMD_WORDLEFT 2308 | |
2237 | ||
2238 | /// Move caret left one word extending selection to new caret position. | |
2239 | #define wxSTC_CMD_WORDLEFTEXTEND 2309 | |
2240 | ||
2241 | /// Move caret right one word. | |
2242 | #define wxSTC_CMD_WORDRIGHT 2310 | |
2243 | ||
2244 | /// Move caret right one word extending selection to new caret position. | |
2245 | #define wxSTC_CMD_WORDRIGHTEXTEND 2311 | |
2246 | ||
2247 | /// Move caret to first position on line. | |
2248 | #define wxSTC_CMD_HOME 2312 | |
2249 | ||
2250 | /// Move caret to first position on line extending selection to new caret position. | |
2251 | #define wxSTC_CMD_HOMEEXTEND 2313 | |
2252 | ||
2253 | /// Move caret to last position on line. | |
2254 | #define wxSTC_CMD_LINEEND 2314 | |
2255 | ||
2256 | /// Move caret to last position on line extending selection to new caret position. | |
2257 | #define wxSTC_CMD_LINEENDEXTEND 2315 | |
2258 | ||
2259 | /// Move caret to first position in document. | |
2260 | #define wxSTC_CMD_DOCUMENTSTART 2316 | |
2261 | ||
2262 | /// Move caret to first position in document extending selection to new caret position. | |
2263 | #define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317 | |
2264 | ||
2265 | /// Move caret to last position in document. | |
2266 | #define wxSTC_CMD_DOCUMENTEND 2318 | |
2267 | ||
2268 | /// Move caret to last position in document extending selection to new caret position. | |
2269 | #define wxSTC_CMD_DOCUMENTENDEXTEND 2319 | |
2270 | ||
2271 | /// Move caret one page up. | |
2272 | #define wxSTC_CMD_PAGEUP 2320 | |
2273 | ||
2274 | /// Move caret one page up extending selection to new caret position. | |
2275 | #define wxSTC_CMD_PAGEUPEXTEND 2321 | |
2276 | ||
2277 | /// Move caret one page down. | |
2278 | #define wxSTC_CMD_PAGEDOWN 2322 | |
2279 | ||
2280 | /// Move caret one page down extending selection to new caret position. | |
2281 | #define wxSTC_CMD_PAGEDOWNEXTEND 2323 | |
2282 | ||
2283 | /// Switch from insert to overtype mode or the reverse. | |
2284 | #define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324 | |
2285 | ||
2286 | /// Cancel any modes such as call tip or auto-completion list display. | |
2287 | #define wxSTC_CMD_CANCEL 2325 | |
2288 | ||
2289 | /// Delete the selection or if no selection, the character before the caret. | |
2290 | #define wxSTC_CMD_DELETEBACK 2326 | |
2291 | ||
2292 | /// If selection is empty or all on one line replace the selection with a tab character. | |
2293 | /// If more than one line selected, indent the lines. | |
2294 | #define wxSTC_CMD_TAB 2327 | |
2295 | ||
2296 | /// Dedent the selected lines. | |
2297 | #define wxSTC_CMD_BACKTAB 2328 | |
2298 | ||
2299 | /// Insert a new line, may use a CRLF, CR or LF depending on EOL mode. | |
2300 | #define wxSTC_CMD_NEWLINE 2329 | |
2301 | ||
2302 | /// Insert a Form Feed character. | |
2303 | #define wxSTC_CMD_FORMFEED 2330 | |
2304 | ||
2305 | /// Move caret to before first visible character on line. | |
2306 | /// If already there move to first character on line. | |
2307 | #define wxSTC_CMD_VCHOME 2331 | |
2308 | ||
2309 | /// Like VCHome but extending selection to new caret position. | |
2310 | #define wxSTC_CMD_VCHOMEEXTEND 2332 | |
2311 | ||
2312 | /// Magnify the displayed text by increasing the sizes by 1 point. | |
2313 | #define wxSTC_CMD_ZOOMIN 2333 | |
2314 | ||
2315 | /// Make the displayed text smaller by decreasing the sizes by 1 point. | |
2316 | #define wxSTC_CMD_ZOOMOUT 2334 | |
2317 | ||
2318 | /// Delete the word to the left of the caret. | |
2319 | #define wxSTC_CMD_DELWORDLEFT 2335 | |
2320 | ||
2321 | /// Delete the word to the right of the caret. | |
2322 | #define wxSTC_CMD_DELWORDRIGHT 2336 | |
2323 | ||
2324 | /// Delete the word to the right of the caret, but not the trailing non-word characters. | |
2325 | #define wxSTC_CMD_DELWORDRIGHTEND 2518 | |
2326 | ||
2327 | /// Cut the line containing the caret. | |
2328 | #define wxSTC_CMD_LINECUT 2337 | |
2329 | ||
2330 | /// Delete the line containing the caret. | |
2331 | #define wxSTC_CMD_LINEDELETE 2338 | |
2332 | ||
2333 | /// Switch the current line with the previous. | |
2334 | #define wxSTC_CMD_LINETRANSPOSE 2339 | |
2335 | ||
2336 | /// Duplicate the current line. | |
2337 | #define wxSTC_CMD_LINEDUPLICATE 2404 | |
2338 | ||
2339 | /// Transform the selection to lower case. | |
2340 | #define wxSTC_CMD_LOWERCASE 2340 | |
2341 | ||
2342 | /// Transform the selection to upper case. | |
2343 | #define wxSTC_CMD_UPPERCASE 2341 | |
2344 | ||
2345 | /// Scroll the document down, keeping the caret visible. | |
2346 | #define wxSTC_CMD_LINESCROLLDOWN 2342 | |
2347 | ||
2348 | /// Scroll the document up, keeping the caret visible. | |
2349 | #define wxSTC_CMD_LINESCROLLUP 2343 | |
2350 | ||
2351 | /// Delete the selection or if no selection, the character before the caret. | |
2352 | /// Will not delete the character before at the start of a line. | |
2353 | #define wxSTC_CMD_DELETEBACKNOTLINE 2344 | |
2354 | ||
2355 | /// Move caret to first position on display line. | |
2356 | #define wxSTC_CMD_HOMEDISPLAY 2345 | |
2357 | ||
2358 | /// Move caret to first position on display line extending selection to | |
2359 | /// new caret position. | |
2360 | #define wxSTC_CMD_HOMEDISPLAYEXTEND 2346 | |
2361 | ||
2362 | /// Move caret to last position on display line. | |
2363 | #define wxSTC_CMD_LINEENDDISPLAY 2347 | |
2364 | ||
2365 | /// Move caret to last position on display line extending selection to new | |
2366 | /// caret position. | |
2367 | #define wxSTC_CMD_LINEENDDISPLAYEXTEND 2348 | |
2368 | ||
2369 | /// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? | |
2370 | /// except they behave differently when word-wrap is enabled: | |
2371 | /// They go first to the start / end of the display line, like (Home|LineEnd)Display | |
2372 | /// The difference is that, the cursor is already at the point, it goes on to the start | |
2373 | /// or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. | |
2374 | #define wxSTC_CMD_HOMEWRAP 2349 | |
2375 | #define wxSTC_CMD_HOMEWRAPEXTEND 2450 | |
2376 | #define wxSTC_CMD_LINEENDWRAP 2451 | |
2377 | #define wxSTC_CMD_LINEENDWRAPEXTEND 2452 | |
2378 | #define wxSTC_CMD_VCHOMEWRAP 2453 | |
2379 | #define wxSTC_CMD_VCHOMEWRAPEXTEND 2454 | |
2380 | ||
2381 | /// Copy the line containing the caret. | |
2382 | #define wxSTC_CMD_LINECOPY 2455 | |
2383 | ||
2384 | /// Move to the previous change in capitalisation. | |
2385 | #define wxSTC_CMD_WORDPARTLEFT 2390 | |
2386 | ||
2387 | /// Move to the previous change in capitalisation extending selection | |
2388 | /// to new caret position. | |
2389 | #define wxSTC_CMD_WORDPARTLEFTEXTEND 2391 | |
2390 | ||
2391 | /// Move to the change next in capitalisation. | |
2392 | #define wxSTC_CMD_WORDPARTRIGHT 2392 | |
2393 | ||
2394 | /// Move to the next change in capitalisation extending selection | |
2395 | /// to new caret position. | |
2396 | #define wxSTC_CMD_WORDPARTRIGHTEXTEND 2393 | |
2397 | ||
2398 | /// Delete back from the current position to the start of the line. | |
2399 | #define wxSTC_CMD_DELLINELEFT 2395 | |
2400 | ||
2401 | /// Delete forwards from the current position to the end of the line. | |
2402 | #define wxSTC_CMD_DELLINERIGHT 2396 | |
2403 | ||
2404 | /// Move caret between paragraphs (delimited by empty lines). | |
2405 | #define wxSTC_CMD_PARADOWN 2413 | |
2406 | #define wxSTC_CMD_PARADOWNEXTEND 2414 | |
2407 | #define wxSTC_CMD_PARAUP 2415 | |
2408 | #define wxSTC_CMD_PARAUPEXTEND 2416 | |
2409 | ||
2410 | /// Move caret down one line, extending rectangular selection to new caret position. | |
2411 | #define wxSTC_CMD_LINEDOWNRECTEXTEND 2426 | |
2412 | ||
2413 | /// Move caret up one line, extending rectangular selection to new caret position. | |
2414 | #define wxSTC_CMD_LINEUPRECTEXTEND 2427 | |
2415 | ||
2416 | /// Move caret left one character, extending rectangular selection to new caret position. | |
2417 | #define wxSTC_CMD_CHARLEFTRECTEXTEND 2428 | |
2418 | ||
2419 | /// Move caret right one character, extending rectangular selection to new caret position. | |
2420 | #define wxSTC_CMD_CHARRIGHTRECTEXTEND 2429 | |
2421 | ||
2422 | /// Move caret to first position on line, extending rectangular selection to new caret position. | |
2423 | #define wxSTC_CMD_HOMERECTEXTEND 2430 | |
2424 | ||
2425 | /// Move caret to before first visible character on line. | |
2426 | /// If already there move to first character on line. | |
2427 | /// In either case, extend rectangular selection to new caret position. | |
2428 | #define wxSTC_CMD_VCHOMERECTEXTEND 2431 | |
2429 | ||
2430 | /// Move caret to last position on line, extending rectangular selection to new caret position. | |
2431 | #define wxSTC_CMD_LINEENDRECTEXTEND 2432 | |
2432 | ||
2433 | /// Move caret one page up, extending rectangular selection to new caret position. | |
2434 | #define wxSTC_CMD_PAGEUPRECTEXTEND 2433 | |
2435 | ||
2436 | /// Move caret one page down, extending rectangular selection to new caret position. | |
2437 | #define wxSTC_CMD_PAGEDOWNRECTEXTEND 2434 | |
2438 | ||
2439 | /// Move caret to top of page, or one page up if already at top of page. | |
2440 | #define wxSTC_CMD_STUTTEREDPAGEUP 2435 | |
2441 | ||
2442 | /// Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. | |
2443 | #define wxSTC_CMD_STUTTEREDPAGEUPEXTEND 2436 | |
2444 | ||
2445 | /// Move caret to bottom of page, or one page down if already at bottom of page. | |
2446 | #define wxSTC_CMD_STUTTEREDPAGEDOWN 2437 | |
2447 | ||
2448 | /// Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. | |
2449 | #define wxSTC_CMD_STUTTEREDPAGEDOWNEXTEND 2438 | |
2450 | ||
2451 | /// Move caret left one word, position cursor at end of word. | |
2452 | #define wxSTC_CMD_WORDLEFTEND 2439 | |
2453 | ||
2454 | /// Move caret left one word, position cursor at end of word, extending selection to new caret position. | |
2455 | #define wxSTC_CMD_WORDLEFTENDEXTEND 2440 | |
2456 | ||
2457 | /// Move caret right one word, position cursor at end of word. | |
2458 | #define wxSTC_CMD_WORDRIGHTEND 2441 | |
2459 | ||
2460 | /// Move caret right one word, position cursor at end of word, extending selection to new caret position. | |
2461 | #define wxSTC_CMD_WORDRIGHTENDEXTEND 2442 | |
2462 | ||
2463 | /// Centre current line in window. | |
2464 | #define wxSTC_CMD_VERTICALCENTRECARET 2619 | |
2465 | ||
2466 | /// Move the selected lines up one line, shifting the line above after the selection | |
2467 | #define wxSTC_CMD_MOVESELECTEDLINESUP 2620 | |
2468 | ||
2469 | /// Move the selected lines down one line, shifting the line below before the selection | |
2470 | #define wxSTC_CMD_MOVESELECTEDLINESDOWN 2621 | |
2471 | ||
2472 | /// Scroll to start of document. | |
2473 | #define wxSTC_CMD_SCROLLTOSTART 2628 | |
2474 | ||
2475 | /// Scroll to end of document. | |
2476 | #define wxSTC_CMD_SCROLLTOEND 2629 | |
2477 | ||
2478 | //}}} | |
2479 | //---------------------------------------------------------------------- | |
2480 | ||
2481 | class ScintillaWX; // forward declare | |
2482 | class WordList; | |
2483 | struct SCNotification; | |
2484 | ||
2485 | #ifndef SWIG | |
2486 | extern WXDLLIMPEXP_DATA_STC(const char) wxSTCNameStr[]; | |
2487 | class WXDLLIMPEXP_FWD_STC wxStyledTextCtrl; | |
2488 | class WXDLLIMPEXP_FWD_STC wxStyledTextEvent; | |
2489 | #endif | |
2490 | ||
2491 | //---------------------------------------------------------------------- | |
2492 | ||
2493 | class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl, | |
2494 | #if wxUSE_TEXTCTRL | |
2495 | public wxTextCtrlIface | |
2496 | #else // !wxUSE_TEXTCTRL | |
2497 | public wxTextEntryBase | |
2498 | #endif // wxUSE_TEXTCTRL/!wxUSE_TEXTCTRL | |
2499 | { | |
2500 | public: | |
2501 | ||
2502 | #ifdef SWIG | |
2503 | %pythonAppend wxStyledTextCtrl "self._setOORInfo(self)" | |
2504 | %pythonAppend wxStyledTextCtrl() "" | |
2505 | ||
2506 | wxStyledTextCtrl(wxWindow *parent, wxWindowID id=wxID_ANY, | |
2507 | const wxPoint& pos = wxDefaultPosition, | |
2508 | const wxSize& size = wxDefaultSize, long style = 0, | |
2509 | const wxString& name = wxPySTCNameStr); | |
2510 | %RenameCtor(PreStyledTextCtrl, wxStyledTextCtrl()); | |
2511 | ||
2512 | #else | |
2513 | wxStyledTextCtrl(wxWindow *parent, wxWindowID id=wxID_ANY, | |
2514 | const wxPoint& pos = wxDefaultPosition, | |
2515 | const wxSize& size = wxDefaultSize, long style = 0, | |
2516 | const wxString& name = wxSTCNameStr); | |
2517 | wxStyledTextCtrl() { m_swx = NULL; } | |
2518 | ~wxStyledTextCtrl(); | |
2519 | ||
2520 | #endif | |
2521 | ||
2522 | bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, | |
2523 | const wxPoint& pos = wxDefaultPosition, | |
2524 | const wxSize& size = wxDefaultSize, long style = 0, | |
2525 | const wxString& name = wxSTCNameStr); | |
2526 | ||
2527 | ||
2528 | //---------------------------------------------------------------------- | |
2529 | // Generated method declaration section {{{ | |
2530 | ||
2531 | ||
2532 | // Add text to the document at current position. | |
2533 | void AddText(const wxString& text); | |
2534 | ||
2535 | // Add array of cells to document. | |
2536 | void AddStyledText(const wxMemoryBuffer& data); | |
2537 | ||
2538 | // Insert string at a position. | |
2539 | void InsertText(int pos, const wxString& text); | |
2540 | ||
2541 | // Delete all text in the document. | |
2542 | void ClearAll(); | |
2543 | ||
2544 | // Delete a range of text in the document. | |
2545 | void DeleteRange(int pos, int deleteLength); | |
2546 | ||
2547 | // Set all style bytes to 0, remove all folding information. | |
2548 | void ClearDocumentStyle(); | |
2549 | ||
2550 | // Returns the number of bytes in the document. | |
2551 | int GetLength() const; | |
2552 | ||
2553 | // Returns the character byte at the position. | |
2554 | int GetCharAt(int pos) const; | |
2555 | ||
2556 | // Returns the position of the caret. | |
2557 | int GetCurrentPos() const; | |
2558 | ||
2559 | // Returns the position of the opposite end of the selection to the caret. | |
2560 | int GetAnchor() const; | |
2561 | ||
2562 | // Returns the style byte at the position. | |
2563 | int GetStyleAt(int pos) const; | |
2564 | ||
2565 | // Redoes the next action on the undo history. | |
2566 | void Redo(); | |
2567 | ||
2568 | // Choose between collecting actions into the undo | |
2569 | // history and discarding them. | |
2570 | void SetUndoCollection(bool collectUndo); | |
2571 | ||
2572 | // Select all the text in the document. | |
2573 | void SelectAll(); | |
2574 | ||
2575 | // Remember the current position in the undo history as the position | |
2576 | // at which the document was saved. | |
2577 | void SetSavePoint(); | |
2578 | ||
2579 | // Retrieve a buffer of cells. | |
2580 | wxMemoryBuffer GetStyledText(int startPos, int endPos); | |
2581 | ||
2582 | // Are there any redoable actions in the undo history? | |
2583 | bool CanRedo() const; | |
2584 | ||
2585 | // Retrieve the line number at which a particular marker is located. | |
2586 | int MarkerLineFromHandle(int handle); | |
2587 | ||
2588 | // Delete a marker. | |
2589 | void MarkerDeleteHandle(int handle); | |
2590 | ||
2591 | // Is undo history being collected? | |
2592 | bool GetUndoCollection() const; | |
2593 | ||
2594 | // Are white space characters currently visible? | |
2595 | // Returns one of SCWS_* constants. | |
2596 | int GetViewWhiteSpace() const; | |
2597 | ||
2598 | // Make white space characters invisible, always visible or visible outside indentation. | |
2599 | void SetViewWhiteSpace(int viewWS); | |
2600 | ||
2601 | // Find the position from a point within the window. | |
2602 | int PositionFromPoint(wxPoint pt) const; | |
2603 | ||
2604 | // Find the position from a point within the window but return | |
2605 | // INVALID_POSITION if not close to text. | |
2606 | int PositionFromPointClose(int x, int y); | |
2607 | ||
2608 | // Set caret to start of a line and ensure it is visible. | |
2609 | void GotoLine(int line); | |
2610 | ||
2611 | // Set caret to a position and ensure it is visible. | |
2612 | void GotoPos(int pos); | |
2613 | ||
2614 | // Set the selection anchor to a position. The anchor is the opposite | |
2615 | // end of the selection from the caret. | |
2616 | void SetAnchor(int posAnchor); | |
2617 | ||
2618 | // Retrieve the text of the line containing the caret. | |
2619 | // Returns the index of the caret on the line. | |
2620 | #ifdef SWIG | |
2621 | wxString GetCurLine(int* OUTPUT); | |
2622 | #else | |
2623 | wxString GetCurLine(int* linePos=NULL); | |
2624 | #endif | |
2625 | ||
2626 | // Retrieve the position of the last correctly styled character. | |
2627 | int GetEndStyled() const; | |
2628 | ||
2629 | // Convert all line endings in the document to one mode. | |
2630 | void ConvertEOLs(int eolMode); | |
2631 | ||
2632 | // Retrieve the current end of line mode - one of CRLF, CR, or LF. | |
2633 | int GetEOLMode() const; | |
2634 | ||
2635 | // Set the current end of line mode. | |
2636 | void SetEOLMode(int eolMode); | |
2637 | ||
2638 | // Set the current styling position to pos and the styling mask to mask. | |
2639 | // The styling mask can be used to protect some bits in each styling byte from modification. | |
2640 | void StartStyling(int pos, int mask); | |
2641 | ||
2642 | // Change style from current styling position for length characters to a style | |
2643 | // and move the current styling position to after this newly styled segment. | |
2644 | void SetStyling(int length, int style); | |
2645 | ||
2646 | // Is drawing done first into a buffer or direct to the screen? | |
2647 | bool GetBufferedDraw() const; | |
2648 | ||
2649 | // If drawing is buffered then each line of text is drawn into a bitmap buffer | |
2650 | // before drawing it to the screen to avoid flicker. | |
2651 | void SetBufferedDraw(bool buffered); | |
2652 | ||
2653 | // Change the visible size of a tab to be a multiple of the width of a space character. | |
2654 | void SetTabWidth(int tabWidth); | |
2655 | ||
2656 | // Retrieve the visible size of a tab. | |
2657 | int GetTabWidth() const; | |
2658 | ||
2659 | // Set the code page used to interpret the bytes of the document as characters. | |
2660 | void SetCodePage(int codePage); | |
2661 | ||
2662 | // Set the symbol used for a particular marker number, | |
2663 | // and optionally the fore and background colours. | |
2664 | void MarkerDefine(int markerNumber, int markerSymbol, | |
2665 | const wxColour& foreground = wxNullColour, | |
2666 | const wxColour& background = wxNullColour); | |
2667 | ||
2668 | // Set the foreground colour used for a particular marker number. | |
2669 | void MarkerSetForeground(int markerNumber, const wxColour& fore); | |
2670 | ||
2671 | // Set the background colour used for a particular marker number. | |
2672 | void MarkerSetBackground(int markerNumber, const wxColour& back); | |
2673 | ||
2674 | // Set the background colour used for a particular marker number when its folding block is selected. | |
2675 | void MarkerSetBackgroundSelected(int markerNumber, const wxColour& back); | |
2676 | ||
2677 | // Enable/disable highlight for current folding bloc (smallest one that contains the caret) | |
2678 | void MarkerEnableHighlight(bool enabled); | |
2679 | ||
2680 | // Add a marker to a line, returning an ID which can be used to find or delete the marker. | |
2681 | int MarkerAdd(int line, int markerNumber); | |
2682 | ||
2683 | // Delete a marker from a line. | |
2684 | void MarkerDelete(int line, int markerNumber); | |
2685 | ||
2686 | // Delete all markers with a particular number from all lines. | |
2687 | void MarkerDeleteAll(int markerNumber); | |
2688 | ||
2689 | // Get a bit mask of all the markers set on a line. | |
2690 | int MarkerGet(int line); | |
2691 | ||
2692 | // Find the next line at or after lineStart that includes a marker in mask. | |
2693 | // Return -1 when no more lines. | |
2694 | int MarkerNext(int lineStart, int markerMask); | |
2695 | ||
2696 | // Find the previous line before lineStart that includes a marker in mask. | |
2697 | int MarkerPrevious(int lineStart, int markerMask); | |
2698 | ||
2699 | // Define a marker from a bitmap | |
2700 | void MarkerDefineBitmap(int markerNumber, const wxBitmap& bmp); | |
2701 | ||
2702 | // Add a set of markers to a line. | |
2703 | void MarkerAddSet(int line, int set); | |
2704 | ||
2705 | // Set the alpha used for a marker that is drawn in the text area, not the margin. | |
2706 | void MarkerSetAlpha(int markerNumber, int alpha); | |
2707 | ||
2708 | // Set a margin to be either numeric or symbolic. | |
2709 | void SetMarginType(int margin, int marginType); | |
2710 | ||
2711 | // Retrieve the type of a margin. | |
2712 | int GetMarginType(int margin) const; | |
2713 | ||
2714 | // Set the width of a margin to a width expressed in pixels. | |
2715 | void SetMarginWidth(int margin, int pixelWidth); | |
2716 | ||
2717 | // Retrieve the width of a margin in pixels. | |
2718 | int GetMarginWidth(int margin) const; | |
2719 | ||
2720 | // Set a mask that determines which markers are displayed in a margin. | |
2721 | void SetMarginMask(int margin, int mask); | |
2722 | ||
2723 | // Retrieve the marker mask of a margin. | |
2724 | int GetMarginMask(int margin) const; | |
2725 | ||
2726 | // Make a margin sensitive or insensitive to mouse clicks. | |
2727 | void SetMarginSensitive(int margin, bool sensitive); | |
2728 | ||
2729 | // Retrieve the mouse click sensitivity of a margin. | |
2730 | bool GetMarginSensitive(int margin) const; | |
2731 | ||
2732 | // Set the cursor shown when the mouse is inside a margin. | |
2733 | void SetMarginCursor(int margin, int cursor); | |
2734 | ||
2735 | // Retrieve the cursor shown in a margin. | |
2736 | int GetMarginCursor(int margin) const; | |
2737 | ||
2738 | // Clear all the styles and make equivalent to the global default style. | |
2739 | void StyleClearAll(); | |
2740 | ||
2741 | // Set the foreground colour of a style. | |
2742 | void StyleSetForeground(int style, const wxColour& fore); | |
2743 | ||
2744 | // Set the background colour of a style. | |
2745 | void StyleSetBackground(int style, const wxColour& back); | |
2746 | ||
2747 | // Set a style to be bold or not. | |
2748 | void StyleSetBold(int style, bool bold); | |
2749 | ||
2750 | // Set a style to be italic or not. | |
2751 | void StyleSetItalic(int style, bool italic); | |
2752 | ||
2753 | // Set the size of characters of a style. | |
2754 | void StyleSetSize(int style, int sizePoints); | |
2755 | ||
2756 | // Set the font of a style. | |
2757 | void StyleSetFaceName(int style, const wxString& fontName); | |
2758 | ||
2759 | // Set a style to have its end of line filled or not. | |
2760 | void StyleSetEOLFilled(int style, bool filled); | |
2761 | ||
2762 | // Reset the default style to its state at startup | |
2763 | void StyleResetDefault(); | |
2764 | ||
2765 | // Set a style to be underlined or not. | |
2766 | void StyleSetUnderline(int style, bool underline); | |
2767 | ||
2768 | // Get the foreground colour of a style. | |
2769 | wxColour StyleGetForeground(int style) const; | |
2770 | ||
2771 | // Get the background colour of a style. | |
2772 | wxColour StyleGetBackground(int style) const; | |
2773 | ||
2774 | // Get is a style bold or not. | |
2775 | bool StyleGetBold(int style) const; | |
2776 | ||
2777 | // Get is a style italic or not. | |
2778 | bool StyleGetItalic(int style) const; | |
2779 | ||
2780 | // Get the size of characters of a style. | |
2781 | int StyleGetSize(int style) const; | |
2782 | ||
2783 | // Get the font facename of a style | |
2784 | wxString StyleGetFaceName(int style); | |
2785 | ||
2786 | // Get is a style to have its end of line filled or not. | |
2787 | bool StyleGetEOLFilled(int style) const; | |
2788 | ||
2789 | // Get is a style underlined or not. | |
2790 | bool StyleGetUnderline(int style) const; | |
2791 | ||
2792 | // Get is a style mixed case, or to force upper or lower case. | |
2793 | int StyleGetCase(int style) const; | |
2794 | ||
2795 | // Get the character set of the font in a style. | |
2796 | int StyleGetCharacterSet(int style) const; | |
2797 | ||
2798 | // Get is a style visible or not. | |
2799 | bool StyleGetVisible(int style) const; | |
2800 | ||
2801 | // Get is a style changeable or not (read only). | |
2802 | // Experimental feature, currently buggy. | |
2803 | bool StyleGetChangeable(int style) const; | |
2804 | ||
2805 | // Get is a style a hotspot or not. | |
2806 | bool StyleGetHotSpot(int style) const; | |
2807 | ||
2808 | // Set a style to be mixed case, or to force upper or lower case. | |
2809 | void StyleSetCase(int style, int caseForce); | |
2810 | ||
2811 | // Set the size of characters of a style. Size is in points multiplied by 100. | |
2812 | void StyleSetSizeFractional(int style, int caseForce); | |
2813 | ||
2814 | // Get the size of characters of a style in points multiplied by 100 | |
2815 | int StyleGetSizeFractional(int style) const; | |
2816 | ||
2817 | // Set the weight of characters of a style. | |
2818 | void StyleSetWeight(int style, int weight); | |
2819 | ||
2820 | // Get the weight of characters of a style. | |
2821 | int StyleGetWeight(int style) const; | |
2822 | ||
2823 | // Set a style to be a hotspot or not. | |
2824 | void StyleSetHotSpot(int style, bool hotspot); | |
2825 | ||
2826 | // Set the foreground colour of the main and additional selections and whether to use this setting. | |
2827 | void SetSelForeground(bool useSetting, const wxColour& fore); | |
2828 | ||
2829 | // Set the background colour of the main and additional selections and whether to use this setting. | |
2830 | void SetSelBackground(bool useSetting, const wxColour& back); | |
2831 | ||
2832 | // Get the alpha of the selection. | |
2833 | int GetSelAlpha() const; | |
2834 | ||
2835 | // Set the alpha of the selection. | |
2836 | void SetSelAlpha(int alpha); | |
2837 | ||
2838 | // Is the selection end of line filled? | |
2839 | bool GetSelEOLFilled() const; | |
2840 | ||
2841 | // Set the selection to have its end of line filled or not. | |
2842 | void SetSelEOLFilled(bool filled); | |
2843 | ||
2844 | // Set the foreground colour of the caret. | |
2845 | void SetCaretForeground(const wxColour& fore); | |
2846 | ||
2847 | // When key+modifier combination km is pressed perform msg. | |
2848 | void CmdKeyAssign(int key, int modifiers, int cmd); | |
2849 | ||
2850 | // When key+modifier combination km is pressed do nothing. | |
2851 | void CmdKeyClear(int key, int modifiers); | |
2852 | ||
2853 | // Drop all key mappings. | |
2854 | void CmdKeyClearAll(); | |
2855 | ||
2856 | // Set the styles for a segment of the document. | |
2857 | void SetStyleBytes(int length, char* styleBytes); | |
2858 | ||
2859 | // Set a style to be visible or not. | |
2860 | void StyleSetVisible(int style, bool visible); | |
2861 | ||
2862 | // Get the time in milliseconds that the caret is on and off. | |
2863 | int GetCaretPeriod() const; | |
2864 | ||
2865 | // Get the time in milliseconds that the caret is on and off. 0 = steady on. | |
2866 | void SetCaretPeriod(int periodMilliseconds); | |
2867 | ||
2868 | // Set the set of characters making up words for when moving or selecting by word. | |
2869 | // First sets defaults like SetCharsDefault. | |
2870 | void SetWordChars(const wxString& characters); | |
2871 | ||
2872 | // Get the set of characters making up words for when moving or selecting by word. | |
2873 | wxString GetWordChars() const; | |
2874 | ||
2875 | // Start a sequence of actions that is undone and redone as a unit. | |
2876 | // May be nested. | |
2877 | void BeginUndoAction(); | |
2878 | ||
2879 | // End a sequence of actions that is undone and redone as a unit. | |
2880 | void EndUndoAction(); | |
2881 | ||
2882 | // Set an indicator to plain, squiggle or TT. | |
2883 | void IndicatorSetStyle(int indic, int style); | |
2884 | ||
2885 | // Retrieve the style of an indicator. | |
2886 | int IndicatorGetStyle(int indic) const; | |
2887 | ||
2888 | // Set the foreground colour of an indicator. | |
2889 | void IndicatorSetForeground(int indic, const wxColour& fore); | |
2890 | ||
2891 | // Retrieve the foreground colour of an indicator. | |
2892 | wxColour IndicatorGetForeground(int indic) const; | |
2893 | ||
2894 | // Set an indicator to draw under text or over(default). | |
2895 | void IndicatorSetUnder(int indic, bool under); | |
2896 | ||
2897 | // Retrieve whether indicator drawn under or over text. | |
2898 | bool IndicatorGetUnder(int indic) const; | |
2899 | ||
2900 | // Set the foreground colour of all whitespace and whether to use this setting. | |
2901 | void SetWhitespaceForeground(bool useSetting, const wxColour& fore); | |
2902 | ||
2903 | // Set the background colour of all whitespace and whether to use this setting. | |
2904 | void SetWhitespaceBackground(bool useSetting, const wxColour& back); | |
2905 | ||
2906 | // Set the size of the dots used to mark space characters. | |
2907 | void SetWhitespaceSize(int size); | |
2908 | ||
2909 | // Get the size of the dots used to mark space characters. | |
2910 | int GetWhitespaceSize() const; | |
2911 | ||
2912 | // Divide each styling byte into lexical class bits (default: 5) and indicator | |
2913 | // bits (default: 3). If a lexer requires more than 32 lexical states, then this | |
2914 | // is used to expand the possible states. | |
2915 | void SetStyleBits(int bits); | |
2916 | ||
2917 | // Retrieve number of bits in style bytes used to hold the lexical state. | |
2918 | int GetStyleBits() const; | |
2919 | ||
2920 | // Used to hold extra styling information for each line. | |
2921 | void SetLineState(int line, int state); | |
2922 | ||
2923 | // Retrieve the extra styling information for a line. | |
2924 | int GetLineState(int line) const; | |
2925 | ||
2926 | // Retrieve the last line number that has line state. | |
2927 | int GetMaxLineState() const; | |
2928 | ||
2929 | // Is the background of the line containing the caret in a different colour? | |
2930 | bool GetCaretLineVisible() const; | |
2931 | ||
2932 | // Display the background of the line containing the caret in a different colour. | |
2933 | void SetCaretLineVisible(bool show); | |
2934 | ||
2935 | // Get the colour of the background of the line containing the caret. | |
2936 | wxColour GetCaretLineBackground() const; | |
2937 | ||
2938 | // Set the colour of the background of the line containing the caret. | |
2939 | void SetCaretLineBackground(const wxColour& back); | |
2940 | ||
2941 | // Set a style to be changeable or not (read only). | |
2942 | // Experimental feature, currently buggy. | |
2943 | void StyleSetChangeable(int style, bool changeable); | |
2944 | ||
2945 | // Display a auto-completion list. | |
2946 | // The lenEntered parameter indicates how many characters before | |
2947 | // the caret should be used to provide context. | |
2948 | void AutoCompShow(int lenEntered, const wxString& itemList); | |
2949 | ||
2950 | // Remove the auto-completion list from the screen. | |
2951 | void AutoCompCancel(); | |
2952 | ||
2953 | // Is there an auto-completion list visible? | |
2954 | bool AutoCompActive(); | |
2955 | ||
2956 | // Retrieve the position of the caret when the auto-completion list was displayed. | |
2957 | int AutoCompPosStart(); | |
2958 | ||
2959 | // User has selected an item so remove the list and insert the selection. | |
2960 | void AutoCompComplete(); | |
2961 | ||
2962 | // Define a set of character that when typed cancel the auto-completion list. | |
2963 | void AutoCompStops(const wxString& characterSet); | |
2964 | ||
2965 | // Change the separator character in the string setting up an auto-completion list. | |
2966 | // Default is space but can be changed if items contain space. | |
2967 | void AutoCompSetSeparator(int separatorCharacter); | |
2968 | ||
2969 | // Retrieve the auto-completion list separator character. | |
2970 | int AutoCompGetSeparator() const; | |
2971 | ||
2972 | // Select the item in the auto-completion list that starts with a string. | |
2973 | void AutoCompSelect(const wxString& text); | |
2974 | ||
2975 | // Should the auto-completion list be cancelled if the user backspaces to a | |
2976 | // position before where the box was created. | |
2977 | void AutoCompSetCancelAtStart(bool cancel); | |
2978 | ||
2979 | // Retrieve whether auto-completion cancelled by backspacing before start. | |
2980 | bool AutoCompGetCancelAtStart() const; | |
2981 | ||
2982 | // Define a set of characters that when typed will cause the autocompletion to | |
2983 | // choose the selected item. | |
2984 | void AutoCompSetFillUps(const wxString& characterSet); | |
2985 | ||
2986 | // Should a single item auto-completion list automatically choose the item. | |
2987 | void AutoCompSetChooseSingle(bool chooseSingle); | |
2988 | ||
2989 | // Retrieve whether a single item auto-completion list automatically choose the item. | |
2990 | bool AutoCompGetChooseSingle() const; | |
2991 | ||
2992 | // Set whether case is significant when performing auto-completion searches. | |
2993 | void AutoCompSetIgnoreCase(bool ignoreCase); | |
2994 | ||
2995 | // Retrieve state of ignore case flag. | |
2996 | bool AutoCompGetIgnoreCase() const; | |
2997 | ||
2998 | // Display a list of strings and send notification when user chooses one. | |
2999 | void UserListShow(int listType, const wxString& itemList); | |
3000 | ||
3001 | // Set whether or not autocompletion is hidden automatically when nothing matches. | |
3002 | void AutoCompSetAutoHide(bool autoHide); | |
3003 | ||
3004 | // Retrieve whether or not autocompletion is hidden automatically when nothing matches. | |
3005 | bool AutoCompGetAutoHide() const; | |
3006 | ||
3007 | // Set whether or not autocompletion deletes any word characters | |
3008 | // after the inserted text upon completion. | |
3009 | void AutoCompSetDropRestOfWord(bool dropRestOfWord); | |
3010 | ||
3011 | // Retrieve whether or not autocompletion deletes any word characters | |
3012 | // after the inserted text upon completion. | |
3013 | bool AutoCompGetDropRestOfWord() const; | |
3014 | ||
3015 | // Register an image for use in autocompletion lists. | |
3016 | void RegisterImage(int type, const wxBitmap& bmp); | |
3017 | ||
3018 | // Clear all the registered images. | |
3019 | void ClearRegisteredImages(); | |
3020 | ||
3021 | // Retrieve the auto-completion list type-separator character. | |
3022 | int AutoCompGetTypeSeparator() const; | |
3023 | ||
3024 | // Change the type-separator character in the string setting up an auto-completion list. | |
3025 | // Default is '?' but can be changed if items contain '?'. | |
3026 | void AutoCompSetTypeSeparator(int separatorCharacter); | |
3027 | ||
3028 | // Set the maximum width, in characters, of auto-completion and user lists. | |
3029 | // Set to 0 to autosize to fit longest item, which is the default. | |
3030 | void AutoCompSetMaxWidth(int characterCount); | |
3031 | ||
3032 | // Get the maximum width, in characters, of auto-completion and user lists. | |
3033 | int AutoCompGetMaxWidth() const; | |
3034 | ||
3035 | // Set the maximum height, in rows, of auto-completion and user lists. | |
3036 | // The default is 5 rows. | |
3037 | void AutoCompSetMaxHeight(int rowCount); | |
3038 | ||
3039 | // Set the maximum height, in rows, of auto-completion and user lists. | |
3040 | int AutoCompGetMaxHeight() const; | |
3041 | ||
3042 | // Set the number of spaces used for one level of indentation. | |
3043 | void SetIndent(int indentSize); | |
3044 | ||
3045 | // Retrieve indentation size. | |
3046 | int GetIndent() const; | |
3047 | ||
3048 | // Indentation will only use space characters if useTabs is false, otherwise | |
3049 | // it will use a combination of tabs and spaces. | |
3050 | void SetUseTabs(bool useTabs); | |
3051 | ||
3052 | // Retrieve whether tabs will be used in indentation. | |
3053 | bool GetUseTabs() const; | |
3054 | ||
3055 | // Change the indentation of a line to a number of columns. | |
3056 | void SetLineIndentation(int line, int indentSize); | |
3057 | ||
3058 | // Retrieve the number of columns that a line is indented. | |
3059 | int GetLineIndentation(int line) const; | |
3060 | ||
3061 | // Retrieve the position before the first non indentation character on a line. | |
3062 | int GetLineIndentPosition(int line) const; | |
3063 | ||
3064 | // Retrieve the column number of a position, taking tab width into account. | |
3065 | int GetColumn(int pos) const; | |
3066 | ||
3067 | // Count characters between two positions. | |
3068 | int CountCharacters(int startPos, int endPos); | |
3069 | ||
3070 | // Show or hide the horizontal scroll bar. | |
3071 | void SetUseHorizontalScrollBar(bool show); | |
3072 | ||
3073 | // Is the horizontal scroll bar visible? | |
3074 | bool GetUseHorizontalScrollBar() const; | |
3075 | ||
3076 | // Show or hide indentation guides. | |
3077 | void SetIndentationGuides(int indentView); | |
3078 | ||
3079 | // Are the indentation guides visible? | |
3080 | int GetIndentationGuides() const; | |
3081 | ||
3082 | // Set the highlighted indentation guide column. | |
3083 | // 0 = no highlighted guide. | |
3084 | void SetHighlightGuide(int column); | |
3085 | ||
3086 | // Get the highlighted indentation guide column. | |
3087 | int GetHighlightGuide() const; | |
3088 | ||
3089 | // Get the position after the last visible characters on a line. | |
3090 | int GetLineEndPosition(int line) const; | |
3091 | ||
3092 | // Get the code page used to interpret the bytes of the document as characters. | |
3093 | int GetCodePage() const; | |
3094 | ||
3095 | // Get the foreground colour of the caret. | |
3096 | wxColour GetCaretForeground() const; | |
3097 | ||
3098 | // In read-only mode? | |
3099 | bool GetReadOnly() const; | |
3100 | ||
3101 | // Sets the position of the caret. | |
3102 | void SetCurrentPos(int pos); | |
3103 | ||
3104 | // Sets the position that starts the selection - this becomes the anchor. | |
3105 | void SetSelectionStart(int pos); | |
3106 | ||
3107 | // Returns the position at the start of the selection. | |
3108 | int GetSelectionStart() const; | |
3109 | ||
3110 | // Sets the position that ends the selection - this becomes the currentPosition. | |
3111 | void SetSelectionEnd(int pos); | |
3112 | ||
3113 | // Returns the position at the end of the selection. | |
3114 | int GetSelectionEnd() const; | |
3115 | ||
3116 | // Set caret to a position, while removing any existing selection. | |
3117 | void SetEmptySelection(int pos); | |
3118 | ||
3119 | // Sets the print magnification added to the point size of each style for printing. | |
3120 | void SetPrintMagnification(int magnification); | |
3121 | ||
3122 | // Returns the print magnification. | |
3123 | int GetPrintMagnification() const; | |
3124 | ||
3125 | // Modify colours when printing for clearer printed text. | |
3126 | void SetPrintColourMode(int mode); | |
3127 | ||
3128 | // Returns the print colour mode. | |
3129 | int GetPrintColourMode() const; | |
3130 | ||
3131 | // Find some text in the document. | |
3132 | int FindText(int minPos, int maxPos, const wxString& text, int flags=0); | |
3133 | ||
3134 | // On Windows, will draw the document into a display context such as a printer. | |
3135 | int FormatRange(bool doDraw, | |
3136 | int startPos, | |
3137 | int endPos, | |
3138 | wxDC* draw, | |
3139 | wxDC* target, | |
3140 | wxRect renderRect, | |
3141 | wxRect pageRect); | |
3142 | ||
3143 | // Retrieve the display line at the top of the display. | |
3144 | int GetFirstVisibleLine() const; | |
3145 | ||
3146 | // Retrieve the contents of a line. | |
3147 | wxString GetLine(int line) const; | |
3148 | ||
3149 | // Returns the number of lines in the document. There is always at least one. | |
3150 | int GetLineCount() const; | |
3151 | ||
3152 | // Sets the size in pixels of the left margin. | |
3153 | void SetMarginLeft(int pixelWidth); | |
3154 | ||
3155 | // Returns the size in pixels of the left margin. | |
3156 | int GetMarginLeft() const; | |
3157 | ||
3158 | // Sets the size in pixels of the right margin. | |
3159 | void SetMarginRight(int pixelWidth); | |
3160 | ||
3161 | // Returns the size in pixels of the right margin. | |
3162 | int GetMarginRight() const; | |
3163 | ||
3164 | // Is the document different from when it was last saved? | |
3165 | bool GetModify() const; | |
3166 | ||
3167 | // Retrieve the selected text. | |
3168 | wxString GetSelectedText(); | |
3169 | ||
3170 | // Retrieve a range of text. | |
3171 | wxString GetTextRange(int startPos, int endPos); | |
3172 | ||
3173 | // Draw the selection in normal style or with selection highlighted. | |
3174 | void HideSelection(bool normal); | |
3175 | ||
3176 | // Retrieve the line containing a position. | |
3177 | int LineFromPosition(int pos) const; | |
3178 | ||
3179 | // Retrieve the position at the start of a line. | |
3180 | int PositionFromLine(int line) const; | |
3181 | ||
3182 | // Scroll horizontally and vertically. | |
3183 | void LineScroll(int columns, int lines); | |
3184 | ||
3185 | // Ensure the caret is visible. | |
3186 | void EnsureCaretVisible(); | |
3187 | ||
3188 | // Replace the selected text with the argument text. | |
3189 | void ReplaceSelection(const wxString& text); | |
3190 | ||
3191 | // Set to read only or read write. | |
3192 | void SetReadOnly(bool readOnly); | |
3193 | ||
3194 | // Will a paste succeed? | |
3195 | bool CanPaste() const; | |
3196 | ||
3197 | // Are there any undoable actions in the undo history? | |
3198 | bool CanUndo() const; | |
3199 | ||
3200 | // Delete the undo history. | |
3201 | void EmptyUndoBuffer(); | |
3202 | ||
3203 | // Undo one action in the undo history. | |
3204 | void Undo(); | |
3205 | ||
3206 | // Cut the selection to the clipboard. | |
3207 | void Cut(); | |
3208 | ||
3209 | // Copy the selection to the clipboard. | |
3210 | void Copy(); | |
3211 | ||
3212 | // Paste the contents of the clipboard into the document replacing the selection. | |
3213 | void Paste(); | |
3214 | ||
3215 | // Clear the selection. | |
3216 | void Clear(); | |
3217 | ||
3218 | // Replace the contents of the document with the argument text. | |
3219 | void SetText(const wxString& text); | |
3220 | ||
3221 | // Retrieve all the text in the document. | |
3222 | wxString GetText() const; | |
3223 | ||
3224 | // Retrieve the number of characters in the document. | |
3225 | int GetTextLength() const; | |
3226 | ||
3227 | // Set to overtype (true) or insert mode. | |
3228 | void SetOvertype(bool overtype); | |
3229 | ||
3230 | // Returns true if overtype mode is active otherwise false is returned. | |
3231 | bool GetOvertype() const; | |
3232 | ||
3233 | // Set the width of the insert mode caret. | |
3234 | void SetCaretWidth(int pixelWidth); | |
3235 | ||
3236 | // Returns the width of the insert mode caret. | |
3237 | int GetCaretWidth() const; | |
3238 | ||
3239 | // Sets the position that starts the target which is used for updating the | |
3240 | // document without affecting the scroll position. | |
3241 | void SetTargetStart(int pos); | |
3242 | ||
3243 | // Get the position that starts the target. | |
3244 | int GetTargetStart() const; | |
3245 | ||
3246 | // Sets the position that ends the target which is used for updating the | |
3247 | // document without affecting the scroll position. | |
3248 | void SetTargetEnd(int pos); | |
3249 | ||
3250 | // Get the position that ends the target. | |
3251 | int GetTargetEnd() const; | |
3252 | ||
3253 | // Replace the target text with the argument text. | |
3254 | // Text is counted so it can contain NULs. | |
3255 | // Returns the length of the replacement text. | |
3256 | int ReplaceTarget(const wxString& text); | |
3257 | ||
3258 | // Replace the target text with the argument text after \d processing. | |
3259 | // Text is counted so it can contain NULs. | |
3260 | // Looks for \d where d is between 1 and 9 and replaces these with the strings | |
3261 | // matched in the last search operation which were surrounded by \( and \). | |
3262 | // Returns the length of the replacement text including any change | |
3263 | // caused by processing the \d patterns. | |
3264 | int ReplaceTargetRE(const wxString& text); | |
3265 | ||
3266 | // Search for a counted string in the target and set the target to the found | |
3267 | // range. Text is counted so it can contain NULs. | |
3268 | // Returns length of range or -1 for failure in which case target is not moved. | |
3269 | int SearchInTarget(const wxString& text); | |
3270 | ||
3271 | // Set the search flags used by SearchInTarget. | |
3272 | void SetSearchFlags(int flags); | |
3273 | ||
3274 | // Get the search flags used by SearchInTarget. | |
3275 | int GetSearchFlags() const; | |
3276 | ||
3277 | // Show a call tip containing a definition near position pos. | |
3278 | void CallTipShow(int pos, const wxString& definition); | |
3279 | ||
3280 | // Remove the call tip from the screen. | |
3281 | void CallTipCancel(); | |
3282 | ||
3283 | // Is there an active call tip? | |
3284 | bool CallTipActive(); | |
3285 | ||
3286 | // Retrieve the position where the caret was before displaying the call tip. | |
3287 | int CallTipPosAtStart(); | |
3288 | ||
3289 | // Highlight a segment of the definition. | |
3290 | void CallTipSetHighlight(int start, int end); | |
3291 | ||
3292 | // Set the background colour for the call tip. | |
3293 | void CallTipSetBackground(const wxColour& back); | |
3294 | ||
3295 | // Set the foreground colour for the call tip. | |
3296 | void CallTipSetForeground(const wxColour& fore); | |
3297 | ||
3298 | // Set the foreground colour for the highlighted part of the call tip. | |
3299 | void CallTipSetForegroundHighlight(const wxColour& fore); | |
3300 | ||
3301 | // Enable use of STYLE_CALLTIP and set call tip tab size in pixels. | |
3302 | void CallTipUseStyle(int tabSize); | |
3303 | ||
3304 | // Set position of calltip, above or below text. | |
3305 | void CallTipSetPosition(bool above); | |
3306 | ||
3307 | // Find the display line of a document line taking hidden lines into account. | |
3308 | int VisibleFromDocLine(int line); | |
3309 | ||
3310 | // Find the document line of a display line taking hidden lines into account. | |
3311 | int DocLineFromVisible(int lineDisplay); | |
3312 | ||
3313 | // The number of display lines needed to wrap a document line | |
3314 | int WrapCount(int line); | |
3315 | ||
3316 | // Set the fold level of a line. | |
3317 | // This encodes an integer level along with flags indicating whether the | |
3318 | // line is a header and whether it is effectively white space. | |
3319 | void SetFoldLevel(int line, int level); | |
3320 | ||
3321 | // Retrieve the fold level of a line. | |
3322 | int GetFoldLevel(int line) const; | |
3323 | ||
3324 | // Find the last child line of a header line. | |
3325 | int GetLastChild(int line, int level) const; | |
3326 | ||
3327 | // Find the parent line of a child line. | |
3328 | int GetFoldParent(int line) const; | |
3329 | ||
3330 | // Make a range of lines visible. | |
3331 | void ShowLines(int lineStart, int lineEnd); | |
3332 | ||
3333 | // Make a range of lines invisible. | |
3334 | void HideLines(int lineStart, int lineEnd); | |
3335 | ||
3336 | // Is a line visible? | |
3337 | bool GetLineVisible(int line) const; | |
3338 | ||
3339 | // Are all lines visible? | |
3340 | bool GetAllLinesVisible() const; | |
3341 | ||
3342 | // Show the children of a header line. | |
3343 | void SetFoldExpanded(int line, bool expanded); | |
3344 | ||
3345 | // Is a header line expanded? | |
3346 | bool GetFoldExpanded(int line) const; | |
3347 | ||
3348 | // Switch a header line between expanded and contracted. | |
3349 | void ToggleFold(int line); | |
3350 | ||
3351 | // Ensure a particular line is visible by expanding any header line hiding it. | |
3352 | void EnsureVisible(int line); | |
3353 | ||
3354 | // Set some style options for folding. | |
3355 | void SetFoldFlags(int flags); | |
3356 | ||
3357 | // Ensure a particular line is visible by expanding any header line hiding it. | |
3358 | // Use the currently set visibility policy to determine which range to display. | |
3359 | void EnsureVisibleEnforcePolicy(int line); | |
3360 | ||
3361 | // Sets whether a tab pressed when caret is within indentation indents. | |
3362 | void SetTabIndents(bool tabIndents); | |
3363 | ||
3364 | // Does a tab pressed when caret is within indentation indent? | |
3365 | bool GetTabIndents() const; | |
3366 | ||
3367 | // Sets whether a backspace pressed when caret is within indentation unindents. | |
3368 | void SetBackSpaceUnIndents(bool bsUnIndents); | |
3369 | ||
3370 | // Does a backspace pressed when caret is within indentation unindent? | |
3371 | bool GetBackSpaceUnIndents() const; | |
3372 | ||
3373 | // Sets the time the mouse must sit still to generate a mouse dwell event. | |
3374 | void SetMouseDwellTime(int periodMilliseconds); | |
3375 | ||
3376 | // Retrieve the time the mouse must sit still to generate a mouse dwell event. | |
3377 | int GetMouseDwellTime() const; | |
3378 | ||
3379 | // Get position of start of word. | |
3380 | int WordStartPosition(int pos, bool onlyWordCharacters); | |
3381 | ||
3382 | // Get position of end of word. | |
3383 | int WordEndPosition(int pos, bool onlyWordCharacters); | |
3384 | ||
3385 | // Sets whether text is word wrapped. | |
3386 | void SetWrapMode(int mode); | |
3387 | ||
3388 | // Retrieve whether text is word wrapped. | |
3389 | int GetWrapMode() const; | |
3390 | ||
3391 | // Set the display mode of visual flags for wrapped lines. | |
3392 | void SetWrapVisualFlags(int wrapVisualFlags); | |
3393 | ||
3394 | // Retrive the display mode of visual flags for wrapped lines. | |
3395 | int GetWrapVisualFlags() const; | |
3396 | ||
3397 | // Set the location of visual flags for wrapped lines. | |
3398 | void SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation); | |
3399 | ||
3400 | // Retrive the location of visual flags for wrapped lines. | |
3401 | int GetWrapVisualFlagsLocation() const; | |
3402 | ||
3403 | // Set the start indent for wrapped lines. | |
3404 | void SetWrapStartIndent(int indent); | |
3405 | ||
3406 | // Retrive the start indent for wrapped lines. | |
3407 | int GetWrapStartIndent() const; | |
3408 | ||
3409 | // Sets how wrapped sublines are placed. Default is fixed. | |
3410 | void SetWrapIndentMode(int mode); | |
3411 | ||
3412 | // Retrieve how wrapped sublines are placed. Default is fixed. | |
3413 | int GetWrapIndentMode() const; | |
3414 | ||
3415 | // Sets the degree of caching of layout information. | |
3416 | void SetLayoutCache(int mode); | |
3417 | ||
3418 | // Retrieve the degree of caching of layout information. | |
3419 | int GetLayoutCache() const; | |
3420 | ||
3421 | // Sets the document width assumed for scrolling. | |
3422 | void SetScrollWidth(int pixelWidth); | |
3423 | ||
3424 | // Retrieve the document width assumed for scrolling. | |
3425 | int GetScrollWidth() const; | |
3426 | ||
3427 | // Sets whether the maximum width line displayed is used to set scroll width. | |
3428 | void SetScrollWidthTracking(bool tracking); | |
3429 | ||
3430 | // Retrieve whether the scroll width tracks wide lines. | |
3431 | bool GetScrollWidthTracking() const; | |
3432 | ||
3433 | // Measure the pixel width of some text in a particular style. | |
3434 | // NUL terminated text argument. | |
3435 | // Does not handle tab or control characters. | |
3436 | int TextWidth(int style, const wxString& text); | |
3437 | ||
3438 | // Sets the scroll range so that maximum scroll position has | |
3439 | // the last line at the bottom of the view (default). | |
3440 | // Setting this to false allows scrolling one page below the last line. | |
3441 | void SetEndAtLastLine(bool endAtLastLine); | |
3442 | ||
3443 | // Retrieve whether the maximum scroll position has the last | |
3444 | // line at the bottom of the view. | |
3445 | bool GetEndAtLastLine() const; | |
3446 | ||
3447 | // Retrieve the height of a particular line of text in pixels. | |
3448 | int TextHeight(int line); | |
3449 | ||
3450 | // Show or hide the vertical scroll bar. | |
3451 | void SetUseVerticalScrollBar(bool show); | |
3452 | ||
3453 | // Is the vertical scroll bar visible? | |
3454 | bool GetUseVerticalScrollBar() const; | |
3455 | ||
3456 | // Append a string to the end of the document without changing the selection. | |
3457 | void AppendText(const wxString& text); | |
3458 | ||
3459 | // Is drawing done in two phases with backgrounds drawn before foregrounds? | |
3460 | bool GetTwoPhaseDraw() const; | |
3461 | ||
3462 | // In twoPhaseDraw mode, drawing is performed in two phases, first the background | |
3463 | // and then the foreground. This avoids chopping off characters that overlap the next run. | |
3464 | void SetTwoPhaseDraw(bool twoPhase); | |
3465 | ||
3466 | // Scroll so that a display line is at the top of the display. | |
3467 | void SetFirstVisibleLine(int lineDisplay); | |
3468 | ||
3469 | // Change the effect of pasting when there are multiple selections. | |
3470 | void SetMultiPaste(int multiPaste); | |
3471 | ||
3472 | // Retrieve the effect of pasting when there are multiple selections.. | |
3473 | int GetMultiPaste() const; | |
3474 | ||
3475 | // Retrieve the value of a tag from a regular expression search. | |
3476 | wxString GetTag(int tagNumber) const; | |
3477 | ||
3478 | // Make the target range start and end be the same as the selection range start and end. | |
3479 | void TargetFromSelection(); | |
3480 | ||
3481 | // Join the lines in the target. | |
3482 | void LinesJoin(); | |
3483 | ||
3484 | // Split the lines in the target into lines that are less wide than pixelWidth | |
3485 | // where possible. | |
3486 | void LinesSplit(int pixelWidth); | |
3487 | ||
3488 | // Set the colours used as a chequerboard pattern in the fold margin | |
3489 | void SetFoldMarginColour(bool useSetting, const wxColour& back); | |
3490 | void SetFoldMarginHiColour(bool useSetting, const wxColour& fore); | |
3491 | ||
3492 | // Move caret down one line. | |
3493 | void LineDown(); | |
3494 | ||
3495 | // Move caret down one line extending selection to new caret position. | |
3496 | void LineDownExtend(); | |
3497 | ||
3498 | // Move caret up one line. | |
3499 | void LineUp(); | |
3500 | ||
3501 | // Move caret up one line extending selection to new caret position. | |
3502 | void LineUpExtend(); | |
3503 | ||
3504 | // Move caret left one character. | |
3505 | void CharLeft(); | |
3506 | ||
3507 | // Move caret left one character extending selection to new caret position. | |
3508 | void CharLeftExtend(); | |
3509 | ||
3510 | // Move caret right one character. | |
3511 | void CharRight(); | |
3512 | ||
3513 | // Move caret right one character extending selection to new caret position. | |
3514 | void CharRightExtend(); | |
3515 | ||
3516 | // Move caret left one word. | |
3517 | void WordLeft(); | |
3518 | ||
3519 | // Move caret left one word extending selection to new caret position. | |
3520 | void WordLeftExtend(); | |
3521 | ||
3522 | // Move caret right one word. | |
3523 | void WordRight(); | |
3524 | ||
3525 | // Move caret right one word extending selection to new caret position. | |
3526 | void WordRightExtend(); | |
3527 | ||
3528 | // Move caret to first position on line. | |
3529 | void Home(); | |
3530 | ||
3531 | // Move caret to first position on line extending selection to new caret position. | |
3532 | void HomeExtend(); | |
3533 | ||
3534 | // Move caret to last position on line. | |
3535 | void LineEnd(); | |
3536 | ||
3537 | // Move caret to last position on line extending selection to new caret position. | |
3538 | void LineEndExtend(); | |
3539 | ||
3540 | // Move caret to first position in document. | |
3541 | void DocumentStart(); | |
3542 | ||
3543 | // Move caret to first position in document extending selection to new caret position. | |
3544 | void DocumentStartExtend(); | |
3545 | ||
3546 | // Move caret to last position in document. | |
3547 | void DocumentEnd(); | |
3548 | ||
3549 | // Move caret to last position in document extending selection to new caret position. | |
3550 | void DocumentEndExtend(); | |
3551 | ||
3552 | // Move caret one page up. | |
3553 | void PageUp(); | |
3554 | ||
3555 | // Move caret one page up extending selection to new caret position. | |
3556 | void PageUpExtend(); | |
3557 | ||
3558 | // Move caret one page down. | |
3559 | void PageDown(); | |
3560 | ||
3561 | // Move caret one page down extending selection to new caret position. | |
3562 | void PageDownExtend(); | |
3563 | ||
3564 | // Switch from insert to overtype mode or the reverse. | |
3565 | void EditToggleOvertype(); | |
3566 | ||
3567 | // Cancel any modes such as call tip or auto-completion list display. | |
3568 | void Cancel(); | |
3569 | ||
3570 | // Delete the selection or if no selection, the character before the caret. | |
3571 | void DeleteBack(); | |
3572 | ||
3573 | // If selection is empty or all on one line replace the selection with a tab character. | |
3574 | // If more than one line selected, indent the lines. | |
3575 | void Tab(); | |
3576 | ||
3577 | // Dedent the selected lines. | |
3578 | void BackTab(); | |
3579 | ||
3580 | // Insert a new line, may use a CRLF, CR or LF depending on EOL mode. | |
3581 | void NewLine(); | |
3582 | ||
3583 | // Insert a Form Feed character. | |
3584 | void FormFeed(); | |
3585 | ||
3586 | // Move caret to before first visible character on line. | |
3587 | // If already there move to first character on line. | |
3588 | void VCHome(); | |
3589 | ||
3590 | // Like VCHome but extending selection to new caret position. | |
3591 | void VCHomeExtend(); | |
3592 | ||
3593 | // Magnify the displayed text by increasing the sizes by 1 point. | |
3594 | void ZoomIn(); | |
3595 | ||
3596 | // Make the displayed text smaller by decreasing the sizes by 1 point. | |
3597 | void ZoomOut(); | |
3598 | ||
3599 | // Delete the word to the left of the caret. | |
3600 | void DelWordLeft(); | |
3601 | ||
3602 | // Delete the word to the right of the caret. | |
3603 | void DelWordRight(); | |
3604 | ||
3605 | // Delete the word to the right of the caret, but not the trailing non-word characters. | |
3606 | void DelWordRightEnd(); | |
3607 | ||
3608 | // Cut the line containing the caret. | |
3609 | void LineCut(); | |
3610 | ||
3611 | // Delete the line containing the caret. | |
3612 | void LineDelete(); | |
3613 | ||
3614 | // Switch the current line with the previous. | |
3615 | void LineTranspose(); | |
3616 | ||
3617 | // Duplicate the current line. | |
3618 | void LineDuplicate(); | |
3619 | ||
3620 | // Transform the selection to lower case. | |
3621 | void LowerCase(); | |
3622 | ||
3623 | // Transform the selection to upper case. | |
3624 | void UpperCase(); | |
3625 | ||
3626 | // Scroll the document down, keeping the caret visible. | |
3627 | void LineScrollDown(); | |
3628 | ||
3629 | // Scroll the document up, keeping the caret visible. | |
3630 | void LineScrollUp(); | |
3631 | ||
3632 | // Delete the selection or if no selection, the character before the caret. | |
3633 | // Will not delete the character before at the start of a line. | |
3634 | void DeleteBackNotLine(); | |
3635 | ||
3636 | // Move caret to first position on display line. | |
3637 | void HomeDisplay(); | |
3638 | ||
3639 | // Move caret to first position on display line extending selection to | |
3640 | // new caret position. | |
3641 | void HomeDisplayExtend(); | |
3642 | ||
3643 | // Move caret to last position on display line. | |
3644 | void LineEndDisplay(); | |
3645 | ||
3646 | // Move caret to last position on display line extending selection to new | |
3647 | // caret position. | |
3648 | void LineEndDisplayExtend(); | |
3649 | ||
3650 | // These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? | |
3651 | // except they behave differently when word-wrap is enabled: | |
3652 | // They go first to the start / end of the display line, like (Home|LineEnd)Display | |
3653 | // The difference is that, the cursor is already at the point, it goes on to the start | |
3654 | // or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. | |
3655 | void HomeWrap(); | |
3656 | void HomeWrapExtend(); | |
3657 | void LineEndWrap(); | |
3658 | void LineEndWrapExtend(); | |
3659 | void VCHomeWrap(); | |
3660 | void VCHomeWrapExtend(); | |
3661 | ||
3662 | // Copy the line containing the caret. | |
3663 | void LineCopy(); | |
3664 | ||
3665 | // Move the caret inside current view if it's not there already. | |
3666 | void MoveCaretInsideView(); | |
3667 | ||
3668 | // How many characters are on a line, including end of line characters? | |
3669 | int LineLength(int line) const; | |
3670 | ||
3671 | // Highlight the characters at two positions. | |
3672 | void BraceHighlight(int pos1, int pos2); | |
3673 | ||
3674 | // Use specified indicator to highlight matching braces instead of changing their style. | |
3675 | void BraceHighlightIndicator(bool useBraceHighlightIndicator, int indicator); | |
3676 | ||
3677 | // Highlight the character at a position indicating there is no matching brace. | |
3678 | void BraceBadLight(int pos); | |
3679 | ||
3680 | // Use specified indicator to highlight non matching brace instead of changing its style. | |
3681 | void BraceBadLightIndicator(bool useBraceBadLightIndicator, int indicator); | |
3682 | ||
3683 | // Find the position of a matching brace or INVALID_POSITION if no match. | |
3684 | int BraceMatch(int pos); | |
3685 | ||
3686 | // Are the end of line characters visible? | |
3687 | bool GetViewEOL() const; | |
3688 | ||
3689 | // Make the end of line characters visible or invisible. | |
3690 | void SetViewEOL(bool visible); | |
3691 | ||
3692 | // Retrieve a pointer to the document object. | |
3693 | void* GetDocPointer(); | |
3694 | ||
3695 | // Change the document object used. | |
3696 | void SetDocPointer(void* docPointer); | |
3697 | ||
3698 | // Set which document modification events are sent to the container. | |
3699 | void SetModEventMask(int mask); | |
3700 | ||
3701 | // Retrieve the column number which text should be kept within. | |
3702 | int GetEdgeColumn() const; | |
3703 | ||
3704 | // Set the column number of the edge. | |
3705 | // If text goes past the edge then it is highlighted. | |
3706 | void SetEdgeColumn(int column); | |
3707 | ||
3708 | // Retrieve the edge highlight mode. | |
3709 | int GetEdgeMode() const; | |
3710 | ||
3711 | // The edge may be displayed by a line (EDGE_LINE) or by highlighting text that | |
3712 | // goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE). | |
3713 | void SetEdgeMode(int mode); | |
3714 | ||
3715 | // Retrieve the colour used in edge indication. | |
3716 | wxColour GetEdgeColour() const; | |
3717 | ||
3718 | // Change the colour used in edge indication. | |
3719 | void SetEdgeColour(const wxColour& edgeColour); | |
3720 | ||
3721 | // Sets the current caret position to be the search anchor. | |
3722 | void SearchAnchor(); | |
3723 | ||
3724 | // Find some text starting at the search anchor. | |
3725 | // Does not ensure the selection is visible. | |
3726 | int SearchNext(int flags, const wxString& text); | |
3727 | ||
3728 | // Find some text starting at the search anchor and moving backwards. | |
3729 | // Does not ensure the selection is visible. | |
3730 | int SearchPrev(int flags, const wxString& text); | |
3731 | ||
3732 | // Retrieves the number of lines completely visible. | |
3733 | int LinesOnScreen() const; | |
3734 | ||
3735 | // Set whether a pop up menu is displayed automatically when the user presses | |
3736 | // the wrong mouse button. | |
3737 | void UsePopUp(bool allowPopUp); | |
3738 | ||
3739 | // Is the selection rectangular? The alternative is the more common stream selection. | |
3740 | bool SelectionIsRectangle() const; | |
3741 | ||
3742 | // Set the zoom level. This number of points is added to the size of all fonts. | |
3743 | // It may be positive to magnify or negative to reduce. | |
3744 | void SetZoom(int zoom); | |
3745 | ||
3746 | // Retrieve the zoom level. | |
3747 | int GetZoom() const; | |
3748 | ||
3749 | // Create a new document object. | |
3750 | // Starts with reference count of 1 and not selected into editor. | |
3751 | void* CreateDocument(); | |
3752 | ||
3753 | // Extend life of document. | |
3754 | void AddRefDocument(void* docPointer); | |
3755 | ||
3756 | // Release a reference to the document, deleting document if it fades to black. | |
3757 | void ReleaseDocument(void* docPointer); | |
3758 | ||
3759 | // Get which document modification events are sent to the container. | |
3760 | int GetModEventMask() const; | |
3761 | ||
3762 | // Change internal focus flag. | |
3763 | void SetSTCFocus(bool focus); | |
3764 | ||
3765 | // Get internal focus flag. | |
3766 | bool GetSTCFocus() const; | |
3767 | ||
3768 | // Change error status - 0 = OK. | |
3769 | void SetStatus(int statusCode); | |
3770 | ||
3771 | // Get error status. | |
3772 | int GetStatus() const; | |
3773 | ||
3774 | // Set whether the mouse is captured when its button is pressed. | |
3775 | void SetMouseDownCaptures(bool captures); | |
3776 | ||
3777 | // Get whether mouse gets captured. | |
3778 | bool GetMouseDownCaptures() const; | |
3779 | ||
3780 | // Sets the cursor to one of the SC_CURSOR* values. | |
3781 | void SetSTCCursor(int cursorType); | |
3782 | ||
3783 | // Get cursor type. | |
3784 | int GetSTCCursor() const; | |
3785 | ||
3786 | // Change the way control characters are displayed: | |
3787 | // If symbol is < 32, keep the drawn way, else, use the given character. | |
3788 | void SetControlCharSymbol(int symbol); | |
3789 | ||
3790 | // Get the way control characters are displayed. | |
3791 | int GetControlCharSymbol() const; | |
3792 | ||
3793 | // Move to the previous change in capitalisation. | |
3794 | void WordPartLeft(); | |
3795 | ||
3796 | // Move to the previous change in capitalisation extending selection | |
3797 | // to new caret position. | |
3798 | void WordPartLeftExtend(); | |
3799 | ||
3800 | // Move to the change next in capitalisation. | |
3801 | void WordPartRight(); | |
3802 | ||
3803 | // Move to the next change in capitalisation extending selection | |
3804 | // to new caret position. | |
3805 | void WordPartRightExtend(); | |
3806 | ||
3807 | // Set the way the display area is determined when a particular line | |
3808 | // is to be moved to by Find, FindNext, GotoLine, etc. | |
3809 | void SetVisiblePolicy(int visiblePolicy, int visibleSlop); | |
3810 | ||
3811 | // Delete back from the current position to the start of the line. | |
3812 | void DelLineLeft(); | |
3813 | ||
3814 | // Delete forwards from the current position to the end of the line. | |
3815 | void DelLineRight(); | |
3816 | ||
3817 | // Get and Set the xOffset (ie, horizontal scroll position). | |
3818 | void SetXOffset(int newOffset); | |
3819 | int GetXOffset() const; | |
3820 | ||
3821 | // Set the last x chosen value to be the caret x position. | |
3822 | void ChooseCaretX(); | |
3823 | ||
3824 | // Set the way the caret is kept visible when going sideways. | |
3825 | // The exclusion zone is given in pixels. | |
3826 | void SetXCaretPolicy(int caretPolicy, int caretSlop); | |
3827 | ||
3828 | // Set the way the line the caret is on is kept visible. | |
3829 | // The exclusion zone is given in lines. | |
3830 | void SetYCaretPolicy(int caretPolicy, int caretSlop); | |
3831 | ||
3832 | // Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE). | |
3833 | void SetPrintWrapMode(int mode); | |
3834 | ||
3835 | // Is printing line wrapped? | |
3836 | int GetPrintWrapMode() const; | |
3837 | ||
3838 | // Set a fore colour for active hotspots. | |
3839 | void SetHotspotActiveForeground(bool useSetting, const wxColour& fore); | |
3840 | ||
3841 | // Get the fore colour for active hotspots. | |
3842 | wxColour GetHotspotActiveForeground() const; | |
3843 | ||
3844 | // Set a back colour for active hotspots. | |
3845 | void SetHotspotActiveBackground(bool useSetting, const wxColour& back); | |
3846 | ||
3847 | // Get the back colour for active hotspots. | |
3848 | wxColour GetHotspotActiveBackground() const; | |
3849 | ||
3850 | // Enable / Disable underlining active hotspots. | |
3851 | void SetHotspotActiveUnderline(bool underline); | |
3852 | ||
3853 | // Get whether underlining for active hotspots. | |
3854 | bool GetHotspotActiveUnderline() const; | |
3855 | ||
3856 | // Limit hotspots to single line so hotspots on two lines don't merge. | |
3857 | void SetHotspotSingleLine(bool singleLine); | |
3858 | ||
3859 | // Get the HotspotSingleLine property | |
3860 | bool GetHotspotSingleLine() const; | |
3861 | ||
3862 | // Move caret between paragraphs (delimited by empty lines). | |
3863 | void ParaDown(); | |
3864 | void ParaDownExtend(); | |
3865 | void ParaUp(); | |
3866 | void ParaUpExtend(); | |
3867 | ||
3868 | // Given a valid document position, return the previous position taking code | |
3869 | // page into account. Returns 0 if passed 0. | |
3870 | int PositionBefore(int pos); | |
3871 | ||
3872 | // Given a valid document position, return the next position taking code | |
3873 | // page into account. Maximum value returned is the last position in the document. | |
3874 | int PositionAfter(int pos); | |
3875 | ||
3876 | // Copy a range of text to the clipboard. Positions are clipped into the document. | |
3877 | void CopyRange(int start, int end); | |
3878 | ||
3879 | // Copy argument text to the clipboard. | |
3880 | void CopyText(int length, const wxString& text); | |
3881 | ||
3882 | // Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE/SC_SEL_THIN) or | |
3883 | // by lines (SC_SEL_LINES). | |
3884 | void SetSelectionMode(int mode); | |
3885 | ||
3886 | // Get the mode of the current selection. | |
3887 | int GetSelectionMode() const; | |
3888 | ||
3889 | // Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line). | |
3890 | int GetLineSelStartPosition(int line); | |
3891 | ||
3892 | // Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line). | |
3893 | int GetLineSelEndPosition(int line); | |
3894 | ||
3895 | // Move caret down one line, extending rectangular selection to new caret position. | |
3896 | void LineDownRectExtend(); | |
3897 | ||
3898 | // Move caret up one line, extending rectangular selection to new caret position. | |
3899 | void LineUpRectExtend(); | |
3900 | ||
3901 | // Move caret left one character, extending rectangular selection to new caret position. | |
3902 | void CharLeftRectExtend(); | |
3903 | ||
3904 | // Move caret right one character, extending rectangular selection to new caret position. | |
3905 | void CharRightRectExtend(); | |
3906 | ||
3907 | // Move caret to first position on line, extending rectangular selection to new caret position. | |
3908 | void HomeRectExtend(); | |
3909 | ||
3910 | // Move caret to before first visible character on line. | |
3911 | // If already there move to first character on line. | |
3912 | // In either case, extend rectangular selection to new caret position. | |
3913 | void VCHomeRectExtend(); | |
3914 | ||
3915 | // Move caret to last position on line, extending rectangular selection to new caret position. | |
3916 | void LineEndRectExtend(); | |
3917 | ||
3918 | // Move caret one page up, extending rectangular selection to new caret position. | |
3919 | void PageUpRectExtend(); | |
3920 | ||
3921 | // Move caret one page down, extending rectangular selection to new caret position. | |
3922 | void PageDownRectExtend(); | |
3923 | ||
3924 | // Move caret to top of page, or one page up if already at top of page. | |
3925 | void StutteredPageUp(); | |
3926 | ||
3927 | // Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. | |
3928 | void StutteredPageUpExtend(); | |
3929 | ||
3930 | // Move caret to bottom of page, or one page down if already at bottom of page. | |
3931 | void StutteredPageDown(); | |
3932 | ||
3933 | // Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. | |
3934 | void StutteredPageDownExtend(); | |
3935 | ||
3936 | // Move caret left one word, position cursor at end of word. | |
3937 | void WordLeftEnd(); | |
3938 | ||
3939 | // Move caret left one word, position cursor at end of word, extending selection to new caret position. | |
3940 | void WordLeftEndExtend(); | |
3941 | ||
3942 | // Move caret right one word, position cursor at end of word. | |
3943 | void WordRightEnd(); | |
3944 | ||
3945 | // Move caret right one word, position cursor at end of word, extending selection to new caret position. | |
3946 | void WordRightEndExtend(); | |
3947 | ||
3948 | // Set the set of characters making up whitespace for when moving or selecting by word. | |
3949 | // Should be called after SetWordChars. | |
3950 | void SetWhitespaceChars(const wxString& characters); | |
3951 | ||
3952 | // Get the set of characters making up whitespace for when moving or selecting by word. | |
3953 | wxString GetWhitespaceChars() const; | |
3954 | ||
3955 | // Set the set of characters making up punctuation characters | |
3956 | // Should be called after SetWordChars. | |
3957 | void SetPunctuationChars(const wxString& characters); | |
3958 | ||
3959 | // Get the set of characters making up punctuation characters | |
3960 | wxString GetPunctuationChars() const; | |
3961 | ||
3962 | // Reset the set of characters for whitespace and word characters to the defaults. | |
3963 | void SetCharsDefault(); | |
3964 | ||
3965 | // Get currently selected item position in the auto-completion list | |
3966 | int AutoCompGetCurrent() const; | |
3967 | ||
3968 | // Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference. | |
3969 | void AutoCompSetCaseInsensitiveBehaviour(int behaviour); | |
3970 | ||
3971 | // Get auto-completion case insensitive behaviour. | |
3972 | int AutoCompGetCaseInsensitiveBehaviour() const; | |
3973 | ||
3974 | // Enlarge the document to a particular size of text bytes. | |
3975 | void Allocate(int bytes); | |
3976 | ||
3977 | // Find the position of a column on a line taking into account tabs and | |
3978 | // multi-byte characters. If beyond end of line, return line end position. | |
3979 | int FindColumn(int line, int column); | |
3980 | ||
3981 | // Can the caret preferred x position only be changed by explicit movement commands? | |
3982 | int GetCaretSticky() const; | |
3983 | ||
3984 | // Stop the caret preferred x position changing when the user types. | |
3985 | void SetCaretSticky(int useCaretStickyBehaviour); | |
3986 | ||
3987 | // Switch between sticky and non-sticky: meant to be bound to a key. | |
3988 | void ToggleCaretSticky(); | |
3989 | ||
3990 | // Enable/Disable convert-on-paste for line endings | |
3991 | void SetPasteConvertEndings(bool convert); | |
3992 | ||
3993 | // Get convert-on-paste setting | |
3994 | bool GetPasteConvertEndings() const; | |
3995 | ||
3996 | // Duplicate the selection. If selection empty duplicate the line containing the caret. | |
3997 | void SelectionDuplicate(); | |
3998 | ||
3999 | // Set background alpha of the caret line. | |
4000 | void SetCaretLineBackAlpha(int alpha); | |
4001 | ||
4002 | // Get the background alpha of the caret line. | |
4003 | int GetCaretLineBackAlpha() const; | |
4004 | ||
4005 | // Set the style of the caret to be drawn. | |
4006 | void SetCaretStyle(int caretStyle); | |
4007 | ||
4008 | // Returns the current style of the caret. | |
4009 | int GetCaretStyle() const; | |
4010 | ||
4011 | // Set the indicator used for IndicatorFillRange and IndicatorClearRange | |
4012 | void SetIndicatorCurrent(int indicator); | |
4013 | ||
4014 | // Get the current indicator | |
4015 | int GetIndicatorCurrent() const; | |
4016 | ||
4017 | // Set the value used for IndicatorFillRange | |
4018 | void SetIndicatorValue(int value); | |
4019 | ||
4020 | // Get the current indicator value | |
4021 | int GetIndicatorValue() const; | |
4022 | ||
4023 | // Turn a indicator on over a range. | |
4024 | void IndicatorFillRange(int position, int fillLength); | |
4025 | ||
4026 | // Turn a indicator off over a range. | |
4027 | void IndicatorClearRange(int position, int clearLength); | |
4028 | ||
4029 | // Are any indicators present at position? | |
4030 | int IndicatorAllOnFor(int position); | |
4031 | ||
4032 | // What value does a particular indicator have at at a position? | |
4033 | int IndicatorValueAt(int indicator, int position); | |
4034 | ||
4035 | // Where does a particular indicator start? | |
4036 | int IndicatorStart(int indicator, int position); | |
4037 | ||
4038 | // Where does a particular indicator end? | |
4039 | int IndicatorEnd(int indicator, int position); | |
4040 | ||
4041 | // Set number of entries in position cache | |
4042 | void SetPositionCacheSize(int size); | |
4043 | ||
4044 | // How many entries are allocated to the position cache? | |
4045 | int GetPositionCacheSize() const; | |
4046 | ||
4047 | // Copy the selection, if selection empty copy the line with the caret | |
4048 | void CopyAllowLine(); | |
4049 | ||
4050 | // Compact the document buffer and return a read-only pointer to the | |
4051 | // characters in the document. | |
4052 | const char* GetCharacterPointer() const; | |
4053 | ||
4054 | // Return a read-only pointer to a range of characters in the document. | |
4055 | // May move the gap so that the range is contiguous, but will only move up | |
4056 | // to rangeLength bytes. | |
4057 | const char* GetRangePointer(int position, int rangeLength) const; | |
4058 | ||
4059 | // Return a position which, to avoid performance costs, should not be within | |
4060 | // the range of a call to GetRangePointer. | |
4061 | int GetGapPosition() const; | |
4062 | ||
4063 | // Always interpret keyboard input as Unicode | |
4064 | void SetKeysUnicode(bool keysUnicode); | |
4065 | ||
4066 | // Are keys always interpreted as Unicode? | |
4067 | bool GetKeysUnicode() const; | |
4068 | ||
4069 | // Set the alpha fill colour of the given indicator. | |
4070 | void IndicatorSetAlpha(int indicator, int alpha); | |
4071 | ||
4072 | // Get the alpha fill colour of the given indicator. | |
4073 | int IndicatorGetAlpha(int indicator) const; | |
4074 | ||
4075 | // Set the alpha outline colour of the given indicator. | |
4076 | void IndicatorSetOutlineAlpha(int indicator, int alpha); | |
4077 | ||
4078 | // Get the alpha outline colour of the given indicator. | |
4079 | int IndicatorGetOutlineAlpha(int indicator) const; | |
4080 | ||
4081 | // Set extra ascent for each line | |
4082 | void SetExtraAscent(int extraAscent); | |
4083 | ||
4084 | // Get extra ascent for each line | |
4085 | int GetExtraAscent() const; | |
4086 | ||
4087 | // Set extra descent for each line | |
4088 | void SetExtraDescent(int extraDescent); | |
4089 | ||
4090 | // Get extra descent for each line | |
4091 | int GetExtraDescent() const; | |
4092 | ||
4093 | // Which symbol was defined for markerNumber with MarkerDefine | |
4094 | int GetMarkerSymbolDefined(int markerNumber); | |
4095 | ||
4096 | // Set the text in the text margin for a line | |
4097 | void MarginSetText(int line, const wxString& text); | |
4098 | ||
4099 | // Get the text in the text margin for a line | |
4100 | wxString MarginGetText(int line) const; | |
4101 | ||
4102 | // Set the style number for the text margin for a line | |
4103 | void MarginSetStyle(int line, int style); | |
4104 | ||
4105 | // Get the style number for the text margin for a line | |
4106 | int MarginGetStyle(int line) const; | |
4107 | ||
4108 | // Set the style in the text margin for a line | |
4109 | void MarginSetStyles(int line, const wxString& styles); | |
4110 | ||
4111 | // Get the styles in the text margin for a line | |
4112 | wxString MarginGetStyles(int line) const; | |
4113 | ||
4114 | // Clear the margin text on all lines | |
4115 | void MarginTextClearAll(); | |
4116 | ||
4117 | // Get the start of the range of style numbers used for margin text | |
4118 | void MarginSetStyleOffset(int style); | |
4119 | ||
4120 | // Get the start of the range of style numbers used for margin text | |
4121 | int MarginGetStyleOffset() const; | |
4122 | ||
4123 | // Set the margin options. | |
4124 | void SetMarginOptions(int marginOptions); | |
4125 | ||
4126 | // Get the margin options. | |
4127 | int GetMarginOptions() const; | |
4128 | ||
4129 | // Set the annotation text for a line | |
4130 | void AnnotationSetText(int line, const wxString& text); | |
4131 | ||
4132 | // Get the annotation text for a line | |
4133 | wxString AnnotationGetText(int line) const; | |
4134 | ||
4135 | // Set the style number for the annotations for a line | |
4136 | void AnnotationSetStyle(int line, int style); | |
4137 | ||
4138 | // Get the style number for the annotations for a line | |
4139 | int AnnotationGetStyle(int line) const; | |
4140 | ||
4141 | // Set the annotation styles for a line | |
4142 | void AnnotationSetStyles(int line, const wxString& styles); | |
4143 | ||
4144 | // Get the annotation styles for a line | |
4145 | wxString AnnotationGetStyles(int line) const; | |
4146 | ||
4147 | // Get the number of annotation lines for a line | |
4148 | int AnnotationGetLines(int line) const; | |
4149 | ||
4150 | // Clear the annotations from all lines | |
4151 | void AnnotationClearAll(); | |
4152 | ||
4153 | // Set the visibility for the annotations for a view | |
4154 | void AnnotationSetVisible(int visible); | |
4155 | ||
4156 | // Get the visibility for the annotations for a view | |
4157 | int AnnotationGetVisible() const; | |
4158 | ||
4159 | // Get the start of the range of style numbers used for annotations | |
4160 | void AnnotationSetStyleOffset(int style); | |
4161 | ||
4162 | // Get the start of the range of style numbers used for annotations | |
4163 | int AnnotationGetStyleOffset() const; | |
4164 | ||
4165 | // Add a container action to the undo stack | |
4166 | void AddUndoAction(int token, int flags); | |
4167 | ||
4168 | // Find the position of a character from a point within the window. | |
4169 | int CharPositionFromPoint(int x, int y); | |
4170 | ||
4171 | // Find the position of a character from a point within the window. | |
4172 | // Return INVALID_POSITION if not close to text. | |
4173 | int CharPositionFromPointClose(int x, int y); | |
4174 | ||
4175 | // Set whether multiple selections can be made | |
4176 | void SetMultipleSelection(bool multipleSelection); | |
4177 | ||
4178 | // Whether multiple selections can be made | |
4179 | bool GetMultipleSelection() const; | |
4180 | ||
4181 | // Set whether typing can be performed into multiple selections | |
4182 | void SetAdditionalSelectionTyping(bool additionalSelectionTyping); | |
4183 | ||
4184 | // Whether typing can be performed into multiple selections | |
4185 | bool GetAdditionalSelectionTyping() const; | |
4186 | ||
4187 | // Set whether additional carets will blink | |
4188 | void SetAdditionalCaretsBlink(bool additionalCaretsBlink); | |
4189 | ||
4190 | // Whether additional carets will blink | |
4191 | bool GetAdditionalCaretsBlink() const; | |
4192 | ||
4193 | // Set whether additional carets are visible | |
4194 | void SetAdditionalCaretsVisible(bool additionalCaretsBlink); | |
4195 | ||
4196 | // Whether additional carets are visible | |
4197 | bool GetAdditionalCaretsVisible() const; | |
4198 | ||
4199 | // How many selections are there? | |
4200 | int GetSelections() const; | |
4201 | ||
4202 | // Clear selections to a single empty stream selection | |
4203 | void ClearSelections(); | |
4204 | ||
4205 | // Add a selection | |
4206 | int AddSelection(int caret, int anchor); | |
4207 | ||
4208 | // Set the main selection | |
4209 | void SetMainSelection(int selection); | |
4210 | ||
4211 | // Which selection is the main selection | |
4212 | int GetMainSelection() const; | |
4213 | void SetSelectionNCaret(int selection, int pos); | |
4214 | int GetSelectionNCaret(int selection) const; | |
4215 | void SetSelectionNAnchor(int selection, int posAnchor); | |
4216 | int GetSelectionNAnchor(int selection) const; | |
4217 | void SetSelectionNCaretVirtualSpace(int selection, int space); | |
4218 | int GetSelectionNCaretVirtualSpace(int selection) const; | |
4219 | void SetSelectionNAnchorVirtualSpace(int selection, int space); | |
4220 | int GetSelectionNAnchorVirtualSpace(int selection) const; | |
4221 | ||
4222 | // Sets the position that starts the selection - this becomes the anchor. | |
4223 | void SetSelectionNStart(int selection, int pos); | |
4224 | ||
4225 | // Returns the position at the start of the selection. | |
4226 | int GetSelectionNStart(int selection) const; | |
4227 | ||
4228 | // Sets the position that ends the selection - this becomes the currentPosition. | |
4229 | void SetSelectionNEnd(int selection, int pos); | |
4230 | ||
4231 | // Returns the position at the end of the selection. | |
4232 | int GetSelectionNEnd(int selection) const; | |
4233 | void SetRectangularSelectionCaret(int pos); | |
4234 | int GetRectangularSelectionCaret() const; | |
4235 | void SetRectangularSelectionAnchor(int posAnchor); | |
4236 | int GetRectangularSelectionAnchor() const; | |
4237 | void SetRectangularSelectionCaretVirtualSpace(int space); | |
4238 | int GetRectangularSelectionCaretVirtualSpace() const; | |
4239 | void SetRectangularSelectionAnchorVirtualSpace(int space); | |
4240 | int GetRectangularSelectionAnchorVirtualSpace() const; | |
4241 | void SetVirtualSpaceOptions(int virtualSpaceOptions); | |
4242 | int GetVirtualSpaceOptions() const; | |
4243 | ||
4244 | // On GTK+, allow selecting the modifier key to use for mouse-based | |
4245 | // rectangular selection. Often the window manager requires Alt+Mouse Drag | |
4246 | // for moving windows. | |
4247 | // Valid values are SCMOD_CTRL(default), SCMOD_ALT, or SCMOD_SUPER. | |
4248 | void SetRectangularSelectionModifier(int modifier); | |
4249 | ||
4250 | // Get the modifier key used for rectangular selection. | |
4251 | int GetRectangularSelectionModifier() const; | |
4252 | ||
4253 | // Set the foreground colour of additional selections. | |
4254 | // Must have previously called SetSelFore with non-zero first argument for this to have an effect. | |
4255 | void SetAdditionalSelForeground(const wxColour& fore); | |
4256 | ||
4257 | // Set the background colour of additional selections. | |
4258 | // Must have previously called SetSelBack with non-zero first argument for this to have an effect. | |
4259 | void SetAdditionalSelBackground(const wxColour& back); | |
4260 | ||
4261 | // Set the alpha of the selection. | |
4262 | void SetAdditionalSelAlpha(int alpha); | |
4263 | ||
4264 | // Get the alpha of the selection. | |
4265 | int GetAdditionalSelAlpha() const; | |
4266 | ||
4267 | // Set the foreground colour of additional carets. | |
4268 | void SetAdditionalCaretForeground(const wxColour& fore); | |
4269 | ||
4270 | // Get the foreground colour of additional carets. | |
4271 | wxColour GetAdditionalCaretForeground() const; | |
4272 | ||
4273 | // Set the main selection to the next selection. | |
4274 | void RotateSelection(); | |
4275 | ||
4276 | // Swap that caret and anchor of the main selection. | |
4277 | void SwapMainAnchorCaret(); | |
4278 | ||
4279 | // Indicate that the internal state of a lexer has changed over a range and therefore | |
4280 | // there may be a need to redraw. | |
4281 | int ChangeLexerState(int start, int end); | |
4282 | ||
4283 | // Find the next line at or after lineStart that is a contracted fold header line. | |
4284 | // Return -1 when no more lines. | |
4285 | int ContractedFoldNext(int lineStart); | |
4286 | ||
4287 | // Centre current line in window. | |
4288 | void VerticalCentreCaret(); | |
4289 | ||
4290 | // Move the selected lines up one line, shifting the line above after the selection | |
4291 | void MoveSelectedLinesUp(); | |
4292 | ||
4293 | // Move the selected lines down one line, shifting the line below before the selection | |
4294 | void MoveSelectedLinesDown(); | |
4295 | ||
4296 | // Set the identifier reported as idFrom in notification messages. | |
4297 | void SetIdentifier(int identifier); | |
4298 | ||
4299 | // Get the identifier. | |
4300 | int GetIdentifier() const; | |
4301 | ||
4302 | // Set the width for future RGBA image data. | |
4303 | void RGBAImageSetWidth(int width); | |
4304 | ||
4305 | // Set the height for future RGBA image data. | |
4306 | void RGBAImageSetHeight(int height); | |
4307 | ||
4308 | // Define a marker from RGBA data. | |
4309 | // It has the width and height from RGBAImageSetWidth/Height | |
4310 | void MarkerDefineRGBAImage(int markerNumber, const unsigned char* pixels); | |
4311 | ||
4312 | // Register an RGBA image for use in autocompletion lists. | |
4313 | // It has the width and height from RGBAImageSetWidth/Height | |
4314 | void RegisterRGBAImage(int type, const unsigned char* pixels); | |
4315 | ||
4316 | // Scroll to start of document. | |
4317 | void ScrollToStart(); | |
4318 | ||
4319 | // Scroll to end of document. | |
4320 | void ScrollToEnd(); | |
4321 | ||
4322 | // Set the technology used. | |
4323 | void SetTechnology(int technology); | |
4324 | ||
4325 | // Get the tech. | |
4326 | int GetTechnology() const; | |
4327 | ||
4328 | // Create an ILoader*. | |
4329 | void* CreateLoader(int bytes) const; | |
4330 | ||
4331 | // Start notifying the container of all key presses and commands. | |
4332 | void StartRecord(); | |
4333 | ||
4334 | // Stop notifying the container of all key presses and commands. | |
4335 | void StopRecord(); | |
4336 | ||
4337 | // Set the lexing language of the document. | |
4338 | void SetLexer(int lexer); | |
4339 | ||
4340 | // Retrieve the lexing language of the document. | |
4341 | int GetLexer() const; | |
4342 | ||
4343 | // Colourise a segment of the document using the current lexing language. | |
4344 | void Colourise(int start, int end); | |
4345 | ||
4346 | // Set up a value that may be used by a lexer for some optional feature. | |
4347 | void SetProperty(const wxString& key, const wxString& value); | |
4348 | ||
4349 | // Set up the key words used by the lexer. | |
4350 | void SetKeyWords(int keywordSet, const wxString& keyWords); | |
4351 | ||
4352 | // Set the lexing language of the document based on string name. | |
4353 | void SetLexerLanguage(const wxString& language); | |
4354 | ||
4355 | // Retrieve a 'property' value previously set with SetProperty. | |
4356 | wxString GetProperty(const wxString& key); | |
4357 | ||
4358 | // Retrieve a 'property' value previously set with SetProperty, | |
4359 | // with '$()' variable replacement on returned buffer. | |
4360 | wxString GetPropertyExpanded(const wxString& key); | |
4361 | ||
4362 | // Retrieve a 'property' value previously set with SetProperty, | |
4363 | // interpreted as an int AFTER any '$()' variable replacement. | |
4364 | int GetPropertyInt(const wxString& key) const; | |
4365 | ||
4366 | // Retrieve the number of bits the current lexer needs for styling. | |
4367 | int GetStyleBitsNeeded() const; | |
4368 | ||
4369 | // For private communication between an application and a known lexer. | |
4370 | void* PrivateLexerCall(int operation, void* pointer); | |
4371 | ||
4372 | // Retrieve a '\n' separated list of properties understood by the current lexer. | |
4373 | wxString PropertyNames() const; | |
4374 | ||
4375 | // Retrieve the type of a property. | |
4376 | int PropertyType(const wxString& name); | |
4377 | ||
4378 | // Describe a property. | |
4379 | wxString DescribeProperty(const wxString& name) const; | |
4380 | ||
4381 | // Retrieve a '\n' separated list of descriptions of the keyword sets understood by the current lexer. | |
4382 | wxString DescribeKeyWordSets() const; | |
4383 | ||
4384 | //}}} | |
4385 | //---------------------------------------------------------------------- | |
4386 | ||
4387 | // Manually declared methods | |
4388 | ||
4389 | // Returns the line number of the line with the caret. | |
4390 | int GetCurrentLine(); | |
4391 | ||
4392 | // Extract style settings from a spec-string which is composed of one or | |
4393 | // more of the following comma separated elements: | |
4394 | // | |
4395 | // bold turns on bold | |
4396 | // italic turns on italics | |
4397 | // fore:[name or #RRGGBB] sets the foreground colour | |
4398 | // back:[name or #RRGGBB] sets the background colour | |
4399 | // face:[facename] sets the font face name to use | |
4400 | // size:[num] sets the font size in points | |
4401 | // eol turns on eol filling | |
4402 | // underline turns on underlining | |
4403 | // | |
4404 | void StyleSetSpec(int styleNum, const wxString& spec); | |
4405 | ||
4406 | ||
4407 | // Get the font of a style. | |
4408 | wxFont StyleGetFont(int style); | |
4409 | ||
4410 | ||
4411 | // Set style size, face, bold, italic, and underline attributes from | |
4412 | // a wxFont's attributes. | |
4413 | void StyleSetFont(int styleNum, wxFont& font); | |
4414 | ||
4415 | ||
4416 | ||
4417 | // Set all font style attributes at once. | |
4418 | void StyleSetFontAttr(int styleNum, int size, | |
4419 | const wxString& faceName, | |
4420 | bool bold, bool italic, | |
4421 | bool underline, | |
4422 | wxFontEncoding encoding=wxFONTENCODING_DEFAULT); | |
4423 | ||
4424 | ||
4425 | // Set the character set of the font in a style. Converts the Scintilla | |
4426 | // character set values to a wxFontEncoding. | |
4427 | void StyleSetCharacterSet(int style, int characterSet); | |
4428 | ||
4429 | // Set the font encoding to be used by a style. | |
4430 | void StyleSetFontEncoding(int style, wxFontEncoding encoding); | |
4431 | ||
4432 | ||
4433 | // Perform one of the operations defined by the wxSTC_CMD_* constants. | |
4434 | void CmdKeyExecute(int cmd); | |
4435 | ||
4436 | ||
4437 | // Set the left and right margin in the edit area, measured in pixels. | |
4438 | void SetMargins(int left, int right); | |
4439 | ||
4440 | ||
4441 | // Retrieve the point in the window where a position is displayed. | |
4442 | wxPoint PointFromPosition(int pos); | |
4443 | ||
4444 | ||
4445 | // Scroll enough to make the given line visible | |
4446 | void ScrollToLine(int line); | |
4447 | ||
4448 | ||
4449 | // Scroll enough to make the given column visible | |
4450 | void ScrollToColumn(int column); | |
4451 | ||
4452 | ||
4453 | // Send a message to Scintilla | |
4454 | // | |
4455 | // NB: this method is not really const as it can modify the control but it | |
4456 | // has to be declared as such as it's called from both const and | |
4457 | // non-const methods and we can't distinguish between the two | |
4458 | wxIntPtr SendMsg(int msg, wxUIntPtr wp=0, wxIntPtr lp=0) const; | |
4459 | ||
4460 | ||
4461 | // Set the vertical scrollbar to use instead of the ont that's built-in. | |
4462 | void SetVScrollBar(wxScrollBar* bar); | |
4463 | ||
4464 | ||
4465 | // Set the horizontal scrollbar to use instead of the ont that's built-in. | |
4466 | void SetHScrollBar(wxScrollBar* bar); | |
4467 | ||
4468 | // Can be used to prevent the EVT_CHAR handler from adding the char | |
4469 | bool GetLastKeydownProcessed() { return m_lastKeyDownConsumed; } | |
4470 | void SetLastKeydownProcessed(bool val) { m_lastKeyDownConsumed = val; } | |
4471 | ||
4472 | // if we derive from wxTextAreaBase it already provides these methods | |
4473 | #if !wxUSE_TEXTCTRL | |
4474 | // Write the contents of the editor to filename | |
4475 | bool SaveFile(const wxString& filename); | |
4476 | ||
4477 | // Load the contents of filename into the editor | |
4478 | bool LoadFile(const wxString& filename); | |
4479 | #endif // !wxUSE_TEXTCTRL | |
4480 | ||
4481 | #ifdef STC_USE_DND | |
4482 | // Allow for simulating a DnD DragOver | |
4483 | wxDragResult DoDragOver(wxCoord x, wxCoord y, wxDragResult def); | |
4484 | ||
4485 | // Allow for simulating a DnD DropText | |
4486 | bool DoDropText(long x, long y, const wxString& data); | |
4487 | #endif | |
4488 | ||
4489 | // Specify whether anti-aliased fonts should be used. Will have no effect | |
4490 | // on some platforms, but on some (wxMac for example) can greatly improve | |
4491 | // performance. | |
4492 | void SetUseAntiAliasing(bool useAA); | |
4493 | ||
4494 | // Returns the current UseAntiAliasing setting. | |
4495 | bool GetUseAntiAliasing(); | |
4496 | ||
4497 | // Clear annotations from the given line. | |
4498 | void AnnotationClearLine(int line); | |
4499 | ||
4500 | ||
4501 | ||
4502 | // The following methods are nearly equivalent to their similarly named | |
4503 | // cousins above. The difference is that these methods bypass wxString | |
4504 | // and always use a char* even if used in a unicode build of wxWidgets. | |
4505 | // In that case the character data will be utf-8 encoded since that is | |
4506 | // what is used internally by Scintilla in unicode builds. | |
4507 | ||
4508 | // Add text to the document at current position. | |
4509 | void AddTextRaw(const char* text, int length=-1); | |
4510 | ||
4511 | // Insert string at a position. | |
4512 | void InsertTextRaw(int pos, const char* text); | |
4513 | ||
4514 | // Retrieve the text of the line containing the caret. | |
4515 | // Returns the index of the caret on the line. | |
4516 | #ifdef SWIG | |
4517 | wxCharBuffer GetCurLineRaw(int* OUTPUT); | |
4518 | #else | |
4519 | wxCharBuffer GetCurLineRaw(int* linePos=NULL); | |
4520 | #endif | |
4521 | ||
4522 | // Retrieve the contents of a line. | |
4523 | wxCharBuffer GetLineRaw(int line); | |
4524 | ||
4525 | // Retrieve the selected text. | |
4526 | wxCharBuffer GetSelectedTextRaw(); | |
4527 | ||
4528 | // Retrieve a range of text. | |
4529 | wxCharBuffer GetTextRangeRaw(int startPos, int endPos); | |
4530 | ||
4531 | // Replace the contents of the document with the argument text. | |
4532 | void SetTextRaw(const char* text); | |
4533 | ||
4534 | // Retrieve all the text in the document. | |
4535 | wxCharBuffer GetTextRaw(); | |
4536 | ||
4537 | // Append a string to the end of the document without changing the selection. | |
4538 | void AppendTextRaw(const char* text, int length=-1); | |
4539 | ||
4540 | #ifdef SWIG | |
4541 | %pythoncode "_stc_utf8_methods.py" | |
4542 | #endif | |
4543 | ||
4544 | ||
4545 | // implement wxTextEntryBase pure virtual methods | |
4546 | // ---------------------------------------------- | |
4547 | ||
4548 | virtual void WriteText(const wxString& text) | |
4549 | { | |
4550 | ReplaceSelection(text); | |
4551 | } | |
4552 | ||
4553 | virtual void Remove(long from, long to) | |
4554 | { | |
4555 | Replace(from, to, ""); | |
4556 | } | |
4557 | virtual void Replace(long from, long to, const wxString& text) | |
4558 | { | |
4559 | SetTargetStart((int)from); | |
4560 | SetTargetEnd((int)to); | |
4561 | ReplaceTarget(text); | |
4562 | } | |
4563 | ||
4564 | /* | |
4565 | These functions are already declared in the generated section. | |
4566 | ||
4567 | virtual void Copy(); | |
4568 | virtual void Cut(); | |
4569 | virtual void Paste(); | |
4570 | ||
4571 | virtual void Undo(); | |
4572 | virtual void Redo(); | |
4573 | ||
4574 | virtual bool CanUndo() const; | |
4575 | virtual bool CanRedo() const; | |
4576 | ||
4577 | */ | |
4578 | ||
4579 | virtual void SetInsertionPoint(long pos) | |
4580 | { | |
4581 | SetCurrentPos(int(pos == -1 ? GetLastPosition() : pos)); | |
4582 | } | |
4583 | virtual long GetInsertionPoint() const { return GetCurrentPos(); } | |
4584 | virtual long GetLastPosition() const { return GetTextLength(); } | |
4585 | ||
4586 | virtual void SetSelection(long from, long to) | |
4587 | { | |
4588 | if ( from == -1 && to == -1 ) | |
4589 | { | |
4590 | SelectAll(); | |
4591 | } | |
4592 | else | |
4593 | { | |
4594 | SetSelectionStart((int)from); | |
4595 | SetSelectionEnd((int)to); | |
4596 | } | |
4597 | } | |
4598 | ||
4599 | virtual void SelectNone() | |
4600 | { | |
4601 | ClearSelections(); | |
4602 | } | |
4603 | ||
4604 | #ifdef SWIG | |
4605 | void GetSelection(long* OUTPUT, long* OUTPUT) const; | |
4606 | #else | |
4607 | virtual void GetSelection(long *from, long *to) const | |
4608 | { | |
4609 | if ( from ) | |
4610 | *from = GetSelectionStart(); | |
4611 | if ( to ) | |
4612 | *to = GetSelectionEnd(); | |
4613 | } | |
4614 | ||
4615 | // kept for compatibility only | |
4616 | void GetSelection(int *from, int *to) | |
4617 | { | |
4618 | long f, t; | |
4619 | GetSelection(&f, &t); | |
4620 | if ( from ) | |
4621 | *from = (int)f; | |
4622 | if ( to ) | |
4623 | *to = (int)t; | |
4624 | } | |
4625 | #endif | |
4626 | ||
4627 | virtual bool IsEditable() const { return !GetReadOnly(); } | |
4628 | virtual void SetEditable(bool editable) { SetReadOnly(!editable); } | |
4629 | ||
4630 | // implement wxTextAreaBase pure virtual methods | |
4631 | // --------------------------------------------- | |
4632 | ||
4633 | virtual int GetLineLength(long lineNo) const { return static_cast<int>(GetLineText(lineNo).length()); } | |
4634 | virtual wxString GetLineText(long lineNo) const | |
4635 | { | |
4636 | wxString text = GetLine(static_cast<int>(lineNo)); | |
4637 | size_t lastNewLine = text.find_last_not_of(wxS("\r\n")); | |
4638 | ||
4639 | if ( lastNewLine != wxString::npos ) | |
4640 | text.erase(lastNewLine + 1); // remove trailing cr+lf | |
4641 | else | |
4642 | text.clear(); | |
4643 | return text; | |
4644 | } | |
4645 | virtual int GetNumberOfLines() const { return GetLineCount(); } | |
4646 | ||
4647 | virtual bool IsModified() const { return GetModify(); } | |
4648 | virtual void MarkDirty() { wxFAIL_MSG("not implemented"); } | |
4649 | virtual void DiscardEdits() { SetSavePoint(); } | |
4650 | ||
4651 | virtual bool SetStyle(long WXUNUSED(start), long WXUNUSED(end), | |
4652 | const wxTextAttr& WXUNUSED(style)) | |
4653 | { | |
4654 | wxFAIL_MSG("not implemented"); | |
4655 | ||
4656 | return false; | |
4657 | } | |
4658 | ||
4659 | virtual bool GetStyle(long WXUNUSED(position), wxTextAttr& WXUNUSED(style)) | |
4660 | { | |
4661 | wxFAIL_MSG("not implemented"); | |
4662 | ||
4663 | return false; | |
4664 | } | |
4665 | ||
4666 | virtual bool SetDefaultStyle(const wxTextAttr& WXUNUSED(style)) | |
4667 | { | |
4668 | wxFAIL_MSG("not implemented"); | |
4669 | ||
4670 | return false; | |
4671 | } | |
4672 | ||
4673 | virtual long XYToPosition(long x, long y) const | |
4674 | { | |
4675 | long pos = PositionFromLine((int)y); | |
4676 | pos += x; | |
4677 | return pos; | |
4678 | } | |
4679 | ||
4680 | virtual bool PositionToXY(long pos, long *x, long *y) const | |
4681 | { | |
4682 | int l = LineFromPosition((int)pos); | |
4683 | if ( l == -1 ) | |
4684 | return false; | |
4685 | ||
4686 | if ( x ) | |
4687 | *x = pos - PositionFromLine(l); | |
4688 | ||
4689 | if ( y ) | |
4690 | *y = l; | |
4691 | ||
4692 | return true; | |
4693 | } | |
4694 | ||
4695 | virtual void ShowPosition(long pos) { GotoPos((int)pos); } | |
4696 | ||
4697 | // FIXME-VC6: can't use wxWindow here because of "error C2603: illegal | |
4698 | // access declaration: 'wxWindow' is not a direct base of | |
4699 | // 'wxStyledTextCtrl'" with VC6 | |
4700 | using wxControl::HitTest; | |
4701 | ||
4702 | virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const | |
4703 | { | |
4704 | const long l = PositionFromPoint(pt); | |
4705 | if ( l == -1 ) | |
4706 | return wxTE_HT_BELOW; // we don't really know where it was | |
4707 | ||
4708 | if ( pos ) | |
4709 | *pos = l; | |
4710 | ||
4711 | return wxTE_HT_ON_TEXT; | |
4712 | } | |
4713 | ||
4714 | // just unhide it | |
4715 | virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, | |
4716 | wxTextCoord *col, | |
4717 | wxTextCoord *row) const | |
4718 | { | |
4719 | return wxTextAreaBase::HitTest(pt, col, row); | |
4720 | } | |
4721 | ||
4722 | static wxVersionInfo GetLibraryVersionInfo(); | |
4723 | ||
4724 | protected: | |
4725 | virtual void DoSetValue(const wxString& value, int flags); | |
4726 | virtual wxString DoGetValue() const { return GetText(); } | |
4727 | virtual wxWindow *GetEditableWindow() { return this; } | |
4728 | ||
4729 | #ifndef SWIG | |
4730 | virtual bool DoLoadFile(const wxString& file, int fileType); | |
4731 | virtual bool DoSaveFile(const wxString& file, int fileType); | |
4732 | ||
4733 | // Event handlers | |
4734 | void OnPaint(wxPaintEvent& evt); | |
4735 | void OnScrollWin(wxScrollWinEvent& evt); | |
4736 | void OnScroll(wxScrollEvent& evt); | |
4737 | void OnSize(wxSizeEvent& evt); | |
4738 | void OnMouseLeftDown(wxMouseEvent& evt); | |
4739 | void OnMouseMove(wxMouseEvent& evt); | |
4740 | void OnMouseLeftUp(wxMouseEvent& evt); | |
4741 | void OnMouseRightUp(wxMouseEvent& evt); | |
4742 | void OnMouseMiddleUp(wxMouseEvent& evt); | |
4743 | void OnContextMenu(wxContextMenuEvent& evt); | |
4744 | void OnMouseWheel(wxMouseEvent& evt); | |
4745 | void OnChar(wxKeyEvent& evt); | |
4746 | void OnKeyDown(wxKeyEvent& evt); | |
4747 | void OnLoseFocus(wxFocusEvent& evt); | |
4748 | void OnGainFocus(wxFocusEvent& evt); | |
4749 | void OnSysColourChanged(wxSysColourChangedEvent& evt); | |
4750 | void OnEraseBackground(wxEraseEvent& evt); | |
4751 | void OnMenu(wxCommandEvent& evt); | |
4752 | void OnListBox(wxCommandEvent& evt); | |
4753 | void OnIdle(wxIdleEvent& evt); | |
4754 | ||
4755 | virtual wxSize DoGetBestSize() const; | |
4756 | ||
4757 | // Turn notifications from Scintilla into events | |
4758 | void NotifyChange(); | |
4759 | void NotifyParent(SCNotification* scn); | |
4760 | ||
4761 | private: | |
4762 | DECLARE_EVENT_TABLE() | |
4763 | DECLARE_DYNAMIC_CLASS(wxStyledTextCtrl) | |
4764 | ||
4765 | protected: | |
4766 | ||
4767 | ScintillaWX* m_swx; | |
4768 | wxStopWatch m_stopWatch; | |
4769 | wxScrollBar* m_vScrollBar; | |
4770 | wxScrollBar* m_hScrollBar; | |
4771 | ||
4772 | bool m_lastKeyDownConsumed; | |
4773 | ||
4774 | friend class ScintillaWX; | |
4775 | friend class Platform; | |
4776 | #endif // !SWIG | |
4777 | }; | |
4778 | ||
4779 | //---------------------------------------------------------------------- | |
4780 | ||
4781 | class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent { | |
4782 | public: | |
4783 | wxStyledTextEvent(wxEventType commandType=0, int id=0); | |
4784 | #ifndef SWIG | |
4785 | wxStyledTextEvent(const wxStyledTextEvent& event); | |
4786 | #endif | |
4787 | ~wxStyledTextEvent() {} | |
4788 | ||
4789 | void SetPosition(int pos) { m_position = pos; } | |
4790 | void SetKey(int k) { m_key = k; } | |
4791 | void SetModifiers(int m) { m_modifiers = m; } | |
4792 | void SetModificationType(int t) { m_modificationType = t; } | |
4793 | void SetText(const wxString& t) { m_text = t; } | |
4794 | void SetLength(int len) { m_length = len; } | |
4795 | void SetLinesAdded(int num) { m_linesAdded = num; } | |
4796 | void SetLine(int val) { m_line = val; } | |
4797 | void SetFoldLevelNow(int val) { m_foldLevelNow = val; } | |
4798 | void SetFoldLevelPrev(int val) { m_foldLevelPrev = val; } | |
4799 | void SetMargin(int val) { m_margin = val; } | |
4800 | void SetMessage(int val) { m_message = val; } | |
4801 | void SetWParam(int val) { m_wParam = val; } | |
4802 | void SetLParam(int val) { m_lParam = val; } | |
4803 | void SetListType(int val) { m_listType = val; } | |
4804 | void SetX(int val) { m_x = val; } | |
4805 | void SetY(int val) { m_y = val; } | |
4806 | void SetToken(int val) { m_token = val; } | |
4807 | void SetAnnotationLinesAdded(int val) { m_annotationLinesAdded = val; } | |
4808 | void SetUpdated(int val) { m_updated = val; } | |
4809 | #ifdef STC_USE_DND | |
4810 | void SetDragText(const wxString& val) { m_dragText = val; } | |
4811 | void SetDragFlags(int flags) { m_dragFlags = flags; } | |
4812 | void SetDragResult(wxDragResult val) { m_dragResult = val; } | |
4813 | ||
4814 | // This method is kept mainly for backwards compatibility, use | |
4815 | // SetDragFlags() in the new code. | |
4816 | void SetDragAllowMove(bool allow) | |
4817 | { | |
4818 | if ( allow ) | |
4819 | m_dragFlags |= wxDrag_AllowMove; | |
4820 | else | |
4821 | m_dragFlags &= ~(wxDrag_AllowMove | wxDrag_DefaultMove); | |
4822 | } | |
4823 | #endif | |
4824 | ||
4825 | int GetPosition() const { return m_position; } | |
4826 | int GetKey() const { return m_key; } | |
4827 | int GetModifiers() const { return m_modifiers; } | |
4828 | int GetModificationType() const { return m_modificationType; } | |
4829 | wxString GetText() const { return m_text; } | |
4830 | int GetLength() const { return m_length; } | |
4831 | int GetLinesAdded() const { return m_linesAdded; } | |
4832 | int GetLine() const { return m_line; } | |
4833 | int GetFoldLevelNow() const { return m_foldLevelNow; } | |
4834 | int GetFoldLevelPrev() const { return m_foldLevelPrev; } | |
4835 | int GetMargin() const { return m_margin; } | |
4836 | int GetMessage() const { return m_message; } | |
4837 | int GetWParam() const { return m_wParam; } | |
4838 | int GetLParam() const { return m_lParam; } | |
4839 | int GetListType() const { return m_listType; } | |
4840 | int GetX() const { return m_x; } | |
4841 | int GetY() const { return m_y; } | |
4842 | int GetToken() const { return m_token; } | |
4843 | int GetAnnotationsLinesAdded() const { return m_annotationLinesAdded; } | |
4844 | int GetUpdated() const { return m_updated; } | |
4845 | ||
4846 | #ifdef STC_USE_DND | |
4847 | wxString GetDragText() { return m_dragText; } | |
4848 | int GetDragFlags() { return m_dragFlags; } | |
4849 | wxDragResult GetDragResult() { return m_dragResult; } | |
4850 | ||
4851 | bool GetDragAllowMove() { return (GetDragFlags() & wxDrag_AllowMove) != 0; } | |
4852 | #endif | |
4853 | ||
4854 | bool GetShift() const; | |
4855 | bool GetControl() const; | |
4856 | bool GetAlt() const; | |
4857 | ||
4858 | virtual wxEvent* Clone() const { return new wxStyledTextEvent(*this); } | |
4859 | ||
4860 | #ifndef SWIG | |
4861 | private: | |
4862 | DECLARE_DYNAMIC_CLASS(wxStyledTextEvent) | |
4863 | ||
4864 | int m_position; | |
4865 | int m_key; | |
4866 | int m_modifiers; | |
4867 | ||
4868 | int m_modificationType; // wxEVT_STC_MODIFIED | |
4869 | wxString m_text; | |
4870 | int m_length; | |
4871 | int m_linesAdded; | |
4872 | int m_line; | |
4873 | int m_foldLevelNow; | |
4874 | int m_foldLevelPrev; | |
4875 | ||
4876 | int m_margin; // wxEVT_STC_MARGINCLICK | |
4877 | ||
4878 | int m_message; // wxEVT_STC_MACRORECORD | |
4879 | int m_wParam; | |
4880 | int m_lParam; | |
4881 | ||
4882 | int m_listType; | |
4883 | int m_x; | |
4884 | int m_y; | |
4885 | ||
4886 | int m_token; // wxEVT_STC__MODIFIED with SC_MOD_CONTAINER | |
4887 | int m_annotationLinesAdded; // wxEVT_STC_MODIFIED with SC_MOD_CHANGEANNOTATION | |
4888 | int m_updated; // wxEVT_STC_UPDATEUI | |
4889 | ||
4890 | ||
4891 | #if wxUSE_DRAG_AND_DROP | |
4892 | wxString m_dragText; // wxEVT_STC_START_DRAG, wxEVT_STC_DO_DROP | |
4893 | int m_dragFlags; // wxEVT_STC_START_DRAG | |
4894 | wxDragResult m_dragResult; // wxEVT_STC_DRAG_OVER,wxEVT_STC_DO_DROP | |
4895 | #endif | |
4896 | #endif | |
4897 | }; | |
4898 | ||
4899 | ||
4900 | ||
4901 | #ifndef SWIG | |
4902 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_CHANGE, wxStyledTextEvent ); | |
4903 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_STYLENEEDED, wxStyledTextEvent ); | |
4904 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_CHARADDED, wxStyledTextEvent ); | |
4905 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_SAVEPOINTREACHED, wxStyledTextEvent ); | |
4906 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_SAVEPOINTLEFT, wxStyledTextEvent ); | |
4907 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_ROMODIFYATTEMPT, wxStyledTextEvent ); | |
4908 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_KEY, wxStyledTextEvent ); | |
4909 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DOUBLECLICK, wxStyledTextEvent ); | |
4910 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_UPDATEUI, wxStyledTextEvent ); | |
4911 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MODIFIED, wxStyledTextEvent ); | |
4912 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MACRORECORD, wxStyledTextEvent ); | |
4913 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MARGINCLICK, wxStyledTextEvent ); | |
4914 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_NEEDSHOWN, wxStyledTextEvent ); | |
4915 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_PAINTED, wxStyledTextEvent ); | |
4916 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_USERLISTSELECTION, wxStyledTextEvent ); | |
4917 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_URIDROPPED, wxStyledTextEvent ); | |
4918 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DWELLSTART, wxStyledTextEvent ); | |
4919 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DWELLEND, wxStyledTextEvent ); | |
4920 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_START_DRAG, wxStyledTextEvent ); | |
4921 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DRAG_OVER, wxStyledTextEvent ); | |
4922 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DO_DROP, wxStyledTextEvent ); | |
4923 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_ZOOM, wxStyledTextEvent ); | |
4924 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_HOTSPOT_CLICK, wxStyledTextEvent ); | |
4925 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_HOTSPOT_DCLICK, wxStyledTextEvent ); | |
4926 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_CALLTIP_CLICK, wxStyledTextEvent ); | |
4927 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_AUTOCOMP_SELECTION, wxStyledTextEvent ); | |
4928 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_INDICATOR_CLICK, wxStyledTextEvent ); | |
4929 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_INDICATOR_RELEASE, wxStyledTextEvent ); | |
4930 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_AUTOCOMP_CANCELLED, wxStyledTextEvent ); | |
4931 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_AUTOCOMP_CHAR_DELETED, wxStyledTextEvent ); | |
4932 | wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_HOTSPOT_RELEASE_CLICK, wxStyledTextEvent ); | |
4933 | #else | |
4934 | enum { | |
4935 | wxEVT_STC_CHANGE, | |
4936 | wxEVT_STC_STYLENEEDED, | |
4937 | wxEVT_STC_CHARADDED, | |
4938 | wxEVT_STC_SAVEPOINTREACHED, | |
4939 | wxEVT_STC_SAVEPOINTLEFT, | |
4940 | wxEVT_STC_ROMODIFYATTEMPT, | |
4941 | wxEVT_STC_KEY, | |
4942 | wxEVT_STC_DOUBLECLICK, | |
4943 | wxEVT_STC_UPDATEUI, | |
4944 | wxEVT_STC_MODIFIED, | |
4945 | wxEVT_STC_MACRORECORD, | |
4946 | wxEVT_STC_MARGINCLICK, | |
4947 | wxEVT_STC_NEEDSHOWN, | |
4948 | wxEVT_STC_PAINTED, | |
4949 | wxEVT_STC_USERLISTSELECTION, | |
4950 | wxEVT_STC_URIDROPPED, | |
4951 | wxEVT_STC_DWELLSTART, | |
4952 | wxEVT_STC_DWELLEND, | |
4953 | wxEVT_STC_START_DRAG, | |
4954 | wxEVT_STC_DRAG_OVER, | |
4955 | wxEVT_STC_DO_DROP, | |
4956 | wxEVT_STC_ZOOM, | |
4957 | wxEVT_STC_HOTSPOT_CLICK, | |
4958 | wxEVT_STC_HOTSPOT_DCLICK, | |
4959 | wxEVT_STC_CALLTIP_CLICK, | |
4960 | wxEVT_STC_AUTOCOMP_SELECTION, | |
4961 | wxEVT_STC_INDICATOR_CLICK, | |
4962 | wxEVT_STC_INDICATOR_RELEASE, | |
4963 | wxEVT_STC_AUTOCOMP_CANCELLED, | |
4964 | wxEVT_STC_AUTOCOMP_CHAR_DELETED, | |
4965 | wxEVT_STC_HOTSPOT_RELEASE_CLICK | |
4966 | }; | |
4967 | #endif | |
4968 | ||
4969 | ||
4970 | ||
4971 | #ifndef SWIG | |
4972 | typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&); | |
4973 | ||
4974 | #define wxStyledTextEventHandler( func ) \ | |
4975 | wxEVENT_HANDLER_CAST( wxStyledTextEventFunction, func ) | |
4976 | ||
4977 | #define EVT_STC_CHANGE(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHANGE, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4978 | #define EVT_STC_STYLENEEDED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_STYLENEEDED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4979 | #define EVT_STC_CHARADDED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHARADDED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4980 | #define EVT_STC_SAVEPOINTREACHED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTREACHED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4981 | #define EVT_STC_SAVEPOINTLEFT(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTLEFT, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4982 | #define EVT_STC_ROMODIFYATTEMPT(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ROMODIFYATTEMPT, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4983 | #define EVT_STC_KEY(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_KEY, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4984 | #define EVT_STC_DOUBLECLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DOUBLECLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4985 | #define EVT_STC_UPDATEUI(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_UPDATEUI, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4986 | #define EVT_STC_MODIFIED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MODIFIED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4987 | #define EVT_STC_MACRORECORD(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MACRORECORD, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4988 | #define EVT_STC_MARGINCLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MARGINCLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4989 | #define EVT_STC_NEEDSHOWN(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_NEEDSHOWN, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4990 | #define EVT_STC_PAINTED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_PAINTED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4991 | #define EVT_STC_USERLISTSELECTION(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_USERLISTSELECTION, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4992 | #define EVT_STC_URIDROPPED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_URIDROPPED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4993 | #define EVT_STC_DWELLSTART(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLSTART, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4994 | #define EVT_STC_DWELLEND(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLEND, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4995 | #define EVT_STC_START_DRAG(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_START_DRAG, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4996 | #define EVT_STC_DRAG_OVER(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DRAG_OVER, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4997 | #define EVT_STC_DO_DROP(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DO_DROP, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4998 | #define EVT_STC_ZOOM(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ZOOM, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
4999 | #define EVT_STC_HOTSPOT_CLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_CLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
5000 | #define EVT_STC_HOTSPOT_DCLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_DCLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
5001 | #define EVT_STC_CALLTIP_CLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CALLTIP_CLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
5002 | #define EVT_STC_AUTOCOMP_SELECTION(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_AUTOCOMP_SELECTION, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
5003 | #define EVT_STC_INDICATOR_CLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_INDICATOR_CLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
5004 | #define EVT_STC_INDICATOR_RELEASE(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_INDICATOR_RELEASE, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
5005 | #define EVT_STC_AUTOCOMP_CANCELLED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_AUTOCOMP_CANCELLED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
5006 | #define EVT_STC_AUTOCOMP_CHAR_DELETED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_AUTOCOMP_CHAR_DELETED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
5007 | #define EVT_STC_HOTSPOT_RELEASE_CLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_RELEASE_CLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), | |
5008 | ||
5009 | #endif | |
5010 | ||
5011 | #endif // wxUSE_STC | |
5012 | ||
5013 | #endif // _WX_STC_STC_H_ |