![]() |
Qt 6.x
The Qt SDK
|
#include <qtextdocument_p.h>
Collaboration diagram for QTextHtmlExporter:Public Types | |
| enum | ExportMode { ExportEntireDocument , ExportFragment } |
Public Member Functions | |
| QTextHtmlExporter (const QTextDocument *_doc) | |
| QString | toHtml (ExportMode mode=ExportEntireDocument) |
| Returns the document in HTML format. | |
Definition at line 369 of file qtextdocument_p.h.
| Enumerator | |
|---|---|
| ExportEntireDocument | |
| ExportFragment | |
Definition at line 374 of file qtextdocument_p.h.
| QTextHtmlExporter::QTextHtmlExporter | ( | const QTextDocument * | _doc | ) |
Definition at line 2343 of file qtextdocument.cpp.
References QTextDocument::defaultFont, and QTextCharFormat::setFont().
Here is the call graph for this function:| QString QTextHtmlExporter::toHtml | ( | ExportMode | mode = ExportEntireDocument | ) |
Returns the document in HTML format.
The conversion may not be perfect, especially for complex documents, due to the limitations of HTML.
Definition at line 2360 of file qtextdocument.cpp.
References QTextFormat::BackgroundBrush, QTextFrame::begin(), QTextFormat::clearProperty(), QTextDocument::documentMargin, QTextDocument::DocumentTitle, ExportEntireDocument, ExportFragment, fmt, QTextCharFormat::fontItalic(), QTextFormat::FontLetterSpacing, QTextCharFormat::fontLetterSpacing(), QTextCharFormat::fontLetterSpacingType(), QTextFormat::FontOverline, QTextCharFormat::fontOverline(), QTextFormat::FontPixelSize, QTextFormat::FontPointSize, QTextCharFormat::fontPointSize(), QTextFormat::FontStrikeOut, QTextCharFormat::fontStrikeOut(), QTextFormat::FontUnderline, QTextCharFormat::fontUnderline(), QTextCharFormat::fontWeight(), QTextFormat::FontWordSpacing, QTextCharFormat::fontWordSpacing(), QTextFrame::frameFormat(), QString::fromLatin1(), QTextDocumentPrivate::get(), QTextFormat::hasProperty(), QTextFormat::intProperty(), QString::isEmpty(), QTextDocument::metaInformation(), QString::number(), QFont::PercentageSpacing, QString::reserve(), resolvedFontFamilies(), QTextDocument::rootFrame(), QTextFrameFormat::setMargin(), QTextFormat::TextUnderlineStyle, and title.
Referenced by QTextDocument::toHtml(), and QTextDocumentFragment::toHtml().
Here is the call graph for this function:
Here is the caller graph for this function: