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