summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-08-19 20:23:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-08-20 09:38:13 +0200
commit7b83a28f1eb7d0687d07cfaaf8cfaaf9a8eea8c1 (patch)
tree8148aa5f8453b3391984831367c2f67edb8e5b88 /include
parentbf529f8dff2482eba190b512ff93f16bcab7af26 (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')
-rw-r--r--include/xmloff/xmlstyle.hxx9
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; }