derive wxSTC from wxTextEntryBase to provide even more wxTextCtrl-like methods (see...
[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 #include "wx/textentry.h"
43 #if wxUSE_TEXTCTRL
44 #include "wx/textctrl.h"
45 #endif // wxUSE_TEXTCTRL
46
47 class WXDLLIMPEXP_FWD_CORE wxScrollBar;
48
49 // SWIG can't handle "#if" type of conditionals, only "#ifdef"
50 #ifdef SWIG
51 #define STC_USE_DND 1
52 #else
53 #if wxUSE_DRAG_AND_DROP
54 #define STC_USE_DND 1
55 #endif
56 #endif
57
58
59 //----------------------------------------------------------------------
60 // STC constants generated section {{{
61
62 %(VALUES)s
63
64 //}}}
65 //----------------------------------------------------------------------
66
67 //----------------------------------------------------------------------
68 // Commands that can be bound to keystrokes section {{{
69
70 %(CMDS)s
71
72 //}}}
73 //----------------------------------------------------------------------
74
75 class ScintillaWX; // forward declare
76 class WordList;
77 struct SCNotification;
78
79 #ifndef SWIG
80 extern WXDLLIMPEXP_STC const wxChar* wxSTCNameStr;
81 class WXDLLIMPEXP_FWD_STC wxStyledTextCtrl;
82 class WXDLLIMPEXP_FWD_STC wxStyledTextEvent;
83 #endif
84
85 //----------------------------------------------------------------------
86
87 class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl
88 , public wxTextEntryBase
89 #if wxUSE_TEXTCTRL
90 , public wxTextAreaBase
91 #endif // wxUSE_TEXTCTRL
92 {
93 public:
94
95 #ifdef SWIG
96 %%pythonAppend wxStyledTextCtrl "self._setOORInfo(self)"
97 %%pythonAppend wxStyledTextCtrl() ""
98
99 wxStyledTextCtrl(wxWindow *parent, wxWindowID id=wxID_ANY,
100 const wxPoint& pos = wxDefaultPosition,
101 const wxSize& size = wxDefaultSize, long style = 0,
102 const wxString& name = wxPySTCNameStr);
103 %%RenameCtor(PreStyledTextCtrl, wxStyledTextCtrl());
104
105 #else
106 wxStyledTextCtrl(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 wxStyledTextCtrl() { m_swx = NULL; }
111 ~wxStyledTextCtrl();
112
113 #endif
114
115 bool Create(wxWindow *parent, wxWindowID id=wxID_ANY,
116 const wxPoint& pos = wxDefaultPosition,
117 const wxSize& size = wxDefaultSize, long style = 0,
118 const wxString& name = wxSTCNameStr);
119
120
121 //----------------------------------------------------------------------
122 // Generated method declaration section {{{
123
124 %(METHOD_DEFS)s
125
126 //}}}
127 //----------------------------------------------------------------------
128
129 // Manually declared methods
130
131 // Returns the line number of the line with the caret.
132 int GetCurrentLine();
133
134 // Extract style settings from a spec-string which is composed of one or
135 // more of the following comma separated elements:
136 //
137 // bold turns on bold
138 // italic turns on italics
139 // fore:[name or #RRGGBB] sets the foreground colour
140 // back:[name or #RRGGBB] sets the background colour
141 // face:[facename] sets the font face name to use
142 // size:[num] sets the font size in points
143 // eol turns on eol filling
144 // underline turns on underlining
145 //
146 void StyleSetSpec(int styleNum, const wxString& spec);
147
148
149 // Get the font of a style.
150 wxFont StyleGetFont(int style);
151
152
153 // Set style size, face, bold, italic, and underline attributes from
154 // a wxFont's attributes.
155 void StyleSetFont(int styleNum, wxFont& font);
156
157
158
159 // Set all font style attributes at once.
160 void StyleSetFontAttr(int styleNum, int size,
161 const wxString& faceName,
162 bool bold, bool italic,
163 bool underline,
164 wxFontEncoding encoding=wxFONTENCODING_DEFAULT);
165
166
167 // Set the character set of the font in a style. Converts the Scintilla
168 // character set values to a wxFontEncoding.
169 void StyleSetCharacterSet(int style, int characterSet);
170
171 // Set the font encoding to be used by a style.
172 void StyleSetFontEncoding(int style, wxFontEncoding encoding);
173
174
175 // Perform one of the operations defined by the wxSTC_CMD_* constants.
176 void CmdKeyExecute(int cmd);
177
178
179 // Set the left and right margin in the edit area, measured in pixels.
180 void SetMargins(int left, int right);
181
182
183 // Retrieve the start and end positions of the current selection.
184 #ifdef SWIG
185 void GetSelection(int* OUTPUT, int* OUTPUT);
186 #else
187 void GetSelection(int* startPos, int* endPos);
188 #endif
189
190 // Retrieve the point in the window where a position is displayed.
191 wxPoint PointFromPosition(int pos);
192
193
194 // Scroll enough to make the given line visible
195 void ScrollToLine(int line);
196
197
198 // Scroll enough to make the given column visible
199 void ScrollToColumn(int column);
200
201
202 // Send a message to Scintilla
203 //
204 // NB: this method is not really const as it can modify the control but it
205 // has to be declared as such as it's called from both const and
206 // non-const methods and we can't distinguish between the two
207 long SendMsg(int msg, long wp=0, long lp=0) const;
208
209
210 // Set the vertical scrollbar to use instead of the ont that's built-in.
211 void SetVScrollBar(wxScrollBar* bar);
212
213
214 // Set the horizontal scrollbar to use instead of the ont that's built-in.
215 void SetHScrollBar(wxScrollBar* bar);
216
217 // Can be used to prevent the EVT_CHAR handler from adding the char
218 bool GetLastKeydownProcessed() { return m_lastKeyDownConsumed; }
219 void SetLastKeydownProcessed(bool val) { m_lastKeyDownConsumed = val; }
220
221 // if we derive from wxTextAreaBase it already provides these methods
222 #if !wxUSE_TEXTCTRL
223 // Write the contents of the editor to filename
224 bool SaveFile(const wxString& filename);
225
226 // Load the contents of filename into the editor
227 bool LoadFile(const wxString& filename);
228 #endif // !wxUSE_TEXTCTRL
229
230 #ifdef STC_USE_DND
231 // Allow for simulating a DnD DragOver
232 wxDragResult DoDragOver(wxCoord x, wxCoord y, wxDragResult def);
233
234 // Allow for simulating a DnD DropText
235 bool DoDropText(long x, long y, const wxString& data);
236 #endif
237
238 // Specify whether anti-aliased fonts should be used. Will have no effect
239 // on some platforms, but on some (wxMac for example) can greatly improve
240 // performance.
241 void SetUseAntiAliasing(bool useAA);
242
243 // Returns the current UseAntiAliasing setting.
244 bool GetUseAntiAliasing();
245
246
247
248 // The following methods are nearly equivallent to their similarly named
249 // cousins above. The difference is that these methods bypass wxString
250 // and always use a char* even if used in a unicode build of wxWidgets.
251 // In that case the character data will be utf-8 encoded since that is
252 // what is used internally by Scintilla in unicode builds.
253
254 // Add text to the document at current position.
255 void AddTextRaw(const char* text);
256
257 // Insert string at a position.
258 void InsertTextRaw(int pos, const char* text);
259
260 // Retrieve the text of the line containing the caret.
261 // Returns the index of the caret on the line.
262 #ifdef SWIG
263 wxCharBuffer GetCurLineRaw(int* OUTPUT);
264 #else
265 wxCharBuffer GetCurLineRaw(int* linePos=NULL);
266 #endif
267
268 // Retrieve the contents of a line.
269 wxCharBuffer GetLineRaw(int line);
270
271 // Retrieve the selected text.
272 wxCharBuffer GetSelectedTextRaw();
273
274 // Retrieve a range of text.
275 wxCharBuffer GetTextRangeRaw(int startPos, int endPos);
276
277 // Replace the contents of the document with the argument text.
278 void SetTextRaw(const char* text);
279
280 // Retrieve all the text in the document.
281 wxCharBuffer GetTextRaw();
282
283 // Append a string to the end of the document without changing the selection.
284 void AppendTextRaw(const char* text);
285
286 #ifdef SWIG
287 %%pythoncode "_stc_utf8_methods.py"
288 #endif
289
290
291 // implement wxTextEntryBase pure virtual methods
292 // ----------------------------------------------
293
294 virtual void WriteText(const wxString& text) { AddText(text); }
295 virtual wxString GetValue() const { return GetText(); }
296 virtual void Remove(long from, long to)
297 {
298 Replace(from, to, "");
299 }
300 virtual void Replace(long from, long to, const wxString& text)
301 {
302 SetTargetStart(from);
303 SetTargetEnd(to);
304 ReplaceTarget(text);
305 }
306
307 /*
308 These functions are already declared in the generated section.
309
310 virtual void Copy();
311 virtual void Cut();
312 virtual void Paste();
313
314 virtual void Undo();
315 virtual void Redo();
316
317 virtual bool CanUndo() const;
318 virtual bool CanRedo() const;
319
320 */
321
322 virtual void SetInsertionPoint(long pos) { SetCurrentPos(pos); }
323 virtual long GetInsertionPoint() const { return GetCurrentPos(); }
324 virtual long GetLastPosition() const { return GetTextLength(); }
325
326 virtual void SetSelection(long from, long to)
327 {
328 if ( from == -1 && to == -1 )
329 {
330 SelectAll();
331 }
332 else
333 {
334 SetSelectionStart(from);
335 SetSelectionEnd(to);
336 }
337 }
338
339 virtual void GetSelection(long *from, long *to) const
340 {
341 if ( from )
342 *from = GetSelectionStart();
343 if ( to )
344 *to = GetSelectionEnd();
345 }
346
347 virtual bool IsEditable() const { return !GetReadOnly(); }
348 virtual void SetEditable(bool editable) { SetReadOnly(!editable); }
349
350 // implement wxTextAreaBase pure virtual methods
351 // ---------------------------------------------
352
353 virtual int GetLineLength(long n) const { return GetLine(n).length(); }
354 virtual wxString GetLineText(long n) const { return GetLine(n); }
355 virtual int GetNumberOfLines() const { return GetLineCount(); }
356
357 virtual bool IsModified() const { return GetModify(); }
358 virtual void MarkDirty() { wxFAIL_MSG("not implemented"); }
359 virtual void DiscardEdits() { SetSavePoint(); }
360
361 virtual bool SetStyle(long WXUNUSED(start), long WXUNUSED(end),
362 const wxTextAttr& WXUNUSED(style))
363 {
364 wxFAIL_MSG("not implemented");
365
366 return false;
367 }
368
369 virtual bool GetStyle(long WXUNUSED(position), wxTextAttr& WXUNUSED(style))
370 {
371 wxFAIL_MSG("not implemented");
372
373 return false;
374 }
375
376 virtual bool SetDefaultStyle(const wxTextAttr& WXUNUSED(style))
377 {
378 wxFAIL_MSG("not implemented");
379
380 return false;
381 }
382
383 virtual long XYToPosition(long x, long y) const
384 {
385 long pos = PositionFromLine(y);
386 pos += x;
387 return pos;
388 }
389
390 virtual bool PositionToXY(long pos, long *x, long *y) const
391 {
392 if ( x )
393 *x = -1; // TODO
394
395 if ( y )
396 {
397 long l = LineFromPosition(pos);
398 if ( l == -1 )
399 return false;
400 *y = l;
401 }
402
403 return true;
404 }
405
406 virtual void ShowPosition(long pos) { GotoPos(pos); }
407
408 using wxWindow::HitTest;
409
410 virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const
411 {
412 const long l = PositionFromPoint(pt);
413 if ( l == -1 )
414 return wxTE_HT_BELOW; // we don't really know where it was
415
416 if ( pos )
417 *pos = l;
418
419 return wxTE_HT_ON_TEXT;
420 }
421
422 #ifndef SWIG
423 protected:
424 virtual bool DoLoadFile(const wxString& file, int fileType);
425 virtual bool DoSaveFile(const wxString& file, int fileType);
426
427 // Event handlers
428 void OnPaint(wxPaintEvent& evt);
429 void OnScrollWin(wxScrollWinEvent& evt);
430 void OnScroll(wxScrollEvent& evt);
431 void OnSize(wxSizeEvent& evt);
432 void OnMouseLeftDown(wxMouseEvent& evt);
433 void OnMouseMove(wxMouseEvent& evt);
434 void OnMouseLeftUp(wxMouseEvent& evt);
435 void OnMouseRightUp(wxMouseEvent& evt);
436 void OnMouseMiddleUp(wxMouseEvent& evt);
437 void OnContextMenu(wxContextMenuEvent& evt);
438 void OnMouseWheel(wxMouseEvent& evt);
439 void OnChar(wxKeyEvent& evt);
440 void OnKeyDown(wxKeyEvent& evt);
441 void OnLoseFocus(wxFocusEvent& evt);
442 void OnGainFocus(wxFocusEvent& evt);
443 void OnSysColourChanged(wxSysColourChangedEvent& evt);
444 void OnEraseBackground(wxEraseEvent& evt);
445 void OnMenu(wxCommandEvent& evt);
446 void OnListBox(wxCommandEvent& evt);
447 void OnIdle(wxIdleEvent& evt);
448
449 virtual wxSize DoGetBestSize() const;
450
451 // Turn notifications from Scintilla into events
452 void NotifyChange();
453 void NotifyParent(SCNotification* scn);
454
455 private:
456 DECLARE_EVENT_TABLE()
457 DECLARE_DYNAMIC_CLASS(wxStyledTextCtrl)
458
459 protected:
460
461 ScintillaWX* m_swx;
462 wxStopWatch m_stopWatch;
463 wxScrollBar* m_vScrollBar;
464 wxScrollBar* m_hScrollBar;
465
466 bool m_lastKeyDownConsumed;
467
468 friend class ScintillaWX;
469 friend class Platform;
470 #endif // !SWIG
471 };
472
473 //----------------------------------------------------------------------
474
475 class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent {
476 public:
477 wxStyledTextEvent(wxEventType commandType=0, int id=0);
478 #ifndef SWIG
479 wxStyledTextEvent(const wxStyledTextEvent& event);
480 #endif
481 ~wxStyledTextEvent() {}
482
483 void SetPosition(int pos) { m_position = pos; }
484 void SetKey(int k) { m_key = k; }
485 void SetModifiers(int m) { m_modifiers = m; }
486 void SetModificationType(int t) { m_modificationType = t; }
487 void SetText(const wxString& t) { m_text = t; }
488 void SetLength(int len) { m_length = len; }
489 void SetLinesAdded(int num) { m_linesAdded = num; }
490 void SetLine(int val) { m_line = val; }
491 void SetFoldLevelNow(int val) { m_foldLevelNow = val; }
492 void SetFoldLevelPrev(int val) { m_foldLevelPrev = val; }
493 void SetMargin(int val) { m_margin = val; }
494 void SetMessage(int val) { m_message = val; }
495 void SetWParam(int val) { m_wParam = val; }
496 void SetLParam(int val) { m_lParam = val; }
497 void SetListType(int val) { m_listType = val; }
498 void SetX(int val) { m_x = val; }
499 void SetY(int val) { m_y = val; }
500 void SetDragText(const wxString& val) { m_dragText = val; }
501 void SetDragAllowMove(bool val) { m_dragAllowMove = val; }
502 #ifdef STC_USE_DND
503 void SetDragResult(wxDragResult val) { m_dragResult = val; }
504 #endif
505
506 int GetPosition() const { return m_position; }
507 int GetKey() const { return m_key; }
508 int GetModifiers() const { return m_modifiers; }
509 int GetModificationType() const { return m_modificationType; }
510 wxString GetText() const { return m_text; }
511 int GetLength() const { return m_length; }
512 int GetLinesAdded() const { return m_linesAdded; }
513 int GetLine() const { return m_line; }
514 int GetFoldLevelNow() const { return m_foldLevelNow; }
515 int GetFoldLevelPrev() const { return m_foldLevelPrev; }
516 int GetMargin() const { return m_margin; }
517 int GetMessage() const { return m_message; }
518 int GetWParam() const { return m_wParam; }
519 int GetLParam() const { return m_lParam; }
520 int GetListType() const { return m_listType; }
521 int GetX() const { return m_x; }
522 int GetY() const { return m_y; }
523 wxString GetDragText() { return m_dragText; }
524 bool GetDragAllowMove() { return m_dragAllowMove; }
525 #ifdef STC_USE_DND
526 wxDragResult GetDragResult() { return m_dragResult; }
527 #endif
528
529 bool GetShift() const;
530 bool GetControl() const;
531 bool GetAlt() const;
532
533 virtual wxEvent* Clone() const { return new wxStyledTextEvent(*this); }
534
535 #ifndef SWIG
536 private:
537 DECLARE_DYNAMIC_CLASS(wxStyledTextEvent)
538
539 int m_position;
540 int m_key;
541 int m_modifiers;
542
543 int m_modificationType; // wxEVT_STC_MODIFIED
544 wxString m_text;
545 int m_length;
546 int m_linesAdded;
547 int m_line;
548 int m_foldLevelNow;
549 int m_foldLevelPrev;
550
551 int m_margin; // wxEVT_STC_MARGINCLICK
552
553 int m_message; // wxEVT_STC_MACRORECORD
554 int m_wParam;
555 int m_lParam;
556
557 int m_listType;
558 int m_x;
559 int m_y;
560
561 wxString m_dragText; // wxEVT_STC_START_DRAG, wxEVT_STC_DO_DROP
562 bool m_dragAllowMove; // wxEVT_STC_START_DRAG
563
564 #if wxUSE_DRAG_AND_DROP
565 wxDragResult m_dragResult; // wxEVT_STC_DRAG_OVER,wxEVT_STC_DO_DROP
566 #endif
567 #endif
568 };
569
570
571
572 #ifndef SWIG
573 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_CHANGE;
574 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_STYLENEEDED;
575 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_CHARADDED;
576 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_SAVEPOINTREACHED;
577 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_SAVEPOINTLEFT;
578 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_ROMODIFYATTEMPT;
579 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_KEY;
580 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_DOUBLECLICK;
581 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_UPDATEUI;
582 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_MODIFIED;
583 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_MACRORECORD;
584 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_MARGINCLICK;
585 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_NEEDSHOWN;
586 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_PAINTED;
587 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_USERLISTSELECTION;
588 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_URIDROPPED;
589 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_DWELLSTART;
590 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_DWELLEND;
591 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_START_DRAG;
592 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_DRAG_OVER;
593 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_DO_DROP;
594 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_ZOOM;
595 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_HOTSPOT_CLICK;
596 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_HOTSPOT_DCLICK;
597 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_CALLTIP_CLICK;
598 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_AUTOCOMP_SELECTION;
599 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_INDICATOR_CLICK;
600 extern WXDLLIMPEXP_STC const wxEventType wxEVT_STC_INDICATOR_RELEASE;
601 #else
602 enum {
603 wxEVT_STC_CHANGE,
604 wxEVT_STC_STYLENEEDED,
605 wxEVT_STC_CHARADDED,
606 wxEVT_STC_SAVEPOINTREACHED,
607 wxEVT_STC_SAVEPOINTLEFT,
608 wxEVT_STC_ROMODIFYATTEMPT,
609 wxEVT_STC_KEY,
610 wxEVT_STC_DOUBLECLICK,
611 wxEVT_STC_UPDATEUI,
612 wxEVT_STC_MODIFIED,
613 wxEVT_STC_MACRORECORD,
614 wxEVT_STC_MARGINCLICK,
615 wxEVT_STC_NEEDSHOWN,
616 wxEVT_STC_PAINTED,
617 wxEVT_STC_USERLISTSELECTION,
618 wxEVT_STC_URIDROPPED,
619 wxEVT_STC_DWELLSTART,
620 wxEVT_STC_DWELLEND,
621 wxEVT_STC_START_DRAG,
622 wxEVT_STC_DRAG_OVER,
623 wxEVT_STC_DO_DROP,
624 wxEVT_STC_ZOOM,
625 wxEVT_STC_HOTSPOT_CLICK,
626 wxEVT_STC_HOTSPOT_DCLICK,
627 wxEVT_STC_CALLTIP_CLICK,
628 wxEVT_STC_AUTOCOMP_SELECTION,
629 wxEVT_STC_INDICATOR_CLICK,
630 wxEVT_STC_INDICATOR_RELEASE
631 };
632 #endif
633
634
635
636 #ifndef SWIG
637 typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&);
638
639 #define EVT_STC_CHANGE(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHANGE, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
640 #define EVT_STC_STYLENEEDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_STYLENEEDED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
641 #define EVT_STC_CHARADDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHARADDED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
642 #define EVT_STC_SAVEPOINTREACHED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTREACHED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
643 #define EVT_STC_SAVEPOINTLEFT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTLEFT, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
644 #define EVT_STC_ROMODIFYATTEMPT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ROMODIFYATTEMPT, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
645 #define EVT_STC_KEY(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_KEY, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
646 #define EVT_STC_DOUBLECLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DOUBLECLICK, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
647 #define EVT_STC_UPDATEUI(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_UPDATEUI, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
648 #define EVT_STC_MODIFIED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MODIFIED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
649 #define EVT_STC_MACRORECORD(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MACRORECORD, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
650 #define EVT_STC_MARGINCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MARGINCLICK, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
651 #define EVT_STC_NEEDSHOWN(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_NEEDSHOWN, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
652 #define EVT_STC_PAINTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_PAINTED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
653 #define EVT_STC_USERLISTSELECTION(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_USERLISTSELECTION, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
654 #define EVT_STC_URIDROPPED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_URIDROPPED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
655 #define EVT_STC_DWELLSTART(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLSTART, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
656 #define EVT_STC_DWELLEND(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLEND, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
657 #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 ),
658 #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 ),
659 #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 ),
660 #define EVT_STC_ZOOM(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ZOOM, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxStyledTextEventFunction, & fn ), (wxObject *) NULL ),
661 #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 ),
662 #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 ),
663 #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 ),
664 #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 ),
665 #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 ),
666 #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 ),
667
668 #endif
669
670 #endif // wxUSE_STC
671
672 #endif // _WX_STC_STC_H_