21 #ifndef GRANTLEE_BBCODEBUILDER_H 22 #define GRANTLEE_BBCODEBUILDER_H 24 #include "abstractmarkupbuilder.h" 56 const QString &name = QString())
override;
71 void beginParagraph(Qt::Alignment a = Qt::AlignLeft, qreal top = 0.0,
72 qreal bottom = 0.0, qreal left = 0.0,
73 qreal right = 0.0)
override;
78 void insertImage(
const QString &src, qreal width, qreal height)
override;
80 void beginList(QTextListFormat::Style type)
override;
94 void beginTable(qreal, qreal,
const QString &)
override;
103 const QString
escape(
const QString &text)
const;
108 QList<QTextListFormat::Style> m_currentListItemStyles;
112 Qt::Alignment m_currentAlignment;
Builder to create BBCode from a QTextDocument.
void beginSuperscript() 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 beginAnchor(const QString &href=QString(), const QString &name=QString()) 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
The AbstractMarkupBuilder class serves as a base class for creating marked up plain text output.
void beginList(QTextListFormat::Style type) override
The Grantlee namespace holds all public Grantlee API.
void endUnderline() override