Qt 4.8
|
#include <qtextformat_p.h>
Public Types | |
typedef QVector< QTextFormat > | FormatVector |
Public Functions | |
QTextBlockFormat | blockFormat (int index) const |
QTextCharFormat | charFormat (int index) const |
int | createObjectIndex (const QTextFormat &f) |
QFont | defaultFont () const |
QTextFormat | format (int idx) const |
bool | hasFormatCached (const QTextFormat &format) const |
QTextImageFormat | imageFormat (int index) const |
int | indexForFormat (const QTextFormat &f) |
QTextListFormat | listFormat (int index) const |
int | numFormats () const |
QTextFormat | objectFormat (int objectIndex) const |
int | objectFormatIndex (int objectIndex) const |
QTextFormatCollection & | operator= (const QTextFormatCollection &rhs) |
QTextFormatCollection () | |
QTextFormatCollection (const QTextFormatCollection &rhs) | |
void | setDefaultFont (const QFont &f) |
void | setObjectFormat (int objectIndex, const QTextFormat &format) |
void | setObjectFormatIndex (int objectIndex, int formatIndex) |
QTextTableFormat | tableFormat (int index) const |
~QTextFormatCollection () | |
Public Variables | |
FormatVector | formats |
QMultiHash< uint, int > | hashes |
QVector< qint32 > | objFormats |
Properties | |
QFont | defaultFnt |
Definition at line 62 of file qtextformat_p.h.
Definition at line 96 of file qtextformat_p.h.
|
inline |
Definition at line 65 of file qtextformat_p.h.
QTextFormatCollection::~QTextFormatCollection | ( | ) |
Definition at line 3865 of file qtextformat.cpp.
QTextFormatCollection::QTextFormatCollection | ( | const QTextFormatCollection & | rhs | ) |
Definition at line 3852 of file qtextformat.cpp.
|
inline |
Definition at line 83 of file qtextformat_p.h.
Referenced by QTextDocumentPrivate::setBlockFormat(), and QTextDocumentPrivate::undoRedo().
|
inline |
Definition at line 85 of file qtextformat_p.h.
Referenced by QTextLayout::additionalFormats(), QAbstractTextDocumentLayout::anchorAt(), QPlainTextEdit::anchorAt(), QTextCursorPrivate::canDelete(), QTextCursor::charFormat(), QTextTableCell::format(), QAbstractTextDocumentLayout::format(), QTextEngine::format(), QTextDocumentPrivate::insertBlock(), QTextTable::insertColumns(), QTextTable::insertRows(), QTextTable::mergeCells(), QTextTable::removeColumns(), QTextTable::removeRows(), QTextDocumentPrivate::undoRedo(), and QTextTablePrivate::update().
int QTextFormatCollection::createObjectIndex | ( | const QTextFormat & | f | ) |
Definition at line 3937 of file qtextformat.cpp.
Referenced by QTextCopyHelper::convertFormatIndex(), QTextCopyHelper::copy(), and QTextDocumentPrivate::createObject().
|
inline |
Definition at line 102 of file qtextformat_p.h.
QTextFormat QTextFormatCollection::format | ( | int | idx | ) | const |
Definition at line 3944 of file qtextformat.cpp.
Referenced by QTextCopyHelper::appendFragment(), QTextCopyHelper::convertFormat(), QTextCopyHelper::convertFormatIndex(), QTextInlineObject::format(), QTextEngine::format(), QTextDocumentPrivate::insert(), QTextDocumentPrivate::insert_block(), QTextCursorPrivate::insertBlock(), QTextDocumentPrivate::insertBlock(), QTextCursor::insertText(), QTextLine::layout_helper(), QTextDocumentPrivate::objectForFormat(), QTextDocumentPrivate::setCharFormat(), and QTextEngine::shape().
bool QTextFormatCollection::hasFormatCached | ( | const QTextFormat & | format | ) | const |
Definition at line 3899 of file qtextformat.cpp.
|
inline |
Definition at line 91 of file qtextformat_p.h.
int QTextFormatCollection::indexForFormat | ( | const QTextFormat & | f | ) |
Definition at line 3869 of file qtextformat.cpp.
Referenced by QTextCopyHelper::convertFormatIndex(), QTextTablePrivate::createTable(), QTextEngine::indexAdditionalFormats(), QTextDocumentPrivate::init(), QTextCursorPrivate::insertBlock(), QTextTable::insertColumns(), QTextDocumentPrivate::insertFrame(), QTextCursor::insertImage(), QTextTable::insertRows(), QTextCursor::insertText(), QTextCursor::mergeCharFormat(), QTextEngine::resolveAdditionalFormats(), QTextDocumentPrivate::setBlockFormat(), QTextCursor::setCharFormat(), QTextDocumentPrivate::setCharFormat(), and QTextTable::splitCell().
|
inline |
Definition at line 87 of file qtextformat_p.h.
|
inline |
Definition at line 94 of file qtextformat_p.h.
QTextFormat QTextFormatCollection::objectFormat | ( | int | objectIndex | ) | const |
Definition at line 3912 of file qtextformat.cpp.
Referenced by QTextCopyHelper::convertFormatIndex(), and QTextDocumentPrivate::objectForIndex().
int QTextFormatCollection::objectFormatIndex | ( | int | objectIndex | ) | const |
Definition at line 3925 of file qtextformat.cpp.
Referenced by QTextDocumentPrivate::changeObjectFormat(), and QTextDocumentPrivate::undoRedo().
QTextFormatCollection & QTextFormatCollection::operator= | ( | const QTextFormatCollection & | rhs | ) |
Definition at line 3858 of file qtextformat.cpp.
void QTextFormatCollection::setDefaultFont | ( | const QFont & | f | ) |
Definition at line 3952 of file qtextformat.cpp.
void QTextFormatCollection::setObjectFormat | ( | int | objectIndex, |
const QTextFormat & | format | ||
) |
Definition at line 3919 of file qtextformat.cpp.
void QTextFormatCollection::setObjectFormatIndex | ( | int | objectIndex, |
int | formatIndex | ||
) |
Definition at line 3932 of file qtextformat.cpp.
Referenced by QTextDocumentPrivate::changeObjectFormat().
|
inline |
Definition at line 89 of file qtextformat_p.h.
|
private |
Definition at line 106 of file qtextformat_p.h.
FormatVector QTextFormatCollection::formats |
Definition at line 98 of file qtextformat_p.h.
Referenced by operator=(), and QTextFormatCollection().
QMultiHash<uint,int> QTextFormatCollection::hashes |
Definition at line 100 of file qtextformat_p.h.
Definition at line 99 of file qtextformat_p.h.
Referenced by operator=(), and QTextFormatCollection().