diff options
author | Mohammed Abdul Azeem <azeemmysore@gmail.com> | 2016-07-18 13:17:19 +0530 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-07-19 14:17:15 +0000 |
commit | 3aa52d36824d11b8774de15708fdfcbb93cd9dc3 (patch) | |
tree | da30a99082cdb0d774e5a452344a976abf6a4bb5 /include | |
parent | 495cfa27c173741caa233575438c18746272b4aa (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sax/fastparser.hxx | 10 |
1 files changed, 8 insertions, 2 deletions
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 <com/sun/star/xml/sax/XFastParser.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/weak.hxx> +#include <cppuhelper/implbase.hxx> +#include <com/sun/star/lang/XInitialization.hpp> #include <sax/fastsaxdllapi.h> #include <memory> @@ -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<css::uno::Any> 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; |