From f84427bfddd49efee446f73fb1b926d102ce9641 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 1 Mar 2011 00:02:01 -0500 Subject: Finally get the refresh to work properly. --- sc/inc/dpsdbtab.hxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'sc/inc/dpsdbtab.hxx') diff --git a/sc/inc/dpsdbtab.hxx b/sc/inc/dpsdbtab.hxx index 5c2608e75edc..9ab6693ae025 100644 --- a/sc/inc/dpsdbtab.hxx +++ b/sc/inc/dpsdbtab.hxx @@ -50,22 +50,25 @@ struct ScImportSourceDesc String aObject; USHORT nType; // enum DataImportMode BOOL bNative; + ScDocument* mpDoc; - ScImportSourceDesc() : nType(0), bNative(FALSE) {} + ScImportSourceDesc(ScDocument* pDoc) : nType(0), bNative(FALSE), mpDoc(pDoc) {} BOOL operator== ( const ScImportSourceDesc& rOther ) const { return aDBName == rOther.aDBName && aObject == rOther.aObject && nType == rOther.nType && - bNative == rOther.bNative; } + bNative == rOther.bNative && + mpDoc == rOther.mpDoc; } - ScDPTableDataCache* CreateCache(ScDocument* pDoc) const; + ScDPTableDataCache* CreateCache() const; }; class ScDatabaseDPData : public ScDPTableData { private: - ScDPCacheTable aCacheTable; + const ScImportSourceDesc& mrImport; + ScDPCacheTable aCacheTable; public: ScDatabaseDPData(ScDocument* pDoc, const ScImportSourceDesc& rImport); virtual ~ScDatabaseDPData(); -- cgit