|
|
This is the main interface to the EditInterface of KTextEdit. This will provide a consistant dcop interface to all KDE applications that use it.
EditDCOPInterface ( EditInterface *Parent, const char *name )
| EditDCOPInterface |
Construct a new interface object for the text editor.
Parameters:
ParentEditInterface | - The parent EditInterface object that will provide us with the functions for the interface. |
~EditDCOPInterface ()
| ~EditDCOPInterface |
[virtual]
Destructor Cleans up the object.
QString text ()
| text |
[k_dcop virtual]
Returns: the complete document as a single QString
QString textLine ( unsigned int line )
| textLine |
[k_dcop virtual]
Returns: All the text from the requested line.
int numLines ()
| numLines |
[k_dcop virtual]
Returns: The current number of lines in the document
int length ()
| length |
[k_dcop virtual]
Returns: the number of characters in the document
void setText (const QString &text )
| setText |
[k_dcop virtual]
Set the given text into the view. Warning: This will overwrite any data currently held in this view.
bool insertText ( unsigned int line, unsigned int col, const QString &text )
| insertText |
[k_dcop virtual]
Inserts text at line "line", column "col" returns true if success
bool removeText ( unsigned int startLine, unsigned int startCol, unsigned int endLine, unsigned int endCol)
| removeText |
[k_dcop virtual]
remove text at line "line", column "col" returns true if success
bool insertLine ( unsigned int line, const QString &text )
| insertLine |
[k_dcop virtual]
Insert line(s) at the given line number.
bool removeLine ( unsigned int line )
| removeLine |
[k_dcop virtual]
Insert line(s) at the given line number. If only one line is in the current document, removeLine will fail (return false)