diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-15 09:18:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-15 09:18:34 +0100 |
commit | dde274e70ceed15f517814ee86453837d228ffdc (patch) | |
tree | 8a34a6e5874bb42484e7aec57cffbdeb37bfcf65 /xmloff/source/chart/contexts.hxx | |
parent | b43f64f430bc19c07f6b5d457a9168de5fb9de69 (diff) |
use FastParser for SchXMLImport
Change-Id: Ib43f109dce8226d29b19c141010e4480147933ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86825
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/chart/contexts.hxx')
-rw-r--r-- | xmloff/source/chart/contexts.hxx | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/xmloff/source/chart/contexts.hxx b/xmloff/source/chart/contexts.hxx index 26f988b433ee..84cfef57b974 100644 --- a/xmloff/source/chart/contexts.hxx +++ b/xmloff/source/chart/contexts.hxx @@ -43,16 +43,13 @@ public: SchXMLDocContext( SchXMLImportHelper& rImpHelper, SvXMLImport& rImport, - sal_uInt16 nPrefix, - const OUString& rLName ); - - SchXMLDocContext( - SchXMLImportHelper& rImpHelper, - SvXMLImport& rImport, sal_Int32 nElement ); virtual ~SchXMLDocContext() override; + virtual void SAL_CALL startFastElement( sal_Int32 /*nElement*/, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& ) override {} + virtual SvXMLImportContextRef CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, @@ -73,6 +70,10 @@ public: sal_Int32 i_nElement, const css::uno::Reference<css::document::XDocumentProperties>& i_xDocProps); + virtual void SAL_CALL startFastElement( sal_Int32 nElement, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override + { SvXMLMetaDocumentContext::startFastElement(nElement, xAttrList); } + virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override; }; @@ -86,11 +87,15 @@ public: SchXMLBodyContext( SchXMLImportHelper& rImpHelper, SvXMLImport& rImport, - sal_uInt16 nPrefix, - const OUString& rLName ); + sal_Int32 nElement ); virtual ~SchXMLBodyContext() override; - virtual void EndElement() override; + virtual void SAL_CALL startFastElement( sal_Int32 /*nElement*/, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& ) override {} + + virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( + sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override; + virtual SvXMLImportContextRef CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, |