summaryrefslogtreecommitdiff
path: root/sc/inc/dpsdbtab.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-03-01 00:02:01 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-03-01 00:02:01 -0500
commitf84427bfddd49efee446f73fb1b926d102ce9641 (patch)
tree6c6871ab683a1465190638713dffb9d79a3f4d05 /sc/inc/dpsdbtab.hxx
parent716556f19c21090cd7f0ed4c0515df17a3cec241 (diff)
Finally get the refresh to work properly.
Diffstat (limited to 'sc/inc/dpsdbtab.hxx')
-rw-r--r--sc/inc/dpsdbtab.hxx11
1 files changed, 7 insertions, 4 deletions
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();