diff options
author | Kurt Zenker <kz@openoffice.org> | 2009-12-03 11:58:44 +0100 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2009-12-03 11:58:44 +0100 |
commit | 4d20dad9dba40e237b850cc527af36043f404824 (patch) | |
tree | 7386fcbce65790587d37dc598055fd3eff22b377 /slideshow/source/inc/screenupdater.hxx | |
parent | 099aec857aa7a6b40e9c016679d4a46562b2637f (diff) | |
parent | 1ae23cece0bf35ea52a15c66519a34c43ac57937 (diff) |
CWS-TOOLING: integrate CWS slideshow1
Diffstat (limited to 'slideshow/source/inc/screenupdater.hxx')
-rw-r--r-- | slideshow/source/inc/screenupdater.hxx | 21 |
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; + }; } } |