diff options
author | Noel Power <noel.power@novell.com> | 2012-06-20 18:47:22 +0100 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-06-20 21:01:13 +0100 |
commit | 7fff98724bc7e3f4d3defb005aa1358d743d08ed (patch) | |
tree | 2d1a257107b3f560cc06035dc1cef8c1c19fd37c /sc/inc | |
parent | 0e73f3cbe116ac949264482525167eb750835da9 (diff) |
big formula performance improvement for xlsx import (bnc#763168 & bnc#765942)
we get a large performance win by evaluating the formulas at the end of import where we can set up the ScAutoNameCache cache.
Change-Id: Id3763afb805eb9bfa9a6a55e1de3923f02e621ae
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/autonamecache.hxx | 2 | ||||
-rw-r--r-- | sc/inc/document.hxx | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sc/inc/autonamecache.hxx b/sc/inc/autonamecache.hxx index 76804adc1361..6534a3917fff 100644 --- a/sc/inc/autonamecache.hxx +++ b/sc/inc/autonamecache.hxx @@ -42,7 +42,7 @@ typedef ::boost::unordered_map< String, ScAutoNameAddresses, ScStringHashCode, : // (during CompileXML, no document content is changed) // -class ScAutoNameCache +class SC_DLLPUBLIC ScAutoNameCache { ScAutoNameHashMap aNames; ScDocument* pDoc; diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index b4df35bac059..a4de4c8341da 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -883,6 +883,7 @@ public: void CompileXML(); ScAutoNameCache* GetAutoNameCache() { return pAutoNameCache; } + SC_DLLPUBLIC void SetAutoNameCache( ScAutoNameCache* pCache ); /** Creates a ScLookupCache cache for the range if it doesn't already exist. */ |