diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2018-12-11 00:50:22 +0100 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2018-12-12 15:47:52 +0100 |
commit | 7517ac7f0fca2460e9e3e75cfaebab305a806715 (patch) | |
tree | 05f9701e462d2147066ce57db22c5d2d3fcd3452 /sfx2 | |
parent | 7d3092d7462ac9a37fb6491e90f6132d8e2ff6a2 (diff) |
tdf#122009: Hide notebookbar in full screen
Follow same logic as in presentation mode. See
6a9326803c01f4c9bc7da855053ce4e80646fad8
Change-Id: I89c31e23dd97e647ab380aa30635acda46064b2f
Reviewed-on: https://gerrit.libreoffice.org/64911
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
Tested-by: Heiko Tietze <tietze.heiko@gmail.com>
(cherry picked from commit 3b6ee27e4bea1414042550f078f30fe3b7845a11)
Reviewed-on: https://gerrit.libreoffice.org/65008
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 61cb945c738a..f0af2f95e050 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -22,6 +22,7 @@ #include <sfx2/infobar.hxx> #include <sfx2/viewfrm.hxx> #include <sfx2/classificationhelper.hxx> +#include <sfx2/notebookbar/SfxNotebookBar.hxx> #include <com/sun/star/document/MacroExecMode.hpp> #include <com/sun/star/frame/Desktop.hpp> #include <com/sun/star/frame/DispatchRecorder.hpp> @@ -2795,6 +2796,11 @@ void SfxViewFrame::MiscExec_Impl( SfxRequest& rReq ) bool bNewFullScreenMode = pItem ? pItem->GetValue() : !pWork->IsFullScreenMode(); if ( bNewFullScreenMode != pWork->IsFullScreenMode() ) { + if ( bNewFullScreenMode ) + sfx2::SfxNotebookBar::LockNotebookBar(); + else + sfx2::SfxNotebookBar::UnlockNotebookBar(); + Reference< css::beans::XPropertySet > xLMPropSet( xLayoutManager, UNO_QUERY ); if ( xLMPropSet.is() ) { |