summaryrefslogtreecommitdiff
path: root/xmloff/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-11-14 15:04:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-11-15 17:13:22 +0100
commit1872b44c9a2ee2bd00be54c6c310b72579d7a47f (patch)
tree047ea7435b7731dc1521a9ba80b5c2f0c5d88378 /xmloff/inc
parent5d23f7748f33414a95297fa9f374a37e76de687b (diff)
use FastParser for the XMLVersionListImport
Change-Id: I90be4d9a599969e4f91d1515010be40f1870025a Reviewed-on: https://gerrit.libreoffice.org/82685 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/inc')
-rw-r--r--xmloff/inc/xmlversion.hxx25
1 files changed, 9 insertions, 16 deletions
diff --git a/xmloff/inc/xmlversion.hxx b/xmloff/inc/xmlversion.hxx
index 0e2b9d855912..820903f3e043 100644
--- a/xmloff/inc/xmlversion.hxx
+++ b/xmloff/inc/xmlversion.hxx
@@ -54,9 +54,8 @@ private:
protected:
- virtual SvXMLImportContext *CreateDocumentContext( sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList ) override;
+ virtual SvXMLImportContext *CreateFastContext( sal_Int32 Element,
+ const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList >& xAttrList ) override;
public:
@@ -72,27 +71,23 @@ public:
class XMLVersionListContext : public SvXMLImportContext
{
private:
- XMLVersionListImport & rLocalRef;
+ XMLVersionListImport & GetImport() { return static_cast<XMLVersionListImport&>(SvXMLImportContext::GetImport()); }
public:
- XMLVersionListContext( XMLVersionListImport& rImport,
- sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList );
+ XMLVersionListContext( XMLVersionListImport& rImport );
virtual ~XMLVersionListContext() override;
- virtual SvXMLImportContextRef CreateChildContext( sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList ) override;
-
+ virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL
+ createFastChildContext(sal_Int32 nElement,
+ const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttribs) override;
};
class XMLVersionContext: public SvXMLImportContext
{
private:
- XMLVersionListImport& rLocalRef;
+ XMLVersionListImport& GetImport() { return static_cast<XMLVersionListImport&>(SvXMLImportContext::GetImport()); }
static bool ParseISODateTimeString(
const OUString& rString,
@@ -101,9 +96,7 @@ private:
public:
XMLVersionContext( XMLVersionListImport& rImport,
- sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList );
+ const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
virtual ~XMLVersionContext() override;
};