Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QTextMarkdownWriter Class Reference

#include <qtextmarkdownwriter_p.h>

+ Collaboration diagram for QTextMarkdownWriter:

Public Member Functions

 QTextMarkdownWriter (QTextStream &stream, QTextDocument::MarkdownFeatures features)
 
bool writeAll (const QTextDocument *document)
 
int writeBlock (const QTextBlock &block, bool table, bool ignoreFormat, bool ignoreEmpty)
 
void writeFrame (const QTextFrame *frame)
 

Detailed Description

Definition at line 28 of file qtextmarkdownwriter_p.h.

Constructor & Destructor Documentation

◆ QTextMarkdownWriter()

QTextMarkdownWriter::QTextMarkdownWriter ( QTextStream stream,
QTextDocument::MarkdownFeatures  features 
)

Definition at line 34 of file qtextmarkdownwriter.cpp.

Member Function Documentation

◆ writeAll()

bool QTextMarkdownWriter::writeAll ( const QTextDocument document)

Definition at line 39 of file qtextmarkdownwriter.cpp.

References writeFrame().

Referenced by QTextDocumentWriter::write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeBlock()

int QTextMarkdownWriter::writeBlock ( const QTextBlock block,
bool  table,
bool  ignoreFormat,
bool  ignoreEmpty 
)

Definition at line 329 of file qtextmarkdownwriter.cpp.

References adjacentBackticksCount(), QTextFormat::AnchorHref, QString::at(), QTextBlock::begin(), QTextFormat::BlockCodeFence, QTextFormat::BlockCodeLanguage, QTextBlock::blockFormat(), QTextFormat::BlockIndent, QTextFormat::BlockQuoteLevel, QTextFormat::BlockTrailingHorizontalRulerWidth, QFontInfo::bold(), QTextBlockFormat::Checked, QString::chop(), QString::clear(), createLinkTitle(), desc, QString::endsWith(), QFontInfo::fixedPitch(), fmt, QTextList::format(), QTextFormat::hasProperty(), QTextBlockFormat::headingLevel(), i, QTextFormat::ImageAltText, QTextFormat::ImageTitle, QTextBlockFormat::indent(), QTextFormat::intProperty(), QString::isEmpty(), QFontInfo::italic(), QTextList::itemNumber(), j, QTextListFormat::ListCircle, QTextListFormat::ListDecimal, QTextListFormat::ListDisc, QTextListFormat::ListLowerAlpha, QTextListFormat::ListLowerRoman, QTextListFormat::ListSquare, QTextListFormat::ListStyleUndefined, QTextListFormat::ListUpperAlpha, QTextListFormat::ListUpperRoman, QTextBlockFormat::marker(), maybeEscapeFirstChar(), QString::mid(), QTextImageFormat::name(), nearestWordWrapIndex(), QTextBlockFormat::nonBreakableLines(), number, QString::number(), QStringLiteral, qtmw_Backtick, qtmw_DoubleQuote, qtmw_LineBreak, qtmw_Newline, qtmw_Period, qtmw_Space, QString::replace(), QString::reserve(), QString::size(), QString::startsWith(), QUrl::StrictMode, QFontInfo::strikeOut(), QTextFormat::stringProperty(), QTextBlock::text(), QTextBlock::textList(), QTextFormat::TextToolTip, title, QTextBlockFormat::Unchecked, QFontInfo::underline(), and wrap().

Referenced by writeFrame().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeFrame()

void QTextMarkdownWriter::writeFrame ( const QTextFrame frame)

Definition at line 79 of file qtextmarkdownwriter.cpp.

References QTextTableCell::begin(), QTextFormat::BlockCodeLanguage, QTextBlock::blockFormat(), child, QString::clear(), QMap< Key, T >::clear(), QTextTableCell::column(), QTextTableCell::columnSpan(), QTextTableCell::end(), frame, QTextFormat::hasProperty(), QTextBlockFormat::indent(), QTextBlock::isValid(), it, next, QTextBlock::position(), QTextFormat::property(), Q_ASSERT, qtmw_Newline, qtmw_Space, QList< T >::resize(), QTextTableCell::row(), QString::size(), QList< T >::size(), QTextBlock::text(), QTextBlock::textList(), writeBlock(), and writeFrame().

Referenced by writeAll(), and writeFrame().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: