summaryrefslogtreecommitdiff
path: root/sc/inc/dptablecache.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/inc/dptablecache.hxx')
-rw-r--r--sc/inc/dptablecache.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/inc/dptablecache.hxx b/sc/inc/dptablecache.hxx
index 950cc5459bef..a67103d0f788 100644
--- a/sc/inc/dptablecache.hxx
+++ b/sc/inc/dptablecache.hxx
@@ -53,11 +53,17 @@ public:
private:
typedef ::boost::ptr_vector<DataListType> DataGridType;
typedef ::boost::ptr_vector< ::std::vector<SCROW> > RowGridType;
+ typedef std::set<ScDPObject*> ObjectSetType;
ScDocument* mpDoc;
long mnColumnCount;
/**
+ * All pivot table objects that references this cache.
+ */
+ mutable ObjectSetType maRefObjects;
+
+ /**
* This container stores only the unique instances of item data in each
* column. Duplicates are not allowed.
*/
@@ -88,6 +94,9 @@ private:
mutable ScDPItemDataPool maAdditionalData;
public:
+ void AddReference(ScDPObject* pObj) const;
+ void RemoveReference(ScDPObject* pObj) const;
+
SCROW GetIdByItemData( long nDim, const String& sItemData ) const;
SCROW GetIdByItemData( long nDim, const ScDPItemData& rData ) const;