-
- // editing
- virtual void Clear();
- virtual void Replace(long from, long to, const wxString& value);
- virtual void Remove(long from, long to);
-
- // load the controls contents from the file
- virtual bool LoadFile(const wxString& file);
-
- // clears the dirty flag
- virtual void DiscardEdits();
-
- // writing text inserts it at the current position, appending always
- // inserts it at the end
- virtual void WriteText(const wxString& text);
- virtual void AppendText(const wxString& text);
-
- // translate between the position (which is just an index in the text ctrl
- // considering all its contents as a single strings) and (x, y) coordinates
- // which represent column and line.
- virtual long XYToPosition(long x, long y) const;
- virtual bool PositionToXY(long pos, long *x, long *y) const;
-
- virtual void ShowPosition(long pos);
-
- // Clipboard operations
- virtual void Copy();
- virtual void Cut();
- virtual void Paste();
-
- virtual bool CanCopy() const;
- virtual bool CanCut() const;
- virtual bool CanPaste() const;
-
- // Undo/redo
- virtual void Undo();
- virtual void Redo();
-
- virtual bool CanUndo() const;
- virtual bool CanRedo() const;
-
- // Insertion point
- virtual void SetInsertionPoint(long pos);
- virtual void SetInsertionPointEnd();
- virtual long GetInsertionPoint() const;
- virtual long GetLastPosition() const;
-
- virtual void SetSelection(long from, long to);
- virtual void SetEditable(bool editable);
-
+ //
+ virtual void Clear(void);
+ virtual void Replace( long lFrom
+ ,long lTo
+ ,const wxString& rsValue
+ );
+ virtual void Remove( long lFrom
+ ,long lTo
+ );
+
+ virtual bool LoadFile(const wxString& rsFile);
+
+ virtual void MarkDirty();
+ virtual void DiscardEdits(void);
+
+ virtual void WriteText(const wxString& rsText);
+ virtual void AppendText(const wxString& rsText);
+ virtual bool EmulateKeyPress(const wxKeyEvent& rEvent);
+
+ virtual bool SetStyle( long lStart
+ ,long lEnd
+ ,const wxTextAttr& rStyle
+ );
+ virtual long XYToPosition( long lX
+ ,long lY
+ ) const;
+ virtual bool PositionToXY( long lPos
+ ,long* plX
+ ,long* plY
+ ) const;
+
+ virtual void ShowPosition(long lPos);
+
+ virtual void Copy(void);
+ virtual void Cut(void);
+ virtual void Paste(void);
+
+ virtual bool CanCopy(void) const;
+ virtual bool CanCut(void) const;
+ virtual bool CanPaste(void) const;
+
+ virtual void Undo(void);
+ virtual void Redo(void);
+
+ virtual bool CanUndo(void) const;
+ virtual bool CanRedo(void) const;
+
+ virtual void SetInsertionPoint(long lPos);
+ virtual void SetInsertionPointEnd(void);
+ virtual long GetInsertionPoint(void) const;
+ virtual long GetLastPosition(void) const;
+
+ virtual void SetSelection( long lFrom
+ ,long lTo
+ );
+ virtual void SetEditable(bool bEditable);
+ virtual void SetWindowStyleFlag(long lStyle);
+
+ //