From 16e1fbb9aaa9990474bbe4c310948a94569ae0bb Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 27 Oct 2014 14:09:56 +0200 Subject: Avoid automatic toolbars in the non-desktop case Change-Id: I9e5bff735b0035c147e10ae066da3a4873d66749 --- framework/source/layoutmanager/layoutmanager.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx index e8d466b878a7..245b5b07da36 100644 --- a/framework/source/layoutmanager/layoutmanager.cxx +++ b/framework/source/layoutmanager/layoutmanager.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include + #include #include "helpers.hxx" @@ -113,7 +115,11 @@ LayoutManager::LayoutManager( const Reference< XComponentContext >& xContext ) : , m_bVisible( true ) , m_bParentWindowVisible( false ) , m_bMustDoLayout( true ) +#if HAVE_FEATURE_DESKTOP , m_bAutomaticToolbars( true ) +#else + , m_bAutomaticToolbars( false ) +#endif , m_bStoreWindowState( false ) , m_bHideCurrentUI( false ) , m_bGlobalSettings( false ) -- cgit