45 #include <QtCore/qstring.h> 46 #include <QtCore/qshareddata.h> 47 #include <QtGui/qtextformat.h> 90 void setPosition(
int pos,
MoveMode mode = MoveAnchor);
92 int positionInBlock()
const;
132 bool visualNavigation()
const;
133 void setVisualNavigation(
bool b);
135 void setVerticalMovementX(
int x);
136 int verticalMovementX()
const;
138 void setKeepPositionOnInsert(
bool b);
139 bool keepPositionOnInsert()
const;
142 void deletePreviousChar();
152 bool hasSelection()
const;
153 bool hasComplexSelection()
const;
154 void removeSelectedText();
155 void clearSelection();
156 int selectionStart()
const;
157 int selectionEnd()
const;
161 void selectedTableCells(
int *firstRow,
int *numRows,
int *firstColumn,
int *numColumns)
const;
177 bool atBlockStart()
const;
178 bool atBlockEnd()
const;
179 bool atStart()
const;
202 #ifndef QT_NO_TEXTHTMLPARSER 203 void insertHtml(
const QString &html);
204 #endif // QT_NO_TEXTHTMLPARSER 211 void beginEditBlock();
212 void joinPreviousEditBlock();
224 int blockNumber()
const;
225 int columnNumber()
const;
240 #endif // QTEXTCURSOR_H
The QTextCharFormat class provides formatting information for characters in a QTextDocument.
The QTextListFormat class provides formatting information for lists in a QTextDocument.
#define QT_END_NAMESPACE
This macro expands to.
bool operator>(const QByteArray &a1, const QByteArray &a2)
The QTextFrame class represents a frame in a QTextDocument.
Position
This enum describes how a frame is located relative to the surrounding text.
static qreal position(QGraphicsObject *item, QDeclarativeAnchorLine::AnchorLine anchorLine)
int select(int, fd_set *, fd_set *, fd_set *, struct timeval *)
bool operator!=(QBool b1, bool b2)
The QString class provides a Unicode character string.
bool operator<(int priority, const QPair< QRunnable *, int > &p)
QSharedDataPointer< QTextCursorPrivate > d
bool operator<=(const QByteArray &a1, const QByteArray &a2)
The QTextImageFormat class provides formatting information for images in a QTextDocument.
#define QT_BEGIN_NAMESPACE
This macro expands to.
MoveMode
If the anchor() is kept where it is and the position() is moved, the text in between will be selected...
Style
This enum describes the symbols used to decorate list items:
The QTextCursor class offers an API to access and modify QTextDocuments.
The QImage class provides a hardware-independent image representation that allows direct access to th...
The QTextBlock class provides a container for text fragments in a QTextDocument.
The QTextTable class represents a table in a QTextDocument.
SelectionType
This enum describes the types of selection that can be applied with the select() function.
bool operator>=(const QByteArray &a1, const QByteArray &a2)
The QTextFrameFormat class provides formatting information for frames in a QTextDocument.
The QTextBlockFormat class provides formatting information for blocks of text in a QTextDocument...
The QTextDocument class holds formatted text that can be viewed and edited using a QTextEdit...
The QTextTableFormat class provides formatting information for tables in a QTextDocument.
The QTextList class provides a decorated list of items in a QTextDocument.
bool operator==(QBool b1, bool b2)
The QTextDocumentFragment class represents a piece of formatted text from a QTextDocument.
static bool isNull(const QVariant::Private *d)