summaryrefslogtreecommitdiff
path: root/xmloff/inc/XMLStringBufferImportContext.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-03-09 15:23:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-03-10 10:42:10 +0100
commit20c5a2abb61c4246c6001b7b6d5bd69cd5882cfd (patch)
tree2aa3dd2ff5cb12aa085107b41b043327fa0cb02d /xmloff/inc/XMLStringBufferImportContext.hxx
parentbfee21b6c87c420e0c5d3447b13e013592a30c22 (diff)
use FastParser in DrawAnnotationContext
Change-Id: I4228a5ccbd738d2e51473ded511cf4bfd2b6617d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90244 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/inc/XMLStringBufferImportContext.hxx')
-rw-r--r--xmloff/inc/XMLStringBufferImportContext.hxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/xmloff/inc/XMLStringBufferImportContext.hxx b/xmloff/inc/XMLStringBufferImportContext.hxx
index 6d843a1ca6af..9c607480084f 100644
--- a/xmloff/inc/XMLStringBufferImportContext.hxx
+++ b/xmloff/inc/XMLStringBufferImportContext.hxx
@@ -29,6 +29,8 @@
/**
* Import all text into a string buffer. Paragraph elements (<text:p>)
* are recognized and cause a return character (0x0a) to be added.
+ *
+ * Supports both old and fast-parser.
*/
class XMLStringBufferImportContext final : public SvXMLImportContext
{
@@ -36,13 +38,16 @@ class XMLStringBufferImportContext final : public SvXMLImportContext
public:
-
XMLStringBufferImportContext(
SvXMLImport& rImport,
sal_uInt16 nPrefix,
const OUString& sLocalName,
OUStringBuffer& rBuffer);
+ XMLStringBufferImportContext(
+ SvXMLImport& rImport,
+ OUStringBuffer& rBuffer);
+
virtual ~XMLStringBufferImportContext() override;
virtual SvXMLImportContextRef CreateChildContext(
@@ -54,6 +59,12 @@ public:
const OUString& rChars ) override;
virtual void EndElement() override;
+
+ virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
+ sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
+ virtual void SAL_CALL startFastElement( sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
+ virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
+ virtual void SAL_CALL characters(const OUString& rChars) override;
};
#endif