42 #ifndef QTEXTHTMLPARSER_P_H 43 #define QTEXTHTMLPARSER_P_H 56 #include "QtCore/qvector.h" 57 #include "QtGui/qbrush.h" 58 #include "QtGui/qcolor.h" 59 #include "QtGui/qfont.h" 60 #include "QtGui/qtextdocument.h" 61 #include "QtGui/qtextcursor.h" 62 #include "private/qtextformat_p.h" 63 #include "private/qtextdocument_p.h" 64 #include "private/qcssparser_p.h" 66 #ifndef QT_NO_TEXTHTMLPARSER 246 #ifndef QT_NO_CSSPARSER 254 bool hasOnlyWhitespace()
const;
276 inline int count()
const {
return nodes.count(); }
277 inline int last()
const {
return nodes.count()-1; }
278 int depth(
int i)
const;
279 int topMargin(
int i)
const;
280 int bottomMargin(
int i)
const;
293 static int lookupElement(
const QString &element);
304 void parseCloseTag();
305 void parseExclamationTag();
311 void applyAttributes(
const QStringList &attributes);
314 {
return pos + lookahead < len && txt.
at(pos) ==
c; }
315 int margin(
int i,
int mar)
const;
320 #ifndef QT_NO_CSSPARSER 323 void importStyleSheet(
const QString &href);
329 : url(_url), sheet(_sheet) {}
342 #endif // QT_NO_TEXTHTMLPARSER 344 #endif // QTEXTHTMLPARSER_P_H
bool mayNotHaveChildren() const
The QTextCharFormat class provides formatting information for characters in a QTextDocument.
QTextFrameFormat::BorderStyle borderStyle
#define QT_END_NAMESPACE
This macro expands to.
const QTextDocument * resourceProvider
const QChar at(int i) const
Returns the character at the given index position in the string.
int rightMargin(int i) const
#define at(className, varName)
const QTextHtmlParserNode & at(int i) const
QString textListNumberPrefix
The QString class provides a Unicode character string.
ExternalStyleSheet(const QString &_url, const QCss::StyleSheet &_sheet)
The QChar class provides a 16-bit Unicode character.
QTextListFormat::Style listStyle
int topPadding(int i) const
int leftMargin(int i) const
QTextHtmlParserNode & operator[](int i)
QTextCharFormat charFormat
#define QT_BEGIN_NAMESPACE
This macro expands to.
Style
This enum describes the symbols used to decorate list items:
int uncollapsedMargin(int mar) const
The QStringList class provides a list of strings.
QTextBlockFormat blockFormat
static QVector< Declaration > declarations(const QVector< StyleRule > &styleRules, const QString &part, quint64 pseudoClass=PseudoClass_Unspecified)
int bottomPadding(int i) const
QVector< QTextHtmlParserNode > nodes
The QBrush class defines the fill pattern of shapes drawn by QPainter.
QString textListNumberSuffix
Q_DECLARE_TYPEINFO(QTextHtmlParserNode, Q_MOVABLE_TYPE)
QVector< QCss::StyleSheet > inlineStyleSheets
The QTextLength class encapsulates the different types of length used in a QTextDocument.
The QTextBlockFormat class provides formatting information for blocks of text in a QTextDocument...
int leftPadding(int i) const
enum QTextHtmlElement::DisplayMode displayMode
The QTextDocument class holds formatted text that can be viewed and edited using a QTextEdit...
bool hasPrefix(QChar c, int lookahead=0) const
BorderStyle
This enum describes different border styles for the text frame.
int rightPadding(int i) const
bool allowedInContext(int parentId) const
QVector< ExternalStyleSheet > externalStyleSheets
bool isNotSelfNesting() const