#endif // SWIG
+// SWIG can't handle "#if" type of conditionals, only "#ifdef"
+#ifdef SWIG
+#define STC_USE_DND 1
+#else
+#if wxUSE_DRAG_AND_DROP
+#define STC_USE_DND 1
+#endif
+#endif
+
//----------------------------------------------------------------------
// Should a wxPopupWindow be used for the call tips and autocomplete windows?
//-----------------------------------------
// Commands that can be bound to keystrokes
+
%(CMDS)s
//----------------------------------------------------------------------
+#ifndef SWIG
+class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl {
+#else
class wxStyledTextCtrl : public wxControl {
+#endif
public:
#ifdef SWIG
// Load the contents of filename into the editor
bool LoadFile(const wxString& filename);
+#ifdef STC_USE_DND
+ // Allow for simulating a DnD DragOver
+ wxDragResult DoDragOver(wxCoord x, wxCoord y, wxDragResult def);
+
+ // Allow for simulating a DnD DropText
+ bool DoDropText(long x, long y, const wxString& data);
+#endif
+
+
//----------------------------------------------------------------------
void NotifyParent(SCNotification* scn);
DECLARE_EVENT_TABLE()
- DECLARE_CLASS(wxStyledTextCtrl)
+ DECLARE_DYNAMIC_CLASS(wxStyledTextCtrl)
protected:
//----------------------------------------------------------------------
-// SWIG can't handle "#if" type of conditionals, only "#ifdef"
-#ifdef SWIG
-#define STC_USE_DND 1
+#ifndef SWIG
+class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent {
#else
-#if wxUSE_DRAG_AND_DROP
-#define STC_USE_DND 1
-#endif
-#endif
-
class wxStyledTextEvent : public wxCommandEvent {
+#endif
public:
wxStyledTextEvent(wxEventType commandType=0, int id=0);
#ifndef SWIG