diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2018-12-11 00:50:22 +0100 |
---|---|---|
committer | Heiko Tietze <tietze.heiko@gmail.com> | 2018-12-12 11:28:43 +0100 |
commit | 3b6ee27e4bea1414042550f078f30fe3b7845a11 (patch) | |
tree | 5a48a5b97a684651206460e8c31ef29cd1c41fce /sfx2 | |
parent | a95815faa8b09dbd47196d6d952b3e2d20e10fef (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>
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 67bfb2d00610..f8ffff462c51 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() ) { |