Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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)
 
void writeFrontMatter (const QString &fm)
 

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 36 of file qtextmarkdownwriter.cpp.

Member Function Documentation

◆ writeAll()

bool QTextMarkdownWriter::writeAll ( const QTextDocument * document)

Definition at line 41 of file qtextmarkdownwriter.cpp.

References QTextDocument::FrontMatter, writeFrame(), and writeFrontMatter().

+ Here is the call graph for this function:

◆ writeBlock()

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

Definition at line 408 of file qtextmarkdownwriter.cpp.

References adjacentBackticksCount(), QTextFormat::AnchorHref, QTextBlock::begin(), QTextFormat::BlockCodeFence, QTextFormat::BlockCodeLanguage, QTextBlock::blockFormat(), QTextFormat::BlockIndent, QTextFormat::BlockQuoteLevel, QTextFormat::BlockTrailingHorizontalRulerWidth, QFontInfo::bold(), QTextBlockFormat::Checked, QString::chop(), QString::clear(), createLinkTitle(), escapeSpecialCharacters(), QFontInfo::fixedPitch(), fmt, QTextList::format(), QTextFormat::hasProperty(), i, QTextFormat::ImageAltText, QTextFormat::ImageTitle, QTextListFormat::indent(), 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, maybeEscapeFirstChar(), QString::mid(), nearestWordWrapIndex(), number, QString::number(), QByteArray(), qtmw_Backtick, qtmw_DoubleQuote, qtmw_LineBreak, qtmw_Newline, qtmw_Period, qtmw_Space, QString::size(), QUrl::StrictMode, QFontInfo::strikeOut(), QTextBlock::text(), QTextBlock::textList(), QTextFormat::TextToolTip, title, QTextFormat::toImageFormat(), 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 95 of file qtextmarkdownwriter.cpp.

References QTextTableCell::begin(), QTextFormat::BlockCodeLanguage, QTextBlock::blockFormat(), QTextFormat::BlockQuoteLevel, child, QString::clear(), QMap< Key, T >::clear(), QTextTableCell::column(), QTextTableCell::columnSpan(), QTextTableCell::end(), frame, QTextFormat::hasProperty(), QTextBlock::isValid(), it, next, QTextBlock::position(), Q_ASSERT, qtmw_Newline, qtmw_Space, QTextTableCell::row(), QString::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:

◆ writeFrontMatter()

void QTextMarkdownWriter::writeFrontMatter ( const QString & fm)

Definition at line 82 of file qtextmarkdownwriter.cpp.

References QTextMarkdownImporter::FeatureFrontMatter, qCDebug, and qtmw_Newline.

Referenced by writeAll().

+ Here is the caller graph for this function:

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