21 #ifndef GRANTLEE_BBCODEBUILDER_H 22 #define GRANTLEE_BBCODEBUILDER_H 24 #include "abstractmarkupbuilder.h" 55 void beginAnchor(
const QString &href = {},
const QString &name = {})
override;
68 void beginParagraph(Qt::Alignment a = Qt::AlignLeft, qreal top = 0.0,
69 qreal bottom = 0.0, qreal left = 0.0,
70 qreal right = 0.0)
override;
75 void insertImage(
const QString &src, qreal width, qreal height)
override;
77 void beginList(QTextListFormat::Style type)
override;
91 void beginTable(qreal, qreal,
const QString &)
override;
100 const QString
escape(
const QString &text)
const;
105 QList<QTextListFormat::Style> m_currentListItemStyles;
109 Qt::Alignment m_currentAlignment;
Builder to create BBCode from a QTextDocument.
void beginSuperscript() override
void beginAnchor(const QString &href={}, const QString &name={}) override
void beginForeground(const QBrush &brush) override
void beginTableRow() override
void beginParagraph(Qt::Alignment a=Qt::AlignLeft, qreal top=0.0, qreal bottom=0.0, qreal left=0.0, qreal right=0.0) override
void insertImage(const QString &src, qreal width, qreal height) override
void endForeground() override
void appendLiteralText(const QString &text) override
QString getResult() override
void beginEmph() override
void endStrikeout() override
void beginFontPointSize(int size) override
void endParagraph() override
void beginStrikeout() override
void beginStrong() override
void beginSubscript() override
const QString escape(const QString &text) const
void endAnchor() override
void beginListItem() override
void endSubscript() override
void endFontPointSize() override
void beginUnderline() override
void endSuperscript() override
void addNewline() override
void endStrong() override
void beginTable(qreal, qreal, const QString &) override
Interface for creating marked-up text output.
void beginList(QTextListFormat::Style type) override
The Grantlee namespace holds all public Grantlee API.
void endUnderline() override