editdcopinterface.cpp
#include "editdcopinterface.h"
#include "editinterface.h"
#include <dcopclient.h>
using namespace KTextEditor;
EditDCOPInterface::EditDCOPInterface( EditInterface *Parent, const char *name)
: DCOPObject(name)
{
m_parent = Parent;
}
EditDCOPInterface::~EditDCOPInterface()
{
}
QString EditDCOPInterface::text ()
{
return m_parent->text();
}
QString EditDCOPInterface::textLine ( uint line )
{
return m_parent->textLine(line);
}
int EditDCOPInterface::numLines ()
{
return m_parent->numLines();
}
int EditDCOPInterface::length ()
{
return m_parent->length();
}
void EditDCOPInterface::setText ( const QString &text )
{
m_parent->setText(text);
}
bool EditDCOPInterface::insertText ( uint line, uint col, const QString &text )
{
return m_parent->insertText( line, col, text);
}
bool EditDCOPInterface::removeText ( uint startLine, uint startCol, uint endLine, uint endCol )
{
return m_parent->removeText( startLine, startCol, endLine, endCol);
}
bool EditDCOPInterface::insertLine ( uint line, const QString &text )
{
return m_parent->insertLine( line, text);
}
bool EditDCOPInterface::removeLine ( uint line )
{
return m_parent->removeLine( line );
}
KTextEditor::EditInterface::removeText
virtual bool removeText(uint startLine, uint startCol, uint endLine, uint endCol)=0
remove text at line "line", column "col" returns true if success
KTextEditor::EditDCOPInterface::removeLine
virtual bool removeLine(uint line)
Insert line(s) at the given line number.
Definition: editdcopinterface.cpp:58
KTextEditor::EditInterface::length
virtual uint length() const =0
KTextEditor::EditDCOPInterface::insertText
virtual bool insertText(uint line, uint col, const QString &text)
Inserts text at line "line", column "col" returns true if success.
Definition: editdcopinterface.cpp:43
KTextEditor::EditDCOPInterface::length
virtual int length()
Definition: editdcopinterface.cpp:33
KTextEditor::EditInterface::insertLine
virtual bool insertLine(uint line, const QString &text)=0
Insert line(s) at the given line number.
KTextEditor::EditDCOPInterface::removeText
virtual bool removeText(uint startLine, uint startCol, uint endLine, uint endCol)
remove text at line "line", column "col" returns true if success
Definition: editdcopinterface.cpp:48
KTextEditor::EditInterface::numLines
virtual uint numLines() const =0
KTextEditor::EditInterface::removeLine
virtual bool removeLine(uint line)=0
Remove line(s) at the given line number.
KTextEditor::EditInterface::setText
virtual bool setText(const QString &text)=0
Set the given text into the view.
KTextEditor::EditDCOPInterface::text
virtual QString text()
Definition: editdcopinterface.cpp:18
KTextEditor::EditDCOPInterface::insertLine
virtual bool insertLine(uint line, const QString &text)
Insert line(s) at the given line number.
Definition: editdcopinterface.cpp:53
KTextEditor::EditDCOPInterface::textLine
virtual QString textLine(uint line)
Definition: editdcopinterface.cpp:23
KTextEditor::EditInterface::insertText
virtual bool insertText(uint line, uint col, const QString &text)=0
Inserts text at line "line", column "col" returns true if success Use insertText(numLines(), ...) to append text at end of document.
KTextEditor::EditInterface::textLine
virtual QString textLine(uint line) const =0
KTextEditor::EditDCOPInterface::EditDCOPInterface
EditDCOPInterface(EditInterface *Parent, const char *name)
Construct a new interface object for the text editor.
Definition: editdcopinterface.cpp:7
KTextEditor::EditDCOPInterface::setText
virtual void setText(const QString &text)
Set the given text into the view.
Definition: editdcopinterface.cpp:38
KTextEditor::EditInterface::text
virtual QString text() const =0
slots !!!
KTextEditor::EditDCOPInterface::~EditDCOPInterface
virtual ~EditDCOPInterface()
Destructor Cleans up the object.
Definition: editdcopinterface.cpp:13
KTextEditor::EditDCOPInterface::numLines
virtual int numLines()
Definition: editdcopinterface.cpp:28
DCOPObject
KTextEditor::EditInterface
This is the main interface for accessing and modifying text of the Document class.
Definition: editinterface.h:33

KDE Home | KDE Accessibility Home | Description of Access Keys