diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2017-02-18 13:27:28 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-07-12 10:54:17 +0200 |
commit | c028d8391e8fae4553c5223a8ac0b38d3184d61e (patch) | |
tree | ad2a8905396f7bb19ffefe73d5078384355c5095 /sfx2/source | |
parent | a5a76729768a4282669695ff511c98e28e6004ab (diff) |
tdf#103355 Hide Notebookbar during slide show
Change-Id: Ie3e1b9f9dfc109ecb48cd384972dfa5a5118c3fa
Reviewed-on: https://gerrit.libreoffice.org/34401
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <eszkadev@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/38898
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit 4e461f61ac739c6b9ff38c247095ea69b9fb4e21)
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/notebookbar/SfxNotebookBar.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sfx2/source/notebookbar/SfxNotebookBar.cxx b/sfx2/source/notebookbar/SfxNotebookBar.cxx index c3821b6d6ff9..00cc7e99c01d 100644 --- a/sfx2/source/notebookbar/SfxNotebookBar.cxx +++ b/sfx2/source/notebookbar/SfxNotebookBar.cxx @@ -35,6 +35,7 @@ using namespace css; #define MENUBAR_STR "private:resource/menubar/menubar" bool SfxNotebookBar::m_bLock = false; +bool SfxNotebookBar::m_bHide = false; static Reference<frame::XLayoutManager> lcl_getLayoutManager( const Reference<frame::XFrame>& xFrame ) { @@ -168,8 +169,21 @@ void SfxNotebookBar::CloseMethod(SystemWindow* pSysWindow) } } +void SfxNotebookBar::LockNotebookBar() +{ + m_bHide = true; +} + +void SfxNotebookBar::UnlockNotebookBar() +{ + m_bHide = false; +} + bool SfxNotebookBar::IsActive() { + if (m_bHide) + return false; + vcl::EnumContext::Application eApp = vcl::EnumContext::Application::Application_Any; if (SfxViewFrame::Current()) |