]>
Commit | Line | Data |
---|---|---|
9ce192d4 RD |
1 | //////////////////////////////////////////////////////////////////////////// |
2 | // Name: 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 | |
17 | // Licence: wxWindows license | |
18 | ///////////////////////////////////////////////////////////////////////////// | |
19 | ||
20 | #ifndef __stc_h__ | |
21 | #define __stc_h__ | |
22 | ||
23 | ||
24 | #include <wx/wx.h> | |
a29a241f | 25 | #include <wx/dnd.h> |
9ce192d4 | 26 | |
39c0acb6 | 27 | |
7ba1412f RD |
28 | #ifdef WXMAKINGDLL_STC |
29 | #define WXDLLIMPEXP_STC WXEXPORT | |
30 | #elif defined(WXUSINGDLL) | |
31 | #define WXDLLIMPEXP_STC WXIMPORT | |
32 | #else // not making nor using DLL | |
33 | #define WXDLLIMPEXP_STC | |
34 | #endif | |
402ce755 | 35 | |
2b5f62a0 | 36 | |
9d41f689 RD |
37 | // SWIG can't handle "#if" type of conditionals, only "#ifdef" |
38 | #ifdef SWIG | |
39 | #define STC_USE_DND 1 | |
40 | #else | |
41 | #if wxUSE_DRAG_AND_DROP | |
42 | #define STC_USE_DND 1 | |
43 | #endif | |
44 | #endif | |
45 | ||
9c46ea66 RD |
46 | //---------------------------------------------------------------------- |
47 | ||
48 | // Should a wxPopupWindow be used for the call tips and autocomplete windows? | |
49 | #ifndef wxSTC_USE_POPUP | |
50 | #define wxSTC_USE_POPUP 1 | |
51 | #endif | |
52 | ||
9ce192d4 | 53 | //---------------------------------------------------------------------- |
4370573a RD |
54 | // BEGIN generated section. The following code is automatically generated |
55 | // by gen_iface.py. Do not edit this file. Edit stc.h.in instead | |
56 | // and regenerate | |
57 | ||
58 | #define wxSTC_INVALID_POSITION -1 | |
d25f5fbb | 59 | |
8e54aaed | 60 | // Define start of Scintilla messages to be greater than all Windows edit (EM_*) messages |
d25f5fbb | 61 | // as many EM_ messages can be used although that use is deprecated. |
4370573a RD |
62 | #define wxSTC_START 2000 |
63 | #define wxSTC_OPTIONAL_START 3000 | |
64 | #define wxSTC_LEXER_START 4000 | |
4370573a RD |
65 | #define wxSTC_WS_INVISIBLE 0 |
66 | #define wxSTC_WS_VISIBLEALWAYS 1 | |
67 | #define wxSTC_WS_VISIBLEAFTERINDENT 2 | |
68 | #define wxSTC_EOL_CRLF 0 | |
69 | #define wxSTC_EOL_CR 1 | |
70 | #define wxSTC_EOL_LF 2 | |
71 | ||
72 | // The SC_CP_UTF8 value can be used to enter Unicode mode. | |
73 | // This is the same value as CP_UTF8 in Windows | |
74 | #define wxSTC_CP_UTF8 65001 | |
9e730a78 RD |
75 | |
76 | // The SC_CP_DBCS value can be used to indicate a DBCS mode for GTK+. | |
77 | #define wxSTC_CP_DBCS 1 | |
4370573a RD |
78 | #define wxSTC_MARKER_MAX 31 |
79 | #define wxSTC_MARK_CIRCLE 0 | |
80 | #define wxSTC_MARK_ROUNDRECT 1 | |
81 | #define wxSTC_MARK_ARROW 2 | |
82 | #define wxSTC_MARK_SMALLRECT 3 | |
83 | #define wxSTC_MARK_SHORTARROW 4 | |
84 | #define wxSTC_MARK_EMPTY 5 | |
85 | #define wxSTC_MARK_ARROWDOWN 6 | |
86 | #define wxSTC_MARK_MINUS 7 | |
87 | #define wxSTC_MARK_PLUS 8 | |
65ec6247 | 88 | |
a834585d | 89 | // Shapes used for outlining column. |
65ec6247 RD |
90 | #define wxSTC_MARK_VLINE 9 |
91 | #define wxSTC_MARK_LCORNER 10 | |
92 | #define wxSTC_MARK_TCORNER 11 | |
93 | #define wxSTC_MARK_BOXPLUS 12 | |
94 | #define wxSTC_MARK_BOXPLUSCONNECTED 13 | |
95 | #define wxSTC_MARK_BOXMINUS 14 | |
96 | #define wxSTC_MARK_BOXMINUSCONNECTED 15 | |
97 | #define wxSTC_MARK_LCORNERCURVE 16 | |
98 | #define wxSTC_MARK_TCORNERCURVE 17 | |
99 | #define wxSTC_MARK_CIRCLEPLUS 18 | |
100 | #define wxSTC_MARK_CIRCLEPLUSCONNECTED 19 | |
101 | #define wxSTC_MARK_CIRCLEMINUS 20 | |
102 | #define wxSTC_MARK_CIRCLEMINUSCONNECTED 21 | |
1a2fb4cd | 103 | |
a834585d | 104 | // Invisible mark that only sets the line background color. |
1a2fb4cd | 105 | #define wxSTC_MARK_BACKGROUND 22 |
f114b858 RD |
106 | #define wxSTC_MARK_DOTDOTDOT 23 |
107 | #define wxSTC_MARK_ARROWS 24 | |
9e730a78 | 108 | #define wxSTC_MARK_PIXMAP 25 |
b8b0e402 | 109 | #define wxSTC_MARK_CHARACTER 10000 |
65ec6247 | 110 | |
a834585d | 111 | // Markers used for outlining column. |
65ec6247 RD |
112 | #define wxSTC_MARKNUM_FOLDEREND 25 |
113 | #define wxSTC_MARKNUM_FOLDEROPENMID 26 | |
114 | #define wxSTC_MARKNUM_FOLDERMIDTAIL 27 | |
115 | #define wxSTC_MARKNUM_FOLDERTAIL 28 | |
116 | #define wxSTC_MARKNUM_FOLDERSUB 29 | |
4370573a RD |
117 | #define wxSTC_MARKNUM_FOLDER 30 |
118 | #define wxSTC_MARKNUM_FOLDEROPEN 31 | |
1a2fb4cd | 119 | #define wxSTC_MASK_FOLDERS 0xFE000000 |
4370573a RD |
120 | #define wxSTC_MARGIN_SYMBOL 0 |
121 | #define wxSTC_MARGIN_NUMBER 1 | |
b8b0e402 RD |
122 | |
123 | // Styles in range 32..37 are predefined for parts of the UI and are not used as normal styles. | |
124 | // Styles 38 and 39 are for future use. | |
4370573a RD |
125 | #define wxSTC_STYLE_DEFAULT 32 |
126 | #define wxSTC_STYLE_LINENUMBER 33 | |
127 | #define wxSTC_STYLE_BRACELIGHT 34 | |
128 | #define wxSTC_STYLE_BRACEBAD 35 | |
129 | #define wxSTC_STYLE_CONTROLCHAR 36 | |
130 | #define wxSTC_STYLE_INDENTGUIDE 37 | |
b8b0e402 | 131 | #define wxSTC_STYLE_LASTPREDEFINED 39 |
4370573a RD |
132 | #define wxSTC_STYLE_MAX 127 |
133 | ||
134 | // Character set identifiers are used in StyleSetCharacterSet. | |
135 | // The values are the same as the Windows *_CHARSET values. | |
136 | #define wxSTC_CHARSET_ANSI 0 | |
137 | #define wxSTC_CHARSET_DEFAULT 1 | |
138 | #define wxSTC_CHARSET_BALTIC 186 | |
139 | #define wxSTC_CHARSET_CHINESEBIG5 136 | |
140 | #define wxSTC_CHARSET_EASTEUROPE 238 | |
141 | #define wxSTC_CHARSET_GB2312 134 | |
142 | #define wxSTC_CHARSET_GREEK 161 | |
143 | #define wxSTC_CHARSET_HANGUL 129 | |
144 | #define wxSTC_CHARSET_MAC 77 | |
145 | #define wxSTC_CHARSET_OEM 255 | |
146 | #define wxSTC_CHARSET_RUSSIAN 204 | |
147 | #define wxSTC_CHARSET_SHIFTJIS 128 | |
148 | #define wxSTC_CHARSET_SYMBOL 2 | |
149 | #define wxSTC_CHARSET_TURKISH 162 | |
150 | #define wxSTC_CHARSET_JOHAB 130 | |
151 | #define wxSTC_CHARSET_HEBREW 177 | |
152 | #define wxSTC_CHARSET_ARABIC 178 | |
153 | #define wxSTC_CHARSET_VIETNAMESE 163 | |
154 | #define wxSTC_CHARSET_THAI 222 | |
65ec6247 RD |
155 | #define wxSTC_CASE_MIXED 0 |
156 | #define wxSTC_CASE_UPPER 1 | |
157 | #define wxSTC_CASE_LOWER 2 | |
4370573a RD |
158 | #define wxSTC_INDIC_MAX 7 |
159 | #define wxSTC_INDIC_PLAIN 0 | |
160 | #define wxSTC_INDIC_SQUIGGLE 1 | |
161 | #define wxSTC_INDIC_TT 2 | |
162 | #define wxSTC_INDIC_DIAGONAL 3 | |
163 | #define wxSTC_INDIC_STRIKE 4 | |
88a8b04e | 164 | #define wxSTC_INDIC_HIDDEN 5 |
8e54aaed | 165 | #define wxSTC_INDIC_BOX 6 |
1a2fb4cd RD |
166 | #define wxSTC_INDIC0_MASK 0x20 |
167 | #define wxSTC_INDIC1_MASK 0x40 | |
168 | #define wxSTC_INDIC2_MASK 0x80 | |
169 | #define wxSTC_INDICS_MASK 0xE0 | |
4370573a RD |
170 | |
171 | // PrintColourMode - use same colours as screen. | |
172 | #define wxSTC_PRINT_NORMAL 0 | |
173 | ||
174 | // PrintColourMode - invert the light value of each style for printing. | |
175 | #define wxSTC_PRINT_INVERTLIGHT 1 | |
176 | ||
177 | // PrintColourMode - force black text on white background for printing. | |
178 | #define wxSTC_PRINT_BLACKONWHITE 2 | |
65ec6247 RD |
179 | |
180 | // PrintColourMode - text stays coloured, but all background is forced to be white for printing. | |
181 | #define wxSTC_PRINT_COLOURONWHITE 3 | |
182 | ||
183 | // PrintColourMode - only the default-background is forced to be white for printing. | |
184 | #define wxSTC_PRINT_COLOURONWHITEDEFAULTBG 4 | |
4370573a RD |
185 | #define wxSTC_FIND_WHOLEWORD 2 |
186 | #define wxSTC_FIND_MATCHCASE 4 | |
187 | #define wxSTC_FIND_WORDSTART 0x00100000 | |
4370573a | 188 | #define wxSTC_FIND_REGEXP 0x00200000 |
9e730a78 | 189 | #define wxSTC_FIND_POSIX 0x00400000 |
4370573a RD |
190 | #define wxSTC_FOLDLEVELBASE 0x400 |
191 | #define wxSTC_FOLDLEVELWHITEFLAG 0x1000 | |
192 | #define wxSTC_FOLDLEVELHEADERFLAG 0x2000 | |
9e730a78 RD |
193 | #define wxSTC_FOLDLEVELBOXHEADERFLAG 0x4000 |
194 | #define wxSTC_FOLDLEVELBOXFOOTERFLAG 0x8000 | |
195 | #define wxSTC_FOLDLEVELCONTRACTED 0x10000 | |
196 | #define wxSTC_FOLDLEVELUNINDENT 0x20000 | |
4370573a | 197 | #define wxSTC_FOLDLEVELNUMBERMASK 0x0FFF |
9e730a78 RD |
198 | #define wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002 |
199 | #define wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004 | |
200 | #define wxSTC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008 | |
201 | #define wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010 | |
202 | #define wxSTC_FOLDFLAG_LEVELNUMBERS 0x0040 | |
203 | #define wxSTC_FOLDFLAG_BOX 0x0001 | |
65ec6247 | 204 | #define wxSTC_TIME_FOREVER 10000000 |
1a2fb4cd RD |
205 | #define wxSTC_WRAP_NONE 0 |
206 | #define wxSTC_WRAP_WORD 1 | |
591d01be RD |
207 | #define wxSTC_WRAPVISUALFLAG_NONE 0x0000 |
208 | #define wxSTC_WRAPVISUALFLAG_END 0x0001 | |
209 | #define wxSTC_WRAPVISUALFLAG_START 0x0002 | |
210 | #define wxSTC_WRAPVISUALFLAGLOC_DEFAULT 0x0000 | |
211 | #define wxSTC_WRAPVISUALFLAGLOC_END_BY_TEXT 0x0001 | |
212 | #define wxSTC_WRAPVISUALFLAGLOC_START_BY_TEXT 0x0002 | |
1a2fb4cd RD |
213 | #define wxSTC_CACHE_NONE 0 |
214 | #define wxSTC_CACHE_CARET 1 | |
215 | #define wxSTC_CACHE_PAGE 2 | |
216 | #define wxSTC_CACHE_DOCUMENT 3 | |
4370573a RD |
217 | #define wxSTC_EDGE_NONE 0 |
218 | #define wxSTC_EDGE_LINE 1 | |
219 | #define wxSTC_EDGE_BACKGROUND 2 | |
a834585d | 220 | #define wxSTC_CURSORNORMAL -1 |
9e730a78 | 221 | #define wxSTC_CURSORWAIT 4 |
4370573a | 222 | |
a834585d RD |
223 | // Constants for use with SetVisiblePolicy, similar to SetCaretPolicy. |
224 | #define wxSTC_VISIBLE_SLOP 0x01 | |
225 | #define wxSTC_VISIBLE_STRICT 0x04 | |
4370573a | 226 | |
a834585d RD |
227 | // Caret policy, used by SetXCaretPolicy and SetYCaretPolicy. |
228 | // If CARET_SLOP is set, we can define a slop value: caretSlop. | |
229 | // This value defines an unwanted zone (UZ) where the caret is... unwanted. | |
230 | // This zone is defined as a number of pixels near the vertical margins, | |
231 | // and as a number of lines near the horizontal margins. | |
232 | // By keeping the caret away from the edges, it is seen within its context, | |
233 | // so it is likely that the identifier that the caret is on can be completely seen, | |
234 | // and that the current line is seen with some of the lines following it which are | |
235 | // often dependent on that line. | |
236 | #define wxSTC_CARET_SLOP 0x01 | |
4370573a | 237 | |
a834585d RD |
238 | // If CARET_STRICT is set, the policy is enforced... strictly. |
239 | // The caret is centred on the display if slop is not set, | |
240 | // and cannot go in the UZ if slop is set. | |
4370573a RD |
241 | #define wxSTC_CARET_STRICT 0x04 |
242 | ||
a834585d RD |
243 | // If CARET_JUMPS is set, the display is moved more energetically |
244 | // so the caret can move in the same direction longer before the policy is applied again. | |
245 | #define wxSTC_CARET_JUMPS 0x10 | |
65ec6247 | 246 | |
a834585d RD |
247 | // If CARET_EVEN is not set, instead of having symmetrical UZs, |
248 | // the left and bottom UZs are extended up to right and top UZs respectively. | |
249 | // This way, we favour the displaying of useful information: the begining of lines, | |
250 | // where most code reside, and the lines after the caret, eg. the body of a function. | |
251 | #define wxSTC_CARET_EVEN 0x08 | |
65ec6247 | 252 | |
8e54aaed RD |
253 | // Selection modes |
254 | #define wxSTC_SEL_STREAM 0 | |
255 | #define wxSTC_SEL_RECTANGLE 1 | |
256 | #define wxSTC_SEL_LINES 2 | |
257 | ||
88a8b04e RD |
258 | // Maximum value of keywordSet parameter of SetKeyWords. |
259 | #define wxSTC_KEYWORDSET_MAX 8 | |
260 | ||
4370573a | 261 | // Notifications |
a834585d | 262 | // Type of modification and the action which caused the modification. |
4370573a RD |
263 | // These are defined as a bit mask to make it easy to specify which notifications are wanted. |
264 | // One bit is set from each of SC_MOD_* and SC_PERFORMED_*. | |
265 | #define wxSTC_MOD_INSERTTEXT 0x1 | |
266 | #define wxSTC_MOD_DELETETEXT 0x2 | |
267 | #define wxSTC_MOD_CHANGESTYLE 0x4 | |
268 | #define wxSTC_MOD_CHANGEFOLD 0x8 | |
269 | #define wxSTC_PERFORMED_USER 0x10 | |
270 | #define wxSTC_PERFORMED_UNDO 0x20 | |
271 | #define wxSTC_PERFORMED_REDO 0x40 | |
272 | #define wxSTC_LASTSTEPINUNDOREDO 0x100 | |
273 | #define wxSTC_MOD_CHANGEMARKER 0x200 | |
274 | #define wxSTC_MOD_BEFOREINSERT 0x400 | |
275 | #define wxSTC_MOD_BEFOREDELETE 0x800 | |
276 | #define wxSTC_MODEVENTMASKALL 0xF77 | |
277 | ||
a834585d RD |
278 | // Symbolic key codes and modifier flags. |
279 | // ASCII and other printable characters below 256. | |
280 | // Extended keys above 300. | |
4370573a RD |
281 | #define wxSTC_KEY_DOWN 300 |
282 | #define wxSTC_KEY_UP 301 | |
283 | #define wxSTC_KEY_LEFT 302 | |
284 | #define wxSTC_KEY_RIGHT 303 | |
285 | #define wxSTC_KEY_HOME 304 | |
286 | #define wxSTC_KEY_END 305 | |
287 | #define wxSTC_KEY_PRIOR 306 | |
288 | #define wxSTC_KEY_NEXT 307 | |
289 | #define wxSTC_KEY_DELETE 308 | |
290 | #define wxSTC_KEY_INSERT 309 | |
291 | #define wxSTC_KEY_ESCAPE 7 | |
292 | #define wxSTC_KEY_BACK 8 | |
293 | #define wxSTC_KEY_TAB 9 | |
294 | #define wxSTC_KEY_RETURN 13 | |
295 | #define wxSTC_KEY_ADD 310 | |
296 | #define wxSTC_KEY_SUBTRACT 311 | |
297 | #define wxSTC_KEY_DIVIDE 312 | |
298 | #define wxSTC_SCMOD_SHIFT 1 | |
299 | #define wxSTC_SCMOD_CTRL 2 | |
300 | #define wxSTC_SCMOD_ALT 4 | |
301 | ||
302 | // For SciLexer.h | |
303 | #define wxSTC_LEX_CONTAINER 0 | |
304 | #define wxSTC_LEX_NULL 1 | |
305 | #define wxSTC_LEX_PYTHON 2 | |
306 | #define wxSTC_LEX_CPP 3 | |
307 | #define wxSTC_LEX_HTML 4 | |
308 | #define wxSTC_LEX_XML 5 | |
309 | #define wxSTC_LEX_PERL 6 | |
310 | #define wxSTC_LEX_SQL 7 | |
311 | #define wxSTC_LEX_VB 8 | |
312 | #define wxSTC_LEX_PROPERTIES 9 | |
313 | #define wxSTC_LEX_ERRORLIST 10 | |
314 | #define wxSTC_LEX_MAKEFILE 11 | |
315 | #define wxSTC_LEX_BATCH 12 | |
316 | #define wxSTC_LEX_XCODE 13 | |
317 | #define wxSTC_LEX_LATEX 14 | |
318 | #define wxSTC_LEX_LUA 15 | |
319 | #define wxSTC_LEX_DIFF 16 | |
65ec6247 RD |
320 | #define wxSTC_LEX_CONF 17 |
321 | #define wxSTC_LEX_PASCAL 18 | |
322 | #define wxSTC_LEX_AVE 19 | |
323 | #define wxSTC_LEX_ADA 20 | |
324 | #define wxSTC_LEX_LISP 21 | |
325 | #define wxSTC_LEX_RUBY 22 | |
326 | #define wxSTC_LEX_EIFFEL 23 | |
327 | #define wxSTC_LEX_EIFFELKW 24 | |
328 | #define wxSTC_LEX_TCL 25 | |
b8b0e402 | 329 | #define wxSTC_LEX_NNCRONTAB 26 |
1a2fb4cd RD |
330 | #define wxSTC_LEX_BULLANT 27 |
331 | #define wxSTC_LEX_VBSCRIPT 28 | |
332 | #define wxSTC_LEX_ASP 29 | |
333 | #define wxSTC_LEX_PHP 30 | |
334 | #define wxSTC_LEX_BAAN 31 | |
335 | #define wxSTC_LEX_MATLAB 32 | |
a834585d | 336 | #define wxSTC_LEX_SCRIPTOL 33 |
9e730a78 RD |
337 | #define wxSTC_LEX_ASM 34 |
338 | #define wxSTC_LEX_CPPNOCASE 35 | |
339 | #define wxSTC_LEX_FORTRAN 36 | |
340 | #define wxSTC_LEX_F77 37 | |
341 | #define wxSTC_LEX_CSS 38 | |
342 | #define wxSTC_LEX_POV 39 | |
e14d10b0 RD |
343 | #define wxSTC_LEX_LOUT 40 |
344 | #define wxSTC_LEX_ESCRIPT 41 | |
88a8b04e RD |
345 | #define wxSTC_LEX_PS 42 |
346 | #define wxSTC_LEX_NSIS 43 | |
347 | #define wxSTC_LEX_MMIXAL 44 | |
8e54aaed RD |
348 | #define wxSTC_LEX_CLW 45 |
349 | #define wxSTC_LEX_CLWNOCASE 46 | |
350 | #define wxSTC_LEX_LOT 47 | |
351 | #define wxSTC_LEX_YAML 48 | |
352 | #define wxSTC_LEX_TEX 49 | |
353 | #define wxSTC_LEX_METAPOST 50 | |
354 | #define wxSTC_LEX_POWERBASIC 51 | |
355 | #define wxSTC_LEX_FORTH 52 | |
356 | #define wxSTC_LEX_ERLANG 53 | |
357 | #define wxSTC_LEX_OCTAVE 54 | |
591d01be RD |
358 | #define wxSTC_LEX_MSSQL 55 |
359 | #define wxSTC_LEX_VERILOG 56 | |
360 | #define wxSTC_LEX_KIX 57 | |
361 | #define wxSTC_LEX_GUI4CLI 58 | |
362 | #define wxSTC_LEX_SPECMAN 59 | |
363 | #define wxSTC_LEX_AU3 60 | |
364 | #define wxSTC_LEX_APDL 61 | |
365 | #define wxSTC_LEX_BASH 62 | |
65ec6247 RD |
366 | |
367 | // When a lexer specifies its language as SCLEX_AUTOMATIC it receives a | |
368 | // value assigned in sequence from SCLEX_AUTOMATIC+1. | |
369 | #define wxSTC_LEX_AUTOMATIC 1000 | |
4370573a RD |
370 | |
371 | // Lexical states for SCLEX_PYTHON | |
372 | #define wxSTC_P_DEFAULT 0 | |
373 | #define wxSTC_P_COMMENTLINE 1 | |
374 | #define wxSTC_P_NUMBER 2 | |
375 | #define wxSTC_P_STRING 3 | |
376 | #define wxSTC_P_CHARACTER 4 | |
377 | #define wxSTC_P_WORD 5 | |
378 | #define wxSTC_P_TRIPLE 6 | |
379 | #define wxSTC_P_TRIPLEDOUBLE 7 | |
380 | #define wxSTC_P_CLASSNAME 8 | |
381 | #define wxSTC_P_DEFNAME 9 | |
382 | #define wxSTC_P_OPERATOR 10 | |
383 | #define wxSTC_P_IDENTIFIER 11 | |
384 | #define wxSTC_P_COMMENTBLOCK 12 | |
385 | #define wxSTC_P_STRINGEOL 13 | |
386 | ||
1a2fb4cd | 387 | // Lexical states for SCLEX_CPP |
4370573a RD |
388 | #define wxSTC_C_DEFAULT 0 |
389 | #define wxSTC_C_COMMENT 1 | |
390 | #define wxSTC_C_COMMENTLINE 2 | |
391 | #define wxSTC_C_COMMENTDOC 3 | |
392 | #define wxSTC_C_NUMBER 4 | |
393 | #define wxSTC_C_WORD 5 | |
394 | #define wxSTC_C_STRING 6 | |
395 | #define wxSTC_C_CHARACTER 7 | |
396 | #define wxSTC_C_UUID 8 | |
397 | #define wxSTC_C_PREPROCESSOR 9 | |
398 | #define wxSTC_C_OPERATOR 10 | |
399 | #define wxSTC_C_IDENTIFIER 11 | |
400 | #define wxSTC_C_STRINGEOL 12 | |
401 | #define wxSTC_C_VERBATIM 13 | |
65ec6247 RD |
402 | #define wxSTC_C_REGEX 14 |
403 | #define wxSTC_C_COMMENTLINEDOC 15 | |
404 | #define wxSTC_C_WORD2 16 | |
b8b0e402 RD |
405 | #define wxSTC_C_COMMENTDOCKEYWORD 17 |
406 | #define wxSTC_C_COMMENTDOCKEYWORDERROR 18 | |
e14d10b0 | 407 | #define wxSTC_C_GLOBALCLASS 19 |
4370573a RD |
408 | |
409 | // Lexical states for SCLEX_HTML, SCLEX_XML | |
410 | #define wxSTC_H_DEFAULT 0 | |
411 | #define wxSTC_H_TAG 1 | |
412 | #define wxSTC_H_TAGUNKNOWN 2 | |
413 | #define wxSTC_H_ATTRIBUTE 3 | |
414 | #define wxSTC_H_ATTRIBUTEUNKNOWN 4 | |
415 | #define wxSTC_H_NUMBER 5 | |
416 | #define wxSTC_H_DOUBLESTRING 6 | |
417 | #define wxSTC_H_SINGLESTRING 7 | |
418 | #define wxSTC_H_OTHER 8 | |
419 | #define wxSTC_H_COMMENT 9 | |
420 | #define wxSTC_H_ENTITY 10 | |
421 | ||
422 | // XML and ASP | |
423 | #define wxSTC_H_TAGEND 11 | |
424 | #define wxSTC_H_XMLSTART 12 | |
425 | #define wxSTC_H_XMLEND 13 | |
426 | #define wxSTC_H_SCRIPT 14 | |
427 | #define wxSTC_H_ASP 15 | |
428 | #define wxSTC_H_ASPAT 16 | |
429 | #define wxSTC_H_CDATA 17 | |
430 | #define wxSTC_H_QUESTION 18 | |
431 | ||
432 | // More HTML | |
433 | #define wxSTC_H_VALUE 19 | |
434 | ||
65ec6247 RD |
435 | // X-Code |
436 | #define wxSTC_H_XCCOMMENT 20 | |
437 | ||
438 | // SGML | |
b8b0e402 RD |
439 | #define wxSTC_H_SGML_DEFAULT 21 |
440 | #define wxSTC_H_SGML_COMMAND 22 | |
441 | #define wxSTC_H_SGML_1ST_PARAM 23 | |
442 | #define wxSTC_H_SGML_DOUBLESTRING 24 | |
443 | #define wxSTC_H_SGML_SIMPLESTRING 25 | |
444 | #define wxSTC_H_SGML_ERROR 26 | |
445 | #define wxSTC_H_SGML_SPECIAL 27 | |
446 | #define wxSTC_H_SGML_ENTITY 28 | |
447 | #define wxSTC_H_SGML_COMMENT 29 | |
448 | #define wxSTC_H_SGML_1ST_PARAM_COMMENT 30 | |
449 | #define wxSTC_H_SGML_BLOCK_DEFAULT 31 | |
65ec6247 | 450 | |
4370573a RD |
451 | // Embedded Javascript |
452 | #define wxSTC_HJ_START 40 | |
453 | #define wxSTC_HJ_DEFAULT 41 | |
454 | #define wxSTC_HJ_COMMENT 42 | |
455 | #define wxSTC_HJ_COMMENTLINE 43 | |
456 | #define wxSTC_HJ_COMMENTDOC 44 | |
457 | #define wxSTC_HJ_NUMBER 45 | |
458 | #define wxSTC_HJ_WORD 46 | |
459 | #define wxSTC_HJ_KEYWORD 47 | |
460 | #define wxSTC_HJ_DOUBLESTRING 48 | |
461 | #define wxSTC_HJ_SINGLESTRING 49 | |
462 | #define wxSTC_HJ_SYMBOLS 50 | |
463 | #define wxSTC_HJ_STRINGEOL 51 | |
65ec6247 | 464 | #define wxSTC_HJ_REGEX 52 |
4370573a RD |
465 | |
466 | // ASP Javascript | |
467 | #define wxSTC_HJA_START 55 | |
468 | #define wxSTC_HJA_DEFAULT 56 | |
469 | #define wxSTC_HJA_COMMENT 57 | |
470 | #define wxSTC_HJA_COMMENTLINE 58 | |
471 | #define wxSTC_HJA_COMMENTDOC 59 | |
472 | #define wxSTC_HJA_NUMBER 60 | |
473 | #define wxSTC_HJA_WORD 61 | |
474 | #define wxSTC_HJA_KEYWORD 62 | |
475 | #define wxSTC_HJA_DOUBLESTRING 63 | |
476 | #define wxSTC_HJA_SINGLESTRING 64 | |
477 | #define wxSTC_HJA_SYMBOLS 65 | |
478 | #define wxSTC_HJA_STRINGEOL 66 | |
65ec6247 | 479 | #define wxSTC_HJA_REGEX 67 |
4370573a RD |
480 | |
481 | // Embedded VBScript | |
482 | #define wxSTC_HB_START 70 | |
483 | #define wxSTC_HB_DEFAULT 71 | |
484 | #define wxSTC_HB_COMMENTLINE 72 | |
485 | #define wxSTC_HB_NUMBER 73 | |
486 | #define wxSTC_HB_WORD 74 | |
487 | #define wxSTC_HB_STRING 75 | |
488 | #define wxSTC_HB_IDENTIFIER 76 | |
489 | #define wxSTC_HB_STRINGEOL 77 | |
490 | ||
491 | // ASP VBScript | |
492 | #define wxSTC_HBA_START 80 | |
493 | #define wxSTC_HBA_DEFAULT 81 | |
494 | #define wxSTC_HBA_COMMENTLINE 82 | |
495 | #define wxSTC_HBA_NUMBER 83 | |
496 | #define wxSTC_HBA_WORD 84 | |
497 | #define wxSTC_HBA_STRING 85 | |
498 | #define wxSTC_HBA_IDENTIFIER 86 | |
499 | #define wxSTC_HBA_STRINGEOL 87 | |
500 | ||
501 | // Embedded Python | |
502 | #define wxSTC_HP_START 90 | |
503 | #define wxSTC_HP_DEFAULT 91 | |
504 | #define wxSTC_HP_COMMENTLINE 92 | |
505 | #define wxSTC_HP_NUMBER 93 | |
506 | #define wxSTC_HP_STRING 94 | |
507 | #define wxSTC_HP_CHARACTER 95 | |
508 | #define wxSTC_HP_WORD 96 | |
509 | #define wxSTC_HP_TRIPLE 97 | |
510 | #define wxSTC_HP_TRIPLEDOUBLE 98 | |
511 | #define wxSTC_HP_CLASSNAME 99 | |
512 | #define wxSTC_HP_DEFNAME 100 | |
513 | #define wxSTC_HP_OPERATOR 101 | |
514 | #define wxSTC_HP_IDENTIFIER 102 | |
515 | ||
591d01be RD |
516 | // PHP |
517 | #define wxSTC_HPHP_COMPLEX_VARIABLE 104 | |
518 | ||
4370573a RD |
519 | // ASP Python |
520 | #define wxSTC_HPA_START 105 | |
521 | #define wxSTC_HPA_DEFAULT 106 | |
522 | #define wxSTC_HPA_COMMENTLINE 107 | |
523 | #define wxSTC_HPA_NUMBER 108 | |
524 | #define wxSTC_HPA_STRING 109 | |
525 | #define wxSTC_HPA_CHARACTER 110 | |
526 | #define wxSTC_HPA_WORD 111 | |
527 | #define wxSTC_HPA_TRIPLE 112 | |
528 | #define wxSTC_HPA_TRIPLEDOUBLE 113 | |
529 | #define wxSTC_HPA_CLASSNAME 114 | |
530 | #define wxSTC_HPA_DEFNAME 115 | |
531 | #define wxSTC_HPA_OPERATOR 116 | |
532 | #define wxSTC_HPA_IDENTIFIER 117 | |
533 | ||
534 | // PHP | |
535 | #define wxSTC_HPHP_DEFAULT 118 | |
536 | #define wxSTC_HPHP_HSTRING 119 | |
537 | #define wxSTC_HPHP_SIMPLESTRING 120 | |
538 | #define wxSTC_HPHP_WORD 121 | |
539 | #define wxSTC_HPHP_NUMBER 122 | |
540 | #define wxSTC_HPHP_VARIABLE 123 | |
541 | #define wxSTC_HPHP_COMMENT 124 | |
542 | #define wxSTC_HPHP_COMMENTLINE 125 | |
65ec6247 RD |
543 | #define wxSTC_HPHP_HSTRING_VARIABLE 126 |
544 | #define wxSTC_HPHP_OPERATOR 127 | |
4370573a RD |
545 | |
546 | // Lexical states for SCLEX_PERL | |
547 | #define wxSTC_PL_DEFAULT 0 | |
65ec6247 | 548 | #define wxSTC_PL_ERROR 1 |
4370573a RD |
549 | #define wxSTC_PL_COMMENTLINE 2 |
550 | #define wxSTC_PL_POD 3 | |
551 | #define wxSTC_PL_NUMBER 4 | |
552 | #define wxSTC_PL_WORD 5 | |
553 | #define wxSTC_PL_STRING 6 | |
554 | #define wxSTC_PL_CHARACTER 7 | |
555 | #define wxSTC_PL_PUNCTUATION 8 | |
556 | #define wxSTC_PL_PREPROCESSOR 9 | |
557 | #define wxSTC_PL_OPERATOR 10 | |
558 | #define wxSTC_PL_IDENTIFIER 11 | |
559 | #define wxSTC_PL_SCALAR 12 | |
560 | #define wxSTC_PL_ARRAY 13 | |
561 | #define wxSTC_PL_HASH 14 | |
562 | #define wxSTC_PL_SYMBOLTABLE 15 | |
4370573a RD |
563 | #define wxSTC_PL_REGEX 17 |
564 | #define wxSTC_PL_REGSUBST 18 | |
565 | #define wxSTC_PL_LONGQUOTE 19 | |
566 | #define wxSTC_PL_BACKTICKS 20 | |
567 | #define wxSTC_PL_DATASECTION 21 | |
65ec6247 RD |
568 | #define wxSTC_PL_HERE_DELIM 22 |
569 | #define wxSTC_PL_HERE_Q 23 | |
570 | #define wxSTC_PL_HERE_QQ 24 | |
571 | #define wxSTC_PL_HERE_QX 25 | |
572 | #define wxSTC_PL_STRING_Q 26 | |
573 | #define wxSTC_PL_STRING_QQ 27 | |
574 | #define wxSTC_PL_STRING_QX 28 | |
575 | #define wxSTC_PL_STRING_QR 29 | |
576 | #define wxSTC_PL_STRING_QW 30 | |
4370573a | 577 | |
8e54aaed | 578 | // Lexical states for SCLEX_VB, SCLEX_VBSCRIPT, SCLEX_POWERBASIC |
a834585d RD |
579 | #define wxSTC_B_DEFAULT 0 |
580 | #define wxSTC_B_COMMENT 1 | |
581 | #define wxSTC_B_NUMBER 2 | |
582 | #define wxSTC_B_KEYWORD 3 | |
583 | #define wxSTC_B_STRING 4 | |
584 | #define wxSTC_B_PREPROCESSOR 5 | |
585 | #define wxSTC_B_OPERATOR 6 | |
586 | #define wxSTC_B_IDENTIFIER 7 | |
587 | #define wxSTC_B_DATE 8 | |
8e54aaed RD |
588 | #define wxSTC_B_STRINGEOL 9 |
589 | #define wxSTC_B_KEYWORD2 10 | |
590 | #define wxSTC_B_KEYWORD3 11 | |
591 | #define wxSTC_B_KEYWORD4 12 | |
591d01be RD |
592 | #define wxSTC_B_CONSTANT 13 |
593 | #define wxSTC_B_ASM 14 | |
a834585d RD |
594 | |
595 | // Lexical states for SCLEX_PROPERTIES | |
596 | #define wxSTC_PROPS_DEFAULT 0 | |
597 | #define wxSTC_PROPS_COMMENT 1 | |
598 | #define wxSTC_PROPS_SECTION 2 | |
599 | #define wxSTC_PROPS_ASSIGNMENT 3 | |
600 | #define wxSTC_PROPS_DEFVAL 4 | |
601 | ||
4370573a RD |
602 | // Lexical states for SCLEX_LATEX |
603 | #define wxSTC_L_DEFAULT 0 | |
604 | #define wxSTC_L_COMMAND 1 | |
605 | #define wxSTC_L_TAG 2 | |
606 | #define wxSTC_L_MATH 3 | |
607 | #define wxSTC_L_COMMENT 4 | |
608 | ||
609 | // Lexical states for SCLEX_LUA | |
610 | #define wxSTC_LUA_DEFAULT 0 | |
611 | #define wxSTC_LUA_COMMENT 1 | |
612 | #define wxSTC_LUA_COMMENTLINE 2 | |
613 | #define wxSTC_LUA_COMMENTDOC 3 | |
614 | #define wxSTC_LUA_NUMBER 4 | |
615 | #define wxSTC_LUA_WORD 5 | |
616 | #define wxSTC_LUA_STRING 6 | |
617 | #define wxSTC_LUA_CHARACTER 7 | |
618 | #define wxSTC_LUA_LITERALSTRING 8 | |
619 | #define wxSTC_LUA_PREPROCESSOR 9 | |
620 | #define wxSTC_LUA_OPERATOR 10 | |
621 | #define wxSTC_LUA_IDENTIFIER 11 | |
622 | #define wxSTC_LUA_STRINGEOL 12 | |
1a2fb4cd RD |
623 | #define wxSTC_LUA_WORD2 13 |
624 | #define wxSTC_LUA_WORD3 14 | |
625 | #define wxSTC_LUA_WORD4 15 | |
626 | #define wxSTC_LUA_WORD5 16 | |
627 | #define wxSTC_LUA_WORD6 17 | |
88a8b04e RD |
628 | #define wxSTC_LUA_WORD7 18 |
629 | #define wxSTC_LUA_WORD8 19 | |
65ec6247 RD |
630 | |
631 | // Lexical states for SCLEX_ERRORLIST | |
4370573a RD |
632 | #define wxSTC_ERR_DEFAULT 0 |
633 | #define wxSTC_ERR_PYTHON 1 | |
634 | #define wxSTC_ERR_GCC 2 | |
635 | #define wxSTC_ERR_MS 3 | |
636 | #define wxSTC_ERR_CMD 4 | |
637 | #define wxSTC_ERR_BORLAND 5 | |
638 | #define wxSTC_ERR_PERL 6 | |
65ec6247 RD |
639 | #define wxSTC_ERR_NET 7 |
640 | #define wxSTC_ERR_LUA 8 | |
a834585d | 641 | #define wxSTC_ERR_CTAG 9 |
65ec6247 RD |
642 | #define wxSTC_ERR_DIFF_CHANGED 10 |
643 | #define wxSTC_ERR_DIFF_ADDITION 11 | |
644 | #define wxSTC_ERR_DIFF_DELETION 12 | |
645 | #define wxSTC_ERR_DIFF_MESSAGE 13 | |
9e730a78 RD |
646 | #define wxSTC_ERR_PHP 14 |
647 | #define wxSTC_ERR_ELF 15 | |
648 | #define wxSTC_ERR_IFC 16 | |
8e54aaed RD |
649 | #define wxSTC_ERR_IFORT 17 |
650 | #define wxSTC_ERR_ABSF 18 | |
591d01be | 651 | #define wxSTC_ERR_TIDY 19 |
65ec6247 RD |
652 | |
653 | // Lexical states for SCLEX_BATCH | |
654 | #define wxSTC_BAT_DEFAULT 0 | |
655 | #define wxSTC_BAT_COMMENT 1 | |
656 | #define wxSTC_BAT_WORD 2 | |
657 | #define wxSTC_BAT_LABEL 3 | |
658 | #define wxSTC_BAT_HIDE 4 | |
659 | #define wxSTC_BAT_COMMAND 5 | |
660 | #define wxSTC_BAT_IDENTIFIER 6 | |
661 | #define wxSTC_BAT_OPERATOR 7 | |
662 | ||
663 | // Lexical states for SCLEX_MAKEFILE | |
664 | #define wxSTC_MAKE_DEFAULT 0 | |
665 | #define wxSTC_MAKE_COMMENT 1 | |
666 | #define wxSTC_MAKE_PREPROCESSOR 2 | |
667 | #define wxSTC_MAKE_IDENTIFIER 3 | |
668 | #define wxSTC_MAKE_OPERATOR 4 | |
669 | #define wxSTC_MAKE_TARGET 5 | |
670 | #define wxSTC_MAKE_IDEOL 9 | |
671 | ||
a834585d RD |
672 | // Lexical states for SCLEX_DIFF |
673 | #define wxSTC_DIFF_DEFAULT 0 | |
674 | #define wxSTC_DIFF_COMMENT 1 | |
675 | #define wxSTC_DIFF_COMMAND 2 | |
676 | #define wxSTC_DIFF_HEADER 3 | |
677 | #define wxSTC_DIFF_POSITION 4 | |
678 | #define wxSTC_DIFF_DELETED 5 | |
679 | #define wxSTC_DIFF_ADDED 6 | |
680 | ||
681 | // Lexical states for SCLEX_CONF (Apache Configuration Files Lexer) | |
65ec6247 RD |
682 | #define wxSTC_CONF_DEFAULT 0 |
683 | #define wxSTC_CONF_COMMENT 1 | |
684 | #define wxSTC_CONF_NUMBER 2 | |
685 | #define wxSTC_CONF_IDENTIFIER 3 | |
686 | #define wxSTC_CONF_EXTENSION 4 | |
687 | #define wxSTC_CONF_PARAMETER 5 | |
688 | #define wxSTC_CONF_STRING 6 | |
689 | #define wxSTC_CONF_OPERATOR 7 | |
690 | #define wxSTC_CONF_IP 8 | |
691 | #define wxSTC_CONF_DIRECTIVE 9 | |
692 | ||
a834585d | 693 | // Lexical states for SCLEX_AVE, Avenue |
65ec6247 RD |
694 | #define wxSTC_AVE_DEFAULT 0 |
695 | #define wxSTC_AVE_COMMENT 1 | |
696 | #define wxSTC_AVE_NUMBER 2 | |
697 | #define wxSTC_AVE_WORD 3 | |
65ec6247 RD |
698 | #define wxSTC_AVE_STRING 6 |
699 | #define wxSTC_AVE_ENUM 7 | |
700 | #define wxSTC_AVE_STRINGEOL 8 | |
701 | #define wxSTC_AVE_IDENTIFIER 9 | |
702 | #define wxSTC_AVE_OPERATOR 10 | |
9e730a78 RD |
703 | #define wxSTC_AVE_WORD1 11 |
704 | #define wxSTC_AVE_WORD2 12 | |
705 | #define wxSTC_AVE_WORD3 13 | |
706 | #define wxSTC_AVE_WORD4 14 | |
707 | #define wxSTC_AVE_WORD5 15 | |
708 | #define wxSTC_AVE_WORD6 16 | |
65ec6247 RD |
709 | |
710 | // Lexical states for SCLEX_ADA | |
711 | #define wxSTC_ADA_DEFAULT 0 | |
9e730a78 RD |
712 | #define wxSTC_ADA_WORD 1 |
713 | #define wxSTC_ADA_IDENTIFIER 2 | |
714 | #define wxSTC_ADA_NUMBER 3 | |
715 | #define wxSTC_ADA_DELIMITER 4 | |
65ec6247 | 716 | #define wxSTC_ADA_CHARACTER 5 |
9e730a78 RD |
717 | #define wxSTC_ADA_CHARACTEREOL 6 |
718 | #define wxSTC_ADA_STRING 7 | |
65ec6247 | 719 | #define wxSTC_ADA_STRINGEOL 8 |
9e730a78 RD |
720 | #define wxSTC_ADA_LABEL 9 |
721 | #define wxSTC_ADA_COMMENTLINE 10 | |
722 | #define wxSTC_ADA_ILLEGAL 11 | |
65ec6247 | 723 | |
1a2fb4cd RD |
724 | // Lexical states for SCLEX_BAAN |
725 | #define wxSTC_BAAN_DEFAULT 0 | |
726 | #define wxSTC_BAAN_COMMENT 1 | |
727 | #define wxSTC_BAAN_COMMENTDOC 2 | |
728 | #define wxSTC_BAAN_NUMBER 3 | |
729 | #define wxSTC_BAAN_WORD 4 | |
730 | #define wxSTC_BAAN_STRING 5 | |
731 | #define wxSTC_BAAN_PREPROCESSOR 6 | |
732 | #define wxSTC_BAAN_OPERATOR 7 | |
733 | #define wxSTC_BAAN_IDENTIFIER 8 | |
734 | #define wxSTC_BAAN_STRINGEOL 9 | |
735 | #define wxSTC_BAAN_WORD2 10 | |
736 | ||
65ec6247 RD |
737 | // Lexical states for SCLEX_LISP |
738 | #define wxSTC_LISP_DEFAULT 0 | |
739 | #define wxSTC_LISP_COMMENT 1 | |
740 | #define wxSTC_LISP_NUMBER 2 | |
741 | #define wxSTC_LISP_KEYWORD 3 | |
742 | #define wxSTC_LISP_STRING 6 | |
743 | #define wxSTC_LISP_STRINGEOL 8 | |
744 | #define wxSTC_LISP_IDENTIFIER 9 | |
745 | #define wxSTC_LISP_OPERATOR 10 | |
746 | ||
747 | // Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW | |
748 | #define wxSTC_EIFFEL_DEFAULT 0 | |
749 | #define wxSTC_EIFFEL_COMMENTLINE 1 | |
750 | #define wxSTC_EIFFEL_NUMBER 2 | |
751 | #define wxSTC_EIFFEL_WORD 3 | |
752 | #define wxSTC_EIFFEL_STRING 4 | |
753 | #define wxSTC_EIFFEL_CHARACTER 5 | |
754 | #define wxSTC_EIFFEL_OPERATOR 6 | |
755 | #define wxSTC_EIFFEL_IDENTIFIER 7 | |
756 | #define wxSTC_EIFFEL_STRINGEOL 8 | |
4370573a | 757 | |
a834585d | 758 | // Lexical states for SCLEX_NNCRONTAB (nnCron crontab Lexer) |
b8b0e402 RD |
759 | #define wxSTC_NNCRONTAB_DEFAULT 0 |
760 | #define wxSTC_NNCRONTAB_COMMENT 1 | |
761 | #define wxSTC_NNCRONTAB_TASK 2 | |
762 | #define wxSTC_NNCRONTAB_SECTION 3 | |
763 | #define wxSTC_NNCRONTAB_KEYWORD 4 | |
764 | #define wxSTC_NNCRONTAB_MODIFIER 5 | |
765 | #define wxSTC_NNCRONTAB_ASTERISK 6 | |
766 | #define wxSTC_NNCRONTAB_NUMBER 7 | |
767 | #define wxSTC_NNCRONTAB_STRING 8 | |
768 | #define wxSTC_NNCRONTAB_ENVIRONMENT 9 | |
769 | #define wxSTC_NNCRONTAB_IDENTIFIER 10 | |
770 | ||
8e54aaed RD |
771 | // Lexical states for SCLEX_FORTH (Forth Lexer) |
772 | #define wxSTC_FORTH_DEFAULT 0 | |
773 | #define wxSTC_FORTH_COMMENT 1 | |
774 | #define wxSTC_FORTH_COMMENT_ML 2 | |
775 | #define wxSTC_FORTH_IDENTIFIER 3 | |
776 | #define wxSTC_FORTH_CONTROL 4 | |
777 | #define wxSTC_FORTH_KEYWORD 5 | |
778 | #define wxSTC_FORTH_DEFWORD 6 | |
779 | #define wxSTC_FORTH_PREWORD1 7 | |
780 | #define wxSTC_FORTH_PREWORD2 8 | |
781 | #define wxSTC_FORTH_NUMBER 9 | |
782 | #define wxSTC_FORTH_STRING 10 | |
783 | #define wxSTC_FORTH_LOCALE 11 | |
784 | ||
1a2fb4cd RD |
785 | // Lexical states for SCLEX_MATLAB |
786 | #define wxSTC_MATLAB_DEFAULT 0 | |
787 | #define wxSTC_MATLAB_COMMENT 1 | |
788 | #define wxSTC_MATLAB_COMMAND 2 | |
789 | #define wxSTC_MATLAB_NUMBER 3 | |
790 | #define wxSTC_MATLAB_KEYWORD 4 | |
8e54aaed RD |
791 | |
792 | // single quoted string | |
1a2fb4cd RD |
793 | #define wxSTC_MATLAB_STRING 5 |
794 | #define wxSTC_MATLAB_OPERATOR 6 | |
795 | #define wxSTC_MATLAB_IDENTIFIER 7 | |
8e54aaed | 796 | #define wxSTC_MATLAB_DOUBLEQUOTESTRING 8 |
9ce192d4 | 797 | |
a834585d RD |
798 | // Lexical states for SCLEX_SCRIPTOL |
799 | #define wxSTC_SCRIPTOL_DEFAULT 0 | |
8e54aaed | 800 | #define wxSTC_SCRIPTOL_WHITE 1 |
a834585d | 801 | #define wxSTC_SCRIPTOL_COMMENTLINE 2 |
8e54aaed RD |
802 | #define wxSTC_SCRIPTOL_PERSISTENT 3 |
803 | #define wxSTC_SCRIPTOL_CSTYLE 4 | |
804 | #define wxSTC_SCRIPTOL_COMMENTBLOCK 5 | |
805 | #define wxSTC_SCRIPTOL_NUMBER 6 | |
806 | #define wxSTC_SCRIPTOL_STRING 7 | |
807 | #define wxSTC_SCRIPTOL_CHARACTER 8 | |
808 | #define wxSTC_SCRIPTOL_STRINGEOL 9 | |
809 | #define wxSTC_SCRIPTOL_KEYWORD 10 | |
810 | #define wxSTC_SCRIPTOL_OPERATOR 11 | |
811 | #define wxSTC_SCRIPTOL_IDENTIFIER 12 | |
812 | #define wxSTC_SCRIPTOL_TRIPLE 13 | |
813 | #define wxSTC_SCRIPTOL_CLASSNAME 14 | |
814 | #define wxSTC_SCRIPTOL_PREPROCESSOR 15 | |
a834585d | 815 | |
9e730a78 RD |
816 | // Lexical states for SCLEX_ASM |
817 | #define wxSTC_ASM_DEFAULT 0 | |
818 | #define wxSTC_ASM_COMMENT 1 | |
819 | #define wxSTC_ASM_NUMBER 2 | |
820 | #define wxSTC_ASM_STRING 3 | |
821 | #define wxSTC_ASM_OPERATOR 4 | |
822 | #define wxSTC_ASM_IDENTIFIER 5 | |
823 | #define wxSTC_ASM_CPUINSTRUCTION 6 | |
824 | #define wxSTC_ASM_MATHINSTRUCTION 7 | |
825 | #define wxSTC_ASM_REGISTER 8 | |
826 | #define wxSTC_ASM_DIRECTIVE 9 | |
827 | #define wxSTC_ASM_DIRECTIVEOPERAND 10 | |
8e54aaed RD |
828 | #define wxSTC_ASM_COMMENTBLOCK 11 |
829 | #define wxSTC_ASM_CHARACTER 12 | |
830 | #define wxSTC_ASM_STRINGEOL 13 | |
831 | #define wxSTC_ASM_EXTINSTRUCTION 14 | |
9e730a78 RD |
832 | |
833 | // Lexical states for SCLEX_FORTRAN | |
834 | #define wxSTC_F_DEFAULT 0 | |
835 | #define wxSTC_F_COMMENT 1 | |
836 | #define wxSTC_F_NUMBER 2 | |
837 | #define wxSTC_F_STRING1 3 | |
838 | #define wxSTC_F_STRING2 4 | |
839 | #define wxSTC_F_STRINGEOL 5 | |
840 | #define wxSTC_F_OPERATOR 6 | |
841 | #define wxSTC_F_IDENTIFIER 7 | |
842 | #define wxSTC_F_WORD 8 | |
843 | #define wxSTC_F_WORD2 9 | |
844 | #define wxSTC_F_WORD3 10 | |
845 | #define wxSTC_F_PREPROCESSOR 11 | |
846 | #define wxSTC_F_OPERATOR2 12 | |
847 | #define wxSTC_F_LABEL 13 | |
848 | #define wxSTC_F_CONTINUATION 14 | |
849 | ||
850 | // Lexical states for SCLEX_CSS | |
851 | #define wxSTC_CSS_DEFAULT 0 | |
852 | #define wxSTC_CSS_TAG 1 | |
853 | #define wxSTC_CSS_CLASS 2 | |
854 | #define wxSTC_CSS_PSEUDOCLASS 3 | |
855 | #define wxSTC_CSS_UNKNOWN_PSEUDOCLASS 4 | |
856 | #define wxSTC_CSS_OPERATOR 5 | |
857 | #define wxSTC_CSS_IDENTIFIER 6 | |
858 | #define wxSTC_CSS_UNKNOWN_IDENTIFIER 7 | |
859 | #define wxSTC_CSS_VALUE 8 | |
860 | #define wxSTC_CSS_COMMENT 9 | |
861 | #define wxSTC_CSS_ID 10 | |
862 | #define wxSTC_CSS_IMPORTANT 11 | |
863 | #define wxSTC_CSS_DIRECTIVE 12 | |
864 | #define wxSTC_CSS_DOUBLESTRING 13 | |
865 | #define wxSTC_CSS_SINGLESTRING 14 | |
866 | ||
867 | // Lexical states for SCLEX_POV | |
868 | #define wxSTC_POV_DEFAULT 0 | |
869 | #define wxSTC_POV_COMMENT 1 | |
870 | #define wxSTC_POV_COMMENTLINE 2 | |
88a8b04e RD |
871 | #define wxSTC_POV_NUMBER 3 |
872 | #define wxSTC_POV_OPERATOR 4 | |
873 | #define wxSTC_POV_IDENTIFIER 5 | |
9e730a78 | 874 | #define wxSTC_POV_STRING 6 |
88a8b04e RD |
875 | #define wxSTC_POV_STRINGEOL 7 |
876 | #define wxSTC_POV_DIRECTIVE 8 | |
877 | #define wxSTC_POV_BADDIRECTIVE 9 | |
9e730a78 | 878 | #define wxSTC_POV_WORD2 10 |
88a8b04e RD |
879 | #define wxSTC_POV_WORD3 11 |
880 | #define wxSTC_POV_WORD4 12 | |
881 | #define wxSTC_POV_WORD5 13 | |
882 | #define wxSTC_POV_WORD6 14 | |
883 | #define wxSTC_POV_WORD7 15 | |
884 | #define wxSTC_POV_WORD8 16 | |
9e730a78 | 885 | |
e14d10b0 RD |
886 | // Lexical states for SCLEX_LOUT |
887 | #define wxSTC_LOUT_DEFAULT 0 | |
888 | #define wxSTC_LOUT_COMMENT 1 | |
889 | #define wxSTC_LOUT_NUMBER 2 | |
890 | #define wxSTC_LOUT_WORD 3 | |
891 | #define wxSTC_LOUT_WORD2 4 | |
892 | #define wxSTC_LOUT_WORD3 5 | |
893 | #define wxSTC_LOUT_WORD4 6 | |
894 | #define wxSTC_LOUT_STRING 7 | |
895 | #define wxSTC_LOUT_OPERATOR 8 | |
896 | #define wxSTC_LOUT_IDENTIFIER 9 | |
897 | #define wxSTC_LOUT_STRINGEOL 10 | |
898 | ||
899 | // Lexical states for SCLEX_ESCRIPT | |
900 | #define wxSTC_ESCRIPT_DEFAULT 0 | |
901 | #define wxSTC_ESCRIPT_COMMENT 1 | |
902 | #define wxSTC_ESCRIPT_COMMENTLINE 2 | |
903 | #define wxSTC_ESCRIPT_COMMENTDOC 3 | |
904 | #define wxSTC_ESCRIPT_NUMBER 4 | |
905 | #define wxSTC_ESCRIPT_WORD 5 | |
906 | #define wxSTC_ESCRIPT_STRING 6 | |
907 | #define wxSTC_ESCRIPT_OPERATOR 7 | |
908 | #define wxSTC_ESCRIPT_IDENTIFIER 8 | |
909 | #define wxSTC_ESCRIPT_BRACE 9 | |
910 | #define wxSTC_ESCRIPT_WORD2 10 | |
911 | #define wxSTC_ESCRIPT_WORD3 11 | |
912 | ||
88a8b04e RD |
913 | // Lexical states for SCLEX_PS |
914 | #define wxSTC_PS_DEFAULT 0 | |
915 | #define wxSTC_PS_COMMENT 1 | |
916 | #define wxSTC_PS_DSC_COMMENT 2 | |
917 | #define wxSTC_PS_DSC_VALUE 3 | |
918 | #define wxSTC_PS_NUMBER 4 | |
919 | #define wxSTC_PS_NAME 5 | |
920 | #define wxSTC_PS_KEYWORD 6 | |
921 | #define wxSTC_PS_LITERAL 7 | |
922 | #define wxSTC_PS_IMMEVAL 8 | |
923 | #define wxSTC_PS_PAREN_ARRAY 9 | |
924 | #define wxSTC_PS_PAREN_DICT 10 | |
925 | #define wxSTC_PS_PAREN_PROC 11 | |
926 | #define wxSTC_PS_TEXT 12 | |
927 | #define wxSTC_PS_HEXSTRING 13 | |
928 | #define wxSTC_PS_BASE85STRING 14 | |
929 | #define wxSTC_PS_BADSTRINGCHAR 15 | |
930 | ||
931 | // Lexical states for SCLEX_NSIS | |
932 | #define wxSTC_NSIS_DEFAULT 0 | |
933 | #define wxSTC_NSIS_COMMENT 1 | |
934 | #define wxSTC_NSIS_STRINGDQ 2 | |
935 | #define wxSTC_NSIS_STRINGLQ 3 | |
936 | #define wxSTC_NSIS_STRINGRQ 4 | |
937 | #define wxSTC_NSIS_FUNCTION 5 | |
938 | #define wxSTC_NSIS_VARIABLE 6 | |
939 | #define wxSTC_NSIS_LABEL 7 | |
940 | #define wxSTC_NSIS_USERDEFINED 8 | |
941 | #define wxSTC_NSIS_SECTIONDEF 9 | |
942 | #define wxSTC_NSIS_SUBSECTIONDEF 10 | |
943 | #define wxSTC_NSIS_IFDEFINEDEF 11 | |
944 | #define wxSTC_NSIS_MACRODEF 12 | |
945 | #define wxSTC_NSIS_STRINGVAR 13 | |
591d01be | 946 | #define wxSTC_NSIS_NUMBER 14 |
88a8b04e RD |
947 | |
948 | // Lexical states for SCLEX_MMIXAL | |
949 | #define wxSTC_MMIXAL_LEADWS 0 | |
950 | #define wxSTC_MMIXAL_COMMENT 1 | |
951 | #define wxSTC_MMIXAL_LABEL 2 | |
952 | #define wxSTC_MMIXAL_OPCODE 3 | |
953 | #define wxSTC_MMIXAL_OPCODE_PRE 4 | |
954 | #define wxSTC_MMIXAL_OPCODE_VALID 5 | |
955 | #define wxSTC_MMIXAL_OPCODE_UNKNOWN 6 | |
956 | #define wxSTC_MMIXAL_OPCODE_POST 7 | |
957 | #define wxSTC_MMIXAL_OPERANDS 8 | |
958 | #define wxSTC_MMIXAL_NUMBER 9 | |
959 | #define wxSTC_MMIXAL_REF 10 | |
960 | #define wxSTC_MMIXAL_CHAR 11 | |
961 | #define wxSTC_MMIXAL_STRING 12 | |
962 | #define wxSTC_MMIXAL_REGISTER 13 | |
963 | #define wxSTC_MMIXAL_HEX 14 | |
964 | #define wxSTC_MMIXAL_OPERATOR 15 | |
965 | #define wxSTC_MMIXAL_SYMBOL 16 | |
966 | #define wxSTC_MMIXAL_INCLUDE 17 | |
967 | ||
8e54aaed RD |
968 | // Lexical states for SCLEX_CLW |
969 | #define wxSTC_CLW_DEFAULT 0 | |
970 | #define wxSTC_CLW_LABEL 1 | |
971 | #define wxSTC_CLW_COMMENT 2 | |
972 | #define wxSTC_CLW_STRING 3 | |
973 | #define wxSTC_CLW_USER_IDENTIFIER 4 | |
974 | #define wxSTC_CLW_INTEGER_CONSTANT 5 | |
975 | #define wxSTC_CLW_REAL_CONSTANT 6 | |
976 | #define wxSTC_CLW_PICTURE_STRING 7 | |
977 | #define wxSTC_CLW_KEYWORD 8 | |
978 | #define wxSTC_CLW_COMPILER_DIRECTIVE 9 | |
979 | #define wxSTC_CLW_BUILTIN_PROCEDURES_FUNCTION 10 | |
980 | #define wxSTC_CLW_STRUCTURE_DATA_TYPE 11 | |
981 | #define wxSTC_CLW_ATTRIBUTE 12 | |
982 | #define wxSTC_CLW_STANDARD_EQUATE 13 | |
983 | #define wxSTC_CLW_ERROR 14 | |
984 | ||
985 | // Lexical states for SCLEX_LOT | |
986 | #define wxSTC_LOT_DEFAULT 0 | |
987 | #define wxSTC_LOT_HEADER 1 | |
988 | #define wxSTC_LOT_BREAK 2 | |
989 | #define wxSTC_LOT_SET 3 | |
990 | #define wxSTC_LOT_PASS 4 | |
991 | #define wxSTC_LOT_FAIL 5 | |
992 | #define wxSTC_LOT_ABORT 6 | |
993 | ||
994 | // Lexical states for SCLEX_YAML | |
995 | #define wxSTC_YAML_DEFAULT 0 | |
996 | #define wxSTC_YAML_COMMENT 1 | |
997 | #define wxSTC_YAML_IDENTIFIER 2 | |
998 | #define wxSTC_YAML_KEYWORD 3 | |
999 | #define wxSTC_YAML_NUMBER 4 | |
1000 | #define wxSTC_YAML_REFERENCE 5 | |
1001 | #define wxSTC_YAML_DOCUMENT 6 | |
1002 | #define wxSTC_YAML_TEXT 7 | |
1003 | #define wxSTC_YAML_ERROR 8 | |
1004 | ||
1005 | // Lexical states for SCLEX_TEX | |
1006 | #define wxSTC_TEX_DEFAULT 0 | |
1007 | #define wxSTC_TEX_SPECIAL 1 | |
1008 | #define wxSTC_TEX_GROUP 2 | |
1009 | #define wxSTC_TEX_SYMBOL 3 | |
1010 | #define wxSTC_TEX_COMMAND 4 | |
1011 | #define wxSTC_TEX_TEXT 5 | |
1012 | #define wxSTC_METAPOST_DEFAULT 0 | |
1013 | #define wxSTC_METAPOST_SPECIAL 1 | |
1014 | #define wxSTC_METAPOST_GROUP 2 | |
1015 | #define wxSTC_METAPOST_SYMBOL 3 | |
1016 | #define wxSTC_METAPOST_COMMAND 4 | |
1017 | #define wxSTC_METAPOST_TEXT 5 | |
1018 | #define wxSTC_METAPOST_EXTRA 6 | |
1019 | ||
1020 | // Lexical states for SCLEX_ERLANG | |
1021 | #define wxSTC_ERLANG_DEFAULT 0 | |
1022 | #define wxSTC_ERLANG_COMMENT 1 | |
1023 | #define wxSTC_ERLANG_VARIABLE 2 | |
1024 | #define wxSTC_ERLANG_NUMBER 3 | |
1025 | #define wxSTC_ERLANG_KEYWORD 4 | |
1026 | #define wxSTC_ERLANG_STRING 5 | |
1027 | #define wxSTC_ERLANG_OPERATOR 6 | |
1028 | #define wxSTC_ERLANG_ATOM 7 | |
1029 | #define wxSTC_ERLANG_FUNCTION_NAME 8 | |
1030 | #define wxSTC_ERLANG_CHARACTER 9 | |
1031 | #define wxSTC_ERLANG_MACRO 10 | |
1032 | #define wxSTC_ERLANG_RECORD 11 | |
1033 | #define wxSTC_ERLANG_SEPARATOR 12 | |
1034 | #define wxSTC_ERLANG_NODE_NAME 13 | |
1035 | #define wxSTC_ERLANG_UNKNOWN 31 | |
1036 | ||
591d01be RD |
1037 | // Lexical states for SCLEX_OCTAVE are identical to MatLab |
1038 | // Lexical states for SCLEX_MSSQL | |
1039 | #define wxSTC_MSSQL_DEFAULT 0 | |
1040 | #define wxSTC_MSSQL_COMMENT 1 | |
1041 | #define wxSTC_MSSQL_LINE_COMMENT 2 | |
1042 | #define wxSTC_MSSQL_NUMBER 3 | |
1043 | #define wxSTC_MSSQL_STRING 4 | |
1044 | #define wxSTC_MSSQL_OPERATOR 5 | |
1045 | #define wxSTC_MSSQL_IDENTIFIER 6 | |
1046 | #define wxSTC_MSSQL_VARIABLE 7 | |
1047 | #define wxSTC_MSSQL_COLUMN_NAME 8 | |
1048 | #define wxSTC_MSSQL_STATEMENT 9 | |
1049 | #define wxSTC_MSSQL_DATATYPE 10 | |
1050 | #define wxSTC_MSSQL_SYSTABLE 11 | |
1051 | #define wxSTC_MSSQL_GLOBAL_VARIABLE 12 | |
1052 | #define wxSTC_MSSQL_FUNCTION 13 | |
1053 | #define wxSTC_MSSQL_STORED_PROCEDURE 14 | |
1054 | #define wxSTC_MSSQL_DEFAULT_PREF_DATATYPE 15 | |
1055 | #define wxSTC_MSSQL_COLUMN_NAME_2 16 | |
1056 | ||
1057 | // Lexical states for SCLEX_VERILOG | |
1058 | #define wxSTC_V_DEFAULT 0 | |
1059 | #define wxSTC_V_COMMENT 1 | |
1060 | #define wxSTC_V_COMMENTLINE 2 | |
1061 | #define wxSTC_V_COMMENTLINEBANG 3 | |
1062 | #define wxSTC_V_NUMBER 4 | |
1063 | #define wxSTC_V_WORD 5 | |
1064 | #define wxSTC_V_STRING 6 | |
1065 | #define wxSTC_V_WORD2 7 | |
1066 | #define wxSTC_V_WORD3 8 | |
1067 | #define wxSTC_V_PREPROCESSOR 9 | |
1068 | #define wxSTC_V_OPERATOR 10 | |
1069 | #define wxSTC_V_IDENTIFIER 11 | |
1070 | #define wxSTC_V_STRINGEOL 12 | |
1071 | #define wxSTC_V_USER 19 | |
1072 | ||
1073 | // Lexical states for SCLEX_KIX | |
1074 | #define wxSTC_KIX_DEFAULT 0 | |
1075 | #define wxSTC_KIX_COMMENT 1 | |
1076 | #define wxSTC_KIX_STRING1 2 | |
1077 | #define wxSTC_KIX_STRING2 3 | |
1078 | #define wxSTC_KIX_NUMBER 4 | |
1079 | #define wxSTC_KIX_VAR 5 | |
1080 | #define wxSTC_KIX_MACRO 6 | |
1081 | #define wxSTC_KIX_KEYWORD 7 | |
1082 | #define wxSTC_KIX_FUNCTIONS 8 | |
1083 | #define wxSTC_KIX_OPERATOR 9 | |
1084 | #define wxSTC_KIX_IDENTIFIER 31 | |
1085 | ||
1086 | // Lexical states for SCLEX_GUI4CLI | |
1087 | #define wxSTC_GC_DEFAULT 0 | |
1088 | #define wxSTC_GC_COMMENTLINE 1 | |
1089 | #define wxSTC_GC_COMMENTBLOCK 2 | |
1090 | #define wxSTC_GC_GLOBAL 3 | |
1091 | #define wxSTC_GC_EVENT 4 | |
1092 | #define wxSTC_GC_ATTRIBUTE 5 | |
1093 | #define wxSTC_GC_CONTROL 6 | |
1094 | #define wxSTC_GC_COMMAND 7 | |
1095 | #define wxSTC_GC_STRING 8 | |
1096 | #define wxSTC_GC_OPERATOR 9 | |
1097 | ||
1098 | // Lexical states for SCLEX_SPECMAN | |
1099 | #define wxSTC_SN_DEFAULT 0 | |
1100 | #define wxSTC_SN_CODE 1 | |
1101 | #define wxSTC_SN_COMMENTLINE 2 | |
1102 | #define wxSTC_SN_COMMENTLINEBANG 3 | |
1103 | #define wxSTC_SN_NUMBER 4 | |
1104 | #define wxSTC_SN_WORD 5 | |
1105 | #define wxSTC_SN_STRING 6 | |
1106 | #define wxSTC_SN_WORD2 7 | |
1107 | #define wxSTC_SN_WORD3 8 | |
1108 | #define wxSTC_SN_PREPROCESSOR 9 | |
1109 | #define wxSTC_SN_OPERATOR 10 | |
1110 | #define wxSTC_SN_IDENTIFIER 11 | |
1111 | #define wxSTC_SN_STRINGEOL 12 | |
1112 | #define wxSTC_SN_REGEXTAG 13 | |
1113 | #define wxSTC_SN_SIGNAL 14 | |
1114 | #define wxSTC_SN_USER 19 | |
1115 | ||
1116 | // Lexical states for SCLEX_AU3 | |
1117 | #define wxSTC_AU3_DEFAULT 0 | |
1118 | #define wxSTC_AU3_COMMENT 1 | |
1119 | #define wxSTC_AU3_COMMENTBLOCK 2 | |
1120 | #define wxSTC_AU3_NUMBER 3 | |
1121 | #define wxSTC_AU3_FUNCTION 4 | |
1122 | #define wxSTC_AU3_KEYWORD 5 | |
1123 | #define wxSTC_AU3_MACRO 6 | |
1124 | #define wxSTC_AU3_STRING 7 | |
1125 | #define wxSTC_AU3_OPERATOR 8 | |
1126 | #define wxSTC_AU3_VARIABLE 9 | |
1127 | #define wxSTC_AU3_SENT 10 | |
1128 | #define wxSTC_AU3_PREPROCESSOR 11 | |
1129 | ||
1130 | // Lexical states for SCLEX_APDL | |
1131 | #define wxSTC_APDL_DEFAULT 0 | |
1132 | #define wxSTC_APDL_COMMENT 1 | |
1133 | #define wxSTC_APDL_COMMENTBLOCK 2 | |
1134 | #define wxSTC_APDL_NUMBER 3 | |
1135 | #define wxSTC_APDL_STRING 4 | |
1136 | #define wxSTC_APDL_WORD 5 | |
1137 | #define wxSTC_APDL_COMMAND 6 | |
1138 | #define wxSTC_APDL_PROCESSOR 7 | |
1139 | #define wxSTC_APDL_FUNCTION 8 | |
1140 | ||
1141 | // Lexical states for SCLEX_BASH | |
1142 | #define wxSTC_SH_DEFAULT 0 | |
1143 | #define wxSTC_SH_ERROR 1 | |
1144 | #define wxSTC_SH_COMMENTLINE 2 | |
1145 | #define wxSTC_SH_NUMBER 3 | |
1146 | #define wxSTC_SH_WORD 4 | |
1147 | #define wxSTC_SH_STRING 5 | |
1148 | #define wxSTC_SH_CHARACTER 6 | |
1149 | #define wxSTC_SH_OPERATOR 7 | |
1150 | #define wxSTC_SH_IDENTIFIER 8 | |
1151 | #define wxSTC_SH_SCALAR 9 | |
1152 | #define wxSTC_SH_PARAM 10 | |
1153 | #define wxSTC_SH_BACKTICKS 11 | |
1154 | #define wxSTC_SH_HERE_DELIM 12 | |
1155 | #define wxSTC_SH_HERE_Q 13 | |
1156 | ||
2b5f62a0 VZ |
1157 | |
1158 | //----------------------------------------- | |
1159 | // Commands that can be bound to keystrokes | |
1160 | ||
88a8b04e | 1161 | |
2b5f62a0 VZ |
1162 | // Redoes the next action on the undo history. |
1163 | #define wxSTC_CMD_REDO 2011 | |
1164 | ||
1165 | // Select all the text in the document. | |
1166 | #define wxSTC_CMD_SELECTALL 2013 | |
1167 | ||
1168 | // Undo one action in the undo history. | |
1169 | #define wxSTC_CMD_UNDO 2176 | |
1170 | ||
1171 | // Cut the selection to the clipboard. | |
1172 | #define wxSTC_CMD_CUT 2177 | |
1173 | ||
1174 | // Copy the selection to the clipboard. | |
1175 | #define wxSTC_CMD_COPY 2178 | |
1176 | ||
1177 | // Paste the contents of the clipboard into the document replacing the selection. | |
1178 | #define wxSTC_CMD_PASTE 2179 | |
1179 | ||
1180 | // Clear the selection. | |
1181 | #define wxSTC_CMD_CLEAR 2180 | |
1182 | ||
1183 | // Move caret down one line. | |
1184 | #define wxSTC_CMD_LINEDOWN 2300 | |
1185 | ||
1186 | // Move caret down one line extending selection to new caret position. | |
1187 | #define wxSTC_CMD_LINEDOWNEXTEND 2301 | |
1188 | ||
1189 | // Move caret up one line. | |
1190 | #define wxSTC_CMD_LINEUP 2302 | |
1191 | ||
1192 | // Move caret up one line extending selection to new caret position. | |
1193 | #define wxSTC_CMD_LINEUPEXTEND 2303 | |
1194 | ||
1195 | // Move caret left one character. | |
1196 | #define wxSTC_CMD_CHARLEFT 2304 | |
1197 | ||
1198 | // Move caret left one character extending selection to new caret position. | |
1199 | #define wxSTC_CMD_CHARLEFTEXTEND 2305 | |
1200 | ||
1201 | // Move caret right one character. | |
1202 | #define wxSTC_CMD_CHARRIGHT 2306 | |
1203 | ||
1204 | // Move caret right one character extending selection to new caret position. | |
1205 | #define wxSTC_CMD_CHARRIGHTEXTEND 2307 | |
1206 | ||
1207 | // Move caret left one word. | |
1208 | #define wxSTC_CMD_WORDLEFT 2308 | |
1209 | ||
1210 | // Move caret left one word extending selection to new caret position. | |
1211 | #define wxSTC_CMD_WORDLEFTEXTEND 2309 | |
1212 | ||
1213 | // Move caret right one word. | |
1214 | #define wxSTC_CMD_WORDRIGHT 2310 | |
1215 | ||
1216 | // Move caret right one word extending selection to new caret position. | |
1217 | #define wxSTC_CMD_WORDRIGHTEXTEND 2311 | |
1218 | ||
1219 | // Move caret to first position on line. | |
1220 | #define wxSTC_CMD_HOME 2312 | |
1221 | ||
1222 | // Move caret to first position on line extending selection to new caret position. | |
1223 | #define wxSTC_CMD_HOMEEXTEND 2313 | |
1224 | ||
1225 | // Move caret to last position on line. | |
1226 | #define wxSTC_CMD_LINEEND 2314 | |
1227 | ||
1228 | // Move caret to last position on line extending selection to new caret position. | |
1229 | #define wxSTC_CMD_LINEENDEXTEND 2315 | |
1230 | ||
1231 | // Move caret to first position in document. | |
1232 | #define wxSTC_CMD_DOCUMENTSTART 2316 | |
1233 | ||
1234 | // Move caret to first position in document extending selection to new caret position. | |
1235 | #define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317 | |
1236 | ||
1237 | // Move caret to last position in document. | |
1238 | #define wxSTC_CMD_DOCUMENTEND 2318 | |
1239 | ||
1240 | // Move caret to last position in document extending selection to new caret position. | |
1241 | #define wxSTC_CMD_DOCUMENTENDEXTEND 2319 | |
1242 | ||
1243 | // Move caret one page up. | |
1244 | #define wxSTC_CMD_PAGEUP 2320 | |
1245 | ||
1246 | // Move caret one page up extending selection to new caret position. | |
1247 | #define wxSTC_CMD_PAGEUPEXTEND 2321 | |
1248 | ||
1249 | // Move caret one page down. | |
1250 | #define wxSTC_CMD_PAGEDOWN 2322 | |
1251 | ||
1252 | // Move caret one page down extending selection to new caret position. | |
1253 | #define wxSTC_CMD_PAGEDOWNEXTEND 2323 | |
1254 | ||
1255 | // Switch from insert to overtype mode or the reverse. | |
1256 | #define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324 | |
1257 | ||
1258 | // Cancel any modes such as call tip or auto-completion list display. | |
1259 | #define wxSTC_CMD_CANCEL 2325 | |
1260 | ||
1261 | // Delete the selection or if no selection, the character before the caret. | |
1262 | #define wxSTC_CMD_DELETEBACK 2326 | |
1263 | ||
1264 | // If selection is empty or all on one line replace the selection with a tab character. | |
1265 | // If more than one line selected, indent the lines. | |
1266 | #define wxSTC_CMD_TAB 2327 | |
1267 | ||
1268 | // Dedent the selected lines. | |
1269 | #define wxSTC_CMD_BACKTAB 2328 | |
1270 | ||
1271 | // Insert a new line, may use a CRLF, CR or LF depending on EOL mode. | |
1272 | #define wxSTC_CMD_NEWLINE 2329 | |
1273 | ||
1274 | // Insert a Form Feed character. | |
1275 | #define wxSTC_CMD_FORMFEED 2330 | |
1276 | ||
1277 | // Move caret to before first visible character on line. | |
1278 | // If already there move to first character on line. | |
1279 | #define wxSTC_CMD_VCHOME 2331 | |
1280 | ||
1281 | // Like VCHome but extending selection to new caret position. | |
1282 | #define wxSTC_CMD_VCHOMEEXTEND 2332 | |
1283 | ||
1284 | // Magnify the displayed text by increasing the sizes by 1 point. | |
1285 | #define wxSTC_CMD_ZOOMIN 2333 | |
1286 | ||
1287 | // Make the displayed text smaller by decreasing the sizes by 1 point. | |
1288 | #define wxSTC_CMD_ZOOMOUT 2334 | |
1289 | ||
1290 | // Delete the word to the left of the caret. | |
1291 | #define wxSTC_CMD_DELWORDLEFT 2335 | |
1292 | ||
1293 | // Delete the word to the right of the caret. | |
1294 | #define wxSTC_CMD_DELWORDRIGHT 2336 | |
1295 | ||
1296 | // Cut the line containing the caret. | |
1297 | #define wxSTC_CMD_LINECUT 2337 | |
1298 | ||
1299 | // Delete the line containing the caret. | |
1300 | #define wxSTC_CMD_LINEDELETE 2338 | |
1301 | ||
1302 | // Switch the current line with the previous. | |
1303 | #define wxSTC_CMD_LINETRANSPOSE 2339 | |
1304 | ||
9e730a78 RD |
1305 | // Duplicate the current line. |
1306 | #define wxSTC_CMD_LINEDUPLICATE 2404 | |
1307 | ||
2b5f62a0 VZ |
1308 | // Transform the selection to lower case. |
1309 | #define wxSTC_CMD_LOWERCASE 2340 | |
1310 | ||
1311 | // Transform the selection to upper case. | |
1312 | #define wxSTC_CMD_UPPERCASE 2341 | |
1313 | ||
1314 | // Scroll the document down, keeping the caret visible. | |
1315 | #define wxSTC_CMD_LINESCROLLDOWN 2342 | |
1316 | ||
1317 | // Scroll the document up, keeping the caret visible. | |
1318 | #define wxSTC_CMD_LINESCROLLUP 2343 | |
1319 | ||
1320 | // Delete the selection or if no selection, the character before the caret. | |
1321 | // Will not delete the character before at the start of a line. | |
1322 | #define wxSTC_CMD_DELETEBACKNOTLINE 2344 | |
1323 | ||
1324 | // Move caret to first position on display line. | |
1325 | #define wxSTC_CMD_HOMEDISPLAY 2345 | |
1326 | ||
1327 | // Move caret to first position on display line extending selection to | |
1328 | // new caret position. | |
1329 | #define wxSTC_CMD_HOMEDISPLAYEXTEND 2346 | |
1330 | ||
1331 | // Move caret to last position on display line. | |
1332 | #define wxSTC_CMD_LINEENDDISPLAY 2347 | |
1333 | ||
1334 | // Move caret to last position on display line extending selection to new | |
1335 | // caret position. | |
1336 | #define wxSTC_CMD_LINEENDDISPLAYEXTEND 2348 | |
1337 | ||
9e730a78 RD |
1338 | // These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? |
1339 | // except they behave differently when word-wrap is enabled: | |
1340 | // They go first to the start / end of the display line, like (Home|LineEnd)Display | |
1341 | // The difference is that, the cursor is already at the point, it goes on to the start | |
8e54aaed | 1342 | // or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. |
9e730a78 RD |
1343 | #define wxSTC_CMD_HOMEWRAP 2349 |
1344 | #define wxSTC_CMD_HOMEWRAPEXTEND 2450 | |
1345 | #define wxSTC_CMD_LINEENDWRAP 2451 | |
1346 | #define wxSTC_CMD_LINEENDWRAPEXTEND 2452 | |
1347 | #define wxSTC_CMD_VCHOMEWRAP 2453 | |
1348 | #define wxSTC_CMD_VCHOMEWRAPEXTEND 2454 | |
1349 | ||
c26dba42 RD |
1350 | // Copy the line containing the caret. |
1351 | #define wxSTC_CMD_LINECOPY 2455 | |
1352 | ||
2b5f62a0 VZ |
1353 | // Move to the previous change in capitalisation. |
1354 | #define wxSTC_CMD_WORDPARTLEFT 2390 | |
1355 | ||
1356 | // Move to the previous change in capitalisation extending selection | |
1357 | // to new caret position. | |
1358 | #define wxSTC_CMD_WORDPARTLEFTEXTEND 2391 | |
1359 | ||
1360 | // Move to the change next in capitalisation. | |
1361 | #define wxSTC_CMD_WORDPARTRIGHT 2392 | |
1362 | ||
1363 | // Move to the next change in capitalisation extending selection | |
1364 | // to new caret position. | |
1365 | #define wxSTC_CMD_WORDPARTRIGHTEXTEND 2393 | |
1366 | ||
1367 | // Delete back from the current position to the start of the line. | |
1368 | #define wxSTC_CMD_DELLINELEFT 2395 | |
1369 | ||
1370 | // Delete forwards from the current position to the end of the line. | |
1371 | #define wxSTC_CMD_DELLINERIGHT 2396 | |
1372 | ||
8e54aaed | 1373 | // Move caret between paragraphs (delimited by empty lines). |
9e730a78 RD |
1374 | #define wxSTC_CMD_PARADOWN 2413 |
1375 | #define wxSTC_CMD_PARADOWNEXTEND 2414 | |
1376 | #define wxSTC_CMD_PARAUP 2415 | |
1377 | #define wxSTC_CMD_PARAUPEXTEND 2416 | |
1378 | ||
8e54aaed RD |
1379 | // Move caret down one line, extending rectangular selection to new caret position. |
1380 | #define wxSTC_CMD_LINEDOWNRECTEXTEND 2426 | |
1381 | ||
1382 | // Move caret up one line, extending rectangular selection to new caret position. | |
1383 | #define wxSTC_CMD_LINEUPRECTEXTEND 2427 | |
1384 | ||
1385 | // Move caret left one character, extending rectangular selection to new caret position. | |
1386 | #define wxSTC_CMD_CHARLEFTRECTEXTEND 2428 | |
1387 | ||
1388 | // Move caret right one character, extending rectangular selection to new caret position. | |
1389 | #define wxSTC_CMD_CHARRIGHTRECTEXTEND 2429 | |
1390 | ||
1391 | // Move caret to first position on line, extending rectangular selection to new caret position. | |
1392 | #define wxSTC_CMD_HOMERECTEXTEND 2430 | |
1393 | ||
1394 | // Move caret to before first visible character on line. | |
1395 | // If already there move to first character on line. | |
1396 | // In either case, extend rectangular selection to new caret position. | |
1397 | #define wxSTC_CMD_VCHOMERECTEXTEND 2431 | |
1398 | ||
1399 | // Move caret to last position on line, extending rectangular selection to new caret position. | |
1400 | #define wxSTC_CMD_LINEENDRECTEXTEND 2432 | |
1401 | ||
1402 | // Move caret one page up, extending rectangular selection to new caret position. | |
1403 | #define wxSTC_CMD_PAGEUPRECTEXTEND 2433 | |
1404 | ||
1405 | // Move caret one page down, extending rectangular selection to new caret position. | |
1406 | #define wxSTC_CMD_PAGEDOWNRECTEXTEND 2434 | |
1407 | ||
1408 | // Move caret to top of page, or one page up if already at top of page. | |
1409 | #define wxSTC_CMD_STUTTEREDPAGEUP 2435 | |
1410 | ||
1411 | // Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. | |
1412 | #define wxSTC_CMD_STUTTEREDPAGEUPEXTEND 2436 | |
1413 | ||
1414 | // Move caret to bottom of page, or one page down if already at bottom of page. | |
1415 | #define wxSTC_CMD_STUTTEREDPAGEDOWN 2437 | |
1416 | ||
1417 | // Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. | |
1418 | #define wxSTC_CMD_STUTTEREDPAGEDOWNEXTEND 2438 | |
1419 | ||
1420 | // Move caret left one word, position cursor at end of word. | |
1421 | #define wxSTC_CMD_WORDLEFTEND 2439 | |
1422 | ||
1423 | // Move caret left one word, position cursor at end of word, extending selection to new caret position. | |
1424 | #define wxSTC_CMD_WORDLEFTENDEXTEND 2440 | |
1425 | ||
1426 | // Move caret right one word, position cursor at end of word. | |
1427 | #define wxSTC_CMD_WORDRIGHTEND 2441 | |
1428 | ||
1429 | // Move caret right one word, position cursor at end of word, extending selection to new caret position. | |
1430 | #define wxSTC_CMD_WORDRIGHTENDEXTEND 2442 | |
1431 | ||
2b5f62a0 | 1432 | |
1a2fb4cd | 1433 | // END of generated section |
4370573a | 1434 | //---------------------------------------------------------------------- |
9ce192d4 RD |
1435 | |
1436 | class ScintillaWX; // forward declare | |
1437 | class WordList; | |
1438 | struct SCNotification; | |
1439 | ||
2b5f62a0 | 1440 | #ifndef SWIG |
7ba1412f RD |
1441 | extern WXDLLIMPEXP_STC const wxChar* wxSTCNameStr; |
1442 | class WXDLLIMPEXP_STC wxStyledTextCtrl; | |
1443 | class WXDLLIMPEXP_STC wxStyledTextEvent; | |
2b5f62a0 | 1444 | #endif |
9ce192d4 RD |
1445 | |
1446 | //---------------------------------------------------------------------- | |
1447 | ||
ba8a4f66 | 1448 | class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl { |
9ce192d4 RD |
1449 | public: |
1450 | ||
f6bcfd97 | 1451 | #ifdef SWIG |
faadde7e RD |
1452 | %pythonAppend wxStyledTextCtrl "self._setOORInfo(self)" |
1453 | %pythonAppend wxStyledTextCtrl() "" | |
39c0acb6 | 1454 | |
f325fa52 | 1455 | wxStyledTextCtrl(wxWindow *parent, wxWindowID id=wxID_ANY, |
f6bcfd97 BP |
1456 | const wxPoint& pos = wxDefaultPosition, |
1457 | const wxSize& size = wxDefaultSize, long style = 0, | |
137b5242 | 1458 | const wxString& name = wxPySTCNameStr); |
39c0acb6 RD |
1459 | %name(PreStyledTextCtrl) wxStyledTextCtrl(); |
1460 | ||
f6bcfd97 | 1461 | #else |
f325fa52 | 1462 | wxStyledTextCtrl(wxWindow *parent, wxWindowID id=wxID_ANY, |
9ce192d4 RD |
1463 | const wxPoint& pos = wxDefaultPosition, |
1464 | const wxSize& size = wxDefaultSize, long style = 0, | |
1465 | const wxString& name = wxSTCNameStr); | |
39c0acb6 RD |
1466 | wxStyledTextCtrl() { m_swx = NULL; } |
1467 | ~wxStyledTextCtrl(); | |
1468 | ||
f6bcfd97 BP |
1469 | #endif |
1470 | ||
f325fa52 | 1471 | void Create(wxWindow *parent, wxWindowID id=wxID_ANY, |
39c0acb6 RD |
1472 | const wxPoint& pos = wxDefaultPosition, |
1473 | const wxSize& size = wxDefaultSize, long style = 0, | |
1474 | const wxString& name = wxSTCNameStr); | |
9ce192d4 RD |
1475 | |
1476 | ||
4370573a RD |
1477 | //---------------------------------------------------------------------- |
1478 | // BEGIN generated section. The following code is automatically generated | |
1479 | // by gen_iface.py. Do not edit this file. Edit stc.h.in instead | |
1480 | // and regenerate | |
9ce192d4 | 1481 | |
4370573a | 1482 | |
591d01be | 1483 | // Add text to the document at current position. |
4370573a RD |
1484 | void AddText(const wxString& text); |
1485 | ||
a834585d | 1486 | // Add array of cells to document. |
10ef30eb | 1487 | void AddStyledText(const wxMemoryBuffer& data); |
4370573a | 1488 | |
a834585d | 1489 | // Insert string at a position. |
4370573a RD |
1490 | void InsertText(int pos, const wxString& text); |
1491 | ||
a834585d | 1492 | // Delete all text in the document. |
4370573a RD |
1493 | void ClearAll(); |
1494 | ||
a834585d | 1495 | // Set all style bytes to 0, remove all folding information. |
4370573a RD |
1496 | void ClearDocumentStyle(); |
1497 | ||
591d01be | 1498 | // Returns the number of characters in the document. |
4370573a RD |
1499 | int GetLength(); |
1500 | ||
a834585d | 1501 | // Returns the character byte at the position. |
4370573a RD |
1502 | int GetCharAt(int pos); |
1503 | ||
a834585d | 1504 | // Returns the position of the caret. |
4370573a RD |
1505 | int GetCurrentPos(); |
1506 | ||
a834585d | 1507 | // Returns the position of the opposite end of the selection to the caret. |
4370573a RD |
1508 | int GetAnchor(); |
1509 | ||
a834585d | 1510 | // Returns the style byte at the position. |
4370573a RD |
1511 | int GetStyleAt(int pos); |
1512 | ||
a834585d | 1513 | // Redoes the next action on the undo history. |
4370573a RD |
1514 | void Redo(); |
1515 | ||
1516 | // Choose between collecting actions into the undo | |
1517 | // history and discarding them. | |
1518 | void SetUndoCollection(bool collectUndo); | |
1519 | ||
1520 | // Select all the text in the document. | |
1521 | void SelectAll(); | |
1522 | ||
1523 | // Remember the current position in the undo history as the position | |
1524 | // at which the document was saved. | |
1525 | void SetSavePoint(); | |
1526 | ||
1527 | // Retrieve a buffer of cells. | |
10ef30eb | 1528 | wxMemoryBuffer GetStyledText(int startPos, int endPos); |
4370573a | 1529 | |
a834585d | 1530 | // Are there any redoable actions in the undo history? |
4370573a RD |
1531 | bool CanRedo(); |
1532 | ||
a834585d | 1533 | // Retrieve the line number at which a particular marker is located. |
4370573a RD |
1534 | int MarkerLineFromHandle(int handle); |
1535 | ||
1536 | // Delete a marker. | |
1537 | void MarkerDeleteHandle(int handle); | |
1538 | ||
1539 | // Is undo history being collected? | |
1540 | bool GetUndoCollection(); | |
1541 | ||
1542 | // Are white space characters currently visible? | |
1543 | // Returns one of SCWS_* constants. | |
1544 | int GetViewWhiteSpace(); | |
1545 | ||
1546 | // Make white space characters invisible, always visible or visible outside indentation. | |
1547 | void SetViewWhiteSpace(int viewWS); | |
1548 | ||
1549 | // Find the position from a point within the window. | |
1550 | int PositionFromPoint(wxPoint pt); | |
1551 | ||
65ec6247 RD |
1552 | // Find the position from a point within the window but return |
1553 | // INVALID_POSITION if not close to text. | |
1554 | int PositionFromPointClose(int x, int y); | |
1555 | ||
4370573a RD |
1556 | // Set caret to start of a line and ensure it is visible. |
1557 | void GotoLine(int line); | |
1558 | ||
1559 | // Set caret to a position and ensure it is visible. | |
1560 | void GotoPos(int pos); | |
1561 | ||
1562 | // Set the selection anchor to a position. The anchor is the opposite | |
1563 | // end of the selection from the caret. | |
1564 | void SetAnchor(int posAnchor); | |
1565 | ||
1566 | // Retrieve the text of the line containing the caret. | |
1567 | // Returns the index of the caret on the line. | |
8de28db9 RD |
1568 | #ifdef SWIG |
1569 | wxString GetCurLine(int* OUTPUT); | |
1570 | #else | |
1571 | wxString GetCurLine(int* linePos=NULL); | |
1572 | #endif | |
4370573a RD |
1573 | |
1574 | // Retrieve the position of the last correctly styled character. | |
1575 | int GetEndStyled(); | |
1576 | ||
65ec6247 RD |
1577 | // Convert all line endings in the document to one mode. |
1578 | void ConvertEOLs(int eolMode); | |
4370573a RD |
1579 | |
1580 | // Retrieve the current end of line mode - one of CRLF, CR, or LF. | |
1581 | int GetEOLMode(); | |
1582 | ||
1583 | // Set the current end of line mode. | |
1584 | void SetEOLMode(int eolMode); | |
1585 | ||
1586 | // Set the current styling position to pos and the styling mask to mask. | |
a834585d | 1587 | // The styling mask can be used to protect some bits in each styling byte from modification. |
4370573a RD |
1588 | void StartStyling(int pos, int mask); |
1589 | ||
1590 | // Change style from current styling position for length characters to a style | |
1591 | // and move the current styling position to after this newly styled segment. | |
1592 | void SetStyling(int length, int style); | |
1593 | ||
a834585d | 1594 | // Is drawing done first into a buffer or direct to the screen? |
4370573a RD |
1595 | bool GetBufferedDraw(); |
1596 | ||
1597 | // If drawing is buffered then each line of text is drawn into a bitmap buffer | |
1598 | // before drawing it to the screen to avoid flicker. | |
1599 | void SetBufferedDraw(bool buffered); | |
1600 | ||
a834585d | 1601 | // Change the visible size of a tab to be a multiple of the width of a space character. |
4370573a RD |
1602 | void SetTabWidth(int tabWidth); |
1603 | ||
1604 | // Retrieve the visible size of a tab. | |
1605 | int GetTabWidth(); | |
1606 | ||
1607 | // Set the code page used to interpret the bytes of the document as characters. | |
4370573a RD |
1608 | void SetCodePage(int codePage); |
1609 | ||
1610 | // Set the symbol used for a particular marker number, | |
1a2fb4cd | 1611 | // and optionally the fore and background colours. |
4370573a | 1612 | void MarkerDefine(int markerNumber, int markerSymbol, |
9e730a78 RD |
1613 | const wxColour& foreground = wxNullColour, |
1614 | const wxColour& background = wxNullColour); | |
4370573a RD |
1615 | |
1616 | // Set the foreground colour used for a particular marker number. | |
1617 | void MarkerSetForeground(int markerNumber, const wxColour& fore); | |
1618 | ||
1619 | // Set the background colour used for a particular marker number. | |
1620 | void MarkerSetBackground(int markerNumber, const wxColour& back); | |
1621 | ||
1a2fb4cd RD |
1622 | // Add a marker to a line, returning an ID which can be used to find or delete the marker. |
1623 | int MarkerAdd(int line, int markerNumber); | |
4370573a | 1624 | |
a834585d | 1625 | // Delete a marker from a line. |
4370573a RD |
1626 | void MarkerDelete(int line, int markerNumber); |
1627 | ||
a834585d | 1628 | // Delete all markers with a particular number from all lines. |
4370573a RD |
1629 | void MarkerDeleteAll(int markerNumber); |
1630 | ||
1631 | // Get a bit mask of all the markers set on a line. | |
1632 | int MarkerGet(int line); | |
1633 | ||
1634 | // Find the next line after lineStart that includes a marker in mask. | |
1635 | int MarkerNext(int lineStart, int markerMask); | |
1636 | ||
1637 | // Find the previous line before lineStart that includes a marker in mask. | |
1638 | int MarkerPrevious(int lineStart, int markerMask); | |
1639 | ||
9e730a78 RD |
1640 | // Define a marker from a bitmap |
1641 | void MarkerDefineBitmap(int markerNumber, const wxBitmap& bmp); | |
1642 | ||
4370573a RD |
1643 | // Set a margin to be either numeric or symbolic. |
1644 | void SetMarginType(int margin, int marginType); | |
1645 | ||
1646 | // Retrieve the type of a margin. | |
1647 | int GetMarginType(int margin); | |
1648 | ||
1649 | // Set the width of a margin to a width expressed in pixels. | |
9ce192d4 | 1650 | void SetMarginWidth(int margin, int pixelWidth); |
4370573a RD |
1651 | |
1652 | // Retrieve the width of a margin in pixels. | |
1653 | int GetMarginWidth(int margin); | |
1654 | ||
1655 | // Set a mask that determines which markers are displayed in a margin. | |
9ce192d4 | 1656 | void SetMarginMask(int margin, int mask); |
4370573a RD |
1657 | |
1658 | // Retrieve the marker mask of a margin. | |
1659 | int GetMarginMask(int margin); | |
1660 | ||
1661 | // Make a margin sensitive or insensitive to mouse clicks. | |
9ce192d4 | 1662 | void SetMarginSensitive(int margin, bool sensitive); |
4370573a RD |
1663 | |
1664 | // Retrieve the mouse click sensitivity of a margin. | |
9ce192d4 RD |
1665 | bool GetMarginSensitive(int margin); |
1666 | ||
4370573a RD |
1667 | // Clear all the styles and make equivalent to the global default style. |
1668 | void StyleClearAll(); | |
1669 | ||
1670 | // Set the foreground colour of a style. | |
1671 | void StyleSetForeground(int style, const wxColour& fore); | |
1672 | ||
1673 | // Set the background colour of a style. | |
1674 | void StyleSetBackground(int style, const wxColour& back); | |
1675 | ||
1676 | // Set a style to be bold or not. | |
1677 | void StyleSetBold(int style, bool bold); | |
1678 | ||
1679 | // Set a style to be italic or not. | |
1680 | void StyleSetItalic(int style, bool italic); | |
1681 | ||
1682 | // Set the size of characters of a style. | |
1683 | void StyleSetSize(int style, int sizePoints); | |
1684 | ||
1685 | // Set the font of a style. | |
1686 | void StyleSetFaceName(int style, const wxString& fontName); | |
1687 | ||
1688 | // Set a style to have its end of line filled or not. | |
1689 | void StyleSetEOLFilled(int style, bool filled); | |
1690 | ||
1691 | // Reset the default style to its state at startup | |
1692 | void StyleResetDefault(); | |
1693 | ||
1694 | // Set a style to be underlined or not. | |
1695 | void StyleSetUnderline(int style, bool underline); | |
1696 | ||
65ec6247 RD |
1697 | // Set a style to be mixed case, or to force upper or lower case. |
1698 | void StyleSetCase(int style, int caseForce); | |
1699 | ||
10ef30eb RD |
1700 | // Set the character set of the font in a style. |
1701 | void StyleSetCharacterSet(int style, int characterSet); | |
1702 | ||
9e730a78 RD |
1703 | // Set a style to be a hotspot or not. |
1704 | void StyleSetHotSpot(int style, bool hotspot); | |
1705 | ||
4370573a RD |
1706 | // Set the foreground colour of the selection and whether to use this setting. |
1707 | void SetSelForeground(bool useSetting, const wxColour& fore); | |
1708 | ||
1709 | // Set the background colour of the selection and whether to use this setting. | |
1710 | void SetSelBackground(bool useSetting, const wxColour& back); | |
1711 | ||
1712 | // Set the foreground colour of the caret. | |
1713 | void SetCaretForeground(const wxColour& fore); | |
1714 | ||
1715 | // When key+modifier combination km is pressed perform msg. | |
1716 | void CmdKeyAssign(int key, int modifiers, int cmd); | |
1717 | ||
8e54aaed | 1718 | // When key+modifier combination km is pressed do nothing. |
4370573a RD |
1719 | void CmdKeyClear(int key, int modifiers); |
1720 | ||
1721 | // Drop all key mappings. | |
1722 | void CmdKeyClearAll(); | |
1723 | ||
1724 | // Set the styles for a segment of the document. | |
1725 | void SetStyleBytes(int length, char* styleBytes); | |
1726 | ||
1727 | // Set a style to be visible or not. | |
1728 | void StyleSetVisible(int style, bool visible); | |
1729 | ||
1730 | // Get the time in milliseconds that the caret is on and off. | |
1731 | int GetCaretPeriod(); | |
1732 | ||
1733 | // Get the time in milliseconds that the caret is on and off. 0 = steady on. | |
1734 | void SetCaretPeriod(int periodMilliseconds); | |
1735 | ||
a834585d | 1736 | // Set the set of characters making up words for when moving or selecting by word. |
8e54aaed | 1737 | // First sets deaults like SetCharsDefault. |
4370573a RD |
1738 | void SetWordChars(const wxString& characters); |
1739 | ||
1740 | // Start a sequence of actions that is undone and redone as a unit. | |
1741 | // May be nested. | |
1742 | void BeginUndoAction(); | |
1743 | ||
1744 | // End a sequence of actions that is undone and redone as a unit. | |
1745 | void EndUndoAction(); | |
1746 | ||
1747 | // Set an indicator to plain, squiggle or TT. | |
1748 | void IndicatorSetStyle(int indic, int style); | |
1749 | ||
1750 | // Retrieve the style of an indicator. | |
1751 | int IndicatorGetStyle(int indic); | |
1752 | ||
1753 | // Set the foreground colour of an indicator. | |
1754 | void IndicatorSetForeground(int indic, const wxColour& fore); | |
1755 | ||
1756 | // Retrieve the foreground colour of an indicator. | |
1757 | wxColour IndicatorGetForeground(int indic); | |
1758 | ||
f114b858 RD |
1759 | // Set the foreground colour of all whitespace and whether to use this setting. |
1760 | void SetWhitespaceForeground(bool useSetting, const wxColour& fore); | |
1761 | ||
1762 | // Set the background colour of all whitespace and whether to use this setting. | |
1763 | void SetWhitespaceBackground(bool useSetting, const wxColour& back); | |
1764 | ||
a834585d RD |
1765 | // Divide each styling byte into lexical class bits (default: 5) and indicator |
1766 | // bits (default: 3). If a lexer requires more than 32 lexical states, then this | |
4370573a RD |
1767 | // is used to expand the possible states. |
1768 | void SetStyleBits(int bits); | |
1769 | ||
1770 | // Retrieve number of bits in style bytes used to hold the lexical state. | |
1771 | int GetStyleBits(); | |
1772 | ||
1773 | // Used to hold extra styling information for each line. | |
1774 | void SetLineState(int line, int state); | |
1775 | ||
1776 | // Retrieve the extra styling information for a line. | |
1777 | int GetLineState(int line); | |
1778 | ||
1779 | // Retrieve the last line number that has line state. | |
1780 | int GetMaxLineState(); | |
1781 | ||
65ec6247 RD |
1782 | // Is the background of the line containing the caret in a different colour? |
1783 | bool GetCaretLineVisible(); | |
1784 | ||
a834585d | 1785 | // Display the background of the line containing the caret in a different colour. |
65ec6247 RD |
1786 | void SetCaretLineVisible(bool show); |
1787 | ||
1788 | // Get the colour of the background of the line containing the caret. | |
1789 | wxColour GetCaretLineBack(); | |
1790 | ||
1791 | // Set the colour of the background of the line containing the caret. | |
1792 | void SetCaretLineBack(const wxColour& back); | |
1793 | ||
1a2fb4cd RD |
1794 | // Set a style to be changeable or not (read only). |
1795 | // Experimental feature, currently buggy. | |
1796 | void StyleSetChangeable(int style, bool changeable); | |
1797 | ||
4370573a RD |
1798 | // Display a auto-completion list. |
1799 | // The lenEntered parameter indicates how many characters before | |
1800 | // the caret should be used to provide context. | |
1801 | void AutoCompShow(int lenEntered, const wxString& itemList); | |
1802 | ||
1803 | // Remove the auto-completion list from the screen. | |
1804 | void AutoCompCancel(); | |
1805 | ||
1806 | // Is there an auto-completion list visible? | |
1807 | bool AutoCompActive(); | |
1808 | ||
a834585d | 1809 | // Retrieve the position of the caret when the auto-completion list was displayed. |
4370573a RD |
1810 | int AutoCompPosStart(); |
1811 | ||
1812 | // User has selected an item so remove the list and insert the selection. | |
1813 | void AutoCompComplete(); | |
1814 | ||
1815 | // Define a set of character that when typed cancel the auto-completion list. | |
1816 | void AutoCompStops(const wxString& characterSet); | |
1817 | ||
a834585d RD |
1818 | // Change the separator character in the string setting up an auto-completion list. |
1819 | // Default is space but can be changed if items contain space. | |
4370573a RD |
1820 | void AutoCompSetSeparator(int separatorCharacter); |
1821 | ||
1822 | // Retrieve the auto-completion list separator character. | |
1823 | int AutoCompGetSeparator(); | |
1824 | ||
1825 | // Select the item in the auto-completion list that starts with a string. | |
1826 | void AutoCompSelect(const wxString& text); | |
1827 | ||
1828 | // Should the auto-completion list be cancelled if the user backspaces to a | |
1829 | // position before where the box was created. | |
1830 | void AutoCompSetCancelAtStart(bool cancel); | |
1831 | ||
1832 | // Retrieve whether auto-completion cancelled by backspacing before start. | |
1833 | bool AutoCompGetCancelAtStart(); | |
1834 | ||
1a2fb4cd RD |
1835 | // Define a set of characters that when typed will cause the autocompletion to |
1836 | // choose the selected item. | |
4370573a RD |
1837 | void AutoCompSetFillUps(const wxString& characterSet); |
1838 | ||
1839 | // Should a single item auto-completion list automatically choose the item. | |
1840 | void AutoCompSetChooseSingle(bool chooseSingle); | |
1841 | ||
1842 | // Retrieve whether a single item auto-completion list automatically choose the item. | |
1843 | bool AutoCompGetChooseSingle(); | |
1844 | ||
1845 | // Set whether case is significant when performing auto-completion searches. | |
1846 | void AutoCompSetIgnoreCase(bool ignoreCase); | |
1847 | ||
1848 | // Retrieve state of ignore case flag. | |
1849 | bool AutoCompGetIgnoreCase(); | |
1850 | ||
65ec6247 RD |
1851 | // Display a list of strings and send notification when user chooses one. |
1852 | void UserListShow(int listType, const wxString& itemList); | |
1853 | ||
a834585d | 1854 | // Set whether or not autocompletion is hidden automatically when nothing matches. |
65ec6247 RD |
1855 | void AutoCompSetAutoHide(bool autoHide); |
1856 | ||
a834585d | 1857 | // Retrieve whether or not autocompletion is hidden automatically when nothing matches. |
65ec6247 RD |
1858 | bool AutoCompGetAutoHide(); |
1859 | ||
a834585d RD |
1860 | // Set whether or not autocompletion deletes any word characters |
1861 | // after the inserted text upon completion. | |
1a2fb4cd RD |
1862 | void AutoCompSetDropRestOfWord(bool dropRestOfWord); |
1863 | ||
a834585d RD |
1864 | // Retrieve whether or not autocompletion deletes any word characters |
1865 | // after the inserted text upon completion. | |
1a2fb4cd RD |
1866 | bool AutoCompGetDropRestOfWord(); |
1867 | ||
9e730a78 RD |
1868 | // Register an image for use in autocompletion lists. |
1869 | void RegisterImage(int type, const wxBitmap& bmp); | |
1870 | ||
1871 | // Clear all the registered images. | |
1872 | void ClearRegisteredImages(); | |
1873 | ||
1874 | // Retrieve the auto-completion list type-separator character. | |
1875 | int AutoCompGetTypeSeparator(); | |
1876 | ||
1877 | // Change the type-separator character in the string setting up an auto-completion list. | |
1878 | // Default is '?' but can be changed if items contain '?'. | |
1879 | void AutoCompSetTypeSeparator(int separatorCharacter); | |
1880 | ||
4370573a RD |
1881 | // Set the number of spaces used for one level of indentation. |
1882 | void SetIndent(int indentSize); | |
1883 | ||
1884 | // Retrieve indentation size. | |
1885 | int GetIndent(); | |
1886 | ||
1887 | // Indentation will only use space characters if useTabs is false, otherwise | |
1888 | // it will use a combination of tabs and spaces. | |
1889 | void SetUseTabs(bool useTabs); | |
1890 | ||
1891 | // Retrieve whether tabs will be used in indentation. | |
1892 | bool GetUseTabs(); | |
1893 | ||
1894 | // Change the indentation of a line to a number of columns. | |
1895 | void SetLineIndentation(int line, int indentSize); | |
9ce192d4 | 1896 | |
4370573a RD |
1897 | // Retrieve the number of columns that a line is indented. |
1898 | int GetLineIndentation(int line); | |
1899 | ||
1900 | // Retrieve the position before the first non indentation character on a line. | |
1901 | int GetLineIndentPosition(int line); | |
1902 | ||
1903 | // Retrieve the column number of a position, taking tab width into account. | |
1904 | int GetColumn(int pos); | |
1905 | ||
1906 | // Show or hide the horizontal scroll bar. | |
1907 | void SetUseHorizontalScrollBar(bool show); | |
1908 | ||
1909 | // Is the horizontal scroll bar visible? | |
1910 | bool GetUseHorizontalScrollBar(); | |
1911 | ||
1912 | // Show or hide indentation guides. | |
1913 | void SetIndentationGuides(bool show); | |
1914 | ||
1915 | // Are the indentation guides visible? | |
1916 | bool GetIndentationGuides(); | |
1917 | ||
1918 | // Set the highlighted indentation guide column. | |
1919 | // 0 = no highlighted guide. | |
1920 | void SetHighlightGuide(int column); | |
1921 | ||
1922 | // Get the highlighted indentation guide column. | |
1923 | int GetHighlightGuide(); | |
1924 | ||
1925 | // Get the position after the last visible characters on a line. | |
1926 | int GetLineEndPosition(int line); | |
1927 | ||
1928 | // Get the code page used to interpret the bytes of the document as characters. | |
1929 | int GetCodePage(); | |
1930 | ||
1931 | // Get the foreground colour of the caret. | |
1932 | wxColour GetCaretForeground(); | |
1933 | ||
1934 | // In read-only mode? | |
1935 | bool GetReadOnly(); | |
1936 | ||
1937 | // Sets the position of the caret. | |
1938 | void SetCurrentPos(int pos); | |
1939 | ||
1940 | // Sets the position that starts the selection - this becomes the anchor. | |
1941 | void SetSelectionStart(int pos); | |
1942 | ||
1943 | // Returns the position at the start of the selection. | |
1944 | int GetSelectionStart(); | |
1945 | ||
1946 | // Sets the position that ends the selection - this becomes the currentPosition. | |
1947 | void SetSelectionEnd(int pos); | |
1948 | ||
1949 | // Returns the position at the end of the selection. | |
1950 | int GetSelectionEnd(); | |
1951 | ||
1952 | // Sets the print magnification added to the point size of each style for printing. | |
1953 | void SetPrintMagnification(int magnification); | |
1954 | ||
1955 | // Returns the print magnification. | |
1956 | int GetPrintMagnification(); | |
1957 | ||
1958 | // Modify colours when printing for clearer printed text. | |
1959 | void SetPrintColourMode(int mode); | |
1960 | ||
1961 | // Returns the print colour mode. | |
1962 | int GetPrintColourMode(); | |
1963 | ||
1964 | // Find some text in the document. | |
c13219d6 | 1965 | int FindText(int minPos, int maxPos, const wxString& text, int flags=0); |
4370573a | 1966 | |
a834585d | 1967 | // On Windows, will draw the document into a display context such as a printer. |
4370573a | 1968 | int FormatRange(bool doDraw, |
9e730a78 RD |
1969 | int startPos, |
1970 | int endPos, | |
1971 | wxDC* draw, | |
8e54aaed | 1972 | wxDC* target, |
9e730a78 RD |
1973 | wxRect renderRect, |
1974 | wxRect pageRect); | |
1975 | ||
1976 | // Retrieve the display line at the top of the display. | |
4370573a RD |
1977 | int GetFirstVisibleLine(); |
1978 | ||
1979 | // Retrieve the contents of a line. | |
1980 | wxString GetLine(int line); | |
1981 | ||
1982 | // Returns the number of lines in the document. There is always at least one. | |
1983 | int GetLineCount(); | |
1984 | ||
1985 | // Sets the size in pixels of the left margin. | |
65ec6247 | 1986 | void SetMarginLeft(int pixelWidth); |
4370573a RD |
1987 | |
1988 | // Returns the size in pixels of the left margin. | |
1989 | int GetMarginLeft(); | |
1990 | ||
1991 | // Sets the size in pixels of the right margin. | |
65ec6247 | 1992 | void SetMarginRight(int pixelWidth); |
4370573a RD |
1993 | |
1994 | // Returns the size in pixels of the right margin. | |
1995 | int GetMarginRight(); | |
1996 | ||
1997 | // Is the document different from when it was last saved? | |
1998 | bool GetModify(); | |
1999 | ||
2000 | // Select a range of text. | |
2001 | void SetSelection(int start, int end); | |
2002 | ||
2003 | // Retrieve the selected text. | |
2004 | wxString GetSelectedText(); | |
2005 | ||
2006 | // Retrieve a range of text. | |
2007 | wxString GetTextRange(int startPos, int endPos); | |
2008 | ||
2009 | // Draw the selection in normal style or with selection highlighted. | |
2010 | void HideSelection(bool normal); | |
2011 | ||
2012 | // Retrieve the line containing a position. | |
2013 | int LineFromPosition(int pos); | |
2014 | ||
2015 | // Retrieve the position at the start of a line. | |
2016 | int PositionFromLine(int line); | |
2017 | ||
2018 | // Scroll horizontally and vertically. | |
2019 | void LineScroll(int columns, int lines); | |
2020 | ||
2021 | // Ensure the caret is visible. | |
2022 | void EnsureCaretVisible(); | |
2023 | ||
2024 | // Replace the selected text with the argument text. | |
2025 | void ReplaceSelection(const wxString& text); | |
2026 | ||
2027 | // Set to read only or read write. | |
2028 | void SetReadOnly(bool readOnly); | |
2029 | ||
2030 | // Will a paste succeed? | |
2031 | bool CanPaste(); | |
2032 | ||
a834585d | 2033 | // Are there any undoable actions in the undo history? |
4370573a RD |
2034 | bool CanUndo(); |
2035 | ||
2036 | // Delete the undo history. | |
2037 | void EmptyUndoBuffer(); | |
2038 | ||
2039 | // Undo one action in the undo history. | |
2040 | void Undo(); | |
2041 | ||
2042 | // Cut the selection to the clipboard. | |
2043 | void Cut(); | |
2044 | ||
2045 | // Copy the selection to the clipboard. | |
2046 | void Copy(); | |
2047 | ||
2048 | // Paste the contents of the clipboard into the document replacing the selection. | |
2049 | void Paste(); | |
2050 | ||
2051 | // Clear the selection. | |
2052 | void Clear(); | |
2053 | ||
2054 | // Replace the contents of the document with the argument text. | |
2055 | void SetText(const wxString& text); | |
2056 | ||
2057 | // Retrieve all the text in the document. | |
2058 | wxString GetText(); | |
2059 | ||
2060 | // Retrieve the number of characters in the document. | |
2061 | int GetTextLength(); | |
2062 | ||
a834585d | 2063 | // Set to overtype (true) or insert mode. |
4370573a RD |
2064 | void SetOvertype(bool overtype); |
2065 | ||
2066 | // Returns true if overtype mode is active otherwise false is returned. | |
2067 | bool GetOvertype(); | |
2068 | ||
a834585d | 2069 | // Set the width of the insert mode caret. |
65ec6247 RD |
2070 | void SetCaretWidth(int pixelWidth); |
2071 | ||
a834585d | 2072 | // Returns the width of the insert mode caret. |
65ec6247 RD |
2073 | int GetCaretWidth(); |
2074 | ||
2075 | // Sets the position that starts the target which is used for updating the | |
2076 | // document without affecting the scroll position. | |
2077 | void SetTargetStart(int pos); | |
2078 | ||
2079 | // Get the position that starts the target. | |
2080 | int GetTargetStart(); | |
2081 | ||
2082 | // Sets the position that ends the target which is used for updating the | |
2083 | // document without affecting the scroll position. | |
2084 | void SetTargetEnd(int pos); | |
2085 | ||
2086 | // Get the position that ends the target. | |
2087 | int GetTargetEnd(); | |
2088 | ||
2089 | // Replace the target text with the argument text. | |
8e54aaed | 2090 | // Text is counted so it can contain NULs. |
65ec6247 RD |
2091 | // Returns the length of the replacement text. |
2092 | int ReplaceTarget(const wxString& text); | |
2093 | ||
2094 | // Replace the target text with the argument text after \d processing. | |
8e54aaed | 2095 | // Text is counted so it can contain NULs. |
65ec6247 RD |
2096 | // Looks for \d where d is between 1 and 9 and replaces these with the strings |
2097 | // matched in the last search operation which were surrounded by \( and \). | |
2098 | // Returns the length of the replacement text including any change | |
2099 | // caused by processing the \d patterns. | |
2100 | int ReplaceTargetRE(const wxString& text); | |
2101 | ||
2102 | // Search for a counted string in the target and set the target to the found | |
8e54aaed | 2103 | // range. Text is counted so it can contain NULs. |
65ec6247 RD |
2104 | // Returns length of range or -1 for failure in which case target is not moved. |
2105 | int SearchInTarget(const wxString& text); | |
2106 | ||
a834585d | 2107 | // Set the search flags used by SearchInTarget. |
65ec6247 RD |
2108 | void SetSearchFlags(int flags); |
2109 | ||
a834585d | 2110 | // Get the search flags used by SearchInTarget. |
65ec6247 RD |
2111 | int GetSearchFlags(); |
2112 | ||
4370573a RD |
2113 | // Show a call tip containing a definition near position pos. |
2114 | void CallTipShow(int pos, const wxString& definition); | |
2115 | ||
2116 | // Remove the call tip from the screen. | |
2117 | void CallTipCancel(); | |
2118 | ||
2119 | // Is there an active call tip? | |
2120 | bool CallTipActive(); | |
2121 | ||
2122 | // Retrieve the position where the caret was before displaying the call tip. | |
2123 | int CallTipPosAtStart(); | |
2124 | ||
2125 | // Highlight a segment of the definition. | |
2126 | void CallTipSetHighlight(int start, int end); | |
2127 | ||
2128 | // Set the background colour for the call tip. | |
2129 | void CallTipSetBackground(const wxColour& back); | |
2130 | ||
9e730a78 RD |
2131 | // Set the foreground colour for the call tip. |
2132 | void CallTipSetForeground(const wxColour& fore); | |
2133 | ||
2134 | // Set the foreground colour for the highlighted part of the call tip. | |
2135 | void CallTipSetForegroundHighlight(const wxColour& fore); | |
2136 | ||
4370573a RD |
2137 | // Find the display line of a document line taking hidden lines into account. |
2138 | int VisibleFromDocLine(int line); | |
2139 | ||
2140 | // Find the document line of a display line taking hidden lines into account. | |
2141 | int DocLineFromVisible(int lineDisplay); | |
2142 | ||
2143 | // Set the fold level of a line. | |
2144 | // This encodes an integer level along with flags indicating whether the | |
2145 | // line is a header and whether it is effectively white space. | |
2146 | void SetFoldLevel(int line, int level); | |
2147 | ||
2148 | // Retrieve the fold level of a line. | |
2149 | int GetFoldLevel(int line); | |
2150 | ||
2151 | // Find the last child line of a header line. | |
2152 | int GetLastChild(int line, int level); | |
2153 | ||
2154 | // Find the parent line of a child line. | |
2155 | int GetFoldParent(int line); | |
2156 | ||
2157 | // Make a range of lines visible. | |
2158 | void ShowLines(int lineStart, int lineEnd); | |
2159 | ||
2160 | // Make a range of lines invisible. | |
2161 | void HideLines(int lineStart, int lineEnd); | |
2162 | ||
2163 | // Is a line visible? | |
2164 | bool GetLineVisible(int line); | |
2165 | ||
2166 | // Show the children of a header line. | |
2167 | void SetFoldExpanded(int line, bool expanded); | |
2168 | ||
2169 | // Is a header line expanded? | |
2170 | bool GetFoldExpanded(int line); | |
2171 | ||
2172 | // Switch a header line between expanded and contracted. | |
2173 | void ToggleFold(int line); | |
2174 | ||
2175 | // Ensure a particular line is visible by expanding any header line hiding it. | |
2176 | void EnsureVisible(int line); | |
2177 | ||
9e730a78 | 2178 | // Set some style options for folding. |
4370573a RD |
2179 | void SetFoldFlags(int flags); |
2180 | ||
65ec6247 RD |
2181 | // Ensure a particular line is visible by expanding any header line hiding it. |
2182 | // Use the currently set visibility policy to determine which range to display. | |
2183 | void EnsureVisibleEnforcePolicy(int line); | |
2184 | ||
a834585d | 2185 | // Sets whether a tab pressed when caret is within indentation indents. |
65ec6247 RD |
2186 | void SetTabIndents(bool tabIndents); |
2187 | ||
2188 | // Does a tab pressed when caret is within indentation indent? | |
2189 | bool GetTabIndents(); | |
2190 | ||
a834585d | 2191 | // Sets whether a backspace pressed when caret is within indentation unindents. |
65ec6247 RD |
2192 | void SetBackSpaceUnIndents(bool bsUnIndents); |
2193 | ||
2194 | // Does a backspace pressed when caret is within indentation unindent? | |
2195 | bool GetBackSpaceUnIndents(); | |
2196 | ||
a834585d | 2197 | // Sets the time the mouse must sit still to generate a mouse dwell event. |
65ec6247 RD |
2198 | void SetMouseDwellTime(int periodMilliseconds); |
2199 | ||
a834585d | 2200 | // Retrieve the time the mouse must sit still to generate a mouse dwell event. |
65ec6247 RD |
2201 | int GetMouseDwellTime(); |
2202 | ||
a834585d | 2203 | // Get position of start of word. |
1a2fb4cd RD |
2204 | int WordStartPosition(int pos, bool onlyWordCharacters); |
2205 | ||
a834585d | 2206 | // Get position of end of word. |
1a2fb4cd RD |
2207 | int WordEndPosition(int pos, bool onlyWordCharacters); |
2208 | ||
a834585d | 2209 | // Sets whether text is word wrapped. |
1a2fb4cd RD |
2210 | void SetWrapMode(int mode); |
2211 | ||
a834585d | 2212 | // Retrieve whether text is word wrapped. |
1a2fb4cd RD |
2213 | int GetWrapMode(); |
2214 | ||
591d01be RD |
2215 | // Set the display mode of visual flags for wrapped lines. |
2216 | void SetWrapVisualFlags(int wrapVisualFlags); | |
2217 | ||
2218 | // Retrive the display mode of visual flags for wrapped lines. | |
2219 | int GetWrapVisualFlags(); | |
2220 | ||
2221 | // Set the location of visual flags for wrapped lines. | |
2222 | void SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation); | |
2223 | ||
2224 | // Retrive the location of visual flags for wrapped lines. | |
2225 | int GetWrapVisualFlagsLocation(); | |
2226 | ||
2227 | // Set the start indent for wrapped lines. | |
2228 | void SetWrapStartIndent(int indent); | |
2229 | ||
2230 | // Retrive the start indent for wrapped lines. | |
2231 | int GetWrapStartIndent(); | |
2232 | ||
a834585d | 2233 | // Sets the degree of caching of layout information. |
1a2fb4cd RD |
2234 | void SetLayoutCache(int mode); |
2235 | ||
a834585d | 2236 | // Retrieve the degree of caching of layout information. |
1a2fb4cd RD |
2237 | int GetLayoutCache(); |
2238 | ||
a834585d RD |
2239 | // Sets the document width assumed for scrolling. |
2240 | void SetScrollWidth(int pixelWidth); | |
2241 | ||
2242 | // Retrieve the document width assumed for scrolling. | |
2243 | int GetScrollWidth(); | |
2244 | ||
2245 | // Measure the pixel width of some text in a particular style. | |
8e54aaed | 2246 | // NUL terminated text argument. |
a834585d RD |
2247 | // Does not handle tab or control characters. |
2248 | int TextWidth(int style, const wxString& text); | |
2249 | ||
2250 | // Sets the scroll range so that maximum scroll position has | |
2251 | // the last line at the bottom of the view (default). | |
2252 | // Setting this to false allows scrolling one page below the last line. | |
2253 | void SetEndAtLastLine(bool endAtLastLine); | |
2254 | ||
2255 | // Retrieve whether the maximum scroll position has the last | |
2256 | // line at the bottom of the view. | |
2257 | int GetEndAtLastLine(); | |
2258 | ||
2259 | // Retrieve the height of a particular line of text in pixels. | |
2260 | int TextHeight(int line); | |
2261 | ||
9e730a78 RD |
2262 | // Show or hide the vertical scroll bar. |
2263 | void SetUseVerticalScrollBar(bool show); | |
2264 | ||
2265 | // Is the vertical scroll bar visible? | |
2266 | bool GetUseVerticalScrollBar(); | |
2267 | ||
2268 | // Append a string to the end of the document without changing the selection. | |
2269 | void AppendText(int length, const wxString& text); | |
2270 | ||
2271 | // Is drawing done in two phases with backgrounds drawn before foregrounds? | |
2272 | bool GetTwoPhaseDraw(); | |
2273 | ||
2274 | // In twoPhaseDraw mode, drawing is performed in two phases, first the background | |
2275 | // and then the foreground. This avoids chopping off characters that overlap the next run. | |
2276 | void SetTwoPhaseDraw(bool twoPhase); | |
2277 | ||
2278 | // Make the target range start and end be the same as the selection range start and end. | |
2279 | void TargetFromSelection(); | |
2280 | ||
2281 | // Join the lines in the target. | |
2282 | void LinesJoin(); | |
2283 | ||
2284 | // Split the lines in the target into lines that are less wide than pixelWidth | |
2285 | // where possible. | |
2286 | void LinesSplit(int pixelWidth); | |
2287 | ||
2288 | // Set the colours used as a chequerboard pattern in the fold margin | |
2289 | void SetFoldMarginColour(bool useSetting, const wxColour& back); | |
2290 | void SetFoldMarginHiColour(bool useSetting, const wxColour& fore); | |
2291 | ||
c26dba42 RD |
2292 | // Move caret down one line. |
2293 | void LineDown(); | |
2294 | ||
2295 | // Move caret down one line extending selection to new caret position. | |
2296 | void LineDownExtend(); | |
2297 | ||
2298 | // Move caret up one line. | |
2299 | void LineUp(); | |
2300 | ||
2301 | // Move caret up one line extending selection to new caret position. | |
2302 | void LineUpExtend(); | |
2303 | ||
2304 | // Move caret left one character. | |
2305 | void CharLeft(); | |
2306 | ||
2307 | // Move caret left one character extending selection to new caret position. | |
2308 | void CharLeftExtend(); | |
2309 | ||
2310 | // Move caret right one character. | |
2311 | void CharRight(); | |
2312 | ||
2313 | // Move caret right one character extending selection to new caret position. | |
2314 | void CharRightExtend(); | |
2315 | ||
2316 | // Move caret left one word. | |
2317 | void WordLeft(); | |
2318 | ||
2319 | // Move caret left one word extending selection to new caret position. | |
2320 | void WordLeftExtend(); | |
2321 | ||
2322 | // Move caret right one word. | |
2323 | void WordRight(); | |
2324 | ||
2325 | // Move caret right one word extending selection to new caret position. | |
2326 | void WordRightExtend(); | |
2327 | ||
2328 | // Move caret to first position on line. | |
2329 | void Home(); | |
2330 | ||
2331 | // Move caret to first position on line extending selection to new caret position. | |
2332 | void HomeExtend(); | |
2333 | ||
2334 | // Move caret to last position on line. | |
2335 | void LineEnd(); | |
2336 | ||
2337 | // Move caret to last position on line extending selection to new caret position. | |
2338 | void LineEndExtend(); | |
2339 | ||
2340 | // Move caret to first position in document. | |
2341 | void DocumentStart(); | |
2342 | ||
2343 | // Move caret to first position in document extending selection to new caret position. | |
2344 | void DocumentStartExtend(); | |
2345 | ||
2346 | // Move caret to last position in document. | |
2347 | void DocumentEnd(); | |
2348 | ||
2349 | // Move caret to last position in document extending selection to new caret position. | |
2350 | void DocumentEndExtend(); | |
2351 | ||
2352 | // Move caret one page up. | |
2353 | void PageUp(); | |
2354 | ||
2355 | // Move caret one page up extending selection to new caret position. | |
2356 | void PageUpExtend(); | |
2357 | ||
2358 | // Move caret one page down. | |
2359 | void PageDown(); | |
2360 | ||
2361 | // Move caret one page down extending selection to new caret position. | |
2362 | void PageDownExtend(); | |
2363 | ||
2364 | // Switch from insert to overtype mode or the reverse. | |
2365 | void EditToggleOvertype(); | |
2366 | ||
2367 | // Cancel any modes such as call tip or auto-completion list display. | |
2368 | void Cancel(); | |
2369 | ||
2370 | // Delete the selection or if no selection, the character before the caret. | |
2371 | void DeleteBack(); | |
2372 | ||
2373 | // If selection is empty or all on one line replace the selection with a tab character. | |
2374 | // If more than one line selected, indent the lines. | |
2375 | void Tab(); | |
2376 | ||
2377 | // Dedent the selected lines. | |
2378 | void BackTab(); | |
2379 | ||
2380 | // Insert a new line, may use a CRLF, CR or LF depending on EOL mode. | |
2381 | void NewLine(); | |
2382 | ||
2383 | // Insert a Form Feed character. | |
2384 | void FormFeed(); | |
2385 | ||
2386 | // Move caret to before first visible character on line. | |
2387 | // If already there move to first character on line. | |
2388 | void VCHome(); | |
2389 | ||
2390 | // Like VCHome but extending selection to new caret position. | |
2391 | void VCHomeExtend(); | |
2392 | ||
2393 | // Magnify the displayed text by increasing the sizes by 1 point. | |
2394 | void ZoomIn(); | |
2395 | ||
2396 | // Make the displayed text smaller by decreasing the sizes by 1 point. | |
2397 | void ZoomOut(); | |
2398 | ||
2399 | // Delete the word to the left of the caret. | |
2400 | void DelWordLeft(); | |
2401 | ||
2402 | // Delete the word to the right of the caret. | |
2403 | void DelWordRight(); | |
2404 | ||
2405 | // Cut the line containing the caret. | |
2406 | void LineCut(); | |
2407 | ||
2408 | // Delete the line containing the caret. | |
2409 | void LineDelete(); | |
2410 | ||
2411 | // Switch the current line with the previous. | |
2412 | void LineTranspose(); | |
2413 | ||
9e730a78 RD |
2414 | // Duplicate the current line. |
2415 | void LineDuplicate(); | |
2416 | ||
c26dba42 RD |
2417 | // Transform the selection to lower case. |
2418 | void LowerCase(); | |
2419 | ||
2420 | // Transform the selection to upper case. | |
2421 | void UpperCase(); | |
2422 | ||
2423 | // Scroll the document down, keeping the caret visible. | |
2424 | void LineScrollDown(); | |
2425 | ||
2426 | // Scroll the document up, keeping the caret visible. | |
2427 | void LineScrollUp(); | |
2428 | ||
2429 | // Delete the selection or if no selection, the character before the caret. | |
2430 | // Will not delete the character before at the start of a line. | |
2431 | void DeleteBackNotLine(); | |
2432 | ||
f114b858 RD |
2433 | // Move caret to first position on display line. |
2434 | void HomeDisplay(); | |
2435 | ||
2b5f62a0 | 2436 | // Move caret to first position on display line extending selection to |
f114b858 RD |
2437 | // new caret position. |
2438 | void HomeDisplayExtend(); | |
2439 | ||
2440 | // Move caret to last position on display line. | |
2441 | void LineEndDisplay(); | |
2442 | ||
2b5f62a0 | 2443 | // Move caret to last position on display line extending selection to new |
f114b858 RD |
2444 | // caret position. |
2445 | void LineEndDisplayExtend(); | |
2446 | ||
c26dba42 RD |
2447 | // These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? |
2448 | // except they behave differently when word-wrap is enabled: | |
2449 | // They go first to the start / end of the display line, like (Home|LineEnd)Display | |
2450 | // The difference is that, the cursor is already at the point, it goes on to the start | |
2451 | // or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. | |
2452 | void HomeWrap(); | |
2453 | void HomeWrapExtend(); | |
2454 | void LineEndWrap(); | |
2455 | void LineEndWrapExtend(); | |
2456 | void VCHomeWrap(); | |
2457 | void VCHomeWrapExtend(); | |
2458 | ||
e14d10b0 RD |
2459 | // Copy the line containing the caret. |
2460 | void LineCopy(); | |
2461 | ||
a834585d | 2462 | // Move the caret inside current view if it's not there already. |
65ec6247 RD |
2463 | void MoveCaretInsideView(); |
2464 | ||
a834585d | 2465 | // How many characters are on a line, not including end of line characters? |
4370573a RD |
2466 | int LineLength(int line); |
2467 | ||
2468 | // Highlight the characters at two positions. | |
2469 | void BraceHighlight(int pos1, int pos2); | |
2470 | ||
2471 | // Highlight the character at a position indicating there is no matching brace. | |
2472 | void BraceBadLight(int pos); | |
2473 | ||
2474 | // Find the position of a matching brace or INVALID_POSITION if no match. | |
2475 | int BraceMatch(int pos); | |
2476 | ||
a834585d | 2477 | // Are the end of line characters visible? |
4370573a RD |
2478 | bool GetViewEOL(); |
2479 | ||
a834585d | 2480 | // Make the end of line characters visible or invisible. |
4370573a RD |
2481 | void SetViewEOL(bool visible); |
2482 | ||
2483 | // Retrieve a pointer to the document object. | |
2484 | void* GetDocPointer(); | |
2485 | ||
2486 | // Change the document object used. | |
2487 | void SetDocPointer(void* docPointer); | |
2488 | ||
2489 | // Set which document modification events are sent to the container. | |
2490 | void SetModEventMask(int mask); | |
2491 | ||
2492 | // Retrieve the column number which text should be kept within. | |
2493 | int GetEdgeColumn(); | |
2494 | ||
2495 | // Set the column number of the edge. | |
2496 | // If text goes past the edge then it is highlighted. | |
2497 | void SetEdgeColumn(int column); | |
2498 | ||
2499 | // Retrieve the edge highlight mode. | |
2500 | int GetEdgeMode(); | |
2501 | ||
2502 | // The edge may be displayed by a line (EDGE_LINE) or by highlighting text that | |
2503 | // goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE). | |
2504 | void SetEdgeMode(int mode); | |
2505 | ||
2506 | // Retrieve the colour used in edge indication. | |
9ce192d4 | 2507 | wxColour GetEdgeColour(); |
9ce192d4 | 2508 | |
4370573a RD |
2509 | // Change the colour used in edge indication. |
2510 | void SetEdgeColour(const wxColour& edgeColour); | |
2511 | ||
2512 | // Sets the current caret position to be the search anchor. | |
2513 | void SearchAnchor(); | |
2514 | ||
2515 | // Find some text starting at the search anchor. | |
65ec6247 | 2516 | // Does not ensure the selection is visible. |
4370573a RD |
2517 | int SearchNext(int flags, const wxString& text); |
2518 | ||
2519 | // Find some text starting at the search anchor and moving backwards. | |
65ec6247 | 2520 | // Does not ensure the selection is visible. |
4370573a RD |
2521 | int SearchPrev(int flags, const wxString& text); |
2522 | ||
4370573a RD |
2523 | // Retrieves the number of lines completely visible. |
2524 | int LinesOnScreen(); | |
2525 | ||
2526 | // Set whether a pop up menu is displayed automatically when the user presses | |
2527 | // the wrong mouse button. | |
2528 | void UsePopUp(bool allowPopUp); | |
2529 | ||
a834585d | 2530 | // Is the selection rectangular? The alternative is the more common stream selection. |
4370573a RD |
2531 | bool SelectionIsRectangle(); |
2532 | ||
2533 | // Set the zoom level. This number of points is added to the size of all fonts. | |
2534 | // It may be positive to magnify or negative to reduce. | |
2535 | void SetZoom(int zoom); | |
2536 | ||
2537 | // Retrieve the zoom level. | |
2538 | int GetZoom(); | |
2539 | ||
2540 | // Create a new document object. | |
2541 | // Starts with reference count of 1 and not selected into editor. | |
2542 | void* CreateDocument(); | |
9ce192d4 | 2543 | |
4370573a RD |
2544 | // Extend life of document. |
2545 | void AddRefDocument(void* docPointer); | |
9ce192d4 | 2546 | |
4370573a RD |
2547 | // Release a reference to the document, deleting document if it fades to black. |
2548 | void ReleaseDocument(void* docPointer); | |
2549 | ||
2550 | // Get which document modification events are sent to the container. | |
2551 | int GetModEventMask(); | |
2552 | ||
a834585d | 2553 | // Change internal focus flag. |
8de28db9 | 2554 | void SetSTCFocus(bool focus); |
65ec6247 | 2555 | |
a834585d | 2556 | // Get internal focus flag. |
8de28db9 | 2557 | bool GetSTCFocus(); |
65ec6247 | 2558 | |
a834585d | 2559 | // Change error status - 0 = OK. |
65ec6247 RD |
2560 | void SetStatus(int statusCode); |
2561 | ||
a834585d | 2562 | // Get error status. |
65ec6247 RD |
2563 | int GetStatus(); |
2564 | ||
a834585d | 2565 | // Set whether the mouse is captured when its button is pressed. |
65ec6247 RD |
2566 | void SetMouseDownCaptures(bool captures); |
2567 | ||
a834585d | 2568 | // Get whether mouse gets captured. |
65ec6247 RD |
2569 | bool GetMouseDownCaptures(); |
2570 | ||
a834585d | 2571 | // Sets the cursor to one of the SC_CURSOR* values. |
88a8b04e | 2572 | void SetSTCCursor(int cursorType); |
65ec6247 | 2573 | |
a834585d | 2574 | // Get cursor type. |
88a8b04e | 2575 | int GetSTCCursor(); |
65ec6247 | 2576 | |
1a2fb4cd | 2577 | // Change the way control characters are displayed: |
a834585d | 2578 | // If symbol is < 32, keep the drawn way, else, use the given character. |
1a2fb4cd RD |
2579 | void SetControlCharSymbol(int symbol); |
2580 | ||
a834585d | 2581 | // Get the way control characters are displayed. |
1a2fb4cd RD |
2582 | int GetControlCharSymbol(); |
2583 | ||
a834585d | 2584 | // Move to the previous change in capitalisation. |
65ec6247 RD |
2585 | void WordPartLeft(); |
2586 | ||
a834585d RD |
2587 | // Move to the previous change in capitalisation extending selection |
2588 | // to new caret position. | |
65ec6247 RD |
2589 | void WordPartLeftExtend(); |
2590 | ||
a834585d | 2591 | // Move to the change next in capitalisation. |
65ec6247 RD |
2592 | void WordPartRight(); |
2593 | ||
a834585d RD |
2594 | // Move to the next change in capitalisation extending selection |
2595 | // to new caret position. | |
65ec6247 RD |
2596 | void WordPartRightExtend(); |
2597 | ||
a834585d RD |
2598 | // Set the way the display area is determined when a particular line |
2599 | // is to be moved to by Find, FindNext, GotoLine, etc. | |
65ec6247 RD |
2600 | void SetVisiblePolicy(int visiblePolicy, int visibleSlop); |
2601 | ||
a834585d | 2602 | // Delete back from the current position to the start of the line. |
65ec6247 RD |
2603 | void DelLineLeft(); |
2604 | ||
a834585d | 2605 | // Delete forwards from the current position to the end of the line. |
65ec6247 RD |
2606 | void DelLineRight(); |
2607 | ||
a834585d | 2608 | // Get and Set the xOffset (ie, horizonal scroll position). |
1a2fb4cd RD |
2609 | void SetXOffset(int newOffset); |
2610 | int GetXOffset(); | |
2611 | ||
8e54aaed | 2612 | // Set the last x chosen value to be the caret x position. |
9e730a78 RD |
2613 | void ChooseCaretX(); |
2614 | ||
a834585d RD |
2615 | // Set the way the caret is kept visible when going sideway. |
2616 | // The exclusion zone is given in pixels. | |
2617 | void SetXCaretPolicy(int caretPolicy, int caretSlop); | |
2618 | ||
2619 | // Set the way the line the caret is on is kept visible. | |
2620 | // The exclusion zone is given in lines. | |
2621 | void SetYCaretPolicy(int caretPolicy, int caretSlop); | |
2622 | ||
9e730a78 RD |
2623 | // Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE). |
2624 | void SetPrintWrapMode(int mode); | |
2625 | ||
8e54aaed | 2626 | // Is printing line wrapped? |
9e730a78 RD |
2627 | int GetPrintWrapMode(); |
2628 | ||
2629 | // Set a fore colour for active hotspots. | |
2630 | void SetHotspotActiveForeground(bool useSetting, const wxColour& fore); | |
2631 | ||
2632 | // Set a back colour for active hotspots. | |
2633 | void SetHotspotActiveBackground(bool useSetting, const wxColour& back); | |
2634 | ||
2635 | // Enable / Disable underlining active hotspots. | |
2636 | void SetHotspotActiveUnderline(bool underline); | |
2637 | ||
8e54aaed RD |
2638 | // Limit hotspots to single line so hotspots on two lines don't merge. |
2639 | void SetHotspotSingleLine(bool singleLine); | |
2640 | ||
c26dba42 RD |
2641 | // Move caret between paragraphs (delimited by empty lines). |
2642 | void ParaDown(); | |
2643 | void ParaDownExtend(); | |
2644 | void ParaUp(); | |
2645 | void ParaUpExtend(); | |
2646 | ||
e14d10b0 RD |
2647 | // Given a valid document position, return the previous position taking code |
2648 | // page into account. Returns 0 if passed 0. | |
2649 | int PositionBefore(int pos); | |
2650 | ||
2651 | // Given a valid document position, return the next position taking code | |
2652 | // page into account. Maximum value returned is the last position in the document. | |
2653 | int PositionAfter(int pos); | |
2654 | ||
2655 | // Copy a range of text to the clipboard. Positions are clipped into the document. | |
2656 | void CopyRange(int start, int end); | |
2657 | ||
2658 | // Copy argument text to the clipboard. | |
2659 | void CopyText(int length, const wxString& text); | |
2660 | ||
8e54aaed RD |
2661 | // Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE) or |
2662 | // by lines (SC_SEL_LINES). | |
2663 | void SetSelectionMode(int mode); | |
2664 | ||
2665 | // Get the mode of the current selection. | |
2666 | int GetSelectionMode(); | |
2667 | ||
2668 | // Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line). | |
2669 | int GetLineSelStartPosition(int line); | |
2670 | ||
2671 | // Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line). | |
2672 | int GetLineSelEndPosition(int line); | |
2673 | ||
c26dba42 RD |
2674 | // Move caret down one line, extending rectangular selection to new caret position. |
2675 | void LineDownRectExtend(); | |
2676 | ||
2677 | // Move caret up one line, extending rectangular selection to new caret position. | |
2678 | void LineUpRectExtend(); | |
2679 | ||
2680 | // Move caret left one character, extending rectangular selection to new caret position. | |
2681 | void CharLeftRectExtend(); | |
2682 | ||
2683 | // Move caret right one character, extending rectangular selection to new caret position. | |
2684 | void CharRightRectExtend(); | |
2685 | ||
2686 | // Move caret to first position on line, extending rectangular selection to new caret position. | |
2687 | void HomeRectExtend(); | |
2688 | ||
2689 | // Move caret to before first visible character on line. | |
2690 | // If already there move to first character on line. | |
2691 | // In either case, extend rectangular selection to new caret position. | |
2692 | void VCHomeRectExtend(); | |
2693 | ||
2694 | // Move caret to last position on line, extending rectangular selection to new caret position. | |
2695 | void LineEndRectExtend(); | |
2696 | ||
2697 | // Move caret one page up, extending rectangular selection to new caret position. | |
2698 | void PageUpRectExtend(); | |
2699 | ||
2700 | // Move caret one page down, extending rectangular selection to new caret position. | |
2701 | void PageDownRectExtend(); | |
2702 | ||
2703 | // Move caret to top of page, or one page up if already at top of page. | |
2704 | void StutteredPageUp(); | |
2705 | ||
2706 | // Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. | |
2707 | void StutteredPageUpExtend(); | |
2708 | ||
2709 | // Move caret to bottom of page, or one page down if already at bottom of page. | |
2710 | void StutteredPageDown(); | |
2711 | ||
2712 | // Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. | |
2713 | void StutteredPageDownExtend(); | |
2714 | ||
2715 | // Move caret left one word, position cursor at end of word. | |
2716 | void WordLeftEnd(); | |
2717 | ||
2718 | // Move caret left one word, position cursor at end of word, extending selection to new caret position. | |
2719 | void WordLeftEndExtend(); | |
2720 | ||
2721 | // Move caret right one word, position cursor at end of word. | |
2722 | void WordRightEnd(); | |
2723 | ||
2724 | // Move caret right one word, position cursor at end of word, extending selection to new caret position. | |
2725 | void WordRightEndExtend(); | |
2726 | ||
8e54aaed RD |
2727 | // Set the set of characters making up whitespace for when moving or selecting by word. |
2728 | // Should be called after SetWordChars. | |
2729 | void SetWhitespaceChars(const wxString& characters); | |
2730 | ||
2731 | // Reset the set of characters for whitespace and word characters to the defaults. | |
2732 | void SetCharsDefault(); | |
2733 | ||
2734 | // Get currently selected item position in the auto-completion list | |
2735 | int AutoCompGetCurrent(); | |
2736 | ||
591d01be RD |
2737 | // Enlarge the document to a particular size of text bytes. |
2738 | void Allocate(int bytes); | |
2739 | ||
4370573a RD |
2740 | // Start notifying the container of all key presses and commands. |
2741 | void StartRecord(); | |
2742 | ||
2743 | // Stop notifying the container of all key presses and commands. | |
2744 | void StopRecord(); | |
2745 | ||
2746 | // Set the lexing language of the document. | |
2747 | void SetLexer(int lexer); | |
2748 | ||
2749 | // Retrieve the lexing language of the document. | |
2750 | int GetLexer(); | |
2751 | ||
2752 | // Colourise a segment of the document using the current lexing language. | |
2753 | void Colourise(int start, int end); | |
2754 | ||
2755 | // Set up a value that may be used by a lexer for some optional feature. | |
2756 | void SetProperty(const wxString& key, const wxString& value); | |
2757 | ||
2758 | // Set up the key words used by the lexer. | |
2759 | void SetKeyWords(int keywordSet, const wxString& keyWords); | |
2760 | ||
65ec6247 RD |
2761 | // Set the lexing language of the document based on string name. |
2762 | void SetLexerLanguage(const wxString& language); | |
2763 | ||
4370573a RD |
2764 | // END of generated section |
2765 | //---------------------------------------------------------------------- | |
2766 | // Others... | |
2767 | ||
2768 | ||
2769 | // Returns the line number of the line with the caret. | |
2770 | int GetCurrentLine(); | |
2771 | ||
2772 | // Extract style settings from a spec-string which is composed of one or | |
2773 | // more of the following comma separated elements: | |
2774 | // | |
2775 | // bold turns on bold | |
2776 | // italic turns on italics | |
2777 | // fore:#RRGGBB sets the foreground colour | |
2778 | // back:#RRGGBB sets the background colour | |
2779 | // face:[facename] sets the font face name to use | |
2780 | // size:[num] sets the font size in points | |
2781 | // eol turns on eol filling | |
2782 | // underline turns on underlining | |
2783 | // | |
2784 | void StyleSetSpec(int styleNum, const wxString& spec); | |
2785 | ||
2786 | ||
2787 | ||
2788 | // Set style size, face, bold, italic, and underline attributes from | |
2789 | // a wxFont's attributes. | |
2790 | void StyleSetFont(int styleNum, wxFont& font); | |
2791 | ||
2792 | ||
2793 | ||
2794 | // Set all font style attributes at once. | |
2795 | void StyleSetFontAttr(int styleNum, int size, | |
2796 | const wxString& faceName, | |
2797 | bool bold, bool italic, | |
2798 | bool underline); | |
2799 | ||
2800 | ||
2801 | ||
2802 | // Perform one of the operations defined by the wxSTC_CMD_* constants. | |
2803 | void CmdKeyExecute(int cmd); | |
2804 | ||
2805 | ||
2806 | ||
2807 | // Set the left and right margin in the edit area, measured in pixels. | |
2808 | void SetMargins(int left, int right); | |
2809 | ||
2810 | ||
2811 | // Retrieve the start and end positions of the current selection. | |
2812 | #ifdef SWIG | |
2813 | void GetSelection(int* OUTPUT, int* OUTPUT); | |
2814 | #else | |
2815 | void GetSelection(int* startPos, int* endPos); | |
2816 | #endif | |
2817 | ||
2818 | // Retrieve the point in the window where a position is displayed. | |
2819 | wxPoint PointFromPosition(int pos); | |
2820 | ||
f97d84a6 RD |
2821 | |
2822 | // Scroll enough to make the given line visible | |
2823 | void ScrollToLine(int line); | |
2824 | ||
2825 | ||
2826 | // Scroll enough to make the given column visible | |
2827 | void ScrollToColumn(int column); | |
2828 | ||
65ec6247 RD |
2829 | |
2830 | // Send a message to Scintilla | |
2831 | long SendMsg(int msg, long wp=0, long lp=0); | |
2832 | ||
5fa4613c RD |
2833 | |
2834 | // Set the vertical scrollbar to use instead of the ont that's built-in. | |
2835 | void SetVScrollBar(wxScrollBar* bar) { m_vScrollBar = bar; } | |
2836 | ||
2837 | ||
2838 | // Set the horizontal scrollbar to use instead of the ont that's built-in. | |
2839 | void SetHScrollBar(wxScrollBar* bar) { m_hScrollBar = bar; } | |
2840 | ||
0b9dfbc0 RD |
2841 | // Can be used to prevent the EVT_CHAR handler from adding the char |
2842 | bool GetLastKeydownProcessed() { return m_lastKeyDownConsumed; } | |
2843 | void SetLastKeydownProcessed(bool val) { m_lastKeyDownConsumed = val; } | |
2844 | ||
51566b0b RD |
2845 | // Write the contents of the editor to filename |
2846 | bool SaveFile(const wxString& filename); | |
2847 | ||
2848 | // Load the contents of filename into the editor | |
2849 | bool LoadFile(const wxString& filename); | |
2850 | ||
9d41f689 | 2851 | #ifdef STC_USE_DND |
4a65f2c8 RD |
2852 | // Allow for simulating a DnD DragOver |
2853 | wxDragResult DoDragOver(wxCoord x, wxCoord y, wxDragResult def); | |
2854 | ||
2855 | // Allow for simulating a DnD DropText | |
2856 | bool DoDropText(long x, long y, const wxString& data); | |
9d41f689 RD |
2857 | #endif |
2858 | ||
d1558f3d RD |
2859 | // Specify whether anti-aliased fonts should be used. Will have no effect |
2860 | // on some platforms, but on some (wxMac for example) can greatly improve | |
2861 | // performance. | |
2862 | void SetUseAntiAliasing(bool useAA); | |
4a65f2c8 | 2863 | |
d1558f3d RD |
2864 | // Returns the current UseAntiAliasing setting. |
2865 | bool GetUseAntiAliasing(); | |
2866 | ||
0b9dfbc0 | 2867 | |
4370573a | 2868 | //---------------------------------------------------------------------- |
9ce192d4 RD |
2869 | |
2870 | ||
f6bcfd97 | 2871 | #ifndef SWIG |
9ce192d4 RD |
2872 | private: |
2873 | // Event handlers | |
2874 | void OnPaint(wxPaintEvent& evt); | |
2875 | void OnScrollWin(wxScrollWinEvent& evt); | |
5fa4613c | 2876 | void OnScroll(wxScrollEvent& evt); |
9ce192d4 RD |
2877 | void OnSize(wxSizeEvent& evt); |
2878 | void OnMouseLeftDown(wxMouseEvent& evt); | |
2879 | void OnMouseMove(wxMouseEvent& evt); | |
2880 | void OnMouseLeftUp(wxMouseEvent& evt); | |
ddf2da08 | 2881 | void OnMouseRightUp(wxMouseEvent& evt); |
2b5f62a0 | 2882 | void OnMouseMiddleUp(wxMouseEvent& evt); |
65ec6247 | 2883 | void OnContextMenu(wxContextMenuEvent& evt); |
37d62433 | 2884 | void OnMouseWheel(wxMouseEvent& evt); |
9ce192d4 | 2885 | void OnChar(wxKeyEvent& evt); |
f6bcfd97 | 2886 | void OnKeyDown(wxKeyEvent& evt); |
9ce192d4 RD |
2887 | void OnLoseFocus(wxFocusEvent& evt); |
2888 | void OnGainFocus(wxFocusEvent& evt); | |
2889 | void OnSysColourChanged(wxSysColourChangedEvent& evt); | |
2890 | void OnEraseBackground(wxEraseEvent& evt); | |
2891 | void OnMenu(wxCommandEvent& evt); | |
f6bcfd97 | 2892 | void OnListBox(wxCommandEvent& evt); |
8e54aaed RD |
2893 | void OnIdle(wxIdleEvent& evt); |
2894 | ||
8ae4f086 | 2895 | virtual wxSize DoGetBestSize() const; |
9ce192d4 RD |
2896 | |
2897 | // Turn notifications from Scintilla into events | |
2898 | void NotifyChange(); | |
2899 | void NotifyParent(SCNotification* scn); | |
2900 | ||
9ce192d4 | 2901 | DECLARE_EVENT_TABLE() |
ba8a4f66 | 2902 | DECLARE_DYNAMIC_CLASS(wxStyledTextCtrl) |
9ce192d4 | 2903 | |
9e730a78 RD |
2904 | protected: |
2905 | ||
9ce192d4 RD |
2906 | ScintillaWX* m_swx; |
2907 | wxStopWatch m_stopWatch; | |
5fa4613c RD |
2908 | wxScrollBar* m_vScrollBar; |
2909 | wxScrollBar* m_hScrollBar; | |
9ce192d4 | 2910 | |
d6582821 | 2911 | bool m_lastKeyDownConsumed; |
9ce192d4 RD |
2912 | |
2913 | friend class ScintillaWX; | |
2914 | friend class Platform; | |
f6bcfd97 | 2915 | #endif |
9ce192d4 RD |
2916 | }; |
2917 | ||
2918 | //---------------------------------------------------------------------- | |
2919 | ||
ba8a4f66 | 2920 | class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent { |
9ce192d4 | 2921 | public: |
f6bcfd97 | 2922 | wxStyledTextEvent(wxEventType commandType=0, int id=0); |
4161723f RD |
2923 | #ifndef SWIG |
2924 | wxStyledTextEvent(const wxStyledTextEvent& event); | |
2925 | #endif | |
9ce192d4 RD |
2926 | ~wxStyledTextEvent() {} |
2927 | ||
a29a241f RD |
2928 | void SetPosition(int pos) { m_position = pos; } |
2929 | void SetKey(int k) { m_key = k; } | |
2930 | void SetModifiers(int m) { m_modifiers = m; } | |
2931 | void SetModificationType(int t) { m_modificationType = t; } | |
10ef30eb | 2932 | void SetText(const wxString& t) { m_text = t; } |
a29a241f RD |
2933 | void SetLength(int len) { m_length = len; } |
2934 | void SetLinesAdded(int num) { m_linesAdded = num; } | |
2935 | void SetLine(int val) { m_line = val; } | |
2936 | void SetFoldLevelNow(int val) { m_foldLevelNow = val; } | |
2937 | void SetFoldLevelPrev(int val) { m_foldLevelPrev = val; } | |
2938 | void SetMargin(int val) { m_margin = val; } | |
2939 | void SetMessage(int val) { m_message = val; } | |
2940 | void SetWParam(int val) { m_wParam = val; } | |
2941 | void SetLParam(int val) { m_lParam = val; } | |
2942 | void SetListType(int val) { m_listType = val; } | |
2943 | void SetX(int val) { m_x = val; } | |
2944 | void SetY(int val) { m_y = val; } | |
2945 | void SetDragText(const wxString& val) { m_dragText = val; } | |
2946 | void SetDragAllowMove(bool val) { m_dragAllowMove = val; } | |
92bbd64f | 2947 | #ifdef STC_USE_DND |
a29a241f | 2948 | void SetDragResult(wxDragResult val) { m_dragResult = val; } |
92bbd64f | 2949 | #endif |
9ce192d4 RD |
2950 | |
2951 | int GetPosition() const { return m_position; } | |
2952 | int GetKey() const { return m_key; } | |
2953 | int GetModifiers() const { return m_modifiers; } | |
2954 | int GetModificationType() const { return m_modificationType; } | |
2955 | wxString GetText() const { return m_text; } | |
2956 | int GetLength() const { return m_length; } | |
2957 | int GetLinesAdded() const { return m_linesAdded; } | |
2958 | int GetLine() const { return m_line; } | |
2959 | int GetFoldLevelNow() const { return m_foldLevelNow; } | |
2960 | int GetFoldLevelPrev() const { return m_foldLevelPrev; } | |
2961 | int GetMargin() const { return m_margin; } | |
2962 | int GetMessage() const { return m_message; } | |
2963 | int GetWParam() const { return m_wParam; } | |
2964 | int GetLParam() const { return m_lParam; } | |
65ec6247 RD |
2965 | int GetListType() const { return m_listType; } |
2966 | int GetX() const { return m_x; } | |
2967 | int GetY() const { return m_y; } | |
a29a241f RD |
2968 | wxString GetDragText() { return m_dragText; } |
2969 | bool GetDragAllowMove() { return m_dragAllowMove; } | |
92bbd64f | 2970 | #ifdef STC_USE_DND |
a29a241f | 2971 | wxDragResult GetDragResult() { return m_dragResult; } |
92bbd64f | 2972 | #endif |
9ce192d4 RD |
2973 | |
2974 | bool GetShift() const; | |
2975 | bool GetControl() const; | |
2976 | bool GetAlt() const; | |
2977 | ||
41286fd1 | 2978 | virtual wxEvent* Clone() const { return new wxStyledTextEvent(*this); } |
9ce192d4 | 2979 | |
f6bcfd97 | 2980 | #ifndef SWIG |
9ce192d4 | 2981 | private: |
f6bcfd97 BP |
2982 | DECLARE_DYNAMIC_CLASS(wxStyledTextEvent) |
2983 | ||
9ce192d4 RD |
2984 | int m_position; |
2985 | int m_key; | |
2986 | int m_modifiers; | |
2987 | ||
2988 | int m_modificationType; // wxEVT_STC_MODIFIED | |
2989 | wxString m_text; | |
2990 | int m_length; | |
2991 | int m_linesAdded; | |
2992 | int m_line; | |
2993 | int m_foldLevelNow; | |
2994 | int m_foldLevelPrev; | |
2995 | ||
2996 | int m_margin; // wxEVT_STC_MARGINCLICK | |
2997 | ||
2998 | int m_message; // wxEVT_STC_MACRORECORD | |
2999 | int m_wParam; | |
3000 | int m_lParam; | |
65ec6247 RD |
3001 | |
3002 | int m_listType; | |
3003 | int m_x; | |
3004 | int m_y; | |
a29a241f RD |
3005 | |
3006 | wxString m_dragText; // wxEVT_STC_START_DRAG, wxEVT_STC_DO_DROP | |
3007 | bool m_dragAllowMove; // wxEVT_STC_START_DRAG | |
3008 | ||
92bbd64f | 3009 | #if wxUSE_DRAG_AND_DROP |
a29a241f | 3010 | wxDragResult m_dragResult; // wxEVT_STC_DRAG_OVER,wxEVT_STC_DO_DROP |
f6bcfd97 | 3011 | #endif |
92bbd64f | 3012 | #endif |
9ce192d4 RD |
3013 | }; |
3014 | ||
9e730a78 RD |
3015 | |
3016 | ||
d25f5fbb RD |
3017 | #ifndef SWIG |
3018 | BEGIN_DECLARE_EVENT_TYPES() | |
7ba1412f RD |
3019 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_CHANGE, 1650) |
3020 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_STYLENEEDED, 1651) | |
3021 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_CHARADDED, 1652) | |
3022 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_SAVEPOINTREACHED, 1653) | |
3023 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_SAVEPOINTLEFT, 1654) | |
3024 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_ROMODIFYATTEMPT, 1655) | |
3025 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_KEY, 1656) | |
3026 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_DOUBLECLICK, 1657) | |
3027 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_UPDATEUI, 1658) | |
3028 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_MODIFIED, 1659) | |
3029 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_MACRORECORD, 1660) | |
3030 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_MARGINCLICK, 1661) | |
3031 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_NEEDSHOWN, 1662) | |
7ba1412f RD |
3032 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_PAINTED, 1664) |
3033 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_USERLISTSELECTION, 1665) | |
3034 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_URIDROPPED, 1666) | |
3035 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_DWELLSTART, 1667) | |
3036 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_DWELLEND, 1668) | |
3037 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_START_DRAG, 1669) | |
3038 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_DRAG_OVER, 1670) | |
3039 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_DO_DROP, 1671) | |
3040 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_ZOOM, 1672) | |
3041 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_HOTSPOT_CLICK, 1673) | |
3042 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_HOTSPOT_DCLICK, 1674) | |
3043 | DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_STC, wxEVT_STC_CALLTIP_CLICK, 1675) | |
d25f5fbb RD |
3044 | END_DECLARE_EVENT_TYPES() |
3045 | #else | |
3046 | enum { | |
3047 | wxEVT_STC_CHANGE, | |
3048 | wxEVT_STC_STYLENEEDED, | |
3049 | wxEVT_STC_CHARADDED, | |
d25f5fbb RD |
3050 | wxEVT_STC_SAVEPOINTREACHED, |
3051 | wxEVT_STC_SAVEPOINTLEFT, | |
3052 | wxEVT_STC_ROMODIFYATTEMPT, | |
65ec6247 | 3053 | wxEVT_STC_KEY, |
d25f5fbb | 3054 | wxEVT_STC_DOUBLECLICK, |
65ec6247 | 3055 | wxEVT_STC_UPDATEUI, |
d25f5fbb | 3056 | wxEVT_STC_MODIFIED, |
d25f5fbb RD |
3057 | wxEVT_STC_MACRORECORD, |
3058 | wxEVT_STC_MARGINCLICK, | |
3059 | wxEVT_STC_NEEDSHOWN, | |
65ec6247 RD |
3060 | wxEVT_STC_PAINTED, |
3061 | wxEVT_STC_USERLISTSELECTION, | |
3062 | wxEVT_STC_URIDROPPED, | |
3063 | wxEVT_STC_DWELLSTART, | |
3064 | wxEVT_STC_DWELLEND, | |
a29a241f RD |
3065 | wxEVT_STC_START_DRAG, |
3066 | wxEVT_STC_DRAG_OVER, | |
3067 | wxEVT_STC_DO_DROP, | |
a834585d | 3068 | wxEVT_STC_ZOOM, |
9e730a78 RD |
3069 | wxEVT_STC_HOTSPOT_CLICK, |
3070 | wxEVT_STC_HOTSPOT_DCLICK, | |
3071 | wxEVT_STC_CALLTIP_CLICK | |
d25f5fbb RD |
3072 | }; |
3073 | #endif | |
9ce192d4 | 3074 | |
9ce192d4 | 3075 | |
f6bcfd97 BP |
3076 | |
3077 | #ifndef SWIG | |
9ce192d4 RD |
3078 | typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&); |
3079 | ||
3a818b15 VZ |
3080 | #define EVT_STC_CHANGE(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHANGE, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), |
3081 | #define EVT_STC_STYLENEEDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_STYLENEEDED, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3082 | #define EVT_STC_CHARADDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHARADDED, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3083 | #define EVT_STC_SAVEPOINTREACHED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTREACHED, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3084 | #define EVT_STC_SAVEPOINTLEFT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTLEFT, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3085 | #define EVT_STC_ROMODIFYATTEMPT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ROMODIFYATTEMPT, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3086 | #define EVT_STC_KEY(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_KEY, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3087 | #define EVT_STC_DOUBLECLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DOUBLECLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3088 | #define EVT_STC_UPDATEUI(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_UPDATEUI, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3089 | #define EVT_STC_MODIFIED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MODIFIED, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3090 | #define EVT_STC_MACRORECORD(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MACRORECORD, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3091 | #define EVT_STC_MARGINCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MARGINCLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3092 | #define EVT_STC_NEEDSHOWN(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_NEEDSHOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3a818b15 VZ |
3093 | #define EVT_STC_PAINTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_PAINTED, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), |
3094 | #define EVT_STC_USERLISTSELECTION(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_USERLISTSELECTION, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3095 | #define EVT_STC_URIDROPPED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_URIDROPPED, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3096 | #define EVT_STC_DWELLSTART(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLSTART, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3097 | #define EVT_STC_DWELLEND(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLEND, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3098 | #define EVT_STC_START_DRAG(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_START_DRAG, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3099 | #define EVT_STC_DRAG_OVER(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DRAG_OVER, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3100 | #define EVT_STC_DO_DROP(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DO_DROP, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3101 | #define EVT_STC_ZOOM(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ZOOM, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3102 | #define EVT_STC_HOTSPOT_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_CLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3103 | #define EVT_STC_HOTSPOT_DCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_DCLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
3104 | #define EVT_STC_CALLTIP_CLICK(id, fn)) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CALLTIP_CLICK id, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ), | |
9e730a78 | 3105 | |
1bc32508 | 3106 | #endif |
9ce192d4 RD |
3107 | |
3108 | //---------------------------------------------------------------------- | |
0c5b83b0 RD |
3109 | // Utility functions used within wxSTC |
3110 | ||
3111 | #ifndef SWIG | |
3112 | ||
3113 | inline wxString stc2wx(const char* str) { | |
3114 | #if wxUSE_UNICODE | |
3115 | return wxString(str, wxConvUTF8); | |
3116 | #else | |
3117 | return wxString(str); | |
3118 | #endif | |
3119 | } | |
3120 | ||
0c5b83b0 | 3121 | #if wxUSE_UNICODE |
d99859e4 | 3122 | wxString stc2wx(const char* str, size_t len); |
0c5b83b0 | 3123 | #else |
d99859e4 | 3124 | inline wxString stc2wx(const char* str, size_t len) { |
0c5b83b0 | 3125 | return wxString(str, len); |
0c5b83b0 | 3126 | } |
d99859e4 RD |
3127 | #endif |
3128 | ||
0c5b83b0 RD |
3129 | |
3130 | #if wxUSE_UNICODE | |
3131 | inline const wxWX2MBbuf wx2stc(const wxString& str) { | |
3132 | return str.mb_str(wxConvUTF8); | |
3133 | } | |
3134 | #else | |
3135 | inline const wxWX2MBbuf wx2stc(const wxString& str) { | |
3136 | return str.mbc_str(); | |
3137 | } | |
3138 | #endif | |
3139 | ||
3140 | #endif | |
3141 | ||
3142 | ||
9ce192d4 RD |
3143 | //---------------------------------------------------------------------- |
3144 | #endif | |
3145 | ||
3146 |