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