From 3aa52d36824d11b8774de15708fdfcbb93cd9dc3 Mon Sep 17 00:00:00 2001 From: Mohammed Abdul Azeem Date: Mon, 18 Jul 2016 13:17:19 +0530 Subject: GSOC - Handling namespace declaration missing case: initialization parameter to FastParser will turn off the namespace declaration missing exception. Test cases have also been given to verify the same. Change-Id: I4c3e02c7ad92d50e279f895ced53c78fc8f49b91 Reviewed-on: https://gerrit.libreoffice.org/27278 Tested-by: Jenkins Reviewed-by: Michael Meeks Tested-by: Michael Meeks --- include/sax/fastparser.hxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include/sax/fastparser.hxx') diff --git a/include/sax/fastparser.hxx b/include/sax/fastparser.hxx index 3ddba58f2707..85eaf305e4fe 100644 --- a/include/sax/fastparser.hxx +++ b/include/sax/fastparser.hxx @@ -22,7 +22,9 @@ #include #include -#include +#include +#include +#include #include #include @@ -42,7 +44,8 @@ class FastSaxParserImpl; // This class implements the external Parser interface class FASTSAX_DLLPUBLIC FastSaxParser - : public ::cppu::WeakImplHelper2< + : public ::cppu::WeakImplHelper< + css::lang::XInitialization, css::xml::sax::XFastParser, css::lang::XServiceInfo > { @@ -52,6 +55,9 @@ public: FastSaxParser(); virtual ~FastSaxParser(); + // css::lang::XInitialization: + virtual void SAL_CALL initialize(css::uno::Sequence const& rArguments) throw (css::uno::RuntimeException, css::uno::Exception, std::exception) override; + // XFastParser virtual void SAL_CALL parseStream( const css::xml::sax::InputSource& aInputSource ) throw (css::xml::sax::SAXException, css::io::IOException, css::uno::RuntimeException, std::exception) override; virtual void SAL_CALL setFastDocumentHandler( const css::uno::Reference< css::xml::sax::XFastDocumentHandler >& Handler ) throw (css::uno::RuntimeException, std::exception) override; -- cgit