Qt 4.8
|
#include <qtexthtmlparser_p.h>
Public Types | |
enum | WhiteSpaceMode { WhiteSpaceNormal, WhiteSpacePre, WhiteSpaceNoWrap, WhiteSpacePreWrap, WhiteSpaceModeUndefined = -1 } |
Public Functions | |
bool | allowedInContext (int parentId) const |
void | applyBackgroundImage (const QString &url, const QTextDocument *resourceProvider) |
void | applyCssDeclarations (const QVector< QCss::Declaration > &declarations, const QTextDocument *resourceProvider) |
bool | hasOnlyWhitespace () const |
void | initializeProperties (const QTextHtmlParserNode *parent, const QTextHtmlParser *parser) |
bool | isBlock () const |
bool | isListStart () const |
bool | isNestedList (const QTextHtmlParser *parser) const |
bool | isNotSelfNesting () const |
bool | isTableCell () const |
bool | mayNotHaveChildren () const |
void | parseStyleAttribute (const QString &value, const QTextDocument *resourceProvider) |
QTextHtmlParserNode () | |
void | setListStyle (const QVector< QCss::Value > &cssValues) |
int | uncollapsedMargin (int mar) const |
Friends | |
class | QTextHtmlParser |
Definition at line 156 of file qtexthtmlparser_p.h.
Enumerator | |
---|---|
WhiteSpaceNormal | |
WhiteSpacePre | |
WhiteSpaceNoWrap | |
WhiteSpacePreWrap | |
WhiteSpaceModeUndefined |
Definition at line 157 of file qtexthtmlparser_p.h.
QTextHtmlParserNode::QTextHtmlParserNode | ( | ) |
Definition at line 481 of file qtexthtmlparser.cpp.
Referenced by QTextHtmlParser::resolveParent().
|
inline |
Definition at line 213 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::resolveParent().
void QTextHtmlParserNode::applyBackgroundImage | ( | const QString & | url, |
const QTextDocument * | resourceProvider | ||
) |
Definition at line 1400 of file qtexthtmlparser.cpp.
Referenced by QTextHtmlParser::applyAttributes(), and applyCssDeclarations().
void QTextHtmlParserNode::applyCssDeclarations | ( | const QVector< QCss::Declaration > & | declarations, |
const QTextDocument * | resourceProvider | ||
) |
Definition at line 1215 of file qtexthtmlparser.cpp.
Referenced by parseStyleAttribute(), and QTextHtmlParser::parseTag().
bool QTextHtmlParserNode::hasOnlyWhitespace | ( | ) | const |
Definition at line 1431 of file qtexthtmlparser.cpp.
Referenced by QTextHtmlImporter::import().
void QTextHtmlParserNode::initializeProperties | ( | const QTextHtmlParserNode * | parent, |
const QTextHtmlParser * | parser | ||
) |
Definition at line 1001 of file qtexthtmlparser.cpp.
Referenced by QTextHtmlParser::resolveNode().
|
inline |
Definition at line 207 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlImporter::closeTag(), QTextHtmlImporter::import(), QTextHtmlParser::margin(), QTextHtmlParser::parseCloseTag(), QTextHtmlParser::parseTag(), and QTextHtmlParser::resolveParent().
|
inline |
Definition at line 203 of file qtexthtmlparser_p.h.
Referenced by isNestedList(), and QTextHtmlImporter::processBlockNode().
bool QTextHtmlParserNode::isNestedList | ( | const QTextHtmlParser * | parser | ) | const |
|
inline |
Definition at line 210 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::resolveParent().
|
inline |
Definition at line 205 of file qtexthtmlparser_p.h.
Referenced by initializeProperties(), QTextHtmlParser::margin(), QTextHtmlImporter::processBlockNode(), and QTextHtmlImporter::scanTable().
|
inline |
Definition at line 235 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::parseCloseTag(), and QTextHtmlParser::parseTag().
void QTextHtmlParserNode::parseStyleAttribute | ( | const QString & | value, |
const QTextDocument * | resourceProvider | ||
) |
Definition at line 1477 of file qtexthtmlparser.cpp.
Referenced by QTextHtmlParser::applyAttributes().
void QTextHtmlParserNode::setListStyle | ( | const QVector< QCss::Value > & | cssValues | ) |
Definition at line 1193 of file qtexthtmlparser.cpp.
Referenced by applyCssDeclarations().
|
inline |
Definition at line 240 of file qtexthtmlparser_p.h.
|
friend |
Definition at line 259 of file qtexthtmlparser_p.h.
QStringList QTextHtmlParserNode::attributes |
Definition at line 168 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlStyleSelector::attribute(), QTextHtmlStyleSelector::hasAttributes(), initializeProperties(), and QTextHtmlParser::parseTag().
QTextBlockFormat QTextHtmlParserNode::blockFormat |
Definition at line 173 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::applyAttributes(), applyCssDeclarations(), QTextHtmlImporter::import(), initializeProperties(), QTextHtmlImporter::processBlockNode(), QTextHtmlImporter::processSpecialNodes(), QTextHtmlImporter::scanTable(), and setListStyle().
QBrush QTextHtmlParserNode::borderBrush |
Definition at line 195 of file qtexthtmlparser_p.h.
Referenced by applyCssDeclarations(), and QTextHtmlImporter::scanTable().
QTextFrameFormat::BorderStyle QTextHtmlParserNode::borderStyle |
Definition at line 196 of file qtexthtmlparser_p.h.
Referenced by applyCssDeclarations(), and QTextHtmlImporter::scanTable().
QTextCharFormat QTextHtmlParserNode::charFormat |
Definition at line 172 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlImporter::appendNodeText(), QTextHtmlParser::applyAttributes(), applyBackgroundImage(), applyCssDeclarations(), QTextHtmlImporter::import(), initializeProperties(), QTextHtmlImporter::processBlockNode(), QTextHtmlImporter::processSpecialNodes(), and QTextHtmlImporter::scanTable().
QVector<int> QTextHtmlParserNode::children |
Definition at line 170 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlImporter::closeTag(), QTextHtmlImporter::import(), QTextHtmlImporter::processBlockNode(), QTextHtmlParser::resolveParent(), and QTextHtmlImporter::scanTable().
uint QTextHtmlParserNode::cssFloat |
Definition at line 174 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::applyAttributes(), applyCssDeclarations(), initializeProperties(), QTextHtmlImporter::processSpecialNodes(), and QTextHtmlImporter::scanTable().
int QTextHtmlParserNode::cssListIndent |
Definition at line 199 of file qtexthtmlparser_p.h.
Referenced by applyCssDeclarations(), and QTextHtmlImporter::processSpecialNodes().
uint QTextHtmlParserNode::displayMode |
Definition at line 180 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlImporter::import(), initializeProperties(), QTextHtmlParser::newNode(), and QTextHtmlParser::parseTag().
uint QTextHtmlParserNode::hasCssListIndent |
Definition at line 176 of file qtexthtmlparser_p.h.
Referenced by applyCssDeclarations(), and QTextHtmlImporter::processSpecialNodes().
uint QTextHtmlParserNode::hasHref |
Definition at line 181 of file qtexthtmlparser_p.h.
Referenced by initializeProperties().
uint QTextHtmlParserNode::hasOwnListStyle |
Definition at line 175 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::applyAttributes(), QTextHtmlImporter::processSpecialNodes(), and setListStyle().
QTextLength QTextHtmlParserNode::height |
Definition at line 189 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::applyAttributes(), and QTextHtmlImporter::scanTable().
QTextHTMLElements QTextHtmlParserNode::id |
Definition at line 171 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::applyAttributes(), QTextHtmlImporter::closeTag(), QTextHtmlImporter::import(), initializeProperties(), QTextHtmlParser::margin(), QTextHtmlParser::newNode(), QTextHtmlParser::parseTag(), QTextHtmlImporter::processBlockNode(), QTextHtmlImporter::processSpecialNodes(), QTextHtmlParser::resolveParent(), and QTextHtmlImporter::scanTable().
qreal QTextHtmlParserNode::imageHeight |
Definition at line 187 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::applyAttributes(), and QTextHtmlImporter::processSpecialNodes().
QString QTextHtmlParserNode::imageName |
Definition at line 185 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::applyAttributes(), and QTextHtmlImporter::processSpecialNodes().
qreal QTextHtmlParserNode::imageWidth |
Definition at line 186 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::applyAttributes(), and QTextHtmlImporter::processSpecialNodes().
uint QTextHtmlParserNode::isEmptyParagraph |
Definition at line 177 of file qtexthtmlparser_p.h.
Referenced by applyCssDeclarations(), and QTextHtmlImporter::processBlockNode().
uint QTextHtmlParserNode::isRootFrame |
Definition at line 179 of file qtexthtmlparser_p.h.
Referenced by applyCssDeclarations(), and QTextHtmlImporter::scanTable().
uint QTextHtmlParserNode::isTextFrame |
Definition at line 178 of file qtexthtmlparser_p.h.
Referenced by applyCssDeclarations(), and QTextHtmlImporter::scanTable().
QTextListFormat::Style QTextHtmlParserNode::listStyle |
Definition at line 182 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::applyAttributes(), initializeProperties(), QTextHtmlImporter::processSpecialNodes(), and setListStyle().
int QTextHtmlParserNode::margin[4] |
Definition at line 256 of file qtexthtmlparser_p.h.
Referenced by applyCssDeclarations(), initializeProperties(), QTextHtmlParser::margin(), and QTextHtmlParserNode().
int QTextHtmlParserNode::padding[4] |
Definition at line 257 of file qtexthtmlparser_p.h.
Referenced by applyCssDeclarations(), and initializeProperties().
int QTextHtmlParserNode::parent |
Definition at line 169 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlImporter::closeTag(), QTextHtmlImporter::import(), isNestedList(), QTextHtmlParser::margin(), QTextHtmlParser::newNode(), QTextHtmlStyleSelector::parentNode(), QTextHtmlParser::parseCloseTag(), QTextHtmlParser::parseTag(), QTextHtmlStyleSelector::previousSiblingNode(), QTextHtmlImporter::processBlockNode(), QTextHtmlImporter::processSpecialNodes(), QTextHtmlParser::resolveNode(), and QTextHtmlParser::resolveParent().
qreal QTextHtmlParserNode::tableBorder |
Definition at line 190 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::applyAttributes(), applyCssDeclarations(), and QTextHtmlImporter::scanTable().
int QTextHtmlParserNode::tableCellColSpan |
Definition at line 192 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::applyAttributes(), and QTextHtmlImporter::scanTable().
qreal QTextHtmlParserNode::tableCellPadding |
Definition at line 194 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::applyAttributes(), and QTextHtmlImporter::scanTable().
int QTextHtmlParserNode::tableCellRowSpan |
Definition at line 191 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::applyAttributes(), and QTextHtmlImporter::scanTable().
qreal QTextHtmlParserNode::tableCellSpacing |
Definition at line 193 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::applyAttributes(), and QTextHtmlImporter::scanTable().
QString QTextHtmlParserNode::tag |
Definition at line 166 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::dumpHtml(), QTextHtmlParser::newNode(), QTextHtmlParser::parseCloseTag(), QTextHtmlParser::parseTag(), and QTextHtmlParser::resolveParent().
QString QTextHtmlParserNode::text |
Definition at line 167 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlImporter::appendNodeText(), QTextHtmlParser::dumpHtml(), hasOnlyWhitespace(), QTextHtmlImporter::import(), initializeProperties(), QTextHtmlParser::newNode(), QTextHtmlParser::parse(), QTextHtmlParser::parseCloseTag(), and QTextHtmlImporter::processSpecialNodes().
QString QTextHtmlParserNode::textListNumberPrefix |
Definition at line 183 of file qtexthtmlparser_p.h.
Referenced by applyCssDeclarations(), and QTextHtmlImporter::processSpecialNodes().
QString QTextHtmlParserNode::textListNumberSuffix |
Definition at line 184 of file qtexthtmlparser_p.h.
Referenced by applyCssDeclarations(), and QTextHtmlImporter::processSpecialNodes().
int QTextHtmlParserNode::userState |
Definition at line 197 of file qtexthtmlparser_p.h.
Referenced by applyCssDeclarations(), and QTextHtmlImporter::processBlockNode().
QTextLength QTextHtmlParserNode::width |
Definition at line 188 of file qtexthtmlparser_p.h.
Referenced by QTextHtmlParser::applyAttributes(), QTextHtmlImporter::processSpecialNodes(), and QTextHtmlImporter::scanTable().
WhiteSpaceMode QTextHtmlParserNode::wsm |
Definition at line 201 of file qtexthtmlparser_p.h.
Referenced by applyCssDeclarations(), QTextHtmlImporter::import(), initializeProperties(), QTextHtmlParser::parseCloseTag(), and QTextHtmlParser::parseTag().