diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-23 16:34:15 -0500 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2012-01-24 17:07:29 +0100 |
commit | a0dc477bfa4460a3091e533eed57fae93f481d5a (patch) | |
tree | f8758e64b6cfeb221f42d5bc53c1679b4637624f /sc/inc | |
parent | 17ccd3cfc9dd86e2911a0a31f6dcbba8d7e7950a (diff) |
Fix refresh problem on pivot tables whose data cache have not been created.
Signed-off-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/dpobject.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx index 47c1999a005b..2d8991a32b02 100644 --- a/sc/inc/dpobject.hxx +++ b/sc/inc/dpobject.hxx @@ -330,6 +330,7 @@ public: ScDocument* mpDoc; public: DBCaches(ScDocument* pDoc); + bool hasCache(sal_Int32 nSdbType, const rtl::OUString& rDBName, const rtl::OUString& rCommand) const; const ScDPCache* getCache(sal_Int32 nSdbType, const ::rtl::OUString& rDBName, const ::rtl::OUString& rCommand); size_t size() const; @@ -386,6 +387,12 @@ private: /** Only to be called from ScDPCache::RemoveReference(). */ void RemoveCache(const ScDPCache* pCache); + void GetAllTables(const ScRange& rSrcRange, std::set<ScDPObject*>& rRefs) const; + void GetAllTables(const rtl::OUString& rSrcName, std::set<ScDPObject*>& rRefs) const; + void GetAllTables( + sal_Int32 nSdbType, const ::rtl::OUString& rDBName, const ::rtl::OUString& rCommand, + std::set<ScDPObject*>& rRefs) const; + private: typedef ::boost::ptr_vector<ScDPObject> TablesType; |