From 268c5a727b274916e0a0cc4bd61c3ed892a0b224 Mon Sep 17 00:00:00 2001 From: Andre Fischer Date: Wed, 4 Mar 2009 13:41:44 +0000 Subject: #i48179# Introduced EffectRewinder class that replays main sequence effects on current or previous slide. --- slideshow/source/inc/screenupdater.hxx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'slideshow/source/inc/screenupdater.hxx') diff --git a/slideshow/source/inc/screenupdater.hxx b/slideshow/source/inc/screenupdater.hxx index 07837d6bfc4c..33d6c5d7263f 100644 --- a/slideshow/source/inc/screenupdater.hxx +++ b/slideshow/source/inc/screenupdater.hxx @@ -111,9 +111,30 @@ namespace slideshow */ void requestImmediateUpdate(); + class UpdateLock {public: virtual void Activate (void) = 0; }; + + /** Call this method to create a lock instead of calling + lockUpdates() and unlockUpdates() directly. + @param bStartLocked + When then the UpdateLock is created already + locked. When then Activate() has to be called in order + to lock the lock. + */ + ::boost::shared_ptr createLock (const bool bStartLocked); + + /** Lock updates to prevent intermediate repaints. + */ + void lockUpdates (void); + + /** When called as often as lockUpdates() then commitUpdates() + is called. + */ + void unlockUpdates (void); + private: struct ImplScreenUpdater; boost::scoped_ptr mpImpl; + }; } } -- cgit