editinterface.h
122 virtual void charactersInteractivelyInserted(int ,int ,const TQString&)=0; //line, col, characters if you don't support this, don't create a signal, just overload it.
This is the main interface for accessing and modifying text of the Document class.
Definition: editinterface.h:34
virtual bool insertLine(uint line, const TQString &text)=0
Insert line(s) at the given line number.
virtual bool removeLine(uint line)=0
Remove line(s) at the given line number.
virtual bool insertText(uint line, uint col, const TQString &text)=0
Inserts text at line "line", column "col" returns true if success Use insertText(numLines(),...
virtual bool clear()=0
clears the document Warning: This will overwrite any data currently held in this view.
virtual uint length() const =0
virtual int lineLength(uint line) const =0
virtual bool removeText(uint startLine, uint startCol, uint endLine, uint endCol)=0
remove text at line "line", column "col" returns true if success
virtual TQString textLine(uint line) const =0
virtual TQString text(uint startLine, uint startCol, uint endLine, uint endCol) const =0
virtual bool setText(const TQString &text)=0
Set the given text into the view.
virtual uint numLines() const =0
KTextEditor is KDE's standard text editing KPart interface.
Definition: blockselectiondcopinterface.h:10