selectiondcopinterface.cpp
#include "selectiondcopinterface.h"
#include "selectioninterface.h"
#include <dcopclient.h>
using namespace KTextEditor;
SelectionDCOPInterface::SelectionDCOPInterface( SelectionInterface *Parent, const char *name)
: DCOPObject(name)
{
m_parent = Parent;
}
SelectionDCOPInterface::~SelectionDCOPInterface()
{
}
bool SelectionDCOPInterface::setSelection ( uint startLine, uint startCol, uint endLine, uint endCol )
{
return m_parent->setSelection ( startLine, startCol, endLine, endCol );
}
bool SelectionDCOPInterface::clearSelection ()
{
return m_parent->clearSelection();
}
bool SelectionDCOPInterface::hasSelection ()
{
return m_parent->hasSelection();
}
QString SelectionDCOPInterface::selection ()
{
return m_parent->selection();
}
bool SelectionDCOPInterface::removeSelectedText ()
{
return m_parent->removeSelectedText();
}
bool SelectionDCOPInterface::selectAll ()
{
return m_parent->selectAll();
}
KTextEditor::SelectionInterface::clearSelection
virtual bool clearSelection()=0
removes the current Selection (not Text)
KTextEditor::SelectionInterface::setSelection
virtual bool setSelection(unsigned int startLine, unsigned int startCol, unsigned int endLine, unsigned int endCol)=0
KTextEditor::SelectionInterface::selectAll
virtual bool selectAll()=0
select the whole text
KTextEditor::SelectionInterface::removeSelectedText
virtual bool removeSelectedText()=0
removes the selected Text
KTextEditor::SelectionInterface
This is an interface to text selection for the Document class.
Definition: selectioninterface.h:33
KTextEditor::SelectionDCOPInterface::setSelection
bool setSelection(uint startLine, uint startCol, uint endLine, uint endCol)
Definition: selectiondcopinterface.cpp:21
KTextEditor::SelectionDCOPInterface::SelectionDCOPInterface
SelectionDCOPInterface(SelectionInterface *Parent, const char *name)
Construct a new interface object for the text editor.
Definition: selectiondcopinterface.cpp:7
KTextEditor::SelectionInterface::selection
virtual QString selection() const =0
KTextEditor::SelectionDCOPInterface::clearSelection
bool clearSelection()
removes the current Selection (not Text)
Definition: selectiondcopinterface.cpp:29
KTextEditor::SelectionDCOPInterface::removeSelectedText
bool removeSelectedText()
removes the selected Text
Definition: selectiondcopinterface.cpp:53
KTextEditor::SelectionDCOPInterface::selectAll
bool selectAll()
select the whole text
Definition: selectiondcopinterface.cpp:61
KTextEditor::SelectionDCOPInterface::hasSelection
bool hasSelection()
Definition: selectiondcopinterface.cpp:37
KTextEditor::SelectionDCOPInterface::~SelectionDCOPInterface
virtual ~SelectionDCOPInterface()
Destructor Cleans up the object.
Definition: selectiondcopinterface.cpp:13
DCOPObject
KTextEditor::SelectionDCOPInterface::selection
QString selection()
Definition: selectiondcopinterface.cpp:45
KTextEditor::SelectionInterface::hasSelection
virtual bool hasSelection() const =0

KDE Home | KDE Accessibility Home | Description of Access Keys