42 #ifndef QTEXTFORMAT_P_H 43 #define QTEXTFORMAT_P_H 56 #include "QtGui/qtextformat.h" 57 #include "QtCore/qvector.h" 58 #include "QtCore/qhash.h" 74 int objectFormatIndex(
int objectIndex)
const;
75 void setObjectFormatIndex(
int objectIndex,
int formatIndex);
80 bool hasFormatCached(
const QTextFormat &format)
const;
84 {
return format(index).toBlockFormat(); }
86 {
return format(index).toCharFormat(); }
88 {
return format(index).toListFormat(); }
90 {
return format(index).toTableFormat(); }
92 {
return format(index).toImageFormat(); }
94 inline int numFormats()
const {
return formats.count(); }
103 void setDefaultFont(
const QFont &f);
111 #endif // QTEXTFORMAT_P_H
QTextCharFormat charFormat(int index) const
QTextTableFormat tableFormat(int index) const
QVector< QTextFormat > FormatVector
The QTextCharFormat class provides formatting information for characters in a QTextDocument.
The QTextListFormat class provides formatting information for lists in a QTextDocument.
#define QT_END_NAMESPACE
This macro expands to.
The QTextImageFormat class provides formatting information for images in a QTextDocument.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QTextListFormat listFormat(int index) const
The QTextFormat class provides formatting information for a QTextDocument.
QTextImageFormat imageFormat(int index) const
QTextBlockFormat blockFormat(int index) const
QMultiHash< uint, int > hashes
The QFont class specifies a font used for drawing text.
The QTextBlockFormat class provides formatting information for blocks of text in a QTextDocument...
QVector< qint32 > objFormats
The QTextTableFormat class provides formatting information for tables in a QTextDocument.
QFont defaultFont() const