Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qtextdocument_p.h>
Public Types | |
enum | FormatChangeMode { MergeFormat , SetFormat , SetFormatAndPreserveObjectIndices } |
typedef QFragmentMap< QTextFragmentData > | FragmentMap |
typedef FragmentMap::ConstIterator | FragmentIterator |
typedef QFragmentMap< QTextBlockData > | BlockMap |
Public Types inherited from QObjectPrivate | |
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 Public Member Functions inherited from QObjectPrivate | |
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.
FragmentMap::ConstIterator QTextDocumentPrivate::FragmentIterator |
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 161 of file qtextdocument_p.h.
QTextDocumentPrivate::QTextDocumentPrivate | ( | ) |
Definition at line 148 of file qtextdocument_p.cpp.
QTextDocumentPrivate::~QTextDocumentPrivate | ( | ) |
Definition at line 258 of file qtextdocument_p.cpp.
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 1717 of file qtextdocument_p.cpp.
void QTextDocumentPrivate::addCursor | ( | QTextCursorPrivate * | c | ) |
Definition at line 1426 of file qtextdocument_p.cpp.
void QTextDocumentPrivate::appendUndoItem | ( | QAbstractUndoItem * | item | ) |
Appends a custom undo item to the undo stack.
Definition at line 1011 of file qtextdocument_p.cpp.
|
inline |
Definition at line 186 of file qtextdocument_p.h.
|
inline |
Definition at line 185 of file qtextdocument_p.h.
|
inline |
Definition at line 197 of file qtextdocument_p.h.
|
inline |
Definition at line 174 of file qtextdocument_p.h.
|
inlinestatic |
Definition at line 212 of file qtextdocument_p.h.
int QTextDocumentPrivate::blockCharFormatIndex | ( | int | node | ) | const |
Definition at line 1325 of file qtextdocument_p.cpp.
|
inline |
Definition at line 209 of file qtextdocument_p.h.
|
inline |
Definition at line 207 of file qtextdocument_p.h.
|
inline |
Definition at line 200 of file qtextdocument_p.h.
|
inline |
Definition at line 201 of file qtextdocument_p.h.
|
inline |
Definition at line 202 of file qtextdocument_p.h.
|
inline |
Definition at line 188 of file qtextdocument_p.h.
Referenced by testing.tools.encode_pdf_filter._Ascii85DecodePdfStream::close(), testing.tools.encode_pdf_filter._FlateDecodePdfStream::close(), testing.tools.encode_pdf_filter._PdfStream::close(), testing.tools.encode_pdf_filter._FlateDecodePdfStream::flush(), testing.tools.encode_pdf_filter._PdfStream::flush(), testing.tools.encode_pdf_filter._SinkPdfStream::getbuffer(), testing.tools.encode_pdf_filter._FlateDecodePdfStream::write(), testing.tools.encode_pdf_filter._PdfStream::write(), and testing.tools.encode_pdf_filter._PngIdatPdfStream::write().
|
inline |
Definition at line 298 of file qtextdocument_p.h.
void QTextDocumentPrivate::changeObjectFormat | ( | QTextObject * | group, |
int | format ) |
Definition at line 1375 of file qtextdocument_p.cpp.
void QTextDocumentPrivate::clear | ( | ) |
Definition at line 203 of file qtextdocument_p.cpp.
void QTextDocumentPrivate::clearUndoRedoStacks | ( | QTextDocument::Stacks | stacksToClear, |
bool | emitSignals = false ) |
Definition at line 1075 of file qtextdocument_p.cpp.
QTextObject * QTextDocumentPrivate::createObject | ( | const QTextFormat & | newFormat, |
int | objectIndex = -1 ) |
Definition at line 1607 of file qtextdocument_p.cpp.
|
inline |
Definition at line 224 of file qtextdocument_p.h.
void QTextDocumentPrivate::deleteObject | ( | QTextObject * | object | ) |
Definition at line 1619 of file qtextdocument_p.cpp.
|
inline |
Definition at line 263 of file qtextdocument_p.h.
|
inline |
Definition at line 264 of file qtextdocument_p.h.
void QTextDocumentPrivate::documentChange | ( | int | from, |
int | length ) |
Definition at line 1231 of file qtextdocument_p.cpp.
void QTextDocumentPrivate::emitRedoAvailable | ( | bool | available | ) |
Definition at line 1125 of file qtextdocument_p.cpp.
void QTextDocumentPrivate::emitUndoAvailable | ( | bool | available | ) |
Definition at line 1116 of file qtextdocument_p.cpp.
void QTextDocumentPrivate::enableUndoRedo | ( | bool | enable | ) |
Definition at line 1134 of file qtextdocument_p.cpp.
|
inline |
Definition at line 198 of file qtextdocument_p.h.
void QTextDocumentPrivate::endEditBlock | ( | ) |
Definition at line 1159 of file qtextdocument_p.cpp.
bool QTextDocumentPrivate::ensureMaximumBlockCount | ( | ) |
Definition at line 1689 of file qtextdocument_p.cpp.
|
inline |
Definition at line 196 of file qtextdocument_p.h.
void QTextDocumentPrivate::finishEdit | ( | ) |
Definition at line 1179 of file qtextdocument_p.cpp.
|
inline |
Definition at line 192 of file qtextdocument_p.h.
|
inline |
Definition at line 193 of file qtextdocument_p.h.
|
inline |
Definition at line 210 of file qtextdocument_p.h.
|
inline |
Definition at line 208 of file qtextdocument_p.h.
QTextFrame * QTextDocumentPrivate::frameAt | ( | int | pos | ) | const |
Definition at line 1436 of file qtextdocument_p.cpp.
|
inlinestatic |
Definition at line 283 of file qtextdocument_p.h.
|
inlinestatic |
Definition at line 268 of file qtextdocument_p.h.
|
inlinestatic |
Definition at line 293 of file qtextdocument_p.h.
|
inlinestatic |
Definition at line 278 of file qtextdocument_p.h.
|
inlinestatic |
Definition at line 273 of file qtextdocument_p.h.
|
inlinestatic |
Definition at line 288 of file qtextdocument_p.h.
void QTextDocumentPrivate::init | ( | ) |
Definition at line 188 of file qtextdocument_p.cpp.
void QTextDocumentPrivate::insert | ( | int | pos, |
int | strPos, | ||
int | strLength, | ||
int | format ) |
Definition at line 427 of file qtextdocument_p.cpp.
Definition at line 146 of file qtextdocument_p.h.
void QTextDocumentPrivate::insert | ( | int | pos, |
QStringView | text, | ||
int | format ) |
Definition at line 450 of file qtextdocument_p.cpp.
int QTextDocumentPrivate::insertBlock | ( | int | pos, |
int | blockFormat, | ||
int | charFormat, | ||
QTextUndoCommand::Operation | op = QTextUndoCommand::MoveCursor ) |
Definition at line 422 of file qtextdocument_p.cpp.
int QTextDocumentPrivate::insertBlock | ( | QChar | blockSeparator, |
int | pos, | ||
int | blockFormat, | ||
int | charFormat, | ||
QTextUndoCommand::Operation | op = QTextUndoCommand::MoveCursor ) |
Definition at line 370 of file qtextdocument_p.cpp.
QTextFrame * QTextDocumentPrivate::insertFrame | ( | int | start, |
int | end, | ||
const QTextFrameFormat & | format ) |
Definition at line 1530 of file qtextdocument_p.cpp.
|
inline |
Definition at line 178 of file qtextdocument_p.h.
|
inline |
Definition at line 222 of file qtextdocument_p.h.
|
inline |
Definition at line 183 of file qtextdocument_p.h.
|
inline |
Definition at line 182 of file qtextdocument_p.h.
|
inline |
Definition at line 180 of file qtextdocument_p.h.
void QTextDocumentPrivate::joinPreviousEditBlock | ( | ) |
Definition at line 1151 of file qtextdocument_p.cpp.
|
inline |
Definition at line 194 of file qtextdocument_p.h.
int QTextDocumentPrivate::leftCursorPosition | ( | int | position | ) | const |
Definition at line 1361 of file qtextdocument_p.cpp.
|
inline |
Definition at line 190 of file qtextdocument_p.h.
Referenced by testing.tools.encode_pdf_filter._PngIdatPdfStream::write().
void QTextDocumentPrivate::mergeCachedResources | ( | const QTextDocumentPrivate * | priv | ) |
Definition at line 3379 of file qtextdocument.cpp.
void QTextDocumentPrivate::move | ( | int | from, |
int | to, | ||
int | length, | ||
QTextUndoCommand::Operation | op = QTextUndoCommand::MoveCursor ) |
Definition at line 552 of file qtextdocument_p.cpp.
int QTextDocumentPrivate::nextCursorPosition | ( | int | position, |
QTextLayout::CursorMode | mode ) const |
Definition at line 1334 of file qtextdocument_p.cpp.
|
inline |
Definition at line 205 of file qtextdocument_p.h.
QTextObject * QTextDocumentPrivate::objectForFormat | ( | const QTextFormat & | f | ) | const |
Definition at line 1602 of file qtextdocument_p.cpp.
QTextObject * QTextDocumentPrivate::objectForFormat | ( | int | formatIndex | ) | const |
Definition at line 1596 of file qtextdocument_p.cpp.
QTextObject * QTextDocumentPrivate::objectForIndex | ( | int | objectIndex | ) | const |
Definition at line 1582 of file qtextdocument_p.cpp.
QString QTextDocumentPrivate::plainText | ( | ) | const |
Definition at line 1309 of file qtextdocument_p.cpp.
int QTextDocumentPrivate::previousCursorPosition | ( | int | position, |
QTextLayout::CursorMode | mode ) const |
Definition at line 1348 of file qtextdocument_p.cpp.
|
inline |
Definition at line 172 of file qtextdocument_p.h.
void QTextDocumentPrivate::remove | ( | int | pos, |
int | length, | ||
QTextUndoCommand::Operation | op = QTextUndoCommand::MoveCursor ) |
Definition at line 646 of file qtextdocument_p.cpp.
void QTextDocumentPrivate::removeCursor | ( | QTextCursorPrivate * | c | ) |
Definition at line 1431 of file qtextdocument_p.cpp.
void QTextDocumentPrivate::removeFrame | ( | QTextFrame * | frame | ) |
Definition at line 1563 of file qtextdocument_p.cpp.
int QTextDocumentPrivate::rightCursorPosition | ( | int | position | ) | const |
Definition at line 1368 of file qtextdocument_p.cpp.
QTextFrame * QTextDocumentPrivate::rootFrame | ( | ) | const |
Definition at line 1416 of file qtextdocument_p.cpp.
void QTextDocumentPrivate::setBlockFormat | ( | const QTextBlock & | from, |
const QTextBlock & | to, | ||
const QTextBlockFormat & | newFormat, | ||
FormatChangeMode | mode = SetFormat ) |
Definition at line 753 of file qtextdocument_p.cpp.
void QTextDocumentPrivate::setCharFormat | ( | int | pos, |
int | length, | ||
const QTextCharFormat & | newFormat, | ||
FormatChangeMode | mode = SetFormat ) |
Definition at line 661 of file qtextdocument_p.cpp.
Definition at line 225 of file qtextdocument_p.h.
void QTextDocumentPrivate::setLayout | ( | QAbstractTextDocumentLayout * | layout | ) |
Definition at line 268 of file qtextdocument_p.cpp.
void QTextDocumentPrivate::setModified | ( | bool | m | ) |
Definition at line 1674 of file qtextdocument_p.cpp.
|
inline |
Definition at line 171 of file qtextdocument_p.h.
int QTextDocumentPrivate::undoRedo | ( | bool | undo | ) |
Definition at line 851 of file qtextdocument_p.cpp.
|
friend |
Definition at line 368 of file qtextdocument_p.h.
|
friend |
Definition at line 367 of file qtextdocument_p.h.
|
friend |
Definition at line 366 of file qtextdocument_p.h.
QUrl QTextDocumentPrivate::baseUrl |
Definition at line 362 of file qtextdocument_p.h.
uint QTextDocumentPrivate::blockCursorAdjustment |
Definition at line 354 of file qtextdocument_p.h.
QString QTextDocumentPrivate::cssMedia |
Definition at line 358 of file qtextdocument_p.h.
Qt::CursorMoveStyle QTextDocumentPrivate::defaultCursorMoveStyle |
Definition at line 348 of file qtextdocument_p.h.
QTextOption QTextDocumentPrivate::defaultTextOption |
Definition at line 347 of file qtextdocument_p.h.
qreal QTextDocumentPrivate::documentMargin |
Definition at line 361 of file qtextdocument_p.h.
QString QTextDocumentPrivate::frontMatter |
Definition at line 359 of file qtextdocument_p.h.
bool QTextDocumentPrivate::inContentsChange |
Definition at line 345 of file qtextdocument_p.h.
qreal QTextDocumentPrivate::indentWidth |
Definition at line 360 of file qtextdocument_p.h.
bool QTextDocumentPrivate::layoutEnabled = true |
Definition at line 346 of file qtextdocument_p.h.
int QTextDocumentPrivate::maximumBlockCount |
Definition at line 352 of file qtextdocument_p.h.
uint QTextDocumentPrivate::needsEnsureMaximumBlockCount |
Definition at line 353 of file qtextdocument_p.h.
QSizeF QTextDocumentPrivate::pageSize |
Definition at line 355 of file qtextdocument_p.h.
QCss::StyleSheet QTextDocumentPrivate::parsedDefaultStyleSheet |
Definition at line 350 of file qtextdocument_p.h.
QString QTextDocumentPrivate::title |
Definition at line 356 of file qtextdocument_p.h.
QString QTextDocumentPrivate::url |
Definition at line 357 of file qtextdocument_p.h.