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