42 #ifndef QTEXTCURSOR_P_H 43 #define QTEXTCURSOR_P_H 59 #include <private/qtextformat_p.h> 79 Q_ASSERT(newPosition >= 0 && newPosition < priv->length());
80 bool moved =
position != newPosition;
101 void selectedTableCells(
int *firstRow,
int *numRows,
int *firstColumn,
int *numColumns)
const;
122 #endif // QTEXTCURSOR_P_H QTextTable * complexSelectionTable() const
The QTextCharFormat class provides formatting information for characters in a QTextDocument.
#define QT_END_NAMESPACE
This macro expands to.
QTextLayout * blockLayout(QTextBlock &block) const
void setBlockFormat(const QTextBlockFormat &format, QTextDocumentPrivate::FormatChangeMode changeMode)
void aboutToRemoveCell(int from, int to)
bool setPosition(int newPosition)
void setBlockCharFormat(const QTextCharFormat &format, QTextDocumentPrivate::FormatChangeMode changeMode)
#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...
QTextBlockFormat blockFormat() const
bool movePosition(QTextCursor::MoveOperation op, QTextCursor::MoveMode mode=QTextCursor::MoveAnchor)
The QTextBlock class provides a container for text fragments in a QTextDocument.
The QTextTable class represents a table in a QTextDocument.
const BlockMap & blockMap() const
The QTextLayout class is used to lay out and render text.
void insertBlock(const QTextBlockFormat &format, const QTextCharFormat &charFormat)
The QSharedData class is a base class for shared data objects.
AdjustResult adjustPosition(int positionOfChange, int charsAddedOrRemoved, QTextUndoCommand::Operation op)
uint findNode(int k, uint field=0) const
The QTextBlockFormat class provides formatting information for blocks of text in a QTextDocument...
QTextDocumentPrivate * priv
void adjustCursor(QTextCursor::MoveOperation m)
bool canDelete(int pos) const
QTextCursorPrivate(QTextDocumentPrivate *p)
void setCharFormat(const QTextCharFormat &format, QTextDocumentPrivate::FormatChangeMode changeMode)
uint keepPositionOnInsert
QTextBlockFormat blockFormat() const
Returns the QTextBlockFormat that describes block-specific properties.
void selectedTableCells(int *firstRow, int *numRows, int *firstColumn, int *numColumns) const
void clearCells(QTextTable *table, int startRow, int startCol, int numRows, int numCols, QTextUndoCommand::Operation op)