summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-10-09 22:12:12 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-10-11 12:14:26 -0400
commit7c6848845f10dbac392bfc3dccf405d8e8e969fc (patch)
tree244be09abf7382fd404e70ea111b0792a0167a14 /sc/inc
parentf793daf81c64690dcca0772ece07d9ead96d0d0b (diff)
Properly intern strings going into matrix objects.
Change-Id: Ieb8befa4f19ebc31f4afa1370c924b469aa77382
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/externalrefmgr.hxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/sc/inc/externalrefmgr.hxx b/sc/inc/externalrefmgr.hxx
index 9852b60c3507..df794bd3af23 100644
--- a/sc/inc/externalrefmgr.hxx
+++ b/sc/inc/externalrefmgr.hxx
@@ -49,6 +49,12 @@ class ScFormulaCell;
class ScExternalRefCache;
+namespace svl {
+
+class SharedStringPool;
+
+}
+
class ScExternalRefLink : public ::sfx2::SvBaseLink
{
public:
@@ -195,7 +201,7 @@ public:
typedef ::boost::unordered_map< OUString, size_t, OUStringHash>
TableNameIndexMap;
- ScExternalRefCache();
+ ScExternalRefCache(svl::SharedStringPool& rPool);
~ScExternalRefCache();
const OUString* getRealTableName(sal_uInt16 nFileId, const OUString& rTabName) const;
@@ -334,6 +340,7 @@ private:
DocItem* getDocItem(sal_uInt16 nFileId) const;
private:
+ svl::SharedStringPool& mrStrPool;;
mutable DocDataType maDocs;
};
@@ -756,11 +763,11 @@ private:
private:
+ ScDocument* mpDoc;
+
/** cache of referenced ranges and names from source documents. */
ScExternalRefCache maRefCache;
- ScDocument* mpDoc;
-
/**
* Source document cache. This stores the original source document shell
* instances. They get purged after a certain period of time.