-{
- DECLARE_DYNAMIC_CLASS(wxTextCtrl)
-
- protected:
- wxString fileName;
- public:
- wxTextCtrl(void);
- inline wxTextCtrl(wxWindow *parent, wxWindowID id,
- const wxString& value = wxEmptyString,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize, long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxTextCtrlNameStr)
-#ifndef NO_TEXT_WINDOW_STREAM
- :streambuf()
-#endif
- {
- Create(parent, id, value, pos, size, style, validator, name);
- }
-
- bool Create(wxWindow *parent, wxWindowID id,
- const wxString& value = wxEmptyString,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize, long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxTextCtrlNameStr);
-
- virtual wxString GetValue(void) const ;
- virtual void SetValue(const wxString& value);
- virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
-
- // Clipboard operations
- virtual void Copy(void);
- virtual void Cut(void);
- virtual void Paste(void);
-
- virtual void SetInsertionPoint(long pos);
- virtual void SetInsertionPointEnd(void);
- virtual long GetInsertionPoint(void) const ;
- virtual long GetLastPosition(void) const ;
- virtual void Replace(long from, long to, const wxString& value);
- virtual void Remove(long from, long to);
- virtual void SetSelection(long from, long to);
-
- virtual void Command(wxCommandEvent& event);
-
- virtual void SetEditable(bool editable);
-
-#ifndef NO_TEXT_WINDOW_STREAM
- int overflow(int i);
- int sync(void);
- int underflow(void);
-#endif
+ virtual int GetLineLength(long lineNo) const;
+ virtual wxString GetLineText(long lineNo) const;
+ virtual int GetNumberOfLines() const;
+
+ virtual void SetMaxLength(unsigned long len);
+
+ virtual void GetSelection(long *from, long *to) const;
+
+ virtual void Redo();
+ virtual bool CanRedo() const;
+
+ virtual void SetInsertionPointEnd();
+ virtual long GetInsertionPoint() const;
+ virtual wxTextPos GetLastPosition() const;
+
+ // implement base class pure virtuals
+ // ----------------------------------
+
+ virtual bool IsModified() const;
+ virtual void MarkDirty();
+ virtual void DiscardEdits();