diff options
author | Srijan Bhatia <srijanbhatiasun@gmail.com> | 2020-06-09 20:42:05 +0530 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2020-06-18 10:17:13 +0200 |
commit | 41d75ee814d71513922a12fae82f2e7eecbcd5f5 (patch) | |
tree | 3a307d8b458a451bdd8d81cb26ab2aeb810db95a /sdext/source/presenter/PresenterWindowManager.cxx | |
parent | 310271df2e4dc67d223dbec4b23e39ea4a67c042 (diff) |
tdf#128964 Add time pause/resume button to Impress Presenter console
Change-Id: I7263c3a8000b4d5930692cd2e32e84a22893dd66
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95955
Tested-by: Jenkins
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sdext/source/presenter/PresenterWindowManager.cxx')
-rw-r--r-- | sdext/source/presenter/PresenterWindowManager.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sdext/source/presenter/PresenterWindowManager.cxx b/sdext/source/presenter/PresenterWindowManager.cxx index 713a14e15959..5f89cdfccc29 100644 --- a/sdext/source/presenter/PresenterWindowManager.cxx +++ b/sdext/source/presenter/PresenterWindowManager.cxx @@ -67,6 +67,7 @@ PresenterWindowManager::PresenterWindowManager ( meLayoutMode(LM_Generic), mbIsSlideSorterActive(false), mbIsHelpViewActive(false), + mbisPaused(false), maLayoutListeners(), mbIsMouseClickPending(false) { @@ -412,6 +413,16 @@ void PresenterWindowManager::SetHelpViewState (bool bIsActive) NotifyLayoutModeChange(); } +void PresenterWindowManager::SetPauseState (bool bIsPaused) +{ + if (mbisPaused == bIsPaused) + return; + + mbisPaused = bIsPaused; + + NotifyLayoutModeChange(); +} + void PresenterWindowManager::SetViewMode (const ViewMode eMode) { switch (eMode) |