22 #include <QDomElement>
23 #include <QDomDocument>
44 if ( elem.isNull() )
return;
46 QDomElement styleElem = doc.createElement(
"style" );
48 styleElem.setAttribute(
"name", name );
55 styleElem.setAttribute(
"font",
mFont.toString() );
57 elem.appendChild( styleElem );
63 if ( elem.isNull() )
return;
65 mFont.fromString( elem.attribute(
"font" ) );
67 mMarginMap[
Top] = elem.attribute(
"marginTop",
"0" ).toDouble();
97 if ( styleName ==
"hidden" )
return Hidden;
98 else if ( styleName ==
"title" )
return Title;
99 else if ( styleName ==
"group" )
return Group;
100 else if ( styleName ==
"subgroup" )
return Subgroup;
101 else if ( styleName ==
"symbol" )
return Symbol;
102 else if ( styleName ==
"symbolLabel" )
return SymbolLabel;