class EditInterface

# class EditInterface | This is an interface for the KTextEditor::Document class !!! More...
Contains pure virtuals
Full name | `KTextEditor::EditInterface`
Definition | `#include <editinterface.h>`
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- EditInterface ()
- virtual ~EditInterface ()
- uint editInterfaceNumber () const
- virtual QString text () const
- virtual QString text ( uint startLine, uint startCol, uint endLine, uint endCol ) const
- virtual QString textLine ( uint line ) const
- virtual uint numLines () const
- virtual uint length () const
- virtual int lineLength ( uint line ) const
- virtual bool setText ( const QString &text )
- virtual bool clear ()
- virtual bool insertText ( uint line, uint col, const QString &text )
- virtual bool removeText ( uint startLine, uint startCol, uint endLine, uint endCol )
- virtual bool insertLine ( uint line, const QString &text )
- virtual bool removeLine ( uint line )
- virtual void textChanged ()
- virtual void charactersInteractivelyInserted (int ,int ,const QString&)

#### Protected Methods

- void setEditInterfaceDCOPSuffix (const QCString &suffix)

## Detailed Description

This is an interface for the KTextEditor::Document class !!!

EditInterface () | ### EditInterface

~EditInterface () | ### ~EditInterface

[virtual]

uint editInterfaceNumber () | ### editInterfaceNumber

[const]

void setEditInterfaceDCOPSuffix (const QCString &suffix) | ### setEditInterfaceDCOPSuffix

[protected]

QString text () | ### text

[const pure virtual]

Returns: the complete document as a single QString

QString text ( uint startLine, uint startCol, uint endLine, uint endCol ) | ### text

[const pure virtual]

Returns: a QString

QString textLine ( uint line ) | ### textLine

[const pure virtual]

Returns: All the text from the requested line.

uint numLines () | ### numLines

[const pure virtual]

Returns: The current number of lines in the document

uint length () | ### length

[const pure virtual]

Returns: the number of characters in the document

int lineLength ( uint line ) | ### lineLength

[const pure virtual]

Returns: the number of characters in the line (-1 if no line "line")

bool setText ( const QString &text ) | ### setText

[pure virtual]

Set the given text into the view. Warning: This will overwrite any data currently held in this view.

bool clear () | ### clear

[pure virtual]

clears the document Warning: This will overwrite any data currently held in this view.

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

[pure virtual]

Inserts text at line "line", column "col" returns true if success Use insertText(numLines(), ...) to append text at end of document

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

[pure virtual]

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

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

[pure virtual]

Insert line(s) at the given line number. Use insertLine(numLines(), text) to append line at end of document

bool removeLine ( uint line ) | ### removeLine

[pure virtual]

Remove line(s) at the given line number.

void textChanged () | ### textChanged

[pure virtual]

signals !!!

void charactersInteractivelyInserted (int ,int ,const QString&) | ### charactersInteractivelyInserted

[pure virtual]

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:38:11 2003, using kdoc 2.0a54.