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