19 #ifndef __tdetexteditor_cursorinterface_h__
20 #define __tdetexteditor_cursorinterface_h__
22 #include <tqptrlist.h>
25 #include <tdelibs_export.h>
36 virtual void position (
unsigned int *line,
unsigned int *col )
const = 0;
38 virtual bool setPosition (
unsigned int line,
unsigned int col ) = 0;
40 virtual bool insertText (
const TQString& text ) = 0;
42 virtual bool removeText (
unsigned int numberOfCharacters ) = 0;
44 virtual TQChar currentChar ()
const = 0;
52 friend class PrivateCursorInterface;
58 unsigned int cursorInterfaceNumber ()
const;
61 void setCursorInterfaceDCOPSuffix (
const TQCString &suffix);
67 virtual Cursor *createCursor ( ) = 0;
72 virtual TQPtrList<Cursor> cursors ()
const = 0;
75 class PrivateCursorInterface *d;
76 static unsigned int globalCursorInterfaceNumber;
77 unsigned int myCursorInterfaceNumber;
This is an interface for accessing the cursor of the Document class.
This class represents a text cursor.
KTextEditor is KDE's standard text editing KPart interface.
The main class representing a text document.