18 #ifndef QGSLEGENDSTYLE_H
19 #define QGSLEGENDSTYLE_H
24 #include <QDomElement>
25 #include <QDomDocument>
27 #include "qgis_core.h"
68 QFont font()
const {
return mFont; }
74 void setFont(
const QFont &font ) { mFont = font; }
82 SIP_SKIP QFont &rfont() {
return mFont; }
91 double margin( Side side ) {
return mMarginMap.value( side ); }
100 void setMargin( Side side,
double margin ) { mMarginMap[side] = margin; }
106 void setMargin(
double margin );
114 Qt::Alignment alignment()
const {
return mAlignment; }
122 void setAlignment( Qt::Alignment alignment ) { mAlignment = alignment; }
144 static QString styleName(
Style s );
150 static Style styleFromName(
const QString &styleName );
156 static QString styleLabel(
Style s );
160 QMap<Side, double> mMarginMap;
161 Qt::Alignment mAlignment = Qt::AlignLeft;