![]() |
Qt 6.x
The Qt SDK
|
#include <qtextdocumentfragment_p.h>
Inheritance diagram for QTextHtmlImporter:
Collaboration diagram for QTextHtmlImporter:Public Types | |
| enum | ImportMode { ImportToFragment , ImportToDocument } |
Public Types inherited from QTextHtmlParser | |
| enum | Margin { MarginTop , MarginRight , MarginBottom , MarginLeft } |
Public Member Functions | |
| QTextHtmlImporter (QTextDocument *_doc, const QString &html, ImportMode mode, const QTextDocument *resourceProvider=nullptr) | |
| void | import () |
Public Member Functions inherited from QTextHtmlParser | |
| ~QTextHtmlParser () | |
| const QTextHtmlParserNode & | at (int i) const |
| QTextHtmlParserNode & | operator[] (int i) |
| int | count () const |
| int | last () const |
| int | depth (int i) const |
| int | topMargin (int i) const |
| int | bottomMargin (int i) const |
| int | leftMargin (int i) const |
| int | rightMargin (int i) const |
| int | topPadding (int i) const |
| int | bottomPadding (int i) const |
| int | leftPadding (int i) const |
| int | rightPadding (int i) const |
| qreal | tableCellBorder (int i, int edge) const |
| QTextFrameFormat::BorderStyle | tableCellBorderStyle (int i, int edge) const |
| QBrush | tableCellBorderBrush (int i, int edge) const |
| void | dumpHtml () |
| void | parse (const QString &text, const QTextDocument *resourceProvider) |
Friends | |
| class | QTypeInfo< List > |
| class | QTypeInfo< TableCellIterator > |
| struct | Table |
| class | QTypeInfo< Table > |
| class | QTypeInfo< RowColSpanInfo > |
Additional Inherited Members | |
Static Public Member Functions inherited from QTextHtmlParser | |
| static int | lookupElement (const QString &element) |
| static Q_GUI_EXPORT QString | parseEntity (QStringView entity) |
Protected Member Functions inherited from QTextHtmlParser | |
| QTextHtmlParserNode * | newNode (int parent) |
| void | parse () |
| void | parseTag () |
| void | parseCloseTag () |
| void | parseExclamationTag () |
| QString | parseEntity () |
| QString | parseWord () |
| QTextHtmlParserNode * | resolveParent () |
| void | resolveNode () |
| QStringList | parseAttributes () |
| void | applyAttributes (const QStringList &attributes) |
| void | eatSpace () |
| bool | hasPrefix (QChar c, int lookahead=0) const |
| int | margin (int i, int mar) const |
| bool | nodeIsChildOf (int i, QTextHTMLElements id) const |
Protected Attributes inherited from QTextHtmlParser | |
| QList< QTextHtmlParserNode * > | nodes |
| QString | txt |
| int | pos |
| int | len |
| bool | textEditMode |
| const QTextDocument * | resourceProvider |
Definition at line 81 of file qtextdocumentfragment_p.h.
| Enumerator | |
|---|---|
| ImportToFragment | |
| ImportToDocument | |
Definition at line 85 of file qtextdocumentfragment_p.h.
| QTextHtmlImporter::QTextHtmlImporter | ( | QTextDocument * | _doc, |
| const QString & | html, | ||
| ImportMode | mode, | ||
| const QTextDocument * | resourceProvider = nullptr |
||
| ) |
Definition at line 432 of file qtextdocumentfragment.cpp.
References QString::contains(), QString::indexOf(), QString::mid(), QTextHtmlParser::parse(), QString::prepend(), QTextHtmlParser::resourceProvider, and QTextHtmlParserNode::WhiteSpaceNormal.
Here is the call graph for this function:| void QTextHtmlImporter::import | ( | ) |
Definition at line 460 of file qtextdocumentfragment.cpp.
References QTextCharFormat::anchorNames(), at, QTextCursor::beginEditBlock(), QTextCursor::blockFormat(), QTextHtmlParserNode::blockFormat, QTextHtmlParserNode::charFormat, QTextHtmlParserNode::children, QTextHtmlParser::count(), QTextHtmlElement::DisplayInline, QTextHtmlParserNode::displayMode, QTextHtmlElement::DisplayNone, QTextDocument::DocumentTitle, QTextCursor::endEditBlock(), QTextHtmlParserNode::hasOnlyWhitespace(), QTextFormat::hasProperty(), Html_title, Html_unknown, QTextHtmlParserNode::id, QTextCharFormat::isAnchor(), QTextHtmlParserNode::isBlock(), QString::isEmpty(), QTextFormat::PageBreak_AlwaysAfter, QTextFormat::PageBreak_AlwaysBefore, QTextFormat::PageBreakPolicy, QTextBlockFormat::pageBreakPolicy(), QTextHtmlParserNode::parent, QTextCursor::setBlockFormat(), QTextBlockFormat::setIndent(), QTextDocument::setMetaInformation(), QTextBlockFormat::setPageBreakPolicy(), QList< T >::size(), QTextHtmlParserNode::text, QTextHtmlParser::textEditMode, QTextHtmlParserNode::WhiteSpacePreWrap, and QTextHtmlParserNode::wsm.
Referenced by QTextDocumentFragment::fromHtml(), and QTextDocument::setHtml().
Here is the call graph for this function:
Here is the caller graph for this function:
|
friend |
Definition at line 107 of file qtextdocumentfragment_p.h.
|
friend |
Definition at line 172 of file qtextdocumentfragment_p.h.
|
friend |
Definition at line 159 of file qtextdocumentfragment_p.h.
|
friend |
Definition at line 123 of file qtextdocumentfragment_p.h.
|
friend |
Definition at line 159 of file qtextdocumentfragment_p.h.