From 561b044d62f4701e51abb4a7c47ce3b07f788f8e Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Mon, 23 Jan 2012 16:34:15 -0500 Subject: Fix refresh problem on pivot tables whose data cache have not been created. --- sc/inc/dpobject.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sc/inc/dpobject.hxx') diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx index a894833f07d0..f7126b12e421 100644 --- a/sc/inc/dpobject.hxx +++ b/sc/inc/dpobject.hxx @@ -328,6 +328,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); private: @@ -382,6 +383,12 @@ private: /** Only to be called from ScDPCache::RemoveReference(). */ void RemoveCache(const ScDPCache* pCache); + void GetAllTables(const ScRange& rSrcRange, std::set& rRefs) const; + void GetAllTables(const rtl::OUString& rSrcName, std::set& rRefs) const; + void GetAllTables( + sal_Int32 nSdbType, const ::rtl::OUString& rDBName, const ::rtl::OUString& rCommand, + std::set& rRefs) const; + private: typedef ::boost::ptr_vector TablesType; -- cgit v1.2.3