Qt 4.8
|
#include <qtextcursor_p.h>
Public Types | |
enum | AdjustResult { CursorMoved, CursorUnchanged } |
Public Variables | |
int | adjusted_anchor |
int | anchor |
uint | changed: 1 |
int | currentCharFormat |
uint | keepPositionOnInsert: 1 |
int | position |
QTextDocumentPrivate * | priv |
uint | visualNavigation: 1 |
qreal | x |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Definition at line 64 of file qtextcursor_p.h.
QTextCursorPrivate::QTextCursorPrivate | ( | QTextDocumentPrivate * | p | ) |
Definition at line 65 of file qtextcursor.cpp.
QTextCursorPrivate::QTextCursorPrivate | ( | const QTextCursorPrivate & | rhs | ) |
Definition at line 73 of file qtextcursor.cpp.
QTextCursorPrivate::~QTextCursorPrivate | ( | ) |
Definition at line 88 of file qtextcursor.cpp.
void QTextCursorPrivate::aboutToRemoveCell | ( | int | from, |
int | to | ||
) |
Definition at line 299 of file qtextcursor.cpp.
Referenced by QTextDocumentPrivate::aboutToRemoveCell(), and blockFormat().
void QTextCursorPrivate::adjustCursor | ( | QTextCursor::MoveOperation | m | ) |
Definition at line 215 of file qtextcursor.cpp.
Referenced by movePosition(), and QTextCursor::setPosition().
QTextCursorPrivate::AdjustResult QTextCursorPrivate::adjustPosition | ( | int | positionOfChange, |
int | charsAddedOrRemoved, | ||
QTextUndoCommand::Operation | op | ||
) |
Definition at line 94 of file qtextcursor.cpp.
Referenced by QTextDocumentPrivate::adjustDocumentChangesAndCursors(), and QTextDocumentPrivate::remove().
|
inline |
Definition at line 93 of file qtextcursor_p.h.
Referenced by QTextCursor::atBlockEnd(), QTextCursor::atBlockStart(), QTextCursor::block(), QTextCursor::blockCharFormat(), blockFormat(), QTextCursor::blockFormat(), QTextCursor::blockNumber(), QTextCursor::charFormat(), QTextCursor::columnNumber(), movePosition(), QTextCursor::movePosition(), QTextCursor::positionInBlock(), QTextCursor::select(), and setX().
|
inline |
Definition at line 95 of file qtextcursor_p.h.
QTextLayout * QTextCursorPrivate::blockLayout | ( | QTextBlock & | block | ) | const |
Definition at line 886 of file qtextcursor.cpp.
Referenced by blockFormat(), QTextCursor::columnNumber(), movePosition(), and setX().
bool QTextCursorPrivate::canDelete | ( | int | pos | ) | const |
Definition at line 198 of file qtextcursor.cpp.
Referenced by QTextCursor::deleteChar(), QTextCursor::deletePreviousChar(), and setPosition().
void QTextCursorPrivate::clearCells | ( | QTextTable * | table, |
int | startRow, | ||
int | startCol, | ||
int | numRows, | ||
int | numCols, | ||
QTextUndoCommand::Operation | op | ||
) |
Definition at line 182 of file qtextcursor.cpp.
Referenced by remove().
QTextTable * QTextCursorPrivate::complexSelectionTable | ( | ) | const |
Definition at line 686 of file qtextcursor.cpp.
Referenced by blockFormat(), QTextCursor::hasComplexSelection(), remove(), QTextCursor::selectedText(), setBlockCharFormat(), setBlockFormat(), and setCharFormat().
void QTextCursorPrivate::insertBlock | ( | const QTextBlockFormat & | format, |
const QTextCharFormat & | charFormat | ||
) |
Definition at line 205 of file qtextcursor.cpp.
Referenced by QTextCursor::insertBlock(), QTextCursor::insertText(), and setPosition().
bool QTextCursorPrivate::movePosition | ( | QTextCursor::MoveOperation | op, |
QTextCursor::MoveMode | mode = QTextCursor::MoveAnchor |
||
) |
Definition at line 360 of file qtextcursor.cpp.
Referenced by QTextCursor::movePosition(), and setPosition().
void QTextCursorPrivate::remove | ( | ) |
Definition at line 151 of file qtextcursor.cpp.
Referenced by QTextCursor::deleteChar(), QTextCursor::deletePreviousChar(), QTextCursor::insertBlock(), QTextCursor::insertFragment(), QTextCursor::insertImage(), QTextCursor::insertText(), and QTextCursor::removeSelectedText().
void QTextCursorPrivate::selectedTableCells | ( | int * | firstRow, |
int * | numRows, | ||
int * | firstColumn, | ||
int * | numColumns | ||
) | const |
Definition at line 704 of file qtextcursor.cpp.
Referenced by blockFormat(), remove(), QTextCursor::selectedTableCells(), setBlockCharFormat(), setBlockFormat(), and setCharFormat().
void QTextCursorPrivate::setBlockCharFormat | ( | const QTextCharFormat & | format, |
QTextDocumentPrivate::FormatChangeMode | changeMode | ||
) |
Definition at line 745 of file qtextcursor.cpp.
Referenced by blockFormat(), QTextCursor::mergeBlockCharFormat(), and QTextCursor::setBlockCharFormat().
void QTextCursorPrivate::setBlockFormat | ( | const QTextBlockFormat & | format, |
QTextDocumentPrivate::FormatChangeMode | changeMode | ||
) |
Definition at line 794 of file qtextcursor.cpp.
Referenced by blockFormat(), QTextCursor::mergeBlockFormat(), and QTextCursor::setBlockFormat().
void QTextCursorPrivate::setCharFormat | ( | const QTextCharFormat & | format, |
QTextDocumentPrivate::FormatChangeMode | changeMode | ||
) |
Definition at line 837 of file qtextcursor.cpp.
Referenced by blockFormat(), QTextCursor::mergeCharFormat(), and QTextCursor::setCharFormat().
|
inline |
Definition at line 78 of file qtextcursor_p.h.
Referenced by aboutToRemoveCell(), QTextDocumentPrivate::clear(), QTextCursor::insertTable(), movePosition(), QTextCursor::movePosition(), and QTextCursor::setPosition().
void QTextCursorPrivate::setX | ( | ) |
Definition at line 133 of file qtextcursor.cpp.
Referenced by QTextCursor::deleteChar(), QTextCursor::deletePreviousChar(), QTextCursor::insertBlock(), QTextCursor::insertText(), movePosition(), QTextCursor::QTextCursor(), QTextCursor::removeSelectedText(), setPosition(), and QTextCursor::setPosition().
int QTextCursorPrivate::adjusted_anchor |
Definition at line 113 of file qtextcursor_p.h.
Referenced by aboutToRemoveCell(), adjustCursor(), adjustPosition(), QTextDocumentPrivate::clear(), QTextCursor::clearSelection(), complexSelectionTable(), QTextCursor::deleteChar(), QTextCursor::deletePreviousChar(), QTextCursor::insertTable(), movePosition(), QTextCursor::QTextCursor(), QTextCursorPrivate(), remove(), selectedTableCells(), QTextCursor::selectionEnd(), QTextCursor::selectionStart(), setBlockCharFormat(), setBlockFormat(), setCharFormat(), and QTextCursor::setPosition().
int QTextCursorPrivate::anchor |
Definition at line 112 of file qtextcursor_p.h.
Referenced by aboutToRemoveCell(), adjustCursor(), adjustPosition(), QTextCursor::anchor(), QTextDocumentPrivate::clear(), QTextCursor::clearSelection(), complexSelectionTable(), QTextCursor::deleteChar(), QTextCursor::deletePreviousChar(), QTextCursor::hasSelection(), QTextCursor::insertTable(), QTextCursor::insertText(), QTextCursor::mergeCharFormat(), movePosition(), QTextCursor::movePosition(), QTextCursor::QTextCursor(), QTextCursorPrivate(), remove(), QTextCursor::removeSelectedText(), selectedTableCells(), QTextCursor::selectedTableCells(), QTextCursor::selectedText(), setCharFormat(), QTextCursor::setCharFormat(), and QTextCursor::setPosition().
uint QTextCursorPrivate::changed |
Definition at line 117 of file qtextcursor_p.h.
Referenced by QTextDocumentPrivate::adjustDocumentChangesAndCursors(), QTextDocumentPrivate::finishEdit(), QTextCursorPrivate(), and QTextDocumentPrivate::remove().
int QTextCursorPrivate::currentCharFormat |
Definition at line 114 of file qtextcursor_p.h.
Referenced by adjustCursor(), adjustPosition(), QTextCursor::charFormat(), QTextDocumentPrivate::clear(), QTextCursor::clearSelection(), insertBlock(), QTextCursor::mergeCharFormat(), movePosition(), QTextCursorPrivate(), remove(), QTextCursor::setCharFormat(), and setPosition().
uint QTextCursorPrivate::keepPositionOnInsert |
Definition at line 116 of file qtextcursor_p.h.
Referenced by adjustPosition(), QTextCursor::keepPositionOnInsert(), QTextCursorPrivate(), and QTextCursor::setKeepPositionOnInsert().
int QTextCursorPrivate::position |
Definition at line 111 of file qtextcursor_p.h.
Referenced by aboutToRemoveCell(), adjustCursor(), adjustPosition(), QTextCursor::atBlockEnd(), QTextCursor::atBlockStart(), QTextCursor::atEnd(), QTextCursor::atStart(), QTextCursor::beginEditBlock(), block(), QTextCursor::charFormat(), QTextCursor::clearSelection(), QTextCursor::columnNumber(), complexSelectionTable(), QTextCursor::currentFrame(), QTextCursor::currentTable(), QTextCursor::deleteChar(), QTextCursor::deletePreviousChar(), QTextCursor::hasSelection(), insertBlock(), QTextCursor::insertImage(), QTextCursor::insertTable(), QTextCursor::insertText(), QTextCursor::mergeCharFormat(), movePosition(), QTextCursor::movePosition(), QTextCursor::operator<(), QTextCursor::operator<=(), QTextCursor::operator==(), QTextCursor::operator>(), QTextCursor::operator>=(), QTextCursor::position(), QTextCursor::positionInBlock(), QTextCursor::QTextCursor(), QTextCursorPrivate(), remove(), QTextCursor::removeSelectedText(), selectedTableCells(), QTextCursor::selectedTableCells(), QTextCursor::selectedText(), QTextCursor::selectionEnd(), QTextCursor::selectionStart(), setBlockCharFormat(), setBlockFormat(), setCharFormat(), QTextCursor::setCharFormat(), setPosition(), and setX().
QTextDocumentPrivate* QTextCursorPrivate::priv |
Definition at line 109 of file qtextcursor_p.h.
Referenced by aboutToRemoveCell(), adjustCursor(), QTextCursor::anchor(), QTextCursor::atBlockEnd(), QTextCursor::atBlockStart(), QTextCursor::atEnd(), QTextCursor::atStart(), QTextCursor::beginEditBlock(), block(), QTextCursor::block(), QTextCursor::blockCharFormat(), QTextCursor::blockFormat(), blockLayout(), QTextCursor::blockNumber(), canDelete(), QTextCursor::charFormat(), clearCells(), QTextCursor::columnNumber(), complexSelectionTable(), QTextCursor::createList(), QTextCursor::currentFrame(), QTextCursor::currentList(), QTextCursor::currentTable(), QTextCursor::deleteChar(), QTextCursor::deletePreviousChar(), QTextCursor::document(), QTextCursor::endEditBlock(), QTextDocumentFragmentPrivate::insert(), insertBlock(), QTextCursor::insertBlock(), QTextCursor::insertFragment(), QTextCursor::insertFrame(), QTextCursor::insertHtml(), QTextCursor::insertImage(), QTextCursor::insertTable(), QTextCursor::insertText(), QTextCursor::isNull(), QTextCursor::joinPreviousEditBlock(), QTextCursor::mergeBlockCharFormat(), QTextCursor::mergeBlockFormat(), QTextCursor::mergeCharFormat(), movePosition(), QTextCursor::movePosition(), QTextCursor::operator<(), QTextCursor::operator<=(), QTextCursor::operator==(), QTextCursor::operator>(), QTextCursor::operator>=(), QTextCursor::position(), QTextCursor::positionInBlock(), QTextCopyHelper::QTextCopyHelper(), QTextCursorPrivate(), QTextDocumentFragmentPrivate::QTextDocumentFragmentPrivate(), remove(), QTextCursor::removeSelectedText(), QTextCursor::select(), selectedTableCells(), QTextCursor::selectedText(), QTextCursor::selectionEnd(), QTextCursor::selectionStart(), setBlockCharFormat(), QTextCursor::setBlockCharFormat(), setBlockFormat(), QTextCursor::setBlockFormat(), setCharFormat(), QTextCursor::setCharFormat(), QTextCursor::setPosition(), setX(), ~QTextCursorPrivate(), and QTextDocumentPrivate::~QTextDocumentPrivate().
uint QTextCursorPrivate::visualNavigation |
Definition at line 115 of file qtextcursor_p.h.
Referenced by QTextCursor::movePosition(), QTextCursorPrivate(), QTextCursor::setVisualNavigation(), and QTextCursor::visualNavigation().
qreal QTextCursorPrivate::x |
Definition at line 110 of file qtextcursor_p.h.
Referenced by aboutToRemoveCell(), movePosition(), QTextCursorPrivate(), QTextCursor::setVerticalMovementX(), setX(), and QTextCursor::verticalMovementX().