21 #ifndef GRANTLEE_PLAINTEXTMARKUPBUILDER_H 22 #define GRANTLEE_PLAINTEXTMARKUPBUILDER_H 26 #pragma warning( disable : 4250 ) 29 #define LETTERSINALPHABET 26 30 #define DIGITSOFFSET 10 32 #include "abstractmarkupbuilder.h" 33 #include "grantlee_gui_export.h" 34 #include "markupdirector.h" 41 class PlainTextMarkupBuilderPrivate;
108 void beginUnderline();
110 void beginStrikeout();
113 void beginAnchor(
const QString &href = QString(),
const QString &name = QString() );
117 void beginForeground(
const QBrush &brush );
119 void endForeground();
121 void beginBackground(
const QBrush &brush );
123 void endBackground();
125 void beginFontFamily(
const QString &family );
127 void endFontFamily();
129 void beginFontPointSize(
int size );
131 void endFontPointSize();
133 void beginParagraph( Qt::Alignment a = Qt::AlignLeft, qreal top = 0.0, qreal bottom = 0.0, qreal left = 0.0, qreal right = 0.0 );
138 void insertHorizontalRule(
int width = -1 );
140 void insertImage(
const QString &src, qreal width, qreal height );
142 void beginList( QTextListFormat::Style style );
146 void beginListItem();
150 void beginSuperscript();
152 void endSuperscript();
154 void beginSubscript();
158 void beginTable( qreal cellpadding, qreal cellspacing,
const QString &width );
160 void beginTableRow();
162 void beginTableHeaderCell(
const QString &width,
int colSpan,
int rowSpan );
164 void beginTableCell(
const QString &width,
int colSpan,
int rowSpan );
170 void endTableHeaderCell();
174 void beginHeader(
int level );
176 void endHeader(
int level );
178 void appendLiteralText(
const QString &text );
180 void appendRawText(
const QString &text );
185 int addReference(
const QString &reference );
193 PlainTextMarkupBuilderPrivate *
const d_ptr;
The PlainTextHTMLMarkupBuilder creates a simple marked up plain text document.
The AbstractMarkupBuilder class serves as a base class for creating marked up plain text output...
The Grantlee namespace holds all public Grantlee API.