21 #ifndef GRANTLEE_BBCODEBUILDER_H
22 #define GRANTLEE_BBCODEBUILDER_H
24 #include "abstractmarkupbuilder.h"
56 void beginAnchor(
const QString &href = QString(),
const QString &name = QString() );
69 void beginParagraph( Qt::Alignment a = Qt::AlignLeft, qreal top = 0.0, qreal bottom = 0.0, qreal left = 0.0, qreal right = 0.0 );
74 void insertImage(
const QString &src, qreal width, qreal height );
76 void beginList( QTextListFormat::Style type );
92 void beginTable( qreal, qreal,
const QString & );
102 const QString
escape(
const QString &text )
const;
107 QList<QTextListFormat::Style> m_currentListItemStyles;
111 Qt::Alignment m_currentAlignment;
Builder to create BBCode from a QTextDocument.
void insertImage(const QString &src, qreal width, qreal height)
void beginAnchor(const QString &href=QString(), const QString &name=QString())
void beginTable(qreal, qreal, const QString &)
void beginFontPointSize(int size)
void appendLiteralText(const QString &text)
void beginList(QTextListFormat::Style type)
const QString escape(const QString &text) const
void beginParagraph(Qt::Alignment a=Qt::AlignLeft, qreal top=0.0, qreal bottom=0.0, qreal left=0.0, qreal right=0.0)
The AbstractMarkupBuilder class serves as a base class for creating marked up plain text output...
void beginForeground(const QBrush &brush)