-{
- DECLARE_DYNAMIC_CLASS(wxTextCtrl)
-
- protected:
- wxString fileName;
- public:
- wxTextCtrl(void);
- inline wxTextCtrl(wxWindow *parent, const wxWindowID id,
- const wxString& value = wxEmptyString,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize, const 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, const wxWindowID id,
- const wxString& value = wxEmptyString,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize, const 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(const int x, const int y, const int width, const int height, const int sizeFlags = wxSIZE_AUTO);
-
- // Clipboard operations
- virtual void Copy(void);
- virtual void Cut(void);
- virtual void Paste(void);
-
- virtual void SetInsertionPoint(const long pos);
- virtual void SetInsertionPointEnd(void);
- virtual long GetInsertionPoint(void) const ;
- virtual long GetLastPosition(void) const ;
- virtual void Replace(const long from, const long to, const wxString& value);
- virtual void Remove(const long from, const long to);
- virtual void SetSelection(const long from, const long to);
-
- virtual void Command(wxCommandEvent& event);
-
- virtual void SetEditable(const 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();