diff options
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/chart/SchXMLImport.cxx | 7 | ||||
-rw-r--r-- | xmloff/source/core/xmlictxt.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/core/xmlimp.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/draw/animationimport.cxx | 8 | ||||
-rw-r--r-- | xmloff/source/draw/sdxmlimp.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/draw/sdxmlimp_impl.hxx | 5 | ||||
-rw-r--r-- | xmloff/source/meta/MetaImportComponent.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/meta/xmlversion.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/text/XMLAutoTextEventImport.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/text/XMLAutoTextEventImport.hxx | 2 |
10 files changed, 26 insertions, 24 deletions
diff --git a/xmloff/source/chart/SchXMLImport.cxx b/xmloff/source/chart/SchXMLImport.cxx index d3c40c78887d..b7dc42566ec3 100644 --- a/xmloff/source/chart/SchXMLImport.cxx +++ b/xmloff/source/chart/SchXMLImport.cxx @@ -510,7 +510,8 @@ SchXMLImport::~SchXMLImport() throw () // create the main context (subcontexts are created // by the one created here) -SvXMLImportContext *SchXMLImport::CreateContext( sal_uInt16 nPrefix, const OUString& rLocalName, +SvXMLImportContext *SchXMLImport::CreateDocumentContext(sal_uInt16 const nPrefix, + const OUString& rLocalName, const Reference< xml::sax::XAttributeList >& xAttrList ) { SvXMLImportContext* pContext = nullptr; @@ -540,12 +541,12 @@ SvXMLImportContext *SchXMLImport::CreateContext( sal_uInt16 nPrefix, const OUStr xDPS->getDocumentProperties()); } else { pContext = (IsXMLToken(rLocalName, XML_DOCUMENT_META)) - ? SvXMLImport::CreateContext( nPrefix, rLocalName, xAttrList ) + ? SvXMLImport::CreateDocumentContext(nPrefix, rLocalName, xAttrList) : new SchXMLDocContext( *maImportHelper.get(), *this, nPrefix, rLocalName ); } } else { - pContext = SvXMLImport::CreateContext( nPrefix, rLocalName, xAttrList ); + pContext = SvXMLImport::CreateDocumentContext(nPrefix, rLocalName, xAttrList); } return pContext; diff --git a/xmloff/source/core/xmlictxt.cxx b/xmloff/source/core/xmlictxt.cxx index e1805057dcdd..a00539afce6b 100644 --- a/xmloff/source/core/xmlictxt.cxx +++ b/xmloff/source/core/xmlictxt.cxx @@ -48,10 +48,10 @@ SvXMLImportContext::~SvXMLImportContext() } SvXMLImportContextRef SvXMLImportContext::CreateChildContext( sal_uInt16 nPrefix, - const OUString& rLocalName, - const uno::Reference< xml::sax::XAttributeList >& xAttrList ) + const OUString& rLocalName, + const uno::Reference<xml::sax::XAttributeList>& ) { - return mrImport.CreateContext( nPrefix, rLocalName, xAttrList ); + return new SvXMLImportContext(mrImport, nPrefix, rLocalName); } void SvXMLImportContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& ) diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx index f96940aeb575..676d6be7d071 100644 --- a/xmloff/source/core/xmlimp.cxx +++ b/xmloff/source/core/xmlimp.cxx @@ -308,7 +308,7 @@ public: ::comphelper::UnoInterfaceToUniqueIdentifierMapper maInterfaceToIdentifierMapper; }; -SvXMLImportContext *SvXMLImport::CreateContext( sal_uInt16 nPrefix, +SvXMLImportContext *SvXMLImport::CreateDocumentContext(sal_uInt16 const nPrefix, const OUString& rLocalName, const uno::Reference< xml::sax::XAttributeList >& ) { @@ -719,7 +719,7 @@ void SAL_CALL SvXMLImport::startElement( const OUString& rName, } else { - xContext.set(CreateContext( nPrefix, aLocalName, xAttrList )); + xContext.set(CreateDocumentContext(nPrefix, aLocalName, xAttrList)); if( (nPrefix & XML_NAMESPACE_UNKNOWN_FLAG) != 0 && dynamic_cast< const SvXMLImportContext*>(xContext.get()) != nullptr ) { diff --git a/xmloff/source/draw/animationimport.cxx b/xmloff/source/draw/animationimport.cxx index 8134fd671499..75553fa8a1cd 100644 --- a/xmloff/source/draw/animationimport.cxx +++ b/xmloff/source/draw/animationimport.cxx @@ -1243,7 +1243,7 @@ class AnimationsImport: public SvXMLImport, public XAnimationNodeSupplier public: explicit AnimationsImport( const Reference< XComponentContext > & rxContext ); - SvXMLImportContext* CreateContext(sal_uInt16 nPrefix, const OUString& rLocalName, const Reference<XAttributeList>& xAttrList) override; + SvXMLImportContext* CreateDocumentContext(sal_uInt16 nPrefix, const OUString& rLocalName, const Reference<XAttributeList>& xAttrList) override; // XInterface virtual Any SAL_CALL queryInterface( const Type& aType ) override; @@ -1305,7 +1305,9 @@ void SAL_CALL AnimationsImport::release() throw () SvXMLImport::release(); } -SvXMLImportContext *AnimationsImport::CreateContext(sal_uInt16 nPrefix, const OUString& rLocalName, const Reference<XAttributeList>& xAttrList) +SvXMLImportContext *AnimationsImport::CreateDocumentContext( + sal_uInt16 const nPrefix, const OUString& rLocalName, + const Reference<XAttributeList>& xAttrList) { SvXMLImportContext* pContext = nullptr; @@ -1315,7 +1317,7 @@ SvXMLImportContext *AnimationsImport::CreateContext(sal_uInt16 nPrefix, const OU } else { - pContext = SvXMLImport::CreateContext(nPrefix, rLocalName, xAttrList); + pContext = SvXMLImport::CreateDocumentContext(nPrefix, rLocalName, xAttrList); } return pContext; diff --git a/xmloff/source/draw/sdxmlimp.cxx b/xmloff/source/draw/sdxmlimp.cxx index bb02d346bf24..ed2848036239 100644 --- a/xmloff/source/draw/sdxmlimp.cxx +++ b/xmloff/source/draw/sdxmlimp.cxx @@ -584,7 +584,7 @@ const SvXMLTokenMap& SdXMLImport::GetPresentationPlaceholderAttrTokenMap() return *mpPresentationPlaceholderAttrTokenMap; } -SvXMLImportContext *SdXMLImport::CreateContext(sal_uInt16 nPrefix, +SvXMLImportContext *SdXMLImport::CreateDocumentContext(sal_uInt16 nPrefix, const OUString& rLocalName, const uno::Reference<xml::sax::XAttributeList>& xAttrList) { @@ -607,7 +607,7 @@ SvXMLImportContext *SdXMLImport::CreateContext(sal_uInt16 nPrefix, pContext = new SdXMLFlatDocContext_Impl( *this, nPrefix, rLocalName, xAttrList, xDPS->getDocumentProperties()); } else { - pContext = SvXMLImport::CreateContext(nPrefix, rLocalName, xAttrList); + pContext = SvXMLImport::CreateDocumentContext(nPrefix, rLocalName, xAttrList); } return pContext; diff --git a/xmloff/source/draw/sdxmlimp_impl.hxx b/xmloff/source/draw/sdxmlimp_impl.hxx index 9dcf7715a76a..3900aa02aaf4 100644 --- a/xmloff/source/draw/sdxmlimp_impl.hxx +++ b/xmloff/source/draw/sdxmlimp_impl.hxx @@ -175,9 +175,8 @@ class SdXMLImport: public SvXMLImport DateTimeDeclMap maDateTimeDeclsMap; protected: - // This method is called after the namespace map has been updated, but - // before a context for the current element has been pushed. - virtual SvXMLImportContext *CreateContext(sal_uInt16 nPrefix, + + virtual SvXMLImportContext *CreateDocumentContext(sal_uInt16 nPrefix, const OUString& rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList) override; diff --git a/xmloff/source/meta/MetaImportComponent.cxx b/xmloff/source/meta/MetaImportComponent.cxx index 2ba733d1abc0..2159916ad9cc 100644 --- a/xmloff/source/meta/MetaImportComponent.cxx +++ b/xmloff/source/meta/MetaImportComponent.cxx @@ -43,7 +43,7 @@ public: protected: - virtual SvXMLImportContext* CreateContext( + virtual SvXMLImportContext* CreateDocumentContext( sal_uInt16 nPrefix, const OUString& rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList ) override; @@ -68,7 +68,7 @@ XMLMetaImportComponent::XMLMetaImportComponent( { } -SvXMLImportContext* XMLMetaImportComponent::CreateContext( +SvXMLImportContext* XMLMetaImportComponent::CreateDocumentContext( sal_uInt16 nPrefix, const OUString& rLocalName, const uno::Reference<xml::sax::XAttributeList > & xAttrList ) @@ -86,7 +86,7 @@ SvXMLImportContext* XMLMetaImportComponent::CreateContext( } else { - return SvXMLImport::CreateContext(nPrefix, rLocalName, xAttrList); + return SvXMLImport::CreateDocumentContext(nPrefix, rLocalName, xAttrList); } } diff --git a/xmloff/source/meta/xmlversion.cxx b/xmloff/source/meta/xmlversion.cxx index 080a954536aa..48104f58ff34 100644 --- a/xmloff/source/meta/xmlversion.cxx +++ b/xmloff/source/meta/xmlversion.cxx @@ -112,7 +112,7 @@ XMLVersionListImport::XMLVersionListImport( XMLVersionListImport::~XMLVersionListImport() throw() {} -SvXMLImportContext *XMLVersionListImport::CreateContext( +SvXMLImportContext *XMLVersionListImport::CreateDocumentContext( sal_uInt16 nPrefix, const OUString& rLocalName, const Reference< XAttributeList > & xAttrList ) @@ -126,7 +126,7 @@ SvXMLImportContext *XMLVersionListImport::CreateContext( } else { - pContext = SvXMLImport::CreateContext( nPrefix, rLocalName, xAttrList ); + pContext = SvXMLImport::CreateDocumentContext( nPrefix, rLocalName, xAttrList ); } return pContext; diff --git a/xmloff/source/text/XMLAutoTextEventImport.cxx b/xmloff/source/text/XMLAutoTextEventImport.cxx index dcb7d93554b3..285a8ca1d13b 100644 --- a/xmloff/source/text/XMLAutoTextEventImport.cxx +++ b/xmloff/source/text/XMLAutoTextEventImport.cxx @@ -85,7 +85,7 @@ void XMLAutoTextEventImport::initialize( } -SvXMLImportContext* XMLAutoTextEventImport::CreateContext( +SvXMLImportContext* XMLAutoTextEventImport::CreateDocumentContext( sal_uInt16 nPrefix, const OUString& rLocalName, const Reference<XAttributeList > & xAttrList ) @@ -98,7 +98,7 @@ SvXMLImportContext* XMLAutoTextEventImport::CreateContext( } else { - return SvXMLImport::CreateContext(nPrefix, rLocalName, xAttrList); + return SvXMLImport::CreateDocumentContext(nPrefix, rLocalName, xAttrList); } } diff --git a/xmloff/source/text/XMLAutoTextEventImport.hxx b/xmloff/source/text/XMLAutoTextEventImport.hxx index 0d7b4d4787fb..6413033dee4a 100644 --- a/xmloff/source/text/XMLAutoTextEventImport.hxx +++ b/xmloff/source/text/XMLAutoTextEventImport.hxx @@ -52,7 +52,7 @@ public: protected: - virtual SvXMLImportContext* CreateContext( + virtual SvXMLImportContext* CreateDocumentContext( sal_uInt16 nPrefix, const OUString& rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList ) override; |