18 #ifndef QGSLEGENDSTYLE_H 19 #define QGSLEGENDSTYLE_H 24 #include <QDomElement> 25 #include <QDomDocument> 27 #include "qgis_core.h" 62 QFont
font()
const {
return mFont; }
67 void setFont(
const QFont &font ) { mFont = font; }
77 double margin(
Side side ) {
return mMarginMap.value( side ); }
78 void setMargin(
Side side,
double margin ) { mMarginMap[side] = margin; }
81 void setMargin(
double margin );
83 void writeXml(
const QString &name, QDomElement &elem, QDomDocument &doc )
const;
85 void readXml(
const QDomElement &elem,
const QDomDocument &doc );
88 static QString styleName(
Style s );
91 static Style styleFromName(
const QString &styleName );
94 static QString styleLabel(
Style s );
99 QMap<Side, double> mMarginMap;
Composer legend components style.
Should not happen, only if corrupted project file.
void setFont(const QFont &font)
The font for this style.
void setMargin(Side side, double margin)
Special style, item is hidden including margins around.
QFont & rfont()
Modifiable reference to font.
QFont font() const
The font for this style.