]> git.saurik.com Git - wxWidgets.git/blame - include/wx/stc/stc.h
Added missing OS/2 files for wxUniversal on OS/2
[wxWidgets.git] / include / wx / stc / stc.h
CommitLineData
9ce192d4
RD
1////////////////////////////////////////////////////////////////////////////
2// Name: stc.h
3// Purpose: A wxWindows 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// RCS-ID: $Id$
16// Copyright: (c) 2000 by Total Control Software
17// Licence: wxWindows license
18/////////////////////////////////////////////////////////////////////////////
19
20#ifndef __stc_h__
21#define __stc_h__
22
23
24#include <wx/wx.h>
9ce192d4
RD
25
26//----------------------------------------------------------------------
4370573a
RD
27// BEGIN generated section. The following code is automatically generated
28// by gen_iface.py. Do not edit this file. Edit stc.h.in instead
29// and regenerate
30
31#define wxSTC_INVALID_POSITION -1
d25f5fbb
RD
32
33// Define start of Scintilla messages to be greater than all edit (EM_*) messages
34// as many EM_ messages can be used although that use is deprecated.
4370573a
RD
35#define wxSTC_START 2000
36#define wxSTC_OPTIONAL_START 3000
37#define wxSTC_LEXER_START 4000
38#define wxSTC_CMD_REDO 2011
39#define wxSTC_CMD_SELECTALL 2013
40#define wxSTC_WS_INVISIBLE 0
41#define wxSTC_WS_VISIBLEALWAYS 1
42#define wxSTC_WS_VISIBLEAFTERINDENT 2
43#define wxSTC_EOL_CRLF 0
44#define wxSTC_EOL_CR 1
45#define wxSTC_EOL_LF 2
46
47// The SC_CP_UTF8 value can be used to enter Unicode mode.
48// This is the same value as CP_UTF8 in Windows
49#define wxSTC_CP_UTF8 65001
50#define wxSTC_MARKER_MAX 31
51#define wxSTC_MARK_CIRCLE 0
52#define wxSTC_MARK_ROUNDRECT 1
53#define wxSTC_MARK_ARROW 2
54#define wxSTC_MARK_SMALLRECT 3
55#define wxSTC_MARK_SHORTARROW 4
56#define wxSTC_MARK_EMPTY 5
57#define wxSTC_MARK_ARROWDOWN 6
58#define wxSTC_MARK_MINUS 7
59#define wxSTC_MARK_PLUS 8
65ec6247
RD
60
61// Shapes used for outlining column
62#define wxSTC_MARK_VLINE 9
63#define wxSTC_MARK_LCORNER 10
64#define wxSTC_MARK_TCORNER 11
65#define wxSTC_MARK_BOXPLUS 12
66#define wxSTC_MARK_BOXPLUSCONNECTED 13
67#define wxSTC_MARK_BOXMINUS 14
68#define wxSTC_MARK_BOXMINUSCONNECTED 15
69#define wxSTC_MARK_LCORNERCURVE 16
70#define wxSTC_MARK_TCORNERCURVE 17
71#define wxSTC_MARK_CIRCLEPLUS 18
72#define wxSTC_MARK_CIRCLEPLUSCONNECTED 19
73#define wxSTC_MARK_CIRCLEMINUS 20
74#define wxSTC_MARK_CIRCLEMINUSCONNECTED 21
75
76// Markers used for outlining column
77#define wxSTC_MARKNUM_FOLDEREND 25
78#define wxSTC_MARKNUM_FOLDEROPENMID 26
79#define wxSTC_MARKNUM_FOLDERMIDTAIL 27
80#define wxSTC_MARKNUM_FOLDERTAIL 28
81#define wxSTC_MARKNUM_FOLDERSUB 29
4370573a
RD
82#define wxSTC_MARKNUM_FOLDER 30
83#define wxSTC_MARKNUM_FOLDEROPEN 31
84#define wxSTC_MARGIN_SYMBOL 0
85#define wxSTC_MARGIN_NUMBER 1
86#define wxSTC_STYLE_DEFAULT 32
87#define wxSTC_STYLE_LINENUMBER 33
88#define wxSTC_STYLE_BRACELIGHT 34
89#define wxSTC_STYLE_BRACEBAD 35
90#define wxSTC_STYLE_CONTROLCHAR 36
91#define wxSTC_STYLE_INDENTGUIDE 37
92#define wxSTC_STYLE_MAX 127
93
94// Character set identifiers are used in StyleSetCharacterSet.
95// The values are the same as the Windows *_CHARSET values.
96#define wxSTC_CHARSET_ANSI 0
97#define wxSTC_CHARSET_DEFAULT 1
98#define wxSTC_CHARSET_BALTIC 186
99#define wxSTC_CHARSET_CHINESEBIG5 136
100#define wxSTC_CHARSET_EASTEUROPE 238
101#define wxSTC_CHARSET_GB2312 134
102#define wxSTC_CHARSET_GREEK 161
103#define wxSTC_CHARSET_HANGUL 129
104#define wxSTC_CHARSET_MAC 77
105#define wxSTC_CHARSET_OEM 255
106#define wxSTC_CHARSET_RUSSIAN 204
107#define wxSTC_CHARSET_SHIFTJIS 128
108#define wxSTC_CHARSET_SYMBOL 2
109#define wxSTC_CHARSET_TURKISH 162
110#define wxSTC_CHARSET_JOHAB 130
111#define wxSTC_CHARSET_HEBREW 177
112#define wxSTC_CHARSET_ARABIC 178
113#define wxSTC_CHARSET_VIETNAMESE 163
114#define wxSTC_CHARSET_THAI 222
65ec6247
RD
115#define wxSTC_CASE_MIXED 0
116#define wxSTC_CASE_UPPER 1
117#define wxSTC_CASE_LOWER 2
4370573a
RD
118#define wxSTC_INDIC_MAX 7
119#define wxSTC_INDIC_PLAIN 0
120#define wxSTC_INDIC_SQUIGGLE 1
121#define wxSTC_INDIC_TT 2
122#define wxSTC_INDIC_DIAGONAL 3
123#define wxSTC_INDIC_STRIKE 4
124#define wxSTC_INDIC0_MASK 32
125#define wxSTC_INDIC1_MASK 64
126#define wxSTC_INDIC2_MASK 128
d25f5fbb 127#define wxSTC_INDICS_MASK 224
4370573a
RD
128
129// PrintColourMode - use same colours as screen.
130#define wxSTC_PRINT_NORMAL 0
131
132// PrintColourMode - invert the light value of each style for printing.
133#define wxSTC_PRINT_INVERTLIGHT 1
134
135// PrintColourMode - force black text on white background for printing.
136#define wxSTC_PRINT_BLACKONWHITE 2
65ec6247
RD
137
138// PrintColourMode - text stays coloured, but all background is forced to be white for printing.
139#define wxSTC_PRINT_COLOURONWHITE 3
140
141// PrintColourMode - only the default-background is forced to be white for printing.
142#define wxSTC_PRINT_COLOURONWHITEDEFAULTBG 4
4370573a
RD
143#define wxSTC_FIND_WHOLEWORD 2
144#define wxSTC_FIND_MATCHCASE 4
145#define wxSTC_FIND_WORDSTART 0x00100000
4370573a
RD
146#define wxSTC_FIND_REGEXP 0x00200000
147#define wxSTC_CMD_UNDO 2176
148#define wxSTC_CMD_CUT 2177
149#define wxSTC_CMD_COPY 2178
150#define wxSTC_CMD_PASTE 2179
151#define wxSTC_FOLDLEVELBASE 0x400
152#define wxSTC_FOLDLEVELWHITEFLAG 0x1000
153#define wxSTC_FOLDLEVELHEADERFLAG 0x2000
154#define wxSTC_FOLDLEVELNUMBERMASK 0x0FFF
65ec6247 155#define wxSTC_TIME_FOREVER 10000000
4370573a
RD
156#define wxSTC_CMD_LINEDOWN 2300
157#define wxSTC_CMD_LINEDOWNEXTEND 2301
158#define wxSTC_CMD_LINEUP 2302
159#define wxSTC_CMD_LINEUPEXTEND 2303
160#define wxSTC_CMD_CHARLEFT 2304
161#define wxSTC_CMD_CHARLEFTEXTEND 2305
162#define wxSTC_CMD_CHARRIGHT 2306
163#define wxSTC_CMD_CHARRIGHTEXTEND 2307
164#define wxSTC_CMD_WORDLEFT 2308
165#define wxSTC_CMD_WORDLEFTEXTEND 2309
166#define wxSTC_CMD_WORDRIGHT 2310
167#define wxSTC_CMD_WORDRIGHTEXTEND 2311
168#define wxSTC_CMD_HOME 2312
169#define wxSTC_CMD_HOMEEXTEND 2313
170#define wxSTC_CMD_LINEEND 2314
171#define wxSTC_CMD_LINEENDEXTEND 2315
172#define wxSTC_CMD_DOCUMENTSTART 2316
173#define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317
174#define wxSTC_CMD_DOCUMENTEND 2318
175#define wxSTC_CMD_DOCUMENTENDEXTEND 2319
176#define wxSTC_CMD_PAGEUP 2320
177#define wxSTC_CMD_PAGEUPEXTEND 2321
178#define wxSTC_CMD_PAGEDOWN 2322
179#define wxSTC_CMD_PAGEDOWNEXTEND 2323
180#define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324
181#define wxSTC_CMD_CANCEL 2325
182#define wxSTC_CMD_DELETEBACK 2326
183#define wxSTC_CMD_TAB 2327
184#define wxSTC_CMD_BACKTAB 2328
185#define wxSTC_CMD_NEWLINE 2329
186#define wxSTC_CMD_FORMFEED 2330
187#define wxSTC_CMD_VCHOME 2331
188#define wxSTC_CMD_VCHOMEEXTEND 2332
189#define wxSTC_CMD_ZOOMIN 2333
190#define wxSTC_CMD_ZOOMOUT 2334
191#define wxSTC_CMD_DELWORDLEFT 2335
192#define wxSTC_CMD_DELWORDRIGHT 2336
193#define wxSTC_CMD_LINECUT 2337
194#define wxSTC_CMD_LINEDELETE 2338
195#define wxSTC_CMD_LINETRANSPOSE 2339
196#define wxSTC_CMD_LOWERCASE 2340
197#define wxSTC_CMD_UPPERCASE 2341
198#define wxSTC_CMD_LINESCROLLDOWN 2342
199#define wxSTC_CMD_LINESCROLLUP 2343
200#define wxSTC_EDGE_NONE 0
201#define wxSTC_EDGE_LINE 1
202#define wxSTC_EDGE_BACKGROUND 2
203
204// Show caret within N lines of edge when it's scrolled to view
65ec6247
RD
205// If CARET_SLOP not set then centre caret on screen when it's
206// scrolled to view
4370573a
RD
207#define wxSTC_CARET_SLOP 0x01
208
65ec6247 209// Value not used
4370573a
RD
210#define wxSTC_CARET_CENTER 0x02
211
65ec6247
RD
212// If CARET_SLOP also set then reposition whenever outside slop border
213// If CARET_SLOP not set then recentre even when visible
4370573a
RD
214#define wxSTC_CARET_STRICT 0x04
215
65ec6247
RD
216// If CARET_XEVEN set then both left and right margins are given equal weight
217// rather than favouring left following behaviour.
218#define wxSTC_CARET_XEVEN 0x08
219
220// If CARET_XJUMPS set then when caret reaches the margin the display jumps
221// enough to leave the caret solidly within the display.
222#define wxSTC_CARET_XJUMPS 0x10
223#define wxSTC_CURSORNORMAL -1
224#define wxSTC_CURSORWAIT 3
225
226// Constants for use with SetVisiblePolicy, similar to SetCaretPolicy
227#define wxSTC_VISIBLE_SLOP 0x01
228#define wxSTC_VISIBLE_STRICT 0x04
229
4370573a
RD
230// Notifications
231// Type of modification and the action which caused the modification
232// These are defined as a bit mask to make it easy to specify which notifications are wanted.
233// One bit is set from each of SC_MOD_* and SC_PERFORMED_*.
234#define wxSTC_MOD_INSERTTEXT 0x1
235#define wxSTC_MOD_DELETETEXT 0x2
236#define wxSTC_MOD_CHANGESTYLE 0x4
237#define wxSTC_MOD_CHANGEFOLD 0x8
238#define wxSTC_PERFORMED_USER 0x10
239#define wxSTC_PERFORMED_UNDO 0x20
240#define wxSTC_PERFORMED_REDO 0x40
241#define wxSTC_LASTSTEPINUNDOREDO 0x100
242#define wxSTC_MOD_CHANGEMARKER 0x200
243#define wxSTC_MOD_BEFOREINSERT 0x400
244#define wxSTC_MOD_BEFOREDELETE 0x800
245#define wxSTC_MODEVENTMASKALL 0xF77
246
247// Symbolic key codes and modifier flags
248// ASCII and other printable characters below 256
249// Extended keys above 300
250#define wxSTC_KEY_DOWN 300
251#define wxSTC_KEY_UP 301
252#define wxSTC_KEY_LEFT 302
253#define wxSTC_KEY_RIGHT 303
254#define wxSTC_KEY_HOME 304
255#define wxSTC_KEY_END 305
256#define wxSTC_KEY_PRIOR 306
257#define wxSTC_KEY_NEXT 307
258#define wxSTC_KEY_DELETE 308
259#define wxSTC_KEY_INSERT 309
260#define wxSTC_KEY_ESCAPE 7
261#define wxSTC_KEY_BACK 8
262#define wxSTC_KEY_TAB 9
263#define wxSTC_KEY_RETURN 13
264#define wxSTC_KEY_ADD 310
265#define wxSTC_KEY_SUBTRACT 311
266#define wxSTC_KEY_DIVIDE 312
267#define wxSTC_SCMOD_SHIFT 1
268#define wxSTC_SCMOD_CTRL 2
269#define wxSTC_SCMOD_ALT 4
270
271// For SciLexer.h
272#define wxSTC_LEX_CONTAINER 0
273#define wxSTC_LEX_NULL 1
274#define wxSTC_LEX_PYTHON 2
275#define wxSTC_LEX_CPP 3
276#define wxSTC_LEX_HTML 4
277#define wxSTC_LEX_XML 5
278#define wxSTC_LEX_PERL 6
279#define wxSTC_LEX_SQL 7
280#define wxSTC_LEX_VB 8
281#define wxSTC_LEX_PROPERTIES 9
282#define wxSTC_LEX_ERRORLIST 10
283#define wxSTC_LEX_MAKEFILE 11
284#define wxSTC_LEX_BATCH 12
285#define wxSTC_LEX_XCODE 13
286#define wxSTC_LEX_LATEX 14
287#define wxSTC_LEX_LUA 15
288#define wxSTC_LEX_DIFF 16
65ec6247
RD
289#define wxSTC_LEX_CONF 17
290#define wxSTC_LEX_PASCAL 18
291#define wxSTC_LEX_AVE 19
292#define wxSTC_LEX_ADA 20
293#define wxSTC_LEX_LISP 21
294#define wxSTC_LEX_RUBY 22
295#define wxSTC_LEX_EIFFEL 23
296#define wxSTC_LEX_EIFFELKW 24
297#define wxSTC_LEX_TCL 25
298
299// When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
300// value assigned in sequence from SCLEX_AUTOMATIC+1.
301#define wxSTC_LEX_AUTOMATIC 1000
4370573a
RD
302
303// Lexical states for SCLEX_PYTHON
304#define wxSTC_P_DEFAULT 0
305#define wxSTC_P_COMMENTLINE 1
306#define wxSTC_P_NUMBER 2
307#define wxSTC_P_STRING 3
308#define wxSTC_P_CHARACTER 4
309#define wxSTC_P_WORD 5
310#define wxSTC_P_TRIPLE 6
311#define wxSTC_P_TRIPLEDOUBLE 7
312#define wxSTC_P_CLASSNAME 8
313#define wxSTC_P_DEFNAME 9
314#define wxSTC_P_OPERATOR 10
315#define wxSTC_P_IDENTIFIER 11
316#define wxSTC_P_COMMENTBLOCK 12
317#define wxSTC_P_STRINGEOL 13
318
319// Lexical states for SCLEX_CPP, SCLEX_VB
320#define wxSTC_C_DEFAULT 0
321#define wxSTC_C_COMMENT 1
322#define wxSTC_C_COMMENTLINE 2
323#define wxSTC_C_COMMENTDOC 3
324#define wxSTC_C_NUMBER 4
325#define wxSTC_C_WORD 5
326#define wxSTC_C_STRING 6
327#define wxSTC_C_CHARACTER 7
328#define wxSTC_C_UUID 8
329#define wxSTC_C_PREPROCESSOR 9
330#define wxSTC_C_OPERATOR 10
331#define wxSTC_C_IDENTIFIER 11
332#define wxSTC_C_STRINGEOL 12
333#define wxSTC_C_VERBATIM 13
65ec6247
RD
334#define wxSTC_C_REGEX 14
335#define wxSTC_C_COMMENTLINEDOC 15
336#define wxSTC_C_WORD2 16
4370573a
RD
337
338// Lexical states for SCLEX_HTML, SCLEX_XML
339#define wxSTC_H_DEFAULT 0
340#define wxSTC_H_TAG 1
341#define wxSTC_H_TAGUNKNOWN 2
342#define wxSTC_H_ATTRIBUTE 3
343#define wxSTC_H_ATTRIBUTEUNKNOWN 4
344#define wxSTC_H_NUMBER 5
345#define wxSTC_H_DOUBLESTRING 6
346#define wxSTC_H_SINGLESTRING 7
347#define wxSTC_H_OTHER 8
348#define wxSTC_H_COMMENT 9
349#define wxSTC_H_ENTITY 10
350
351// XML and ASP
352#define wxSTC_H_TAGEND 11
353#define wxSTC_H_XMLSTART 12
354#define wxSTC_H_XMLEND 13
355#define wxSTC_H_SCRIPT 14
356#define wxSTC_H_ASP 15
357#define wxSTC_H_ASPAT 16
358#define wxSTC_H_CDATA 17
359#define wxSTC_H_QUESTION 18
360
361// More HTML
362#define wxSTC_H_VALUE 19
363
65ec6247
RD
364// X-Code
365#define wxSTC_H_XCCOMMENT 20
366
367// SGML
368#define wxSTC_H_SGML 21
369
4370573a
RD
370// Embedded Javascript
371#define wxSTC_HJ_START 40
372#define wxSTC_HJ_DEFAULT 41
373#define wxSTC_HJ_COMMENT 42
374#define wxSTC_HJ_COMMENTLINE 43
375#define wxSTC_HJ_COMMENTDOC 44
376#define wxSTC_HJ_NUMBER 45
377#define wxSTC_HJ_WORD 46
378#define wxSTC_HJ_KEYWORD 47
379#define wxSTC_HJ_DOUBLESTRING 48
380#define wxSTC_HJ_SINGLESTRING 49
381#define wxSTC_HJ_SYMBOLS 50
382#define wxSTC_HJ_STRINGEOL 51
65ec6247 383#define wxSTC_HJ_REGEX 52
4370573a
RD
384
385// ASP Javascript
386#define wxSTC_HJA_START 55
387#define wxSTC_HJA_DEFAULT 56
388#define wxSTC_HJA_COMMENT 57
389#define wxSTC_HJA_COMMENTLINE 58
390#define wxSTC_HJA_COMMENTDOC 59
391#define wxSTC_HJA_NUMBER 60
392#define wxSTC_HJA_WORD 61
393#define wxSTC_HJA_KEYWORD 62
394#define wxSTC_HJA_DOUBLESTRING 63
395#define wxSTC_HJA_SINGLESTRING 64
396#define wxSTC_HJA_SYMBOLS 65
397#define wxSTC_HJA_STRINGEOL 66
65ec6247 398#define wxSTC_HJA_REGEX 67
4370573a
RD
399
400// Embedded VBScript
401#define wxSTC_HB_START 70
402#define wxSTC_HB_DEFAULT 71
403#define wxSTC_HB_COMMENTLINE 72
404#define wxSTC_HB_NUMBER 73
405#define wxSTC_HB_WORD 74
406#define wxSTC_HB_STRING 75
407#define wxSTC_HB_IDENTIFIER 76
408#define wxSTC_HB_STRINGEOL 77
409
410// ASP VBScript
411#define wxSTC_HBA_START 80
412#define wxSTC_HBA_DEFAULT 81
413#define wxSTC_HBA_COMMENTLINE 82
414#define wxSTC_HBA_NUMBER 83
415#define wxSTC_HBA_WORD 84
416#define wxSTC_HBA_STRING 85
417#define wxSTC_HBA_IDENTIFIER 86
418#define wxSTC_HBA_STRINGEOL 87
419
420// Embedded Python
421#define wxSTC_HP_START 90
422#define wxSTC_HP_DEFAULT 91
423#define wxSTC_HP_COMMENTLINE 92
424#define wxSTC_HP_NUMBER 93
425#define wxSTC_HP_STRING 94
426#define wxSTC_HP_CHARACTER 95
427#define wxSTC_HP_WORD 96
428#define wxSTC_HP_TRIPLE 97
429#define wxSTC_HP_TRIPLEDOUBLE 98
430#define wxSTC_HP_CLASSNAME 99
431#define wxSTC_HP_DEFNAME 100
432#define wxSTC_HP_OPERATOR 101
433#define wxSTC_HP_IDENTIFIER 102
434
435// ASP Python
436#define wxSTC_HPA_START 105
437#define wxSTC_HPA_DEFAULT 106
438#define wxSTC_HPA_COMMENTLINE 107
439#define wxSTC_HPA_NUMBER 108
440#define wxSTC_HPA_STRING 109
441#define wxSTC_HPA_CHARACTER 110
442#define wxSTC_HPA_WORD 111
443#define wxSTC_HPA_TRIPLE 112
444#define wxSTC_HPA_TRIPLEDOUBLE 113
445#define wxSTC_HPA_CLASSNAME 114
446#define wxSTC_HPA_DEFNAME 115
447#define wxSTC_HPA_OPERATOR 116
448#define wxSTC_HPA_IDENTIFIER 117
449
450// PHP
451#define wxSTC_HPHP_DEFAULT 118
452#define wxSTC_HPHP_HSTRING 119
453#define wxSTC_HPHP_SIMPLESTRING 120
454#define wxSTC_HPHP_WORD 121
455#define wxSTC_HPHP_NUMBER 122
456#define wxSTC_HPHP_VARIABLE 123
457#define wxSTC_HPHP_COMMENT 124
458#define wxSTC_HPHP_COMMENTLINE 125
65ec6247
RD
459#define wxSTC_HPHP_HSTRING_VARIABLE 126
460#define wxSTC_HPHP_OPERATOR 127
4370573a
RD
461
462// Lexical states for SCLEX_PERL
463#define wxSTC_PL_DEFAULT 0
65ec6247 464#define wxSTC_PL_ERROR 1
4370573a
RD
465#define wxSTC_PL_COMMENTLINE 2
466#define wxSTC_PL_POD 3
467#define wxSTC_PL_NUMBER 4
468#define wxSTC_PL_WORD 5
469#define wxSTC_PL_STRING 6
470#define wxSTC_PL_CHARACTER 7
471#define wxSTC_PL_PUNCTUATION 8
472#define wxSTC_PL_PREPROCESSOR 9
473#define wxSTC_PL_OPERATOR 10
474#define wxSTC_PL_IDENTIFIER 11
475#define wxSTC_PL_SCALAR 12
476#define wxSTC_PL_ARRAY 13
477#define wxSTC_PL_HASH 14
478#define wxSTC_PL_SYMBOLTABLE 15
4370573a
RD
479#define wxSTC_PL_REGEX 17
480#define wxSTC_PL_REGSUBST 18
481#define wxSTC_PL_LONGQUOTE 19
482#define wxSTC_PL_BACKTICKS 20
483#define wxSTC_PL_DATASECTION 21
65ec6247
RD
484#define wxSTC_PL_HERE_DELIM 22
485#define wxSTC_PL_HERE_Q 23
486#define wxSTC_PL_HERE_QQ 24
487#define wxSTC_PL_HERE_QX 25
488#define wxSTC_PL_STRING_Q 26
489#define wxSTC_PL_STRING_QQ 27
490#define wxSTC_PL_STRING_QX 28
491#define wxSTC_PL_STRING_QR 29
492#define wxSTC_PL_STRING_QW 30
4370573a
RD
493
494// Lexical states for SCLEX_LATEX
495#define wxSTC_L_DEFAULT 0
496#define wxSTC_L_COMMAND 1
497#define wxSTC_L_TAG 2
498#define wxSTC_L_MATH 3
499#define wxSTC_L_COMMENT 4
500
501// Lexical states for SCLEX_LUA
502#define wxSTC_LUA_DEFAULT 0
503#define wxSTC_LUA_COMMENT 1
504#define wxSTC_LUA_COMMENTLINE 2
505#define wxSTC_LUA_COMMENTDOC 3
506#define wxSTC_LUA_NUMBER 4
507#define wxSTC_LUA_WORD 5
508#define wxSTC_LUA_STRING 6
509#define wxSTC_LUA_CHARACTER 7
510#define wxSTC_LUA_LITERALSTRING 8
511#define wxSTC_LUA_PREPROCESSOR 9
512#define wxSTC_LUA_OPERATOR 10
513#define wxSTC_LUA_IDENTIFIER 11
514#define wxSTC_LUA_STRINGEOL 12
65ec6247
RD
515
516// Lexical states for SCLEX_ERRORLIST
4370573a
RD
517#define wxSTC_ERR_DEFAULT 0
518#define wxSTC_ERR_PYTHON 1
519#define wxSTC_ERR_GCC 2
520#define wxSTC_ERR_MS 3
521#define wxSTC_ERR_CMD 4
522#define wxSTC_ERR_BORLAND 5
523#define wxSTC_ERR_PERL 6
65ec6247
RD
524#define wxSTC_ERR_NET 7
525#define wxSTC_ERR_LUA 8
526#define wxSTC_ERR_DIFF_CHANGED 10
527#define wxSTC_ERR_DIFF_ADDITION 11
528#define wxSTC_ERR_DIFF_DELETION 12
529#define wxSTC_ERR_DIFF_MESSAGE 13
530
531// Lexical states for SCLEX_BATCH
532#define wxSTC_BAT_DEFAULT 0
533#define wxSTC_BAT_COMMENT 1
534#define wxSTC_BAT_WORD 2
535#define wxSTC_BAT_LABEL 3
536#define wxSTC_BAT_HIDE 4
537#define wxSTC_BAT_COMMAND 5
538#define wxSTC_BAT_IDENTIFIER 6
539#define wxSTC_BAT_OPERATOR 7
540
541// Lexical states for SCLEX_MAKEFILE
542#define wxSTC_MAKE_DEFAULT 0
543#define wxSTC_MAKE_COMMENT 1
544#define wxSTC_MAKE_PREPROCESSOR 2
545#define wxSTC_MAKE_IDENTIFIER 3
546#define wxSTC_MAKE_OPERATOR 4
547#define wxSTC_MAKE_TARGET 5
548#define wxSTC_MAKE_IDEOL 9
549
550// Lexical states for the SCLEX_CONF (Apache Configuration Files Lexer)
551#define wxSTC_CONF_DEFAULT 0
552#define wxSTC_CONF_COMMENT 1
553#define wxSTC_CONF_NUMBER 2
554#define wxSTC_CONF_IDENTIFIER 3
555#define wxSTC_CONF_EXTENSION 4
556#define wxSTC_CONF_PARAMETER 5
557#define wxSTC_CONF_STRING 6
558#define wxSTC_CONF_OPERATOR 7
559#define wxSTC_CONF_IP 8
560#define wxSTC_CONF_DIRECTIVE 9
561
562// Avenue
563#define wxSTC_AVE_DEFAULT 0
564#define wxSTC_AVE_COMMENT 1
565#define wxSTC_AVE_NUMBER 2
566#define wxSTC_AVE_WORD 3
567#define wxSTC_AVE_KEYWORD 4
568#define wxSTC_AVE_STATEMENT 5
569#define wxSTC_AVE_STRING 6
570#define wxSTC_AVE_ENUM 7
571#define wxSTC_AVE_STRINGEOL 8
572#define wxSTC_AVE_IDENTIFIER 9
573#define wxSTC_AVE_OPERATOR 10
574
575// Lexical states for SCLEX_ADA
576#define wxSTC_ADA_DEFAULT 0
577#define wxSTC_ADA_COMMENT 1
578#define wxSTC_ADA_NUMBER 2
579#define wxSTC_ADA_WORD 3
580#define wxSTC_ADA_STRING 4
581#define wxSTC_ADA_CHARACTER 5
582#define wxSTC_ADA_OPERATOR 6
583#define wxSTC_ADA_IDENTIFIER 7
584#define wxSTC_ADA_STRINGEOL 8
585
586// Lexical states for SCLEX_LISP
587#define wxSTC_LISP_DEFAULT 0
588#define wxSTC_LISP_COMMENT 1
589#define wxSTC_LISP_NUMBER 2
590#define wxSTC_LISP_KEYWORD 3
591#define wxSTC_LISP_STRING 6
592#define wxSTC_LISP_STRINGEOL 8
593#define wxSTC_LISP_IDENTIFIER 9
594#define wxSTC_LISP_OPERATOR 10
595
596// Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW
597#define wxSTC_EIFFEL_DEFAULT 0
598#define wxSTC_EIFFEL_COMMENTLINE 1
599#define wxSTC_EIFFEL_NUMBER 2
600#define wxSTC_EIFFEL_WORD 3
601#define wxSTC_EIFFEL_STRING 4
602#define wxSTC_EIFFEL_CHARACTER 5
603#define wxSTC_EIFFEL_OPERATOR 6
604#define wxSTC_EIFFEL_IDENTIFIER 7
605#define wxSTC_EIFFEL_STRINGEOL 8
4370573a
RD
606
607// END of generated section
608//----------------------------------------------------------------------
609// Others
9ce192d4 610
4370573a 611#define wxSTC_MASK_FOLDERS ((1 << wxSTC_MARKNUM_FOLDER) | (1 << wxSTC_MARKNUM_FOLDEROPEN))
9ce192d4 612
9ce192d4 613
9ce192d4 614
4370573a 615//----------------------------------------------------------------------
9ce192d4
RD
616
617class ScintillaWX; // forward declare
618class WordList;
619struct SCNotification;
620
621
622extern const wxChar* wxSTCNameStr;
623
624//----------------------------------------------------------------------
625
626class wxStyledTextCtrl : public wxControl {
627public:
628
f6bcfd97
BP
629#ifdef SWIG
630 wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
631 const wxPoint& pos = wxDefaultPosition,
632 const wxSize& size = wxDefaultSize, long style = 0,
633 const char* name = "styledtext");
0122b7e3
RD
634 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
635
f6bcfd97 636#else
9ce192d4
RD
637 wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
638 const wxPoint& pos = wxDefaultPosition,
639 const wxSize& size = wxDefaultSize, long style = 0,
640 const wxString& name = wxSTCNameStr);
f6bcfd97
BP
641#endif
642
9ce192d4 643
f6bcfd97
BP
644#ifndef SWIG
645 ~wxStyledTextCtrl();
646#endif
9ce192d4 647
4370573a
RD
648//----------------------------------------------------------------------
649// BEGIN generated section. The following code is automatically generated
650// by gen_iface.py. Do not edit this file. Edit stc.h.in instead
651// and regenerate
9ce192d4 652
4370573a
RD
653
654 // Add text to the document
655 void AddText(const wxString& text);
656
657 // Add array of cells to document
658 void AddStyledText(const wxString& text);
659
660 // Insert string at a position
661 void InsertText(int pos, const wxString& text);
662
663 // Delete all text in the document
664 void ClearAll();
665
666 // Set all style bytes to 0, remove all folding information
667 void ClearDocumentStyle();
668
669 // The number of characters in the document
670 int GetLength();
671
672 // Returns the character byte at the position
673 int GetCharAt(int pos);
674
675 // Returns the position of the caret
676 int GetCurrentPos();
677
678 // Returns the position of the opposite end of the selection to the caret
679 int GetAnchor();
680
681 // Returns the style byte at the position
682 int GetStyleAt(int pos);
683
684 // Redoes the next action on the undo history
685 void Redo();
686
687 // Choose between collecting actions into the undo
688 // history and discarding them.
689 void SetUndoCollection(bool collectUndo);
690
691 // Select all the text in the document.
692 void SelectAll();
693
694 // Remember the current position in the undo history as the position
695 // at which the document was saved.
696 void SetSavePoint();
697
698 // Retrieve a buffer of cells.
699 wxString GetStyledText(int startPos, int endPos);
700
701 // Are there any redoable actions in the undo history.
702 bool CanRedo();
703
704 // Retrieve the line number at which a particular marker is located
705 int MarkerLineFromHandle(int handle);
706
707 // Delete a marker.
708 void MarkerDeleteHandle(int handle);
709
710 // Is undo history being collected?
711 bool GetUndoCollection();
712
713 // Are white space characters currently visible?
714 // Returns one of SCWS_* constants.
715 int GetViewWhiteSpace();
716
717 // Make white space characters invisible, always visible or visible outside indentation.
718 void SetViewWhiteSpace(int viewWS);
719
720 // Find the position from a point within the window.
721 int PositionFromPoint(wxPoint pt);
722
65ec6247
RD
723 // Find the position from a point within the window but return
724 // INVALID_POSITION if not close to text.
725 int PositionFromPointClose(int x, int y);
726
4370573a
RD
727 // Set caret to start of a line and ensure it is visible.
728 void GotoLine(int line);
729
730 // Set caret to a position and ensure it is visible.
731 void GotoPos(int pos);
732
733 // Set the selection anchor to a position. The anchor is the opposite
734 // end of the selection from the caret.
735 void SetAnchor(int posAnchor);
736
737 // Retrieve the text of the line containing the caret.
738 // Returns the index of the caret on the line.
8de28db9
RD
739 #ifdef SWIG
740 wxString GetCurLine(int* OUTPUT);
741#else
742 wxString GetCurLine(int* linePos=NULL);
743#endif
4370573a
RD
744
745 // Retrieve the position of the last correctly styled character.
746 int GetEndStyled();
747
65ec6247
RD
748 // Convert all line endings in the document to one mode.
749 void ConvertEOLs(int eolMode);
4370573a
RD
750
751 // Retrieve the current end of line mode - one of CRLF, CR, or LF.
752 int GetEOLMode();
753
754 // Set the current end of line mode.
755 void SetEOLMode(int eolMode);
756
757 // Set the current styling position to pos and the styling mask to mask.
758 // The styling mask can be used to protect some bits in each styling byte from
759 // modification.
760 void StartStyling(int pos, int mask);
761
762 // Change style from current styling position for length characters to a style
763 // and move the current styling position to after this newly styled segment.
764 void SetStyling(int length, int style);
765
766 // Is drawing done first into a buffer or direct to the screen.
767 bool GetBufferedDraw();
768
769 // If drawing is buffered then each line of text is drawn into a bitmap buffer
770 // before drawing it to the screen to avoid flicker.
771 void SetBufferedDraw(bool buffered);
772
773 // Change the visible size of a tab to be a multiple of the width of a space
774 // character.
775 void SetTabWidth(int tabWidth);
776
777 // Retrieve the visible size of a tab.
778 int GetTabWidth();
779
780 // Set the code page used to interpret the bytes of the document as characters.
781 // The SC_CP_UTF8 value can be used to enter Unicode mode.
782 void SetCodePage(int codePage);
783
784 // Set the symbol used for a particular marker number,
785 // and optionally the for and background colours.
786 void MarkerDefine(int markerNumber, int markerSymbol,
787 const wxColour& foreground = wxNullColour,
788 const wxColour& background = wxNullColour);
789
790 // Set the foreground colour used for a particular marker number.
791 void MarkerSetForeground(int markerNumber, const wxColour& fore);
792
793 // Set the background colour used for a particular marker number.
794 void MarkerSetBackground(int markerNumber, const wxColour& back);
795
796 // Add a marker to a line.
797 void MarkerAdd(int line, int markerNumber);
798
799 // Delete a marker from a line
800 void MarkerDelete(int line, int markerNumber);
801
802 // Delete all markers with a particular number from all lines
803 void MarkerDeleteAll(int markerNumber);
804
805 // Get a bit mask of all the markers set on a line.
806 int MarkerGet(int line);
807
808 // Find the next line after lineStart that includes a marker in mask.
809 int MarkerNext(int lineStart, int markerMask);
810
811 // Find the previous line before lineStart that includes a marker in mask.
812 int MarkerPrevious(int lineStart, int markerMask);
813
814 // Set a margin to be either numeric or symbolic.
815 void SetMarginType(int margin, int marginType);
816
817 // Retrieve the type of a margin.
818 int GetMarginType(int margin);
819
820 // Set the width of a margin to a width expressed in pixels.
9ce192d4 821 void SetMarginWidth(int margin, int pixelWidth);
4370573a
RD
822
823 // Retrieve the width of a margin in pixels.
824 int GetMarginWidth(int margin);
825
826 // Set a mask that determines which markers are displayed in a margin.
9ce192d4 827 void SetMarginMask(int margin, int mask);
4370573a
RD
828
829 // Retrieve the marker mask of a margin.
830 int GetMarginMask(int margin);
831
832 // Make a margin sensitive or insensitive to mouse clicks.
9ce192d4 833 void SetMarginSensitive(int margin, bool sensitive);
4370573a
RD
834
835 // Retrieve the mouse click sensitivity of a margin.
9ce192d4
RD
836 bool GetMarginSensitive(int margin);
837
4370573a
RD
838 // Clear all the styles and make equivalent to the global default style.
839 void StyleClearAll();
840
841 // Set the foreground colour of a style.
842 void StyleSetForeground(int style, const wxColour& fore);
843
844 // Set the background colour of a style.
845 void StyleSetBackground(int style, const wxColour& back);
846
847 // Set a style to be bold or not.
848 void StyleSetBold(int style, bool bold);
849
850 // Set a style to be italic or not.
851 void StyleSetItalic(int style, bool italic);
852
853 // Set the size of characters of a style.
854 void StyleSetSize(int style, int sizePoints);
855
856 // Set the font of a style.
857 void StyleSetFaceName(int style, const wxString& fontName);
858
859 // Set a style to have its end of line filled or not.
860 void StyleSetEOLFilled(int style, bool filled);
861
862 // Reset the default style to its state at startup
863 void StyleResetDefault();
864
865 // Set a style to be underlined or not.
866 void StyleSetUnderline(int style, bool underline);
867
65ec6247
RD
868 // Set a style to be mixed case, or to force upper or lower case.
869 void StyleSetCase(int style, int caseForce);
870
4370573a
RD
871 // Set the foreground colour of the selection and whether to use this setting.
872 void SetSelForeground(bool useSetting, const wxColour& fore);
873
874 // Set the background colour of the selection and whether to use this setting.
875 void SetSelBackground(bool useSetting, const wxColour& back);
876
877 // Set the foreground colour of the caret.
878 void SetCaretForeground(const wxColour& fore);
879
880 // When key+modifier combination km is pressed perform msg.
881 void CmdKeyAssign(int key, int modifiers, int cmd);
882
883 // When key+modifier combination km do nothing.
884 void CmdKeyClear(int key, int modifiers);
885
886 // Drop all key mappings.
887 void CmdKeyClearAll();
888
889 // Set the styles for a segment of the document.
890 void SetStyleBytes(int length, char* styleBytes);
891
892 // Set a style to be visible or not.
893 void StyleSetVisible(int style, bool visible);
894
895 // Get the time in milliseconds that the caret is on and off.
896 int GetCaretPeriod();
897
898 // Get the time in milliseconds that the caret is on and off. 0 = steady on.
899 void SetCaretPeriod(int periodMilliseconds);
900
901 // Set the set of characters making up words for when moving or selecting
902 // by word.
903 void SetWordChars(const wxString& characters);
904
905 // Start a sequence of actions that is undone and redone as a unit.
906 // May be nested.
907 void BeginUndoAction();
908
909 // End a sequence of actions that is undone and redone as a unit.
910 void EndUndoAction();
911
912 // Set an indicator to plain, squiggle or TT.
913 void IndicatorSetStyle(int indic, int style);
914
915 // Retrieve the style of an indicator.
916 int IndicatorGetStyle(int indic);
917
918 // Set the foreground colour of an indicator.
919 void IndicatorSetForeground(int indic, const wxColour& fore);
920
921 // Retrieve the foreground colour of an indicator.
922 wxColour IndicatorGetForeground(int indic);
923
924 // Divide each styling byte into lexical class bits (default:5) and indicator
925 // bits (default:3). If a lexer requires more than 32 lexical states, then this
926 // is used to expand the possible states.
927 void SetStyleBits(int bits);
928
929 // Retrieve number of bits in style bytes used to hold the lexical state.
930 int GetStyleBits();
931
932 // Used to hold extra styling information for each line.
933 void SetLineState(int line, int state);
934
935 // Retrieve the extra styling information for a line.
936 int GetLineState(int line);
937
938 // Retrieve the last line number that has line state.
939 int GetMaxLineState();
940
65ec6247
RD
941 // Is the background of the line containing the caret in a different colour?
942 bool GetCaretLineVisible();
943
944 // Display the background of the line containing the caret in a different colour.
945 void SetCaretLineVisible(bool show);
946
947 // Get the colour of the background of the line containing the caret.
948 wxColour GetCaretLineBack();
949
950 // Set the colour of the background of the line containing the caret.
951 void SetCaretLineBack(const wxColour& back);
952
4370573a
RD
953 // Display a auto-completion list.
954 // The lenEntered parameter indicates how many characters before
955 // the caret should be used to provide context.
956 void AutoCompShow(int lenEntered, const wxString& itemList);
957
958 // Remove the auto-completion list from the screen.
959 void AutoCompCancel();
960
961 // Is there an auto-completion list visible?
962 bool AutoCompActive();
963
964 // Retrieve the position of the caret when the auto-completion list was
965 // displayed.
966 int AutoCompPosStart();
967
968 // User has selected an item so remove the list and insert the selection.
969 void AutoCompComplete();
970
971 // Define a set of character that when typed cancel the auto-completion list.
972 void AutoCompStops(const wxString& characterSet);
973
974 // Change the separator character in the string setting up an auto-completion
975 // list. Default is space but can be changed if items contain space.
976 void AutoCompSetSeparator(int separatorCharacter);
977
978 // Retrieve the auto-completion list separator character.
979 int AutoCompGetSeparator();
980
981 // Select the item in the auto-completion list that starts with a string.
982 void AutoCompSelect(const wxString& text);
983
984 // Should the auto-completion list be cancelled if the user backspaces to a
985 // position before where the box was created.
986 void AutoCompSetCancelAtStart(bool cancel);
987
988 // Retrieve whether auto-completion cancelled by backspacing before start.
989 bool AutoCompGetCancelAtStart();
990
991 // Define a set of character that when typed fills up the selected word.
992 void AutoCompSetFillUps(const wxString& characterSet);
993
994 // Should a single item auto-completion list automatically choose the item.
995 void AutoCompSetChooseSingle(bool chooseSingle);
996
997 // Retrieve whether a single item auto-completion list automatically choose the item.
998 bool AutoCompGetChooseSingle();
999
1000 // Set whether case is significant when performing auto-completion searches.
1001 void AutoCompSetIgnoreCase(bool ignoreCase);
1002
1003 // Retrieve state of ignore case flag.
1004 bool AutoCompGetIgnoreCase();
1005
65ec6247
RD
1006 // Display a list of strings and send notification when user chooses one.
1007 void UserListShow(int listType, const wxString& itemList);
1008
1009 // Set whether or not autocompletion is hidden automatically when nothing matches
1010 void AutoCompSetAutoHide(bool autoHide);
1011
1012 // Retrieve whether or not autocompletion is hidden automatically when nothing matches
1013 bool AutoCompGetAutoHide();
1014
4370573a
RD
1015 // Set the number of spaces used for one level of indentation.
1016 void SetIndent(int indentSize);
1017
1018 // Retrieve indentation size.
1019 int GetIndent();
1020
1021 // Indentation will only use space characters if useTabs is false, otherwise
1022 // it will use a combination of tabs and spaces.
1023 void SetUseTabs(bool useTabs);
1024
1025 // Retrieve whether tabs will be used in indentation.
1026 bool GetUseTabs();
1027
1028 // Change the indentation of a line to a number of columns.
1029 void SetLineIndentation(int line, int indentSize);
9ce192d4 1030
4370573a
RD
1031 // Retrieve the number of columns that a line is indented.
1032 int GetLineIndentation(int line);
1033
1034 // Retrieve the position before the first non indentation character on a line.
1035 int GetLineIndentPosition(int line);
1036
1037 // Retrieve the column number of a position, taking tab width into account.
1038 int GetColumn(int pos);
1039
1040 // Show or hide the horizontal scroll bar.
1041 void SetUseHorizontalScrollBar(bool show);
1042
1043 // Is the horizontal scroll bar visible?
1044 bool GetUseHorizontalScrollBar();
1045
1046 // Show or hide indentation guides.
1047 void SetIndentationGuides(bool show);
1048
1049 // Are the indentation guides visible?
1050 bool GetIndentationGuides();
1051
1052 // Set the highlighted indentation guide column.
1053 // 0 = no highlighted guide.
1054 void SetHighlightGuide(int column);
1055
1056 // Get the highlighted indentation guide column.
1057 int GetHighlightGuide();
1058
1059 // Get the position after the last visible characters on a line.
1060 int GetLineEndPosition(int line);
1061
1062 // Get the code page used to interpret the bytes of the document as characters.
1063 int GetCodePage();
1064
1065 // Get the foreground colour of the caret.
1066 wxColour GetCaretForeground();
1067
1068 // In read-only mode?
1069 bool GetReadOnly();
1070
1071 // Sets the position of the caret.
1072 void SetCurrentPos(int pos);
1073
1074 // Sets the position that starts the selection - this becomes the anchor.
1075 void SetSelectionStart(int pos);
1076
1077 // Returns the position at the start of the selection.
1078 int GetSelectionStart();
1079
1080 // Sets the position that ends the selection - this becomes the currentPosition.
1081 void SetSelectionEnd(int pos);
1082
1083 // Returns the position at the end of the selection.
1084 int GetSelectionEnd();
1085
1086 // Sets the print magnification added to the point size of each style for printing.
1087 void SetPrintMagnification(int magnification);
1088
1089 // Returns the print magnification.
1090 int GetPrintMagnification();
1091
1092 // Modify colours when printing for clearer printed text.
1093 void SetPrintColourMode(int mode);
1094
1095 // Returns the print colour mode.
1096 int GetPrintColourMode();
1097
1098 // Find some text in the document.
1099 int FindText(int minPos, int maxPos,
1100 const wxString& text,
1101 bool caseSensitive, bool wholeWord);
1102
1103 // On Windows will draw the document into a display context such as a printer.
1104 int FormatRange(bool doDraw,
1105 int startPos,
1106 int endPos,
1107 wxDC* draw,
1108 wxDC* target, // Why does it use two? Can they be the same?
1109 wxRect renderRect,
1110 wxRect pageRect);
1111
1112 // Retrieve the line at the top of the display.
1113 int GetFirstVisibleLine();
1114
1115 // Retrieve the contents of a line.
1116 wxString GetLine(int line);
1117
1118 // Returns the number of lines in the document. There is always at least one.
1119 int GetLineCount();
1120
1121 // Sets the size in pixels of the left margin.
65ec6247 1122 void SetMarginLeft(int pixelWidth);
4370573a
RD
1123
1124 // Returns the size in pixels of the left margin.
1125 int GetMarginLeft();
1126
1127 // Sets the size in pixels of the right margin.
65ec6247 1128 void SetMarginRight(int pixelWidth);
4370573a
RD
1129
1130 // Returns the size in pixels of the right margin.
1131 int GetMarginRight();
1132
1133 // Is the document different from when it was last saved?
1134 bool GetModify();
1135
1136 // Select a range of text.
1137 void SetSelection(int start, int end);
1138
1139 // Retrieve the selected text.
1140 wxString GetSelectedText();
1141
1142 // Retrieve a range of text.
1143 wxString GetTextRange(int startPos, int endPos);
1144
1145 // Draw the selection in normal style or with selection highlighted.
1146 void HideSelection(bool normal);
1147
1148 // Retrieve the line containing a position.
1149 int LineFromPosition(int pos);
1150
1151 // Retrieve the position at the start of a line.
1152 int PositionFromLine(int line);
1153
1154 // Scroll horizontally and vertically.
1155 void LineScroll(int columns, int lines);
1156
1157 // Ensure the caret is visible.
1158 void EnsureCaretVisible();
1159
1160 // Replace the selected text with the argument text.
1161 void ReplaceSelection(const wxString& text);
1162
1163 // Set to read only or read write.
1164 void SetReadOnly(bool readOnly);
1165
1166 // Will a paste succeed?
1167 bool CanPaste();
1168
1169 // Are there any undoable actions in the undo history.
1170 bool CanUndo();
1171
1172 // Delete the undo history.
1173 void EmptyUndoBuffer();
1174
1175 // Undo one action in the undo history.
1176 void Undo();
1177
1178 // Cut the selection to the clipboard.
1179 void Cut();
1180
1181 // Copy the selection to the clipboard.
1182 void Copy();
1183
1184 // Paste the contents of the clipboard into the document replacing the selection.
1185 void Paste();
1186
1187 // Clear the selection.
1188 void Clear();
1189
1190 // Replace the contents of the document with the argument text.
1191 void SetText(const wxString& text);
1192
1193 // Retrieve all the text in the document.
1194 wxString GetText();
1195
1196 // Retrieve the number of characters in the document.
1197 int GetTextLength();
1198
1199 // Set to overtype (true) or insert mode
1200 void SetOvertype(bool overtype);
1201
1202 // Returns true if overtype mode is active otherwise false is returned.
1203 bool GetOvertype();
1204
65ec6247
RD
1205 // Set the width of the insert mode caret
1206 void SetCaretWidth(int pixelWidth);
1207
1208 // Returns the width of the insert mode caret
1209 int GetCaretWidth();
1210
1211 // Sets the position that starts the target which is used for updating the
1212 // document without affecting the scroll position.
1213 void SetTargetStart(int pos);
1214
1215 // Get the position that starts the target.
1216 int GetTargetStart();
1217
1218 // Sets the position that ends the target which is used for updating the
1219 // document without affecting the scroll position.
1220 void SetTargetEnd(int pos);
1221
1222 // Get the position that ends the target.
1223 int GetTargetEnd();
1224
1225 // Replace the target text with the argument text.
1226 // Returns the length of the replacement text.
1227 int ReplaceTarget(const wxString& text);
1228
1229 // Replace the target text with the argument text after \d processing.
1230 // Looks for \d where d is between 1 and 9 and replaces these with the strings
1231 // matched in the last search operation which were surrounded by \( and \).
1232 // Returns the length of the replacement text including any change
1233 // caused by processing the \d patterns.
1234 int ReplaceTargetRE(const wxString& text);
1235
1236 // Search for a counted string in the target and set the target to the found
1237 // range.
1238 // Returns length of range or -1 for failure in which case target is not moved.
1239 int SearchInTarget(const wxString& text);
1240
1241 // Set the search flags used by SearchInTarget
1242 void SetSearchFlags(int flags);
1243
1244 // Get the search flags used by SearchInTarget
1245 int GetSearchFlags();
1246
4370573a
RD
1247 // Show a call tip containing a definition near position pos.
1248 void CallTipShow(int pos, const wxString& definition);
1249
1250 // Remove the call tip from the screen.
1251 void CallTipCancel();
1252
1253 // Is there an active call tip?
1254 bool CallTipActive();
1255
1256 // Retrieve the position where the caret was before displaying the call tip.
1257 int CallTipPosAtStart();
1258
1259 // Highlight a segment of the definition.
1260 void CallTipSetHighlight(int start, int end);
1261
1262 // Set the background colour for the call tip.
1263 void CallTipSetBackground(const wxColour& back);
1264
1265 // Find the display line of a document line taking hidden lines into account.
1266 int VisibleFromDocLine(int line);
1267
1268 // Find the document line of a display line taking hidden lines into account.
1269 int DocLineFromVisible(int lineDisplay);
1270
1271 // Set the fold level of a line.
1272 // This encodes an integer level along with flags indicating whether the
1273 // line is a header and whether it is effectively white space.
1274 void SetFoldLevel(int line, int level);
1275
1276 // Retrieve the fold level of a line.
1277 int GetFoldLevel(int line);
1278
1279 // Find the last child line of a header line.
1280 int GetLastChild(int line, int level);
1281
1282 // Find the parent line of a child line.
1283 int GetFoldParent(int line);
1284
1285 // Make a range of lines visible.
1286 void ShowLines(int lineStart, int lineEnd);
1287
1288 // Make a range of lines invisible.
1289 void HideLines(int lineStart, int lineEnd);
1290
1291 // Is a line visible?
1292 bool GetLineVisible(int line);
1293
1294 // Show the children of a header line.
1295 void SetFoldExpanded(int line, bool expanded);
1296
1297 // Is a header line expanded?
1298 bool GetFoldExpanded(int line);
1299
1300 // Switch a header line between expanded and contracted.
1301 void ToggleFold(int line);
1302
1303 // Ensure a particular line is visible by expanding any header line hiding it.
1304 void EnsureVisible(int line);
1305
1306 // Set some debugging options for folding
1307 void SetFoldFlags(int flags);
1308
65ec6247
RD
1309 // Ensure a particular line is visible by expanding any header line hiding it.
1310 // Use the currently set visibility policy to determine which range to display.
1311 void EnsureVisibleEnforcePolicy(int line);
1312
1313 // Sets whether a tab pressed when caret is within indentation indents
1314 void SetTabIndents(bool tabIndents);
1315
1316 // Does a tab pressed when caret is within indentation indent?
1317 bool GetTabIndents();
1318
1319 // Sets whether a backspace pressed when caret is within indentation unindents
1320 void SetBackSpaceUnIndents(bool bsUnIndents);
1321
1322 // Does a backspace pressed when caret is within indentation unindent?
1323 bool GetBackSpaceUnIndents();
1324
1325 // Sets the time the mouse must sit still to generate a mouse dwell event
1326 void SetMouseDwellTime(int periodMilliseconds);
1327
1328 // Retrieve the time the mouse must sit still to generate a mouse dwell event
1329 int GetMouseDwellTime();
1330
1331 // Move the caret inside current view if it's not there already
1332 void MoveCaretInsideView();
1333
4370573a
RD
1334 // How many characters are on a line, not including end of line characters.
1335 int LineLength(int line);
1336
1337 // Highlight the characters at two positions.
1338 void BraceHighlight(int pos1, int pos2);
1339
1340 // Highlight the character at a position indicating there is no matching brace.
1341 void BraceBadLight(int pos);
1342
1343 // Find the position of a matching brace or INVALID_POSITION if no match.
1344 int BraceMatch(int pos);
1345
1346 // Are the end of line characters visible.
1347 bool GetViewEOL();
1348
1349 // Make the end of line characters visible or invisible
1350 void SetViewEOL(bool visible);
1351
1352 // Retrieve a pointer to the document object.
1353 void* GetDocPointer();
1354
1355 // Change the document object used.
1356 void SetDocPointer(void* docPointer);
1357
1358 // Set which document modification events are sent to the container.
1359 void SetModEventMask(int mask);
1360
1361 // Retrieve the column number which text should be kept within.
1362 int GetEdgeColumn();
1363
1364 // Set the column number of the edge.
1365 // If text goes past the edge then it is highlighted.
1366 void SetEdgeColumn(int column);
1367
1368 // Retrieve the edge highlight mode.
1369 int GetEdgeMode();
1370
1371 // The edge may be displayed by a line (EDGE_LINE) or by highlighting text that
1372 // goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).
1373 void SetEdgeMode(int mode);
1374
1375 // Retrieve the colour used in edge indication.
9ce192d4 1376 wxColour GetEdgeColour();
9ce192d4 1377
4370573a
RD
1378 // Change the colour used in edge indication.
1379 void SetEdgeColour(const wxColour& edgeColour);
1380
1381 // Sets the current caret position to be the search anchor.
1382 void SearchAnchor();
1383
1384 // Find some text starting at the search anchor.
65ec6247 1385 // Does not ensure the selection is visible.
4370573a
RD
1386 int SearchNext(int flags, const wxString& text);
1387
1388 // Find some text starting at the search anchor and moving backwards.
65ec6247 1389 // Does not ensure the selection is visible.
4370573a
RD
1390 int SearchPrev(int flags, const wxString& text);
1391
1392 // Set the way the line the caret is on is kept visible.
1393 void SetCaretPolicy(int caretPolicy, int caretSlop);
1394
1395 // Retrieves the number of lines completely visible.
1396 int LinesOnScreen();
1397
1398 // Set whether a pop up menu is displayed automatically when the user presses
1399 // the wrong mouse button.
1400 void UsePopUp(bool allowPopUp);
1401
1402 // Is the selection a rectangular. The alternative is the more common stream selection.
1403 bool SelectionIsRectangle();
1404
1405 // Set the zoom level. This number of points is added to the size of all fonts.
1406 // It may be positive to magnify or negative to reduce.
1407 void SetZoom(int zoom);
1408
1409 // Retrieve the zoom level.
1410 int GetZoom();
1411
1412 // Create a new document object.
1413 // Starts with reference count of 1 and not selected into editor.
1414 void* CreateDocument();
9ce192d4 1415
4370573a
RD
1416 // Extend life of document.
1417 void AddRefDocument(void* docPointer);
9ce192d4 1418
4370573a
RD
1419 // Release a reference to the document, deleting document if it fades to black.
1420 void ReleaseDocument(void* docPointer);
1421
1422 // Get which document modification events are sent to the container.
1423 int GetModEventMask();
1424
65ec6247 1425 // Change internal focus flag
8de28db9 1426 void SetSTCFocus(bool focus);
65ec6247
RD
1427
1428 // Get internal focus flag
8de28db9 1429 bool GetSTCFocus();
65ec6247
RD
1430
1431 // Change error status - 0 = OK
1432 void SetStatus(int statusCode);
1433
1434 // Get error status
1435 int GetStatus();
1436
1437 // Set whether the mouse is captured when its button is pressed
1438 void SetMouseDownCaptures(bool captures);
1439
1440 // Get whether mouse gets captured
1441 bool GetMouseDownCaptures();
1442
1443 // Sets the cursor to one of the SC_CURSOR* values
1444 void SetCursor(int cursorType);
1445
1446 // Get cursor type
1447 int GetCursor();
1448
1449 // Move to the previous change in capitalistion
1450 void WordPartLeft();
1451
1452 // Move to the previous change in capitalistion extending selection to new caret position.
1453 void WordPartLeftExtend();
1454
1455 // Move to the change next in capitalistion
1456 void WordPartRight();
1457
1458 // Move to the next change in capitalistion extending selection to new caret position.
1459 void WordPartRightExtend();
1460
1461 // Set the way the display area is determined when a particular line is to be moved to.
1462 void SetVisiblePolicy(int visiblePolicy, int visibleSlop);
1463
1464 // Delete back from the current position to the start of the line
1465 void DelLineLeft();
1466
1467 // Delete forwards from the current position to the end of the line
1468 void DelLineRight();
1469
4370573a
RD
1470 // Start notifying the container of all key presses and commands.
1471 void StartRecord();
1472
1473 // Stop notifying the container of all key presses and commands.
1474 void StopRecord();
1475
1476 // Set the lexing language of the document.
1477 void SetLexer(int lexer);
1478
1479 // Retrieve the lexing language of the document.
1480 int GetLexer();
1481
1482 // Colourise a segment of the document using the current lexing language.
1483 void Colourise(int start, int end);
1484
1485 // Set up a value that may be used by a lexer for some optional feature.
1486 void SetProperty(const wxString& key, const wxString& value);
1487
1488 // Set up the key words used by the lexer.
1489 void SetKeyWords(int keywordSet, const wxString& keyWords);
1490
65ec6247
RD
1491 // Set the lexing language of the document based on string name.
1492 void SetLexerLanguage(const wxString& language);
1493
4370573a
RD
1494// END of generated section
1495//----------------------------------------------------------------------
1496// Others...
1497
1498
1499 // Returns the line number of the line with the caret.
1500 int GetCurrentLine();
1501
1502 // Extract style settings from a spec-string which is composed of one or
1503 // more of the following comma separated elements:
1504 //
1505 // bold turns on bold
1506 // italic turns on italics
1507 // fore:#RRGGBB sets the foreground colour
1508 // back:#RRGGBB sets the background colour
1509 // face:[facename] sets the font face name to use
1510 // size:[num] sets the font size in points
1511 // eol turns on eol filling
1512 // underline turns on underlining
1513 //
1514 void StyleSetSpec(int styleNum, const wxString& spec);
1515
1516
1517
1518 // Set style size, face, bold, italic, and underline attributes from
1519 // a wxFont's attributes.
1520 void StyleSetFont(int styleNum, wxFont& font);
1521
1522
1523
1524 // Set all font style attributes at once.
1525 void StyleSetFontAttr(int styleNum, int size,
1526 const wxString& faceName,
1527 bool bold, bool italic,
1528 bool underline);
1529
1530
1531
1532 // Perform one of the operations defined by the wxSTC_CMD_* constants.
1533 void CmdKeyExecute(int cmd);
1534
1535
1536
1537 // Set the left and right margin in the edit area, measured in pixels.
1538 void SetMargins(int left, int right);
1539
1540
1541 // Retrieve the start and end positions of the current selection.
1542#ifdef SWIG
1543 void GetSelection(int* OUTPUT, int* OUTPUT);
1544#else
1545 void GetSelection(int* startPos, int* endPos);
1546#endif
1547
1548 // Retrieve the point in the window where a position is displayed.
1549 wxPoint PointFromPosition(int pos);
1550
f97d84a6
RD
1551
1552 // Scroll enough to make the given line visible
1553 void ScrollToLine(int line);
1554
1555
1556 // Scroll enough to make the given column visible
1557 void ScrollToColumn(int column);
1558
65ec6247
RD
1559
1560 // Send a message to Scintilla
1561 long SendMsg(int msg, long wp=0, long lp=0);
1562
4370573a 1563//----------------------------------------------------------------------
9ce192d4
RD
1564
1565
f6bcfd97 1566#ifndef SWIG
9ce192d4
RD
1567private:
1568 // Event handlers
1569 void OnPaint(wxPaintEvent& evt);
1570 void OnScrollWin(wxScrollWinEvent& evt);
1571 void OnSize(wxSizeEvent& evt);
1572 void OnMouseLeftDown(wxMouseEvent& evt);
1573 void OnMouseMove(wxMouseEvent& evt);
1574 void OnMouseLeftUp(wxMouseEvent& evt);
65ec6247 1575 void OnContextMenu(wxContextMenuEvent& evt);
37d62433 1576 void OnMouseWheel(wxMouseEvent& evt);
9ce192d4 1577 void OnChar(wxKeyEvent& evt);
f6bcfd97 1578 void OnKeyDown(wxKeyEvent& evt);
9ce192d4
RD
1579 void OnLoseFocus(wxFocusEvent& evt);
1580 void OnGainFocus(wxFocusEvent& evt);
1581 void OnSysColourChanged(wxSysColourChangedEvent& evt);
1582 void OnEraseBackground(wxEraseEvent& evt);
1583 void OnMenu(wxCommandEvent& evt);
f6bcfd97 1584 void OnListBox(wxCommandEvent& evt);
9ce192d4
RD
1585
1586
1587 // Turn notifications from Scintilla into events
1588 void NotifyChange();
1589 void NotifyParent(SCNotification* scn);
1590
9ce192d4
RD
1591private:
1592 DECLARE_EVENT_TABLE()
f6bcfd97 1593 DECLARE_CLASS(wxStyledTextCtrl)
9ce192d4
RD
1594
1595 ScintillaWX* m_swx;
1596 wxStopWatch m_stopWatch;
9ce192d4 1597
d6582821 1598 bool m_lastKeyDownConsumed;
9ce192d4
RD
1599
1600 friend class ScintillaWX;
1601 friend class Platform;
f6bcfd97 1602#endif
9ce192d4
RD
1603};
1604
1605//----------------------------------------------------------------------
1606
1607class wxStyledTextEvent : public wxCommandEvent {
1608public:
f6bcfd97 1609 wxStyledTextEvent(wxEventType commandType=0, int id=0);
9ce192d4
RD
1610 ~wxStyledTextEvent() {}
1611
1612 void SetPosition(int pos) { m_position = pos; }
1613 void SetKey(int k) { m_key = k; }
1614 void SetModifiers(int m) { m_modifiers = m; }
1615 void SetModificationType(int t) { m_modificationType = t; }
1616 void SetText(const char* t) { m_text = t; }
1617 void SetLength(int len) { m_length = len; }
1618 void SetLinesAdded(int num) { m_linesAdded = num; }
1619 void SetLine(int val) { m_line = val; }
1620 void SetFoldLevelNow(int val) { m_foldLevelNow = val; }
1621 void SetFoldLevelPrev(int val) { m_foldLevelPrev = val; }
1622 void SetMargin(int val) { m_margin = val; }
1623 void SetMessage(int val) { m_message = val; }
1624 void SetWParam(int val) { m_wParam = val; }
1625 void SetLParam(int val) { m_lParam = val; }
65ec6247
RD
1626 void SetListType(int val) { m_listType = val; }
1627 void SetX(int val) { m_x = val; }
1628 void SetY(int val) { m_y = val; }
9ce192d4
RD
1629
1630 int GetPosition() const { return m_position; }
1631 int GetKey() const { return m_key; }
1632 int GetModifiers() const { return m_modifiers; }
1633 int GetModificationType() const { return m_modificationType; }
1634 wxString GetText() const { return m_text; }
1635 int GetLength() const { return m_length; }
1636 int GetLinesAdded() const { return m_linesAdded; }
1637 int GetLine() const { return m_line; }
1638 int GetFoldLevelNow() const { return m_foldLevelNow; }
1639 int GetFoldLevelPrev() const { return m_foldLevelPrev; }
1640 int GetMargin() const { return m_margin; }
1641 int GetMessage() const { return m_message; }
1642 int GetWParam() const { return m_wParam; }
1643 int GetLParam() const { return m_lParam; }
65ec6247
RD
1644 int GetListType() const { return m_listType; }
1645 int GetX() const { return m_x; }
1646 int GetY() const { return m_y; }
9ce192d4
RD
1647
1648 bool GetShift() const;
1649 bool GetControl() const;
1650 bool GetAlt() const;
1651
1652 void CopyObject(wxObject& obj) const;
1653
f6bcfd97 1654#ifndef SWIG
9ce192d4 1655private:
f6bcfd97
BP
1656 DECLARE_DYNAMIC_CLASS(wxStyledTextEvent)
1657
9ce192d4
RD
1658 int m_position;
1659 int m_key;
1660 int m_modifiers;
1661
1662 int m_modificationType; // wxEVT_STC_MODIFIED
1663 wxString m_text;
1664 int m_length;
1665 int m_linesAdded;
1666 int m_line;
1667 int m_foldLevelNow;
1668 int m_foldLevelPrev;
1669
1670 int m_margin; // wxEVT_STC_MARGINCLICK
1671
1672 int m_message; // wxEVT_STC_MACRORECORD
1673 int m_wParam;
1674 int m_lParam;
65ec6247
RD
1675
1676 int m_listType;
1677 int m_x;
1678 int m_y;
f6bcfd97 1679#endif
9ce192d4
RD
1680};
1681
d25f5fbb
RD
1682#ifndef SWIG
1683BEGIN_DECLARE_EVENT_TYPES()
65ec6247
RD
1684 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_CHANGE, 1650)
1685 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_STYLENEEDED, 1651)
1686 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_CHARADDED, 1652)
1687 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_SAVEPOINTREACHED, 1653)
1688 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_SAVEPOINTLEFT, 1654)
1689 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_ROMODIFYATTEMPT, 1655)
1690 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_KEY, 1656)
1691 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DOUBLECLICK, 1657)
1692 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_UPDATEUI, 1658)
1693 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_MODIFIED, 1659)
1694 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_MACRORECORD, 1660)
1695 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_MARGINCLICK, 1661)
1696 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_NEEDSHOWN, 1662)
1697 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_POSCHANGED, 1663)
1698 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_PAINTED, 1664)
1699 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_USERLISTSELECTION, 1665)
1700 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_URIDROPPED, 1666)
1701 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DWELLSTART, 1667)
1702 DECLARE_LOCAL_EVENT_TYPE(wxEVT_STC_DWELLEND, 1668)
d25f5fbb
RD
1703END_DECLARE_EVENT_TYPES()
1704#else
1705 enum {
1706 wxEVT_STC_CHANGE,
1707 wxEVT_STC_STYLENEEDED,
1708 wxEVT_STC_CHARADDED,
d25f5fbb
RD
1709 wxEVT_STC_SAVEPOINTREACHED,
1710 wxEVT_STC_SAVEPOINTLEFT,
1711 wxEVT_STC_ROMODIFYATTEMPT,
65ec6247 1712 wxEVT_STC_KEY,
d25f5fbb 1713 wxEVT_STC_DOUBLECLICK,
65ec6247 1714 wxEVT_STC_UPDATEUI,
d25f5fbb 1715 wxEVT_STC_MODIFIED,
d25f5fbb
RD
1716 wxEVT_STC_MACRORECORD,
1717 wxEVT_STC_MARGINCLICK,
1718 wxEVT_STC_NEEDSHOWN,
65ec6247
RD
1719 wxEVT_STC_POSCHANGED,
1720 wxEVT_STC_PAINTED,
1721 wxEVT_STC_USERLISTSELECTION,
1722 wxEVT_STC_URIDROPPED,
1723 wxEVT_STC_DWELLSTART,
1724 wxEVT_STC_DWELLEND,
d25f5fbb
RD
1725 };
1726#endif
9ce192d4 1727
9ce192d4 1728
f6bcfd97
BP
1729
1730#ifndef SWIG
9ce192d4
RD
1731typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&);
1732
65ec6247
RD
1733#define EVT_STC_CHANGE(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHANGE, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1734#define EVT_STC_STYLENEEDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_STYLENEEDED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1735#define EVT_STC_CHARADDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHARADDED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1736#define EVT_STC_SAVEPOINTREACHED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTREACHED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1737#define EVT_STC_SAVEPOINTLEFT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTLEFT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1738#define EVT_STC_ROMODIFYATTEMPT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ROMODIFYATTEMPT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1739#define EVT_STC_KEY(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_KEY, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1740#define EVT_STC_DOUBLECLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DOUBLECLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1741#define EVT_STC_UPDATEUI(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_UPDATEUI, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1742#define EVT_STC_MODIFIED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MODIFIED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1743#define EVT_STC_MACRORECORD(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MACRORECORD, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1744#define EVT_STC_MARGINCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MARGINCLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1745#define EVT_STC_NEEDSHOWN(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_NEEDSHOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1746#define EVT_STC_POSCHANGED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_POSCHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1747#define EVT_STC_PAINTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_PAINTED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1748#define EVT_STC_USERLISTSELECTION(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_USERLISTSELECTION, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1749#define EVT_STC_URIDROPPED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_URIDROPPED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1750#define EVT_STC_DWELLSTART(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLSTART, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1751#define EVT_STC_DWELLEND(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLEND, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL ),
1752
9ce192d4 1753
f6bcfd97 1754#endif
9ce192d4
RD
1755
1756//----------------------------------------------------------------------
1757//----------------------------------------------------------------------
1758#endif
1759
1760