diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-09-11 14:10:21 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-12-16 10:19:25 +0100 |
commit | 68d75af9c6644928ee60d21fbc8b15cd8b3bc55e (patch) | |
tree | 7d02c8cf05327e33ca412d1b8b28d5e850fce681 /framework | |
parent | a22702ab0daff2bf2cdf573feda256606a705383 (diff) |
vcl: Initial NotebookBar implementation.
Re-introduced, this is still useful code to have :-)
Change-Id: I91535c13d68261f7195989ec78bd305cf572c87c
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/layoutmanager/layoutmanager.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx index eb66efea6e51..32f207e5bcbc 100644 --- a/framework/source/layoutmanager/layoutmanager.cxx +++ b/framework/source/layoutmanager/layoutmanager.cxx @@ -782,7 +782,14 @@ void LayoutManager::implts_updateUIElementsVisibleState( bool bSetVisible ) if ( pSysWindow ) { if ( bSetVisible ) + { pSysWindow->SetMenuBar(pMenuBar); + if (getenv("LO_USE_NOTEBOOKBAR")) + { + pSysWindow->CreateNotebookBar("vcl/ui/notebookbar.ui", m_xFrame); + pSysWindow->SetMenuBarMode(MenuBarMode::Hide); + } + } else pSysWindow->SetMenuBar( nullptr ); } |