16 #ifndef QGSTEXTFORMAT_H
17 #define QGSTEXTFORMAT_H
20 #include "qgis_core.h"
27 #include <QSharedDataPointer>
29 class QgsTextSettingsPrivate;
172 void setFont(
const QFont &font );
179 QString namedStyle()
const;
187 void setNamedStyle(
const QString &style );
202 void setSize(
double size );
241 QColor color()
const;
248 void setColor(
const QColor &color );
255 double opacity()
const;
263 void setOpacity(
double opacity );
269 QPainter::CompositionMode blendMode()
const;
276 void setBlendMode( QPainter::CompositionMode mode );
284 double lineHeight()
const;
293 void setLineHeight(
double height );
300 TextOrientation orientation()
const;
307 void setOrientation( TextOrientation orientation );
323 bool allowHtmlFormatting()
const;
339 void setAllowHtmlFormatting(
bool allow );
346 QColor previewBackgroundColor()
const;
353 void setPreviewBackgroundColor(
const QColor &color );
396 QFont toQFont() const;
409 bool containsAdvancedEffects() const;
416 bool fontFound()
const {
return mTextFontFound; }
469 static QPixmap textFormatPreviewPixmap( const
QgsTextFormat &format, QSize size, const QString &previewText = QString(),
int padding = 0 );
478 QString mTextFontFamily;
479 bool mTextFontFound = true;
481 QSharedDataPointer<QgsTextSettingsPrivate> d;
485 #endif // QGSTEXTFORMAT_H