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