diff options
author | Andre Fischer <af@openoffice.org> | 2010-03-08 11:34:08 +0100 |
---|---|---|
committer | Andre Fischer <af@openoffice.org> | 2010-03-08 11:34:08 +0100 |
commit | 4b83a7fe5714eb9a1d208502a18e33da35772ece (patch) | |
tree | 8c88ea746bbc5da6306a4265bd34938cd0083edb /sd/source/ui/slidesorter/controller/SlsAnimator.cxx | |
parent | c87f10322a175f7d45ee20db236b69befa64d277 (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.cxx | 19 |
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); |