|
|
This is the main interface to the SelectionInterface of KTextEdit. This will provide a consistant dcop interface to all KDE applications that use it.
SelectionDCOPInterface ( SelectionInterface *Parent, const char *name )
| SelectionDCOPInterface |
Construct a new interface object for the text editor.
Parameters:
ParentSelectionInterface | - The parent SelectionInterface object that will provide us with the functions for the interface. |
~SelectionDCOPInterface ()
| ~SelectionDCOPInterface |
[virtual]
Destructor Cleans up the object.
bool setSelection ( unsigned int startLine, unsigned int startCol, unsigned int endLine, unsigned int endCol )
| setSelection |
[k_dcop]
Returns: set the selection from line_start,col_start to line_end,col_end
bool clearSelection ()
| clearSelection |
[k_dcop]
removes the current Selection (not Text)
bool hasSelection ()
| hasSelection |
[k_dcop]
Returns: true if there is a selection
QString selection ()
| selection |
[k_dcop]
Returns: a QString for the selected text
bool removeSelectedText ()
| removeSelectedText |
[k_dcop]
removes the selected Text
bool selectAll ()
| selectAll |
[k_dcop]
select the whole text