summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/dbdocfun.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-03-13 11:57:08 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-14 00:35:28 -0400
commit9be40516455eef80d7c121455c08da41b27373bf (patch)
treefd3ec920a8bb3788d117f9ad29f0902d63d33a54 /sc/source/ui/docshell/dbdocfun.cxx
parentc18dc2e2047f07fb13ec5890db4dbd4357cfa7ce (diff)
Dedicated method for refreshing multiple linked pivot tables.
Diffstat (limited to 'sc/source/ui/docshell/dbdocfun.cxx')
-rw-r--r--sc/source/ui/docshell/dbdocfun.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index 145f457691ba..3a5e0fdc4386 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -1451,6 +1451,16 @@ bool ScDBDocFunc::DataPilotUpdate( ScDPObject* pOldObj, const ScDPObject* pNewOb
return bDone;
}
+void ScDBDocFunc::RefreshPivotTables(std::set<ScDPObject*>& rRefs, bool bRecord, bool bApi)
+{
+ std::set<ScDPObject*>::iterator it = rRefs.begin(), itEnd = rRefs.end();
+ for (; it != itEnd; ++it)
+ {
+ ScDPObject* pObj = *it;
+ DataPilotUpdate(pObj, pObj, bRecord, bApi);
+ }
+}
+
//==================================================================
//
// database import