21 #ifndef GRANTLEE_TEXTHTMLBUILDER_H 22 #define GRANTLEE_TEXTHTMLBUILDER_H 25 #pragma warning( disable : 4250 ) 28 #include "abstractmarkupbuilder.h" 29 #include "grantlee_textdocument_export.h" 30 #include "markupdirector.h" 36 class TextHTMLBuilderPrivate;
104 void beginUnderline();
106 void beginStrikeout();
108 void beginForeground(
const QBrush &brush );
109 void endForeground();
110 void beginBackground(
const QBrush &brush );
111 void endBackground();
112 void beginAnchor(
const QString &href = QString(),
const QString &name = QString() );
117 void beginFontFamily(
const QString &family );
118 void endFontFamily();
124 void beginFontPointSize(
int size );
125 void endFontPointSize();
135 void beginParagraph( Qt::Alignment al = Qt::AlignLeft, qreal topMargin = 0.0, qreal bottomMargin = 0.0, qreal leftMargin = 0.0, qreal rightMargin = 0.0 );
141 void beginHeader(
int level );
147 void endHeader(
int level );
152 void insertHorizontalRule(
int width = -1 );
154 void insertImage(
const QString &src, qreal width, qreal height );
156 void beginList( QTextListFormat::Style type );
160 void beginListItem();
163 void beginSuperscript();
165 void endSuperscript();
167 void beginSubscript();
172 void beginTable( qreal cellpadding, qreal cellspacing,
const QString &width );
174 void beginTableRow();
175 void beginTableHeaderCell(
const QString &width,
int colspan,
int rowspan );
177 void beginTableCell(
const QString &width,
int colspan,
int rowspan );
181 void endTableHeaderCell();
199 void appendLiteralText(
const QString &text );
206 void appendRawText(
const QString &text );
211 TextHTMLBuilderPrivate *d_ptr;
The TextHTMLBuilder creates a clean html markup output.
The AbstractMarkupBuilder class serves as a base class for creating marked up plain text output...
The Grantlee namespace holds all public Grantlee API.