18 #ifndef QGSCOMPOSERLEGENDSTYLE_H
19 #define QGSCOMPOSERLEGENDSTYLE_H
24 #include <QDomElement>
25 #include <QDomDocument>
53 QFont
font()
const {
return mFont; }
54 QFont &
rfont() {
return mFont; }
55 void setFont(
const QFont & font ) { mFont = font; }
57 double margin(
Side side ) {
return mMarginMap.value( side ); }
58 void setMargin(
Side side,
double margin ) { mMarginMap[side] = margin; }
61 void setMargin(
double margin );
63 void writeXML( QString name, QDomElement& elem, QDomDocument & doc )
const;
65 void readXML(
const QDomElement& elem,
const QDomDocument& doc );
68 static QString styleName( Style s );
71 static Style styleFromName( QString styleName );
74 static QString styleLabel( Style s );
79 QMap<Side, double> mMarginMap;