diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-08-19 20:23:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-20 09:38:13 +0200 |
commit | 7b83a28f1eb7d0687d07cfaaf8cfaaf9a8eea8c1 (patch) | |
tree | 8148aa5f8453b3391984831367c2f67edb8e5b88 /xmloff/source/draw/ximpstyl.hxx | |
parent | bf529f8dff2482eba190b512ff93f16bcab7af26 (diff) |
use fastparser in SdXMLHeaderFooterDeclContext
actually, it can do both fast and slow parser paths for now, because
it is used in a place fast-parser doesn't reach yet.
Which means that I had to make SvXMLStyleContext also
capable of handling both fast and slow parser paths.
Change-Id: I24fd5bfb6603e93a5f752365c246ce47dabea8bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101017
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/draw/ximpstyl.hxx')
-rw-r--r-- | xmloff/source/draw/ximpstyl.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xmloff/source/draw/ximpstyl.hxx b/xmloff/source/draw/ximpstyl.hxx index 9c1f21e28c23..68927899d2d7 100644 --- a/xmloff/source/draw/ximpstyl.hxx +++ b/xmloff/source/draw/ximpstyl.hxx @@ -247,13 +247,21 @@ public: class SdXMLHeaderFooterDeclContext : public SvXMLStyleContext { public: + // Can be called in either fast- or slow-parser mode SdXMLHeaderFooterDeclContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLName, const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ); + SdXMLHeaderFooterDeclContext( SvXMLImport& rImport, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ); virtual bool IsTransient() const override; virtual void EndElement() override; virtual void Characters( const OUString& rChars ) override; + virtual void SAL_CALL startFastElement( + sal_Int32 /*nElement*/, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& ) override {} + virtual void SAL_CALL endFastElement(sal_Int32 ) override; + virtual void SAL_CALL characters( const OUString& rChars ) override; private: OUString maStrName; |