diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-03-01 00:02:01 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-03-01 00:02:01 -0500 |
commit | f84427bfddd49efee446f73fb1b926d102ce9641 (patch) | |
tree | 6c6871ab683a1465190638713dffb9d79a3f4d05 /sc/inc | |
parent | 716556f19c21090cd7f0ed4c0515df17a3cec241 (diff) |
Finally get the refresh to work properly.
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/dpcachetable.hxx | 1 | ||||
-rw-r--r-- | sc/inc/dpsdbtab.hxx | 11 | ||||
-rw-r--r-- | sc/inc/dpshttab.hxx | 1 |
3 files changed, 9 insertions, 4 deletions
diff --git a/sc/inc/dpcachetable.hxx b/sc/inc/dpcachetable.hxx index 5e5bb24c3b21..d0b209a2bafc 100644 --- a/sc/inc/dpcachetable.hxx +++ b/sc/inc/dpcachetable.hxx @@ -169,6 +169,7 @@ public: SCROW getOrder(long nDim, SCROW nIndex) const; void clear(); bool empty() const; + void setCache(ScDPTableDataCache* p); private: ScDPCacheTable(); 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(); diff --git a/sc/inc/dpshttab.hxx b/sc/inc/dpshttab.hxx index a9d9529adcb3..51df5cee5100 100644 --- a/sc/inc/dpshttab.hxx +++ b/sc/inc/dpshttab.hxx @@ -110,6 +110,7 @@ private: bool bIgnoreEmptyRows; bool bRepeatIfEmpty; + const ScSheetSourceDesc& mrDesc; ScDPCacheTable aCacheTable; public: |