summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-08-03 12:07:05 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-08-03 12:07:05 +0000
commitc499d06a4f590836110aac6a321850c2cd40e7e9 (patch)
treee006ac7efdea8e6d27d8609aa0bb7e5cd3bea0b5 /sc
parentae8e88118f075e7ff6ca34ce2c866c81b4151043 (diff)
INTEGRATION: CWS chart10 (1.36.22); FILE MERGED
2007/07/26 14:32:20 iha 1.36.22.1: #i79849# prevent to many view updates of charts
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/documen3.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index 25d8f0111344..fb5b30214fb5 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: documen3.cxx,v $
*
- * $Revision: 1.36 $
+ * $Revision: 1.37 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 13:43:05 $
+ * last change: $Author: hr $ $Date: 2007-08-03 13:07:05 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -114,6 +114,7 @@
#include "autoform.hxx"
#include "rangelst.hxx"
#include "chartarr.hxx"
+#include "chartlock.hxx"
#include "refupdat.hxx"
#include "docoptio.hxx"
#include "viewopti.hxx"
@@ -336,6 +337,12 @@ void ScDocument::SetChartCollection(ScChartCollection* pNewChartCollection)
pChartCollection = pNewChartCollection;
}
+void ScDocument::StopTemporaryChartLock()
+{
+ if( apTemporaryChartLock.get() )
+ apTemporaryChartLock->StopLocking();
+}
+
void ScDocument::SetChartListenerCollection(
ScChartListenerCollection* pNewChartListenerCollection,
BOOL bSetChartRangeLists )
@@ -807,6 +814,7 @@ void ScDocument::BroadcastUno( const SfxHint &rHint )
// are not nested, instead the calls are collected in the list, and the
// outermost call executes them all.
+ ScChartLockGuard aChartLockGuard(this);
bInUnoListenerCall = TRUE;
pUnoListenerCalls->ExecuteAndClear();
bInUnoListenerCall = FALSE;