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