sfx2/source/view/viewfrm.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 7517ac7f0fca2460e9e3e75cfaebab305a806715 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Tue Dec 11 00:50:22 2018 +0100 Commit: Xisco FaulĂ <xiscofa...@libreoffice.org> CommitDate: Wed Dec 12 15:47:52 2018 +0100 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.kagan...@collabora.com> Reviewed-by: Heiko Tietze <tietze.he...@gmail.com> Tested-by: Heiko Tietze <tietze.he...@gmail.com> (cherry picked from commit 3b6ee27e4bea1414042550f078f30fe3b7845a11) Reviewed-on: https://gerrit.libreoffice.org/65008 Reviewed-by: Xisco FaulĂ <xiscofa...@libreoffice.org> 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() ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits