summaryrefslogtreecommitdiff
path: root/slideshow/source/inc/screenupdater.hxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2009-12-03 16:14:12 +0100
committerKurt Zenker <kz@openoffice.org>2009-12-03 16:14:12 +0100
commit4f667eb747d0357214e63fe02f6e47ba953e50b8 (patch)
treea99fba878111b3c58515e6a0364668baa2dff5b5 /slideshow/source/inc/screenupdater.hxx
parent099aec857aa7a6b40e9c016679d4a46562b2637f (diff)
parent80c80a6b6434ae92e171a88c4c83ca0a746606bc (diff)
update to current version
Diffstat (limited to 'slideshow/source/inc/screenupdater.hxx')
-rw-r--r--slideshow/source/inc/screenupdater.hxx21
1 files changed, 21 insertions, 0 deletions
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 <TRUE/> then the UpdateLock is created already
+ locked. When <FALSE/> then Activate() has to be called in order
+ to lock the lock.
+ */
+ ::boost::shared_ptr<UpdateLock> 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<ImplScreenUpdater> mpImpl;
+
};
}
}