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