summaryrefslogtreecommitdiffstats
path: root/writerfilter
diff options
context:
space:
mode:
authorMohammed Abdul Azeem <azeemmysore@gmail.com>2017-06-14 18:16:41 +0530
committerMichael Meeks <michael.meeks@collabora.com>2017-06-15 11:08:20 +0200
commit420cecf55878a2d652a61540ddc37a7faaf4cc46 (patch)
tree1a4ee822f7b5e9e0e21c31e6d24d7a8273c1b87e /writerfilter
parentWatermark: RTF font import and export (diff)
downloadcore-420cecf55878a2d652a61540ddc37a7faaf4cc46.tar.gz
core-420cecf55878a2d652a61540ddc37a7faaf4cc46.zip
[API CHANGE] Add processingInstruction event to XFastDocumentHandler:
Also made changes in FastParser impl. to emit this event. I've made use of existing namespace and element name strings to store target and data for this event. Change-Id: I6f00cd1172552dd9a74ec22190bef3d2289ae515 Reviewed-on: https://gerrit.libreoffice.org/38784 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/ooxml/OOXMLFastDocumentHandler.cxx4
-rw-r--r--writerfilter/source/ooxml/OOXMLFastDocumentHandler.hxx1
2 files changed, 5 insertions, 0 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFastDocumentHandler.cxx b/writerfilter/source/ooxml/OOXMLFastDocumentHandler.cxx
index 7c027680abaa..19e6656f128f 100644
--- a/writerfilter/source/ooxml/OOXMLFastDocumentHandler.cxx
+++ b/writerfilter/source/ooxml/OOXMLFastDocumentHandler.cxx
@@ -174,6 +174,10 @@ void SAL_CALL OOXMLFastDocumentHandler::endDocument()
{
}
+void SAL_CALL OOXMLFastDocumentHandler::processingInstruction( const OUString& /*rTarget*/, const OUString& /*rData*/ )
+{
+}
+
void SAL_CALL OOXMLFastDocumentHandler::setDocumentLocator
(const uno::Reference< xml::sax::XLocator > & /*xLocator*/)
{
diff --git a/writerfilter/source/ooxml/OOXMLFastDocumentHandler.hxx b/writerfilter/source/ooxml/OOXMLFastDocumentHandler.hxx
index c47bb96ad18a..1251203fb792 100644
--- a/writerfilter/source/ooxml/OOXMLFastDocumentHandler.hxx
+++ b/writerfilter/source/ooxml/OOXMLFastDocumentHandler.hxx
@@ -47,6 +47,7 @@ public:
// css::xml::sax::XFastDocumentHandler:
virtual void SAL_CALL startDocument() override;
virtual void SAL_CALL endDocument() override;
+ virtual void SAL_CALL processingInstruction( const OUString& rTarget, const OUString& rData ) override;
virtual void SAL_CALL setDocumentLocator
(const css::uno::Reference< css::xml::sax::XLocator > & xLocator) override;