[Libreoffice-commits] core.git: Branch 'feature/fastsax' - sc/source

Michael Meeks michael.meeks at collabora.com
Fri May 23 05:55:29 PDT 2014


 sc/source/filter/xml/xmlwrap.cxx |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

New commits:
commit d824ea5c012eaae538845deef0b4e3f0144d9dbd
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Fri May 23 13:55:29 2014 +0100

    Fix compile issues; squash before merge.
    
    Change-Id: Icbedc2ce374614ba371e75524bee8e70d3ae0bf6

diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx
index cb5fd28..b6c5be2 100644
--- a/sc/source/filter/xml/xmlwrap.cxx
+++ b/sc/source/filter/xml/xmlwrap.cxx
@@ -36,6 +36,7 @@
 #include <com/sun/star/xml/sax/InputSource.hpp>
 #include <com/sun/star/xml/sax/XDTDHandler.hpp>
 #include <com/sun/star/xml/sax/Parser.hpp>
+#include <com/sun/star/xml/sax/FastParser.hpp>
 #include <com/sun/star/xml/sax/Writer.hpp>
 #include <com/sun/star/io/XActiveDataSource.hpp>
 #include <com/sun/star/io/XActiveDataControl.hpp>
@@ -469,8 +470,7 @@ public:
 
     // The SAX-Parser-Interface
     virtual void SAL_CALL parseStream( const css::xml::sax::InputSource& structSource)
-        throw ( css::xml::sax::SAXException,
-                IOException,
+        throw ( css::xml::sax::SAXException, css::io::IOException,
                 css::uno::RuntimeException, std::exception) SAL_OVERRIDE
     {
         mxFastParser->parseStream(structSource);
@@ -484,35 +484,35 @@ public:
                               new XFastHandlerWrapper( xHandler ) );
         else
             mxHandler.clear();
-        mxFastParser->setFastDocumentHandler(xHandle);
+        mxFastParser->setFastDocumentHandler(mxHandler);
     }
 
-    virtual void SAL_CALL setErrorHandler(const css::uno::Reference< XErrorHandler > & xHandler)
+    virtual void SAL_CALL setErrorHandler(const css::uno::Reference< xml::sax::XErrorHandler > & xHandler)
         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
     {
         mxFastParser->setErrorHandler(xHandler);
     }
 
-    virtual void SAL_CALL setDTDHandler(const css::uno::Reference < XDTDHandler > & xHandler)
+    virtual void SAL_CALL setDTDHandler(const css::uno::Reference < xml::sax::XDTDHandler > & /* xHandler */)
         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
     {
-        mxFastParser->setDTDHandler(xHandler);
+        assert(false);
     }
 
-    virtual void SAL_CALL setEntityResolver(const css::uno::Reference<  XEntityResolver >& xResolver)
+    virtual void SAL_CALL setEntityResolver(const css::uno::Reference< xml::sax::XEntityResolver >& xResolver)
         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
     {
         mxFastParser->setEntityResolver(xResolver);
     }
 
-    virtual void SAL_CALL setLocale( const Locale &locale )                     throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
+    virtual void SAL_CALL setLocale( const lang::Locale &locale )
+        throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
     {
         mxFastParser->setLocale(locale);
     }
 };
 
-
-bool ScXMLImportWrapper::Import(bool bStylesOnly, ErrCode& nError)
+bool ScXMLImportWrapper::Import( sal_uInt8 nMode, ErrCode& rError )
 {
     uno::Reference<uno::XComponentContext> xContext = comphelper::getProcessComponentContext();
 


More information about the Libreoffice-commits mailing list