summaryrefslogtreecommitdiff
path: root/sd/source/ui/slidesorter/controller/SlsAnimator.cxx
diff options
context:
space:
mode:
authorAndre Fischer <af@openoffice.org>2010-03-08 11:34:08 +0100
committerAndre Fischer <af@openoffice.org>2010-03-08 11:34:08 +0100
commit4b83a7fe5714eb9a1d208502a18e33da35772ece (patch)
tree8c88ea746bbc5da6306a4265bd34938cd0083edb /sd/source/ui/slidesorter/controller/SlsAnimator.cxx
parentc87f10322a175f7d45ee20db236b69befa64d277 (diff)
renaissance1: #i107215# Improved handling of transferables.
Diffstat (limited to 'sd/source/ui/slidesorter/controller/SlsAnimator.cxx')
-rw-r--r--sd/source/ui/slidesorter/controller/SlsAnimator.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsAnimator.cxx b/sd/source/ui/slidesorter/controller/SlsAnimator.cxx
index 052c154aa8b3..91c64a046cb5 100644
--- a/sd/source/ui/slidesorter/controller/SlsAnimator.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsAnimator.cxx
@@ -212,6 +212,25 @@ void Animator::RemoveAnimation (const Animator::AnimationId nId)
+void Animator::RemoveAllAnimations (void)
+{
+ ::std::for_each(
+ maAnimations.begin(),
+ maAnimations.end(),
+ ::boost::bind(
+ &Animation::Expire,
+ _1));
+ maAnimations.clear();
+ mnNextAnimationId = 0;
+
+ // No more animations => we do not have to suppress painting
+ // anymore.
+ mpDrawLock.reset();
+}
+
+
+
+
bool Animator::ProcessAnimations (const double nTime)
{
bool bExpired (false);