Kate
documentcursor.cpp
Go to the documentation of this file.
34 DocumentCursor::DocumentCursor(KTextEditor::Document* document, const KTextEditor::Cursor& position)
DocumentCursor & operator=(const DocumentCursor &other)
Assignment operator.
Definition: documentcursor.cpp:56
static Cursor invalid()
KAction * back(const QObject *recvr, const char *slot, QObject *parent)
bool isValidTextPosition() const
Check whether the current position of this cursor is a valid text position.
Definition: documentcursor.h:175
bool atStartOfDocument() const
Determine if this cursor is located at line 0 and column 0.
Definition: documentcursor.cpp:116
virtual Cursor documentEnd() const =0
A Cursor which is bound to a specific Document.
Definition: documentcursor.h:69
bool move(int chars, WrapBehavior wrapBehavior=Wrap)
Moves the cursor chars character forward or backwards.
Definition: documentcursor.cpp:150
bool atEndOfDocument() const
Determine if this cursor is located at the end of the last line in the document.
Definition: documentcursor.cpp:121
bool gotoNextLine()
Moves the cursor to the next line and sets the column to 0.
Definition: documentcursor.cpp:126
bool gotoPreviousLine()
Moves the cursor to the previous line and sets the column to 0.
Definition: documentcursor.cpp:138
bool atStartOfLine() const
Determine if this cursor is located at column 0 of a valid text line.
Definition: documentcursor.cpp:106
const Cursor & toCursor() const
Convert this clever cursor into a dumb one.
Definition: documentcursor.cpp:217
virtual bool isValid() const
bool isValid() const
Returns whether the current position of this cursor is a valid position, i.e.
Definition: documentcursor.h:166
int line() const
Retrieve the line on which this cursor is situated.
Definition: documentcursor.cpp:77
KGuiItem ok()
virtual int line() const
virtual void setPosition(const Cursor &position)
virtual int lineLength(int line) const =0
int column() const
Retrieve the column on which this cursor is situated.
Definition: documentcursor.cpp:82
WrapBehavior
Wrap behavior for end of line treatement used in move().
Definition: documentcursor.h:78
bool atEndOfLine() const
Determine if this cursor is located at the end of the current line.
Definition: documentcursor.cpp:111
virtual void setColumn(int column)
int column() const
Document * document() const
Gets the document to which this cursor is bound.
Definition: documentcursor.cpp:63
void setPosition(const KTextEditor::Cursor &position)
Set the current cursor position to position.
Definition: documentcursor.cpp:68
virtual int lines() const =0
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.