class EditDCOPInterface

# class EditDCOPInterface | DCOP interface to EditInterface. More...
Full name | `KTextEditor::EditDCOPInterface`
Definition | `#include <editdcopinterface.h>`
Inherits | DCOPObject (dcop) [virtual public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- EditDCOPInterface ( EditInterface *Parent, const char *name )
- virtual ~EditDCOPInterface ()

## Detailed Description

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 ( uint 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 ( uint line, uint col, const QString &text ) | ### insertText

[k_dcop virtual]

Inserts text at line "line", column "col" returns true if success

bool removeText ( uint startLine, uint startCol, uint endLine, uint endCol) | ### removeText

[k_dcop virtual]

remove text at line "line", column "col" returns true if success

bool insertLine ( uint line, const QString &text ) | ### insertLine

[k_dcop virtual]

Insert line(s) at the given line number.

bool removeLine ( uint 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)

- Author: Ian Reinhart Geiser
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:38:11 2003, using kdoc 2.0a54.