[Libreoffice-commits] .: sw/inc sw/source

Muthu Subramanian sumuthu at kemper.freedesktop.org
Wed Jun 29 00:17:10 PDT 2011


 sw/inc/unotbl.hxx                 |    2 ++
 sw/source/core/unocore/unotbl.cxx |   11 +++++++++++
 2 files changed, 13 insertions(+)

New commits:
commit 1c48bdd0553c0bad60cb5d5140497f8e06849523
Author: Muthu Subramanian <sumuthu at novell.com>
Date:   Wed Jun 29 12:59:59 2011 +0530

    Improved xlsx formula import.
    
    Now uses the values present in the import document
    rather than calculating the formula. This speeds up
    document loading.
    TODO: Extend this to string results as well.

diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx
index e221706..e328125 100644
--- a/sw/inc/unotbl.hxx
+++ b/sw/inc/unotbl.hxx
@@ -137,6 +137,8 @@ public:
     //XCell
     virtual ::rtl::OUString SAL_CALL getFormula(  ) throw(::com::sun::star::uno::RuntimeException);
     virtual void SAL_CALL setFormula( const ::rtl::OUString& aFormula ) throw(::com::sun::star::uno::RuntimeException);
+    virtual void SAL_CALL setFormulaString( const ::rtl::OUString& aFormula ) throw(::com::sun::star::uno::RuntimeException);
+    virtual void SAL_CALL setFormulaResult( const double nValue ) throw(::com::sun::star::uno::RuntimeException);
     virtual double SAL_CALL getValue(  ) throw(::com::sun::star::uno::RuntimeException);
     virtual void SAL_CALL setValue( double nValue ) throw(::com::sun::star::uno::RuntimeException);
     virtual ::com::sun::star::table::CellContentType SAL_CALL getType(  ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index fff58ac..980a909 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -947,6 +947,17 @@ void SwXCell::setFormula(const OUString& rFormula) throw( uno::RuntimeException
     }
 }
 
+void SwXCell::setFormulaString(const OUString& /*rFormula*/) throw( uno::RuntimeException )
+{
+    return;
+}
+
+void SwXCell::setFormulaResult(double /*nValue*/) throw( uno::RuntimeException )
+{
+    SolarMutexGuard aGuard;
+    return;
+}
+
 double SwXCell::getValue(void) throw( uno::RuntimeException )
 {
     SolarMutexGuard aGuard;


More information about the Libreoffice-commits mailing list