diff options
Diffstat (limited to 'xmloff/source/transform/StyleOASISTContext.cxx')
-rw-r--r-- | xmloff/source/transform/StyleOASISTContext.cxx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/xmloff/source/transform/StyleOASISTContext.cxx b/xmloff/source/transform/StyleOASISTContext.cxx index b3a542733bf6..771d55e49909 100644 --- a/xmloff/source/transform/StyleOASISTContext.cxx +++ b/xmloff/source/transform/StyleOASISTContext.cxx @@ -66,7 +66,6 @@ class XMLPropertiesTContext_Impl : public XMLPersElemContentTContext XMLPropType m_ePropType; bool m_bControlStyle; - OUString m_aStyleFamily; public: @@ -80,7 +79,6 @@ public: XMLPropertiesTContext_Impl( XMLTransformerBase& rTransformer, const OUString& rQName, XMLPropType eP, - const OUString& rStyleFamily, bool _bControlStyle ); virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override; @@ -98,12 +96,11 @@ public: XMLPropertiesTContext_Impl::XMLPropertiesTContext_Impl( XMLTransformerBase& rImp, const OUString& rQName, XMLPropType eP, - const OUString& rStyleFamily, bool _bControlStyle ) : + bool _bControlStyle ) : XMLPersElemContentTContext( rImp, rQName, XML_NAMESPACE_STYLE, XML_PROPERTIES), m_ePropType( eP ), - m_bControlStyle( _bControlStyle ), - m_aStyleFamily( rStyleFamily ) + m_bControlStyle( _bControlStyle ) { } @@ -758,7 +755,7 @@ rtl::Reference<XMLTransformerContext> XMLStyleOASISTContext::CreateChildContext( // if no properties context exist start a new one. if( !m_xPropContext.is() ) m_xPropContext = new XMLPropertiesTContext_Impl( - GetTransformer(), rQName, ePropType, m_aStyleFamily, m_bControlStyle ); + GetTransformer(), rQName, ePropType, m_bControlStyle ); else m_xPropContext->SetQNameAndPropType( rQName, ePropType ); pContext.set(m_xPropContext.get()); @@ -820,13 +817,11 @@ void XMLStyleOASISTContext::StartElement( case XML_ATACTION_STYLE_FAMILY: if( IsXMLToken( rAttrValue, XML_GRAPHIC ) ) { - m_aStyleFamily = GetXMLToken( XML_GRAPHICS ) ; - pMutableAttrList->SetValueByIndex( i, m_aStyleFamily ); + pMutableAttrList->SetValueByIndex( + i, GetXMLToken(XML_GRAPHICS) ); } else { - m_aStyleFamily = rAttrValue; - if( IsXMLToken( rAttrValue, XML_PARAGRAPH ) ) nFamilyAttr = i; } |