diff options
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/Library_chartcore.mk | 1 | ||||
-rw-r--r-- | chart2/source/model/filter/XMLFilter.cxx | 8 | ||||
-rw-r--r-- | chart2/source/model/inc/XMLFilter.hxx | 3 |
3 files changed, 5 insertions, 7 deletions
diff --git a/chart2/Library_chartcore.mk b/chart2/Library_chartcore.mk index 54bc946766d8..05697c36eaff 100644 --- a/chart2/Library_chartcore.mk +++ b/chart2/Library_chartcore.mk @@ -48,6 +48,7 @@ $(eval $(call gb_Library_use_libraries,chartcore,\ i18nlangtag \ sal \ salhelper \ + sax \ sfx \ svl \ svt \ diff --git a/chart2/source/model/filter/XMLFilter.cxx b/chart2/source/model/filter/XMLFilter.cxx index 6eccb22be375..6362fc91beed 100644 --- a/chart2/source/model/filter/XMLFilter.cxx +++ b/chart2/source/model/filter/XMLFilter.cxx @@ -44,11 +44,11 @@ #include <com/sun/star/xml/sax/Parser.hpp> #include <com/sun/star/xml/sax/SAXParseException.hpp> #include <com/sun/star/xml/sax/XDocumentHandler.hpp> -#include <com/sun/star/xml/sax/XFastParser.hpp> #include <com/sun/star/packages/zip/ZipIOException.hpp> #include <com/sun/star/document/GraphicStorageHandler.hpp> #include <comphelper/diagnose_ex.hxx> #include <sal/log.hxx> +#include <sax/xfastparser.hxx> using namespace ::com::sun::star; @@ -463,9 +463,9 @@ ErrCode XMLFilter::impl_ImportStream( aParserInput.aInputStream.set(xInputStream, uno::UNO_QUERY_THROW); // the underlying SvXMLImport implements XFastParser, XImporter, XFastDocumentHandler - Reference< xml::sax::XFastParser > xFastParser(xFilter, uno::UNO_QUERY); - if (xFastParser.is()) - xFastParser->parseStream(aParserInput); + XFastParser* pFastParser = dynamic_cast<XFastParser*>(xFilter.get()); + if (pFastParser) + pFastParser->parseStream(aParserInput); else { Reference<xml::sax::XParser> xParser = xml::sax::Parser::create(m_xContext); diff --git a/chart2/source/model/inc/XMLFilter.hxx b/chart2/source/model/inc/XMLFilter.hxx index c26587c3ebad..e8a2890c0b24 100644 --- a/chart2/source/model/inc/XMLFilter.hxx +++ b/chart2/source/model/inc/XMLFilter.hxx @@ -36,9 +36,6 @@ namespace com::sun::star { namespace embed { class XStorage; } - namespace xml::sax { - class XFastParser; - } namespace document { class XGraphicStorageHandler; } |