diff options
author | Mohammed Abdul Azeem <azeemmysore@gmail.com> | 2018-03-25 12:50:34 +0530 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2018-03-26 10:04:20 +0200 |
commit | d5903802e2c40d6fccbc322c49b5f9a311551b9b (patch) | |
tree | 8a381bce5926d87784cbaff11e07cb822d2315d5 /filter/inc | |
parent | 863ff42c1372e123018d4b22a085a08680bd3793 (diff) |
tdf#116467: fix for SVG files being imported as blank
Any SAX-to-SAX transformation, like in this case should
use SvXMLLegacyToFastDocHandler on the left end, as right
end of the pipe is moved to fast Contexts.
Used delegating constructor here, since m_xDocumentHandler
is constant in SVGReader class.
Change-Id: I1fc841c96aaa618f0b566fdb0301ad48fd869f1c
Reviewed-on: https://gerrit.libreoffice.org/51815
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'filter/inc')
-rw-r--r-- | filter/inc/svgreader.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/filter/inc/svgreader.hxx b/filter/inc/svgreader.hxx index 29ff6ab4d7e9..3149e1770158 100644 --- a/filter/inc/svgreader.hxx +++ b/filter/inc/svgreader.hxx @@ -15,16 +15,23 @@ #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/xml/sax/XDocumentHandler.hpp> #include <com/sun/star/io/XInputStream.hpp> +#include <xmloff/xmlimp.hxx> namespace svgi { class SVGReader { +private: const css::uno::Reference< css::uno::XComponentContext > m_xContext; const css::uno::Reference< css::io::XInputStream > m_xInputStream; const css::uno::Reference< css::xml::sax::XDocumentHandler > m_xDocumentHandler; + SVGReader( const css::uno::Reference<css::uno::XComponentContext>& xContext, + const css::uno::Reference< css::io::XInputStream >& xInputStream, + const css::uno::Reference< css::xml::sax::XDocumentHandler >& xDocumentHandler, + SvXMLImport *pFastHandler); + public: FILTER_DLLPUBLIC SVGReader( const css::uno::Reference<css::uno::XComponentContext>& xContext, const css::uno::Reference< css::io::XInputStream >& xInputStream, |