1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG definitions of various utility classes
7 // Created: 25-nov-1998
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
18 #include "lseditorpl.h"
21 //---------------------------------------------------------------------------
24 %include my_typemaps.i
40 wxString wxPyEmptyStr("");
44 %pragma(python) code = "import wx"
46 //---------------------------------------------------------------------------
48 class wxsLSEditorPlugin
54 void Create( wxWindow* parent, wxWindowID id );
56 virtual void OnOpen( const char* fname );
57 virtual void OnSave( const char* fname );
59 virtual void OnCopy();
61 virtual void OnPaste();
62 virtual void OnDelete();
68 void OnGotoLine( int lineNo, int column = 0 );
74 void OnFindPrevious();
77 virtual void OnToggleBookmark();
78 virtual void OnNextBookmark();
79 virtual void OnPreviousBookmark();
80 virtual void OnShowBookmarks();
82 virtual void SetCheckpoint();
83 virtual bool CheckpointModified();
93 // accesed by framework
95 virtual string GetName(){ return "Alex's Language Sensitive Editor"; }
97 virtual bool IsModified();
99 virtual wxWindow* GetWindow();
101 //virtual void GetAllText( char** ppBuf, size_t* length );
103 virtual void SetFileName( const char* fname );
105 virtual void HoldCursor( bool hold );
107 //virtual wxsPluginBase* Clone() { return new wxsLSEditorPlugin(); };
109 virtual string FindWordAtCursor();
111 virtual void GetCursorPos( int* line, int* column );
112 virtual void SetCursorPos( int line, int column );
114 virtual void GetPagePos( int* line, int* column );
116 virtual void GetText( int fromLine, int fromColumn,
117 int tillLine, int tillColumn,
118 char** ppBuf, size_t* length );
120 virtual void InsertText( int line, int column,
121 char* text, size_t lenght );
123 virtual void DeleteText( int fromLine, int fromColumn,
124 int tillLine, int tillColumn );
126 virtual void PositionToXY( int line, int column, int* x, int* y );
128 virtual void GetSelectionRange( int* fromLine, int* fromColumn,
129 int* tillLine, int* tillColumn );
131 virtual wxSize GetCharacterSize();
133 virtual bool IsUnixText();
135 // some extras (just in case..)
137 //wxTextEditorModel& GetModel();
138 //wxTextEditorView& GetView();
141 //---------------------------------------------------------------------------
145 wxClassInfo::CleanUpClasses();
146 wxClassInfo::InitializeClasses();
150 //---------------------------------------------------------------------------