Kaydet (Commit) 3b6ee27e authored tarafından Xisco Fauli's avatar Xisco Fauli Kaydeden (comit) Heiko Tietze

tdf#122009: Hide notebookbar in full screen

Follow same logic as in presentation mode. See
6a932680

Change-Id: I89c31e23dd97e647ab380aa30635acda46064b2f
Reviewed-on: https://gerrit.libreoffice.org/64911
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: 's avatarHeiko Tietze <tietze.heiko@gmail.com>
Tested-by: 's avatarHeiko Tietze <tietze.heiko@gmail.com>
üst a95815fa
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <sfx2/infobar.hxx> #include <sfx2/infobar.hxx>
#include <sfx2/viewfrm.hxx> #include <sfx2/viewfrm.hxx>
#include <sfx2/classificationhelper.hxx> #include <sfx2/classificationhelper.hxx>
#include <sfx2/notebookbar/SfxNotebookBar.hxx>
#include <com/sun/star/document/MacroExecMode.hpp> #include <com/sun/star/document/MacroExecMode.hpp>
#include <com/sun/star/frame/Desktop.hpp> #include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/DispatchRecorder.hpp> #include <com/sun/star/frame/DispatchRecorder.hpp>
...@@ -2795,6 +2796,11 @@ void SfxViewFrame::MiscExec_Impl( SfxRequest& rReq ) ...@@ -2795,6 +2796,11 @@ void SfxViewFrame::MiscExec_Impl( SfxRequest& rReq )
bool bNewFullScreenMode = pItem ? pItem->GetValue() : !pWork->IsFullScreenMode(); bool bNewFullScreenMode = pItem ? pItem->GetValue() : !pWork->IsFullScreenMode();
if ( bNewFullScreenMode != pWork->IsFullScreenMode() ) if ( bNewFullScreenMode != pWork->IsFullScreenMode() )
{ {
if ( bNewFullScreenMode )
sfx2::SfxNotebookBar::LockNotebookBar();
else
sfx2::SfxNotebookBar::UnlockNotebookBar();
Reference< css::beans::XPropertySet > xLMPropSet( xLayoutManager, UNO_QUERY ); Reference< css::beans::XPropertySet > xLMPropSet( xLayoutManager, UNO_QUERY );
if ( xLMPropSet.is() ) if ( xLMPropSet.is() )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment