interfaces
KTextEditor::SelectionInterface Class Reference
This is an interface to text selection for the Document class. More...
#include <selectioninterface.h>
Public Member Functions | |
| virtual bool | clearSelection ()=0 |
| virtual bool | hasSelection () const =0 |
| virtual bool | removeSelectedText ()=0 |
| virtual bool | selectAll ()=0 |
| virtual QString | selection () const =0 |
| virtual void | selectionChanged ()=0 |
| SelectionInterface () | |
| unsigned int | selectionInterfaceNumber () const |
| virtual bool | setSelection (unsigned int startLine, unsigned int startCol, unsigned int endLine, unsigned int endCol)=0 |
| virtual | ~SelectionInterface () |
Protected Member Functions | |
| void | setSelectionInterfaceDCOPSuffix (const QCString &suffix) |
Detailed Description
This is an interface to text selection for the Document class.Definition at line 33 of file selectioninterface.h.
Constructor & Destructor Documentation
| SelectionInterface::SelectionInterface | ( | ) |
Definition at line 26 of file selectioninterface.cpp.
| SelectionInterface::~SelectionInterface | ( | ) | [virtual] |
Definition at line 34 of file selectioninterface.cpp.
Member Function Documentation
| virtual bool KTextEditor::SelectionInterface::clearSelection | ( | ) | [pure virtual] |
removes the current Selection (not Text)
| virtual bool KTextEditor::SelectionInterface::hasSelection | ( | ) | const [pure virtual] |
- Returns:
- true if there is a selection
| virtual bool KTextEditor::SelectionInterface::removeSelectedText | ( | ) | [pure virtual] |
removes the selected Text
| virtual bool KTextEditor::SelectionInterface::selectAll | ( | ) | [pure virtual] |
select the whole text
| virtual QString KTextEditor::SelectionInterface::selection | ( | ) | const [pure virtual] |
- Returns:
- a QString for the selected text
| virtual void KTextEditor::SelectionInterface::selectionChanged | ( | ) | [pure virtual] |
| unsigned int SelectionInterface::selectionInterfaceNumber | ( | ) | const |
Definition at line 40 of file selectioninterface.cpp.
| virtual bool KTextEditor::SelectionInterface::setSelection | ( | unsigned int | startLine, | |
| unsigned int | startCol, | |||
| unsigned int | endLine, | |||
| unsigned int | endCol | |||
| ) | [pure virtual] |
- Returns:
- set the selection from line_start,col_start to line_end,col_end
| void SelectionInterface::setSelectionInterfaceDCOPSuffix | ( | const QCString & | suffix | ) | [protected] |
Definition at line 45 of file selectioninterface.cpp.
The documentation for this class was generated from the following files:
KDE 3.5 API Reference