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 /include/xmloff | |
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 'include/xmloff')
-rw-r--r-- | include/xmloff/xmlstyle.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/xmloff/xmlstyle.hxx b/include/xmloff/xmlstyle.hxx index 017b2c56af47..6ddf51d8872a 100644 --- a/include/xmloff/xmlstyle.hxx +++ b/include/xmloff/xmlstyle.hxx @@ -98,11 +98,20 @@ public: XmlStyleFamily nFamily=XmlStyleFamily::DATA_STYLE, bool bDefaultStyle = false ); + // Fast-parser constructor + SvXMLStyleContext( SvXMLImport& rImport, + XmlStyleFamily nFamily=XmlStyleFamily::DATA_STYLE, + bool bDefaultStyle = false ); + virtual ~SvXMLStyleContext() override; virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList ) final override; + virtual void SAL_CALL startFastElement( + sal_Int32 nElement, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& ) override; + const OUString& GetName() const { return maName; } const OUString& GetDisplayName() const { return maDisplayName.getLength() ? maDisplayName : maName; } const OUString& GetAutoName() const { return maAutoName; } |