state clearly that the entire contents of generated files is generated; put special...
[wxWidgets.git] / src / stc / stc.h.in
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 // RCS-ID: $Id$
16 // Copyright: (c) 2000 by Total Control Software
17 // Licence: wxWindows license
18 /////////////////////////////////////////////////////////////////////////////
19
20 /*
21 IMPORTANT: include/wx/stc/stc.h is generated by src/stc/gen_iface.py from
22 src/stc/stc.h.in, don't edit stc.h file as your changes will be
23 lost after the next regeneration, edit stc.h.in and rerun the
24 gen_iface.py script instead!
25
26 Parts of this file generated by the script are found in between
27 the special "{{{" and "}}}" markers, the rest of it is copied
28 verbatim from src.h.in.
29 */
30
31 #ifndef _WX_STC_STC_H_
32 #define _WX_STC_STC_H_
33
34 #include "wx/defs.h"
35
36 #if wxUSE_STC
37
38 #include "wx/control.h"
39 #include "wx/dnd.h"
40 #include "wx/stopwatch.h"
41
42 class WXDLLIMPEXP_FWD_CORE wxScrollBar;
43
44 // SWIG can't handle "#if" type of conditionals, only "#ifdef"
45 #ifdef SWIG
46 #define STC_USE_DND 1
47 #else
48 #if wxUSE_DRAG_AND_DROP
49 #define STC_USE_DND 1
50 #endif
51 #endif
52
53
54 //----------------------------------------------------------------------
55 // STC constants generated section {{{
56
57 %(VALUES)s
58
59 //}}}
60 //----------------------------------------------------------------------
61
62 //----------------------------------------------------------------------
63 // Commands that can be bound to keystrokes section {{{
64
65 %(CMDS)s
66
67 //}}}
68 //----------------------------------------------------------------------
69
70 class ScintillaWX; // forward declare
71 class WordList;
72 struct SCNotification;
73
74 #ifndef SWIG
75 extern WXDLLIMPEXP_STC const wxChar* wxSTCNameStr;
76 class WXDLLIMPEXP_FWD_STC wxStyledTextCtrl;
77 class WXDLLIMPEXP_FWD_STC wxStyledTextEvent;
78 #endif
79
80 //----------------------------------------------------------------------
81
82 class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl
83 {
84 public:
85
86 #ifdef SWIG
87 %%pythonAppend wxStyledTextCtrl "self._setOORInfo(self)"
88 %%pythonAppend wxStyledTextCtrl() ""
89
90 wxStyledTextCtrl(wxWindow *parent, wxWindowID id=wxID_ANY,
91 const wxPoint& pos = wxDefaultPosition,
92 const wxSize& size = wxDefaultSize, long style = 0,
93 const wxString& name = wxPySTCNameStr);
94 %%RenameCtor(PreStyledTextCtrl, wxStyledTextCtrl());
95
96 #else
97 wxStyledTextCtrl(wxWindow *parent, wxWindowID id=wxID_ANY,
98 const wxPoint& pos = wxDefaultPosition,
99 const wxSize& size = wxDefaultSize, long style = 0,
100 const wxString& name = wxSTCNameStr);
101 wxStyledTextCtrl() { m_swx = NULL; }
102 ~wxStyledTextCtrl();
103
104 #endif
105
106 bool Create(wxWindow *parent, wxWindowID id=wxID_ANY,
107 const wxPoint& pos = wxDefaultPosition,
108 const wxSize& size = wxDefaultSize, long style = 0,
109 const wxString& name = wxSTCNameStr);
110
111
112 //----------------------------------------------------------------------
113 // Generated method declaration section {{{
114
115 %(METHOD_DEFS)s
116
117 //}}}
118 //----------------------------------------------------------------------
119
120 // Manually declared methods
121
122 // Returns the line number of the line with the caret.
123 int GetCurrentLine();
124
125 // Extract style settings from a spec-string which is composed of one or
126 // more of the following comma separated elements:
127 //
128 // bold turns on bold
129 // italic turns on italics
130 // fore:[name or #RRGGBB] sets the foreground colour
131 // back:[name or #RRGGBB] sets the background colour
132 // face:[facename] sets the font face name to use
133 // size:[num] sets the font size in points
134 // eol turns on eol filling
135 // underline turns on underlining
136 //
137 void StyleSetSpec(int styleNum, const wxString& spec);
138
139
140 // Get the font of a style.
141 wxFont StyleGetFont(int style);
142
143
144 // Set style size, face, bold, italic, and underline attributes from
145 // a wxFont's attributes.
146 void StyleSetFont(int styleNum, wxFont& font);
147
148
149
150 // Set all font style attributes at once.
151 void StyleSetFontAttr(int styleNum, int size,
152 const wxString& faceName,
153 bool bold, bool italic,
154 bool underline,
155 wxFontEncoding encoding=wxFONTENCODING_DEFAULT);
156
157
158 // Set the character set of the font in a style. Converts the Scintilla
159 // character set values to a wxFontEncoding.
160 void StyleSetCharacterSet(int style, int characterSet);
161
162 // Set the font encoding to be used by a style.
163 void StyleSetFontEncoding(int style, wxFontEncoding encoding);
164
165
166 // Perform one of the operations defined by the wxSTC_CMD_* constants.
167 void CmdKeyExecute(int cmd);
168
169
170 // Set the left and right margin in the edit area, measured in pixels.
171 void SetMargins(int left, int right);
172
173
174 // Retrieve the start and end positions of the current selection.
175 #ifdef SWIG
176 void GetSelection(int* OUTPUT, int* OUTPUT);
177 #else
178 void GetSelection(int* startPos, int* endPos);
179 #endif
180
181 // Retrieve the point in the window where a position is displayed.
182 wxPoint PointFromPosition(int pos);
183
184
185 // Scroll enough to make the given line visible
186 void ScrollToLine(int line);
187
188
189 // Scroll enough to make the given column visible
190 void ScrollToColumn(int column);
191
192
193 // Send a message to Scintilla
194 //
195 // NB: this method is not really const as it can modify the control but it
196 // has to be declared as such as it's called from both const and
197 // non-const methods and we can't distinguish between the two
198 long SendMsg(int msg, long wp=0, long lp=0) const;
199
200
201 // Set the vertical scrollbar to use instead of the ont that's built-in.
202 void SetVScrollBar(wxScrollBar* bar);
203
204
205 // Set the horizontal scrollbar to use instead of the ont that's built-in.
206 void SetHScrollBar(wxScrollBar* bar);
207
208 // Can be used to prevent the EVT_CHAR handler from adding the char
209 bool GetLastKeydownProcessed() { return m_lastKeyDownConsumed; }
210 void SetLastKeydownProcessed(bool val) { m_lastKeyDownConsumed = val; }
211
212 // Write the contents of the editor to filename
213 bool SaveFile(const wxString& filename);
214
215 // Load the contents of filename into the editor
216 bool LoadFile(const wxString& filename);
217
218 #ifdef STC_USE_DND
219 // Allow for simulating a DnD DragOver
220 wxDragResult DoDragOver(wxCoord x, wxCoord y, wxDragResult def);
221
222 // Allow for simulating a DnD DropText
223 bool DoDropText(long x, long y, const wxString& data);
224 #endif
225
226 // Specify whether anti-aliased fonts should be used. Will have no effect
227 // on some platforms, but on some (wxMac for example) can greatly improve
228 // performance.
229 void SetUseAntiAliasing(bool useAA);
230
231 // Returns the current UseAntiAliasing setting.
232 bool GetUseAntiAliasing();
233
234
235
236 // The following methods are nearly equivallent to their similarly named
237 // cousins above. The difference is that these methods bypass wxString
238 // and always use a char* even if used in a unicode build of wxWidgets.
239 // In that case the character data will be utf-8 encoded since that is
240 // what is used internally by Scintilla in unicode builds.
241
242 // Add text to the document at current position.
243 void AddTextRaw(const char* text);
244
245 // Insert string at a position.
246 void InsertTextRaw(int pos, const char* text);
247
248 // Retrieve the text of the line containing the caret.
249 // Returns the index of the caret on the line.
250 #ifdef SWIG
251 wxCharBuffer GetCurLineRaw(int* OUTPUT);
252 #else
253 wxCharBuffer GetCurLineRaw(int* linePos=NULL);
254 #endif
255
256 // Retrieve the contents of a line.
257 wxCharBuffer GetLineRaw(int line);
258
259 // Retrieve the selected text.
260 wxCharBuffer GetSelectedTextRaw();
261
262 // Retrieve a range of text.
263 wxCharBuffer GetTextRangeRaw(int startPos, int endPos);
264
265 // Replace the contents of the document with the argument text.
266 void SetTextRaw(const char* text);
267
268 // Retrieve all the text in the document.
269 wxCharBuffer GetTextRaw();
270
271 // Append a string to the end of the document without changing the selection.
272 void AppendTextRaw(const char* text);
273
274 #ifdef SWIG
275 %%pythoncode "_stc_utf8_methods.py"
276 #endif
277 //----------------------------------------------------------------------
278
279
280 #ifndef SWIG
281 protected:
282 // Event handlers
283 void OnPaint(wxPaintEvent& evt);
284 void OnScrollWin(wxScrollWinEvent& evt);
285 void OnScroll(wxScrollEvent& evt);
286 void OnSize(wxSizeEvent& evt);
287 void OnMouseLeftDown(wxMouseEvent& evt);
288 void OnMouseMove(wxMouseEvent& evt);
289 void OnMouseLeftUp(wxMouseEvent& evt);
290 void OnMouseRightUp(wxMouseEvent& evt);
291 void OnMouseMiddleUp(wxMouseEvent& evt);
292 void OnContextMenu(wxContextMenuEvent& evt);
293 void OnMouseWheel(wxMouseEvent& evt);
294 void OnChar(wxKeyEvent& evt);
295 void OnKeyDown(wxKeyEvent& evt);
296 void OnLoseFocus(wxFocusEvent& evt);
297 void OnGainFocus(wxFocusEvent& evt);
298 void OnSysColourChanged(wxSysColourChangedEvent& evt);
299 void OnEraseBackground(wxEraseEvent& evt);
300 void OnMenu(wxCommandEvent& evt);
301 void OnListBox(wxCommandEvent& evt);
302 void OnIdle(wxIdleEvent& evt);
303
304 virtual wxSize DoGetBestSize() const;
305
306 // Turn notifications from Scintilla into events
307 void NotifyChange();
308 void NotifyParent(SCNotification* scn);
309
310 private:
311 DECLARE_EVENT_TABLE()
312 DECLARE_DYNAMIC_CLASS(wxStyledTextCtrl)
313
314 protected:
315
316 ScintillaWX* m_swx;
317 wxStopWatch m_stopWatch;
318 wxScrollBar* m_vScrollBar;
319 wxScrollBar* m_hScrollBar;
320
321 bool m_lastKeyDownConsumed;
322
323 friend class ScintillaWX;
324 friend class Platform;
325 #endif
326 };
327
328 //----------------------------------------------------------------------
329
330 class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent {
331 public:
332 wxStyledTextEvent(wxEventType commandType=0, int id=0);
333 #ifndef SWIG
334 wxStyledTextEvent(const wxStyledTextEvent& event);
335 #endif
336 ~wxStyledTextEvent() {}
337
338 void SetPosition(int pos) { m_position = pos; }
339 void SetKey(int k) { m_key = k; }
340 void SetModifiers(int m) { m_modifiers = m; }
341 void SetModificationType(int t) { m_modificationType = t; }
342 void SetText(const wxString& t) { m_text = t; }
343 void SetLength(int len) { m_length = len; }
344 void SetLinesAdded(int num) { m_linesAdded = num; }
345 void SetLine(int val) { m_line = val; }
346 void SetFoldLevelNow(int val) { m_foldLevelNow = val; }
347 void SetFoldLevelPrev(int val) { m_foldLevelPrev = val; }
348 void SetMargin(int val) { m_margin = val; }
349 void SetMessage(int val) { m_message = val; }
350 void SetWParam(int val) { m_wParam = val; }
351 void SetLParam(int val) { m_lParam = val; }
352 void SetListType(int val) { m_listType = val; }
353 void SetX(int val) { m_x = val; }
354 void SetY(int val) { m_y = val; }
355 void SetDragText(const wxString& val) { m_dragText = val; }
356 void SetDragAllowMove(bool val) { m_dragAllowMove = val; }
357 #ifdef STC_USE_DND
358 void SetDragResult(wxDragResult val) { m_dragResult = val; }
359 #endif
360
361 int GetPosition() const { return m_position; }
362 int GetKey() const { return m_key; }
363 int GetModifiers() const { return m_modifiers; }
364 int GetModificationType() const { return m_modificationType; }
365 wxString GetText() const { return m_text; }
366 int GetLength() const { return m_length; }
367 int GetLinesAdded() const { return m_linesAdded; }
368 int GetLine() const { return m_line; }
369 int GetFoldLevelNow() const { return m_foldLevelNow; }
370 int GetFoldLevelPrev() const { return m_foldLevelPrev; }
371 int GetMargin() const { return m_margin; }
372 int GetMessage() const { return m_message; }
373 int GetWParam() const { return m_wParam; }
374 int GetLParam() const { return m_lParam; }
375 int GetListType() const { return m_listType; }
376 int GetX() const { return m_x; }
377 int GetY() const { return m_y; }
378 wxString GetDragText() { return m_dragText; }
379 bool GetDragAllowMove() { return m_dragAllowMove; }
380 #ifdef STC_USE_DND
381 wxDragResult GetDragResult() { return m_dragResult; }
382 #endif
383
384 bool GetShift() const;
385 bool GetControl() const;
386 bool GetAlt() const;
387
388 virtual wxEvent* Clone() const { return new wxStyledTextEvent(*this); }
389
390 #ifndef SWIG
391 private:
392 DECLARE_DYNAMIC_CLASS(wxStyledTextEvent)
393
394 int m_position;
395 int m_key;
396 int m_modifiers;
397
398 int m_modificationType; // wxEVT_STC_MODIFIED
399 wxString m_text;
400 int m_length;
401 int m_linesAdded;
402 int m_line;
403 int m_foldLevelNow;
404 int m_foldLevelPrev;
405
406 int m_margin; // wxEVT_STC_MARGINCLICK
407
408 int m_message; // wxEVT_STC_MACRORECORD
409 int m_wParam;
410 int m_lParam;
411
412 int m_listType;
413 int m_x;
414 int m_y;
415
416 wxString m_dragText; // wxEVT_STC_START_DRAG, wxEVT_STC_DO_DROP
417 bool m_dragAllowMove; // wxEVT_STC_START_DRAG
418
419 #if wxUSE_DRAG_AND_DROP
420 wxDragResult m_dragResult; // wxEVT_STC_DRAG_OVER,wxEVT_STC_DO_DROP
421 #endif
422 #endif
423 };
424
425
426
427 #ifndef SWIG
428 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_CHANGE;
429 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_STYLENEEDED;
430 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_CHARADDED;
431 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_SAVEPOINTREACHED;
432 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_SAVEPOINTLEFT;
433 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_ROMODIFYATTEMPT;
434 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_KEY;
435 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_DOUBLECLICK;
436 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_UPDATEUI;
437 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_MODIFIED;
438 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_MACRORECORD;
439 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_MARGINCLICK;
440 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_NEEDSHOWN;
441 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_PAINTED;
442 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_USERLISTSELECTION;
443 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_URIDROPPED;
444 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_DWELLSTART;
445 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_DWELLEND;
446 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_START_DRAG;
447 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_DRAG_OVER;
448 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_DO_DROP;
449 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_ZOOM;
450 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_HOTSPOT_CLICK;
451 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_HOTSPOT_DCLICK;
452 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_CALLTIP_CLICK;
453 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_AUTOCOMP_SELECTION;
454 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_INDICATOR_CLICK;
455 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_INDICATOR_RELEASE;
456 #else
457 enum {
458 wxEVT_STC_CHANGE,
459 wxEVT_STC_STYLENEEDED,
460 wxEVT_STC_CHARADDED,
461 wxEVT_STC_SAVEPOINTREACHED,
462 wxEVT_STC_SAVEPOINTLEFT,
463 wxEVT_STC_ROMODIFYATTEMPT,
464 wxEVT_STC_KEY,
465 wxEVT_STC_DOUBLECLICK,
466 wxEVT_STC_UPDATEUI,
467 wxEVT_STC_MODIFIED,
468 wxEVT_STC_MACRORECORD,
469 wxEVT_STC_MARGINCLICK,
470 wxEVT_STC_NEEDSHOWN,
471 wxEVT_STC_PAINTED,
472 wxEVT_STC_USERLISTSELECTION,
473 wxEVT_STC_URIDROPPED,
474 wxEVT_STC_DWELLSTART,
475 wxEVT_STC_DWELLEND,
476 wxEVT_STC_START_DRAG,
477 wxEVT_STC_DRAG_OVER,
478 wxEVT_STC_DO_DROP,
479 wxEVT_STC_ZOOM,
480 wxEVT_STC_HOTSPOT_CLICK,
481 wxEVT_STC_HOTSPOT_DCLICK,
482 wxEVT_STC_CALLTIP_CLICK,
483 wxEVT_STC_AUTOCOMP_SELECTION,
484 wxEVT_STC_INDICATOR_CLICK,
485 wxEVT_STC_INDICATOR_RELEASE
486 };
487 #endif
488
489
490
491 #ifndef SWIG
492 typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&);
493
494 #define EVT_STC_CHANGE(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHANGE, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
495 #define EVT_STC_STYLENEEDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_STYLENEEDED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
496 #define EVT_STC_CHARADDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHARADDED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
497 #define EVT_STC_SAVEPOINTREACHED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTREACHED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
498 #define EVT_STC_SAVEPOINTLEFT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTLEFT, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
499 #define EVT_STC_ROMODIFYATTEMPT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ROMODIFYATTEMPT, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
500 #define EVT_STC_KEY(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_KEY, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
501 #define EVT_STC_DOUBLECLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DOUBLECLICK, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
502 #define EVT_STC_UPDATEUI(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_UPDATEUI, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
503 #define EVT_STC_MODIFIED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MODIFIED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
504 #define EVT_STC_MACRORECORD(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MACRORECORD, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
505 #define EVT_STC_MARGINCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MARGINCLICK, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
506 #define EVT_STC_NEEDSHOWN(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_NEEDSHOWN, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
507 #define EVT_STC_PAINTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_PAINTED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
508 #define EVT_STC_USERLISTSELECTION(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_USERLISTSELECTION, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
509 #define EVT_STC_URIDROPPED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_URIDROPPED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
510 #define EVT_STC_DWELLSTART(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLSTART, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
511 #define EVT_STC_DWELLEND(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLEND, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
512 #define EVT_STC_START_DRAG(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_START_DRAG, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
513 #define EVT_STC_DRAG_OVER(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DRAG_OVER, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
514 #define EVT_STC_DO_DROP(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DO_DROP, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
515 #define EVT_STC_ZOOM(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ZOOM, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
516 #define EVT_STC_HOTSPOT_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_CLICK, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
517 #define EVT_STC_HOTSPOT_DCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_DCLICK, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
518 #define EVT_STC_CALLTIP_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CALLTIP_CLICK id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
519 #define EVT_STC_AUTOCOMP_SELECTION(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_AUTOCOMP_SELECTION id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
520 #define EVT_STC_INDICATOR_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_INDICATOR_CLICK id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
521 #define EVT_STC_INDICATOR_RELEASE(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_INDICATOR_RELEASE id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
522
523 #endif
524
525 #endif // wxUSE_STC
526
527 #endif // _WX_STC_STC_H_