PageFormatProperty StyleParser::parsePageProperty( QDomElement &parent ) { PageFormatProperty property; property.setBottomMargin( convertUnit( parent.attribute( "margin-bottom" ) ) ); property.setLeftMargin( convertUnit( parent.attribute( "margin-left" ) ) ); property.setTopMargin( convertUnit( parent.attribute( "margin-top" ) ) ); property.setRightMargin( convertUnit( parent.attribute( "margin-right" ) ) ); property.setWidth( convertUnit( parent.attribute( "page-width" ) ) ); property.setHeight( convertUnit( parent.attribute( "page-height" ) ) ); return property; }