diff options
Diffstat (limited to 'xmloff/source/chart')
-rw-r--r-- | xmloff/source/chart/XMLChartStyleContext.cxx | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/xmloff/source/chart/XMLChartStyleContext.cxx b/xmloff/source/chart/XMLChartStyleContext.cxx index b000a36b2f03..1f8fa14eee27 100644 --- a/xmloff/source/chart/XMLChartStyleContext.cxx +++ b/xmloff/source/chart/XMLChartStyleContext.cxx @@ -42,21 +42,19 @@ using ::xmloff::token::XML_CHART_PROPERTIES; void XMLChartStyleContext::SetAttribute( - sal_uInt16 nPrefixKey, - const OUString& rLocalName, + sal_Int32 nElement, const OUString& rValue ) { - if( IsXMLToken( rLocalName, XML_DATA_STYLE_NAME ) ) - { - msDataStyleName =rValue; - } - else if( IsXMLToken( rLocalName, XML_PERCENTAGE_DATA_STYLE_NAME ) ) - { - msPercentageDataStyleName =rValue; - } - else + switch (nElement & TOKEN_MASK) { - XMLShapeStyleContext::SetAttribute( nPrefixKey, rLocalName, rValue ); + case XML_DATA_STYLE_NAME: + msDataStyleName = rValue; + break; + case XML_PERCENTAGE_DATA_STYLE_NAME: + msPercentageDataStyleName = rValue; + break; + default: + XMLShapeStyleContext::SetAttribute( nElement, rValue ); } } |