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