![]() |
Qt 6.x
The Qt SDK
|
#include <qtextdocument_p.h>
Public Types | |
enum | FormatChangeMode { MergeFormat , SetFormat , SetFormatAndPreserveObjectIndices } |
typedef QFragmentMap< QTextFragmentData > | FragmentMap |
typedef FragmentMap::ConstIterator | FragmentIterator |
typedef QFragmentMap< QTextBlockData > | BlockMap |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Static Public Member Functions | |
static const QTextBlockData * | block (const QTextBlock &it) |
static const QTextDocumentPrivate * | get (const QTextDocument *document) |
static QTextDocumentPrivate * | get (QTextDocument *document) |
static QTextDocumentPrivate * | get (QTextBlock &block) |
static const QTextDocumentPrivate * | get (const QTextBlock &block) |
static QTextDocumentPrivate * | get (QTextObject *object) |
static const QTextDocumentPrivate * | get (const QTextObject *object) |
![]() | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Friends | |
struct | QTextHtmlParserNode |
class | QTextHtmlExporter |
class | QTextCursor |
Definition at line 129 of file qtextdocument_p.h.
Definition at line 135 of file qtextdocument_p.h.
Definition at line 134 of file qtextdocument_p.h.
Definition at line 133 of file qtextdocument_p.h.
Enumerator | |
---|---|
MergeFormat | |
SetFormat | |
SetFormatAndPreserveObjectIndices |
Definition at line 159 of file qtextdocument_p.h.
QTextDocumentPrivate::QTextDocumentPrivate | ( | ) |
Definition at line 146 of file qtextdocument_p.cpp.
References blockCursorAdjustment, defaultCursorMoveStyle, defaultTextOption, documentMargin, inContentsChange, indentWidth, Qt::LogicalMoveStyle, maximumBlockCount, needsEnsureMaximumBlockCount, QTextOption::setTabStopDistance(), QTextOption::setWrapMode(), and QTextOption::WrapAtWordBoundaryOrAnywhere.
QTextDocumentPrivate::~QTextDocumentPrivate | ( | ) |
Definition at line 256 of file qtextdocument_p.cpp.
References QSet< T >::clear(), clearUndoRedoStacks(), and QTextDocument::RedoStack.
void QTextDocumentPrivate::aboutToRemoveCell | ( | int | cursorFrom, |
int | cursorEnd | ||
) |
This method is called from QTextTable when it is about to remove a table-cell to allow cursors to update their selection.
Definition at line 1713 of file qtextdocument_p.cpp.
References Q_ASSERT.
void QTextDocumentPrivate::addCursor | ( | QTextCursorPrivate * | c | ) |
Definition at line 1422 of file qtextdocument_p.cpp.
References QSet< T >::insert().
Referenced by QTextCursorPrivate::QTextCursorPrivate(), and QTextCursorPrivate::QTextCursorPrivate().
void QTextDocumentPrivate::appendUndoItem | ( | QAbstractUndoItem * | item | ) |
Appends a custom undo item to the undo stack.
Definition at line 1007 of file qtextdocument_p.cpp.
References appendUndoItem(), QTextUndoCommand::Custom, item, and QTextUndoCommand::MoveCursor.
Referenced by appendUndoItem(), changeObjectFormat(), insert(), insertBlock(), move(), setBlockFormat(), and setCharFormat().
|
inline |
Definition at line 184 of file qtextdocument_p.h.
References qMax().
|
inline |
Definition at line 183 of file qtextdocument_p.h.
|
inline |
Definition at line 195 of file qtextdocument_p.h.
Referenced by plainText(), and QTextOdfWriter::writeAll().
|
inline |
Definition at line 172 of file qtextdocument_p.h.
Referenced by QTextCursor::beginEditBlock(), changeObjectFormat(), QTextCursorPrivate::clearCells(), QTextTablePrivate::createTable(), ensureMaximumBlockCount(), QTextDocumentFragmentPrivate::insert(), QTextCursor::insertBlock(), insertBlock(), QTextCursor::insertFragment(), insertFrame(), QTextCursor::insertImage(), QTextCursor::insertText(), joinPreviousEditBlock(), QTextCursorPrivate::remove(), removeFrame(), QTextCursor::removeSelectedText(), QTextCursorPrivate::setBlockCharFormat(), setBlockFormat(), QTextCursorPrivate::setBlockFormat(), QTextCursorPrivate::setCharFormat(), setCharFormat(), and undoRedo().
|
inlinestatic |
Definition at line 210 of file qtextdocument_p.h.
References it.
Referenced by setBlockFormat(), setCharFormat(), and undoRedo().
int QTextDocumentPrivate::blockCharFormatIndex | ( | int | node | ) | const |
Definition at line 1321 of file qtextdocument_p.cpp.
References QFragmentMap< Fragment >::find(), pos, and QFragmentMap< Fragment >::position().
Referenced by QTextCursor::charFormat().
|
inline |
Definition at line 207 of file qtextdocument_p.h.
|
inline |
Definition at line 205 of file qtextdocument_p.h.
Referenced by QTextCursor::charFormat(), and QTextDocumentLayoutPrivate::frameIteratorForTextPosition().
|
inline |
Definition at line 198 of file qtextdocument_p.h.
Referenced by QTextCursorPrivate::movePosition().
|
inline |
Definition at line 199 of file qtextdocument_p.h.
Referenced by QTextCursorPrivate::movePosition().
|
inline |
Definition at line 200 of file qtextdocument_p.h.
References pos.
Referenced by leftCursorPosition(), QTextCursorPrivate::movePosition(), nextCursorPosition(), previousCursorPosition(), rightCursorPosition(), QTextCursorPrivate::setBlockFormat(), setCharFormat(), and undoRedo().
|
inline |
Definition at line 186 of file qtextdocument_p.h.
References text.
Referenced by QTextCursor::deletePreviousChar(), and QTextCursor::selectedText().
|
inline |
Definition at line 296 of file qtextdocument_p.h.
void QTextDocumentPrivate::changeObjectFormat | ( | QTextObject * | group, |
int | format | ||
) |
Definition at line 1371 of file qtextdocument_p.cpp.
References appendUndoItem(), beginEditBlock(), documentChange(), endEditBlock(), QTextUndoCommand::GroupFormatChange, QTextUndoCommand::MoveCursor, and QT_INIT_TEXTUNDOCOMMAND.
Referenced by undoRedo().
void QTextDocumentPrivate::clear | ( | ) |
Definition at line 201 of file qtextdocument_p.cpp.
References QMap< Key, T >::begin(), QString::clear(), QMap< Key, T >::clear(), QSet< T >::clear(), QFragmentMap< Fragment >::clear(), clearUndoRedoStacks(), QAbstractTextDocumentLayout::documentChanged(), emit, QMap< Key, T >::end(), QMap< Key, T >::erase(), inContentsChange, init(), QFragmentMap< Fragment >::length(), QT_CATCH, QT_RETHROW, QT_TRY, title, and QTextDocument::UndoAndRedoStacks.
void QTextDocumentPrivate::clearUndoRedoStacks | ( | QTextDocument::Stacks | stacksToClear, |
bool | emitSignals = false |
||
) |
Definition at line 1071 of file qtextdocument_p.cpp.
References QList< T >::at(), QList< T >::clear(), QTextUndoCommand::Custom, QTextUndoCommand::custom, emitRedoAvailable(), emitUndoAvailable(), i, QList< T >::isEmpty(), QTextDocument::RedoStack, QList< T >::remove(), QList< T >::resize(), QList< T >::size(), QTextDocument::UndoAndRedoStacks, and QTextDocument::UndoStack.
Referenced by ~QTextDocumentPrivate(), clear(), and enableUndoRedo().
QTextObject * QTextDocumentPrivate::createObject | ( | const QTextFormat & | newFormat, |
int | objectIndex = -1 |
||
) |
Definition at line 1603 of file qtextdocument_p.cpp.
References QTextDocument::createObject(), document(), and QTextObject::objectIndex().
Referenced by QTextCursor::createList(), QTextTablePrivate::createTable(), insertFrame(), QTextCursor::insertImage(), objectForIndex(), and rootFrame().
|
inline |
Definition at line 222 of file qtextdocument_p.h.
void QTextDocumentPrivate::deleteObject | ( | QTextObject * | object | ) |
Definition at line 1615 of file qtextdocument_p.cpp.
References QMap< Key, T >::remove().
Referenced by QTextBlockGroup::blockRemoved(), and QTextFramePrivate::remove_me().
|
inline |
Definition at line 261 of file qtextdocument_p.h.
Referenced by createObject(), QTextEngine::docLayout(), QTextCursor::document(), endEditBlock(), QTextCursor::insertHtml(), and QTextCursor::insertImage().
|
inline |
Definition at line 262 of file qtextdocument_p.h.
void QTextDocumentPrivate::documentChange | ( | int | from, |
int | length | ||
) |
Definition at line 1227 of file qtextdocument_p.cpp.
References length(), qMax(), and qMin().
Referenced by changeObjectFormat(), QTextBlockGroupPrivate::markBlocksDirty(), setBlockFormat(), setCharFormat(), QTextLayout::setFormats(), QTextLayout::setPreeditArea(), and undoRedo().
void QTextDocumentPrivate::emitRedoAvailable | ( | bool | available | ) |
Definition at line 1121 of file qtextdocument_p.cpp.
References emit.
Referenced by clearUndoRedoStacks(), enableUndoRedo(), and undoRedo().
void QTextDocumentPrivate::emitUndoAvailable | ( | bool | available | ) |
Definition at line 1112 of file qtextdocument_p.cpp.
References emit.
Referenced by clearUndoRedoStacks(), enableUndoRedo(), and undoRedo().
void QTextDocumentPrivate::enableUndoRedo | ( | bool | enable | ) |
Definition at line 1130 of file qtextdocument_p.cpp.
References clearUndoRedoStacks(), emitRedoAvailable(), emitUndoAvailable(), maximumBlockCount, and QTextDocument::RedoStack.
|
inline |
Definition at line 196 of file qtextdocument_p.h.
Referenced by plainText(), and setBlockFormat().
void QTextDocumentPrivate::endEditBlock | ( | ) |
Definition at line 1155 of file qtextdocument_p.cpp.
References QList< T >::at(), QTextUndoCommand::block_end, QTextUndoCommand::block_part, document(), emit, finishEdit(), Q_ASSERT, and QTextDocument::undoCommandAdded().
Referenced by changeObjectFormat(), QTextCursorPrivate::clearCells(), QTextTablePrivate::createTable(), QTextCursor::endEditBlock(), ensureMaximumBlockCount(), QTextDocumentFragmentPrivate::insert(), QTextCursor::insertBlock(), insertBlock(), QTextCursor::insertFragment(), insertFrame(), QTextCursor::insertImage(), QTextCursor::insertText(), QTextCursorPrivate::remove(), removeFrame(), QTextCursor::removeSelectedText(), QTextCursorPrivate::setBlockCharFormat(), setBlockFormat(), QTextCursorPrivate::setBlockFormat(), QTextCursorPrivate::setCharFormat(), setCharFormat(), and undoRedo().
bool QTextDocumentPrivate::ensureMaximumBlockCount | ( | ) |
Definition at line 1685 of file qtextdocument_p.cpp.
References beginEditBlock(), cursor, endEditBlock(), QTextCursor::KeepAnchor, maximumBlockCount, QTextCursor::NextBlock, and QFragmentMap< Fragment >::numNodes().
Referenced by finishEdit().
|
inline |
Definition at line 194 of file qtextdocument_p.h.
References pos.
Referenced by QPlainTextEdit::anchorAt(), QTextCursorPrivate::canDelete(), QTextCursor::charFormat(), QTextCursor::deletePreviousChar(), QAbstractTextDocumentLayout::format(), QAbstractTextDocumentLayout::formatAt(), QAbstractTextDocumentLayout::formatIndex(), insertFrame(), move(), and undoRedo().
void QTextDocumentPrivate::finishEdit | ( | ) |
Definition at line 1175 of file qtextdocument_p.cpp.
References QList< T >::append(), cursor, QAbstractTextDocumentLayout::documentChanged(), emit, ensureMaximumBlockCount(), inContentsChange, needsEnsureMaximumBlockCount, QFragmentMap< Fragment >::numNodes(), and QTextCursor.
Referenced by endEditBlock(), insert(), move(), and remove().
|
inline |
Definition at line 190 of file qtextdocument_p.h.
Referenced by QPlainTextEdit::anchorAt(), QTextCursorPrivate::canDelete(), QTextCursor::charFormat(), QTextTablePrivate::createTable(), QAbstractTextDocumentLayout::format(), QAbstractTextDocumentLayout::formatAt(), QTextEngine::formatCollection(), QTextCursorPrivate::insertBlock(), QTextCursor::insertImage(), QTextCursor::insertText(), QTextCursor::mergeCharFormat(), and QTextCursor::setCharFormat().
|
inline |
Definition at line 191 of file qtextdocument_p.h.
|
inline |
Definition at line 208 of file qtextdocument_p.h.
|
inline |
Definition at line 206 of file qtextdocument_p.h.
Referenced by QTextTablePrivate::findCellIndex(), and QTextTablePrivate::fragmentAdded().
QTextFrame * QTextDocumentPrivate::frameAt | ( | int | pos | ) | const |
Definition at line 1432 of file qtextdocument_p.cpp.
References findChildFrame(), pos, and rootFrame().
Referenced by QTextCursorPrivate::aboutToRemoveCell(), QTextCursorPrivate::adjustCursor(), QTextCursorPrivate::complexSelectionTable(), QTextCursor::currentFrame(), QTextCursor::currentTable(), QTextDocumentLayoutPrivate::frameIteratorForTextPosition(), insertFrame(), move(), QTextCursorPrivate::movePosition(), and QTextCursorPrivate::selectedTableCells().
|
inlinestatic |
Definition at line 281 of file qtextdocument_p.h.
|
inlinestatic |
Definition at line 266 of file qtextdocument_p.h.
Referenced by QTextDocumentFragmentPrivate::QTextDocumentFragmentPrivate(), QTextList::add(), QPlainTextEdit::anchorAt(), QTextHtmlParserNode::applyForegroundImage(), QTextFrame::begin(), QTextTableCell::begin(), QTextBlockGroup::blockRemoved(), QTextEngine::calculateTabWidth(), QTextFrame::iterator::currentBlock(), QTextEngine::docLayout(), QTextFrame::end(), QTextTableCell::end(), findInBlock(), QTextTableCell::firstPosition(), QTextEngine::font(), QTextEngine::fontEngine(), QTextTableCell::format(), QAbstractTextDocumentLayout::format(), QAbstractTextDocumentLayout::formatAt(), QTextEngine::formatCollection(), QTextEngine::formatIndex(), QAbstractTextDocumentLayout::formatIndex(), QTextEngine::hasFormats(), QTextCursor::insertFragment(), QTextDocumentFragment::isEmpty(), QTextEngine::itemize(), QTextTableCell::lastPosition(), QTextDocumentLayout::layoutStatus(), QTextFrame::iterator::operator++(), QTextFrame::iterator::operator--(), QSyntaxHighlighterPrivate::reformatBlocks(), QTextList::remove(), QTextFramePrivate::remove_me(), QScriptLine::setDefaultHeight(), QAbstractTextDocumentLayoutPrivate::setDocument(), QTextTableCell::setFormat(), QTextLayout::setFormats(), QTextLayout::setPreeditArea(), QTextEngine::shape(), QTextTableCell::tableCellFormatIndex(), QTextHtmlExporter::toHtml(), QTextEngine::validate(), QTextEngine::visualCursorMovement(), and QTextOdfWriter::writeAll().
|
inlinestatic |
Definition at line 291 of file qtextdocument_p.h.
References QObjectPrivate::get().
|
inlinestatic |
Definition at line 276 of file qtextdocument_p.h.
|
inlinestatic |
Definition at line 271 of file qtextdocument_p.h.
|
inlinestatic |
Definition at line 286 of file qtextdocument_p.h.
References QObjectPrivate::get().
void QTextDocumentPrivate::init | ( | ) |
Definition at line 186 of file qtextdocument_p.cpp.
References insertBlock().
Referenced by clear().
Definition at line 446 of file qtextdocument_p.cpp.
References QString::append(), insert(), noBlockInString(), pos, Q_ASSERT, QString::size(), and str.
Referenced by insert(), QTextCursor::insertImage(), and QTextCursor::insertText().
void QTextDocumentPrivate::insert | ( | int | pos, |
int | strPos, | ||
int | strLength, | ||
int | format | ||
) |
Definition at line 423 of file qtextdocument_p.cpp.
References appendUndoItem(), B, QFragmentMap< Fragment >::findNode(), finishEdit(), QFragmentMap< Fragment >::fragment(), QTextUndoCommand::Inserted, QFragmentMap< Fragment >::length(), QTextUndoCommand::MoveCursor, pos, Q_ASSERT, QT_INIT_TEXTUNDOCOMMAND, and QList< T >::size().
int QTextDocumentPrivate::insertBlock | ( | int | pos, |
int | blockFormat, | ||
int | charFormat, | ||
QTextUndoCommand::Operation | op = QTextUndoCommand::MoveCursor |
||
) |
Definition at line 418 of file qtextdocument_p.cpp.
References insertBlock(), QChar::ParagraphSeparator, and pos.
Referenced by QTextTablePrivate::createTable(), init(), QTextCursorPrivate::insertBlock(), insertBlock(), and insertFrame().
int QTextDocumentPrivate::insertBlock | ( | QChar | blockSeparator, |
int | pos, | ||
int | blockFormat, | ||
int | charFormat, | ||
QTextUndoCommand::Operation | op = QTextUndoCommand::MoveCursor |
||
) |
Definition at line 366 of file qtextdocument_p.cpp.
References QString::append(), appendUndoItem(), B, beginEditBlock(), QTextUndoCommand::BlockInserted, QTextUndoCommand::BlockRemoved, endEditBlock(), QFragmentMap< Fragment >::findNode(), QFragmentMap< Fragment >::fragment(), isValidBlockSeparator(), QFragmentMap< Fragment >::length(), needsEnsureMaximumBlockCount, QFragmentMap< Fragment >::next(), pos, QFragmentMap< Fragment >::position(), Q_ASSERT, QT_INIT_TEXTUNDOCOMMAND, QTextBlockData::revision, QString::size(), QList< T >::size(), and QFragmentMap< Fragment >::size().
QTextFrame * QTextDocumentPrivate::insertFrame | ( | int | start, |
int | end, | ||
const QTextFrameFormat & | format | ||
) |
Definition at line 1526 of file qtextdocument_p.cpp.
References beginEditBlock(), createObject(), endEditBlock(), find(), frame, frameAt(), insertBlock(), QTextUndoCommand::KeepCursor, length(), QTextUndoCommand::MoveCursor, Q_ASSERT, QTextBeginningOfFrame, QTextEndOfFrame, and QTextFormat::setObjectIndex().
Referenced by QTextCursor::insertFrame().
|
inline |
Definition at line 176 of file qtextdocument_p.h.
Referenced by QTextCursorPrivate::movePosition(), and QTextCursorPrivate::setX().
|
inline |
Definition at line 220 of file qtextdocument_p.h.
|
inline |
Definition at line 181 of file qtextdocument_p.h.
Referenced by undoRedo().
|
inline |
Definition at line 180 of file qtextdocument_p.h.
Referenced by undoRedo().
|
inline |
Definition at line 178 of file qtextdocument_p.h.
void QTextDocumentPrivate::joinPreviousEditBlock | ( | ) |
Definition at line 1147 of file qtextdocument_p.cpp.
References beginEditBlock().
Referenced by QTextCursor::joinPreviousEditBlock().
|
inline |
Definition at line 192 of file qtextdocument_p.h.
Referenced by QTextCursorPrivate::blockLayout(), QTextEngine::calculateTabWidth(), QTextEngine::font(), QTextEngine::fontEngine(), QTextEngine::itemize(), QScriptLine::setDefaultHeight(), and setLayout().
int QTextDocumentPrivate::leftCursorPosition | ( | int | position | ) | const |
Definition at line 1357 of file qtextdocument_p.cpp.
References blocksFind(), it, and position().
Referenced by QTextCursorPrivate::movePosition().
|
inline |
Definition at line 188 of file qtextdocument_p.h.
Referenced by QTextCursor::atEnd(), documentChange(), insertFrame(), QTextDocumentFragment::isEmpty(), QTextDocumentLayoutPrivate::layoutFlow(), QTextDocumentLayout::layoutStatus(), QTextCursorPrivate::movePosition(), nextCursorPosition(), plainText(), QSyntaxHighlighterPrivate::reformatBlocks(), setCharFormat(), setLayout(), QTextCursor::setPosition(), and undoRedo().
void QTextDocumentPrivate::mergeCachedResources | ( | const QTextDocumentPrivate * | priv | ) |
Definition at line 3211 of file qtextdocument.cpp.
References QMap< Key, T >::insert(), and priv().
Referenced by QTextCursor::insertFragment().
void QTextDocumentPrivate::move | ( | int | from, |
int | to, | ||
int | length, | ||
QTextUndoCommand::Operation | op = QTextUndoCommand::MoveCursor |
||
) |
Definition at line 548 of file qtextdocument_p.cpp.
References appendUndoItem(), QString::at(), B, QTextUndoCommand::BlockAdded, blockCursorAdjustment, QTextUndoCommand::BlockDeleted, QTextUndoCommand::BlockInserted, QTextUndoCommand::BlockRemoved, find(), QFragmentMap< Fragment >::findNode(), finishEdit(), QFragmentMap< Fragment >::fragment(), frameAt(), QTextUndoCommand::Inserted, isAncestorFrame(), isValidBlockSeparator(), QFragmentMap< Fragment >::length(), QString::mid(), QFragmentMap< Fragment >::next(), noBlockInString(), QTextFrame::parentFrame(), pos, QFragmentMap< Fragment >::position(), QFragmentMap< Fragment >::previous(), Q_ASSERT, QT_INIT_TEXTUNDOCOMMAND, QTextBeginningOfFrame, QTextEndOfFrame, QTextUndoCommand::Removed, QFragmentMap< Fragment >::size(), and X.
Referenced by remove().
int QTextDocumentPrivate::nextCursorPosition | ( | int | position, |
QTextLayout::CursorMode | mode | ||
) | const |
Definition at line 1330 of file qtextdocument_p.cpp.
References blocksFind(), it, length(), and position().
Referenced by QTextCursor::deleteChar(), and QTextCursorPrivate::movePosition().
|
inline |
Definition at line 203 of file qtextdocument_p.h.
QTextObject * QTextDocumentPrivate::objectForFormat | ( | const QTextFormat & | f | ) | const |
Definition at line 1598 of file qtextdocument_p.cpp.
References objectForIndex().
QTextObject * QTextDocumentPrivate::objectForFormat | ( | int | formatIndex | ) | const |
Definition at line 1592 of file qtextdocument_p.cpp.
References QTextObject::format(), objectForIndex(), and QTextFormat::objectIndex().
Referenced by QTextCursor::currentList(), setBlockFormat(), and undoRedo().
QTextObject * QTextDocumentPrivate::objectForIndex | ( | int | objectIndex | ) | const |
Definition at line 1578 of file qtextdocument_p.cpp.
References createObject(), fmt, and QMap< Key, T >::value().
Referenced by objectForFormat(), objectForFormat(), and undoRedo().
QString QTextDocumentPrivate::plainText | ( | ) | const |
Definition at line 1305 of file qtextdocument_p.cpp.
References begin(), end(), it, length(), and QString::unicode().
int QTextDocumentPrivate::previousCursorPosition | ( | int | position, |
QTextLayout::CursorMode | mode | ||
) | const |
Definition at line 1344 of file qtextdocument_p.cpp.
References blocksFind(), it, and position().
Referenced by QTextCursorPrivate::movePosition().
|
inline |
Definition at line 170 of file qtextdocument_p.h.
void QTextDocumentPrivate::remove | ( | int | pos, |
int | length, | ||
QTextUndoCommand::Operation | op = QTextUndoCommand::MoveCursor |
||
) |
Definition at line 642 of file qtextdocument_p.cpp.
References blockCursorAdjustment, QTextCursorPrivate::CursorMoved, finishEdit(), move(), and pos.
Referenced by QTextCursorPrivate::clearCells(), QTextCursorPrivate::remove(), removeFrame(), and undoRedo().
void QTextDocumentPrivate::removeCursor | ( | QTextCursorPrivate * | c | ) |
Definition at line 1427 of file qtextdocument_p.cpp.
References QSet< T >::remove().
Referenced by QTextCursorPrivate::~QTextCursorPrivate().
void QTextDocumentPrivate::removeFrame | ( | QTextFrame * | frame | ) |
Definition at line 1559 of file qtextdocument_p.cpp.
References beginEditBlock(), endEditBlock(), frame, QObjectData::parent, Q_ASSERT, and remove().
int QTextDocumentPrivate::rightCursorPosition | ( | int | position | ) | const |
Definition at line 1364 of file qtextdocument_p.cpp.
References blocksFind(), it, and position().
Referenced by QTextCursorPrivate::movePosition().
QTextFrame * QTextDocumentPrivate::rootFrame | ( | ) | const |
Definition at line 1412 of file qtextdocument_p.cpp.
References createObject(), documentMargin, and QTextFrameFormat::setMargin().
Referenced by QTextDocumentLayoutPrivate::drawFrame(), frameAt(), QTextDocumentLayoutPrivate::frameIteratorForTextPosition(), and QTextDocumentLayoutPrivate::hitTest().
void QTextDocumentPrivate::setBlockFormat | ( | const QTextBlock & | from, |
const QTextBlock & | to, | ||
const QTextBlockFormat & | newFormat, | ||
FormatChangeMode | mode = SetFormat |
||
) |
Definition at line 749 of file qtextdocument_p.cpp.
References appendUndoItem(), beginEditBlock(), block(), QTextUndoCommand::BlockFormatChanged, QTextBlockGroup::blockRemoved(), documentChange(), end(), endEditBlock(), QTextBlockData::format, QTextBlockData::invalidate(), QTextBlockFormat::isValid(), it, QTextBlock::length(), MergeFormat, QTextUndoCommand::MoveCursor, QTextBlock::next(), objectForFormat(), QTextBlock::position(), Q_ASSERT, QT_INIT_TEXTUNDOCOMMAND, SetFormat, and SetFormatAndPreserveObjectIndices.
Referenced by QTextCursorPrivate::setBlockFormat().
void QTextDocumentPrivate::setCharFormat | ( | int | pos, |
int | length, | ||
const QTextCharFormat & | newFormat, | ||
FormatChangeMode | mode = SetFormat |
||
) |
Definition at line 657 of file qtextdocument_p.cpp.
References appendUndoItem(), beginEditBlock(), block(), blocksFind(), QTextFormat::CharFormat, QTextUndoCommand::CharFormatChanged, QTextFormat::clearProperty(), documentChange(), endEditBlock(), QFragmentMap< Fragment >::find(), QFragmentMap< Fragment >::findNode(), QTextFragmentData::format, QTextBlockData::invalidate(), QTextCharFormat::isValid(), QTextBlock::isValid(), it, QFragmentMap< QTextFragmentData >::Iterator, length(), QTextFormat::merge(), MergeFormat, QTextUndoCommand::MoveCursor, QTextBlock::next(), QTextFormat::ObjectIndex, pos, Q_ASSERT, qMin(), QT_INIT_TEXTUNDOCOMMAND, SetFormat, SetFormatAndPreserveObjectIndices, QTextFormat::setObjectIndex(), and QFragment< N >::size_array.
Referenced by QTextCursorPrivate::setCharFormat(), and undoRedo().
Definition at line 223 of file qtextdocument_p.h.
void QTextDocumentPrivate::setLayout | ( | QAbstractTextDocumentLayout * | layout | ) |
Definition at line 266 of file qtextdocument_p.cpp.
References QFragmentMap< Fragment >::begin(), QAbstractTextDocumentLayout::documentChanged(), emit, inContentsChange, it, QFragmentMap< QTextBlockData >::Iterator, layout(), and length().
void QTextDocumentPrivate::setModified | ( | bool | m | ) |
Definition at line 1670 of file qtextdocument_p.cpp.
References emit.
|
inline |
Definition at line 169 of file qtextdocument_p.h.
Referenced by undoRedo().
int QTextDocumentPrivate::undoRedo | ( | bool | undo | ) |
Definition at line 847 of file qtextdocument_p.cpp.
References QList< T >::at(), B, beginEditBlock(), block(), QTextUndoCommand::block_end, QTextUndoCommand::block_part, QTextUndoCommand::BlockAdded, QTextUndoCommand::BlockDeleted, QTextUndoCommand::BlockFormatChanged, QTextUndoCommand::BlockInserted, QTextUndoCommand::BlockRemoved, QTextBlockGroup::blockRemoved(), blocksFind(), changeObjectFormat(), QTextUndoCommand::CharFormatChanged, QTextUndoCommand::CursorMoved, QTextUndoCommand::Custom, documentChange(), emitRedoAvailable(), emitUndoAvailable(), endEditBlock(), find(), QFragmentMap< Fragment >::findNode(), QTextBlockData::format, QFragmentMap< Fragment >::fragment(), QTextUndoCommand::GroupFormatChange, QTextUndoCommand::Inserted, isRedoAvailable(), isUndoAvailable(), it, length(), objectForFormat(), objectForIndex(), PMDEBUG, Q_ASSERT, qMin(), remove(), QTextUndoCommand::Removed, setCharFormat(), QList< T >::size(), and undo().
|
friend |
Definition at line 365 of file qtextdocument_p.h.
Referenced by finishEdit().
|
friend |
Definition at line 364 of file qtextdocument_p.h.
|
friend |
Definition at line 363 of file qtextdocument_p.h.
QUrl QTextDocumentPrivate::baseUrl |
Definition at line 359 of file qtextdocument_p.h.
uint QTextDocumentPrivate::blockCursorAdjustment |
Definition at line 352 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate(), move(), and remove().
QString QTextDocumentPrivate::cssMedia |
Definition at line 356 of file qtextdocument_p.h.
Qt::CursorMoveStyle QTextDocumentPrivate::defaultCursorMoveStyle |
Definition at line 346 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate(), QTextCursorPrivate::movePosition(), and QTextEngine::visualCursorMovement().
QTextOption QTextDocumentPrivate::defaultTextOption |
Definition at line 345 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate(), QTextDocumentLayoutPrivate::layoutBlock(), and QTextDocumentLayoutPrivate::layoutTable().
qreal QTextDocumentPrivate::documentMargin |
Definition at line 358 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate(), and rootFrame().
bool QTextDocumentPrivate::inContentsChange |
Definition at line 343 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate(), clear(), finishEdit(), setLayout(), and QTextCursorPrivate::setX().
qreal QTextDocumentPrivate::indentWidth |
Definition at line 357 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate().
bool QTextDocumentPrivate::layoutEnabled = true |
Definition at line 344 of file qtextdocument_p.h.
int QTextDocumentPrivate::maximumBlockCount |
Definition at line 350 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate(), enableUndoRedo(), and ensureMaximumBlockCount().
uint QTextDocumentPrivate::needsEnsureMaximumBlockCount |
Definition at line 351 of file qtextdocument_p.h.
Referenced by QTextDocumentPrivate(), finishEdit(), and insertBlock().
QSizeF QTextDocumentPrivate::pageSize |
Definition at line 353 of file qtextdocument_p.h.
QCss::StyleSheet QTextDocumentPrivate::parsedDefaultStyleSheet |
Definition at line 348 of file qtextdocument_p.h.
QString QTextDocumentPrivate::title |
Definition at line 354 of file qtextdocument_p.h.
Referenced by clear().
QString QTextDocumentPrivate::url |
Definition at line 355 of file qtextdocument_p.h.