From 420cecf55878a2d652a61540ddc37a7faaf4cc46 Mon Sep 17 00:00:00 2001 From: Mohammed Abdul Azeem Date: Wed, 14 Jun 2017 18:16:41 +0530 Subject: [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 Tested-by: Michael Meeks --- sax/source/fastparser/legacyfastparser.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sax/source/fastparser/legacyfastparser.cxx') diff --git a/sax/source/fastparser/legacyfastparser.cxx b/sax/source/fastparser/legacyfastparser.cxx index 4acb1d890090..81e394b4f907 100644 --- a/sax/source/fastparser/legacyfastparser.cxx +++ b/sax/source/fastparser/legacyfastparser.cxx @@ -142,6 +142,7 @@ public: // 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 Reference< XLocator >& xLocator ) override; // XFastContextHandler @@ -195,6 +196,12 @@ void SAL_CALL CallbackDocumentHandler::endDocument() m_xDocumentHandler->endDocument(); } +void SAL_CALL CallbackDocumentHandler::processingInstruction( const OUString& rTarget, const OUString& rData ) +{ + if ( m_xDocumentHandler.is() ) + m_xDocumentHandler->processingInstruction( rTarget, rData ); +} + void SAL_CALL CallbackDocumentHandler::setDocumentLocator( const Reference< XLocator >& xLocator ) { if ( m_xDocumentHandler.is() ) -- cgit