summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-10-27 14:09:56 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-12-04 23:04:24 +0100
commit16e1fbb9aaa9990474bbe4c310948a94569ae0bb (patch)
tree3ea0094324fad560c67db474f651eed609de07c5 /framework
parent75f4ad0f6f81d340d22100d87173185818505547 (diff)
Avoid automatic toolbars in the non-desktop case
Change-Id: I9e5bff735b0035c147e10ae066da3a4873d66749
Diffstat (limited to 'framework')
-rw-r--r--framework/source/layoutmanager/layoutmanager.cxx6
1 files changed, 6 insertions, 0 deletions
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 <config_features.h>
+
#include <services/layoutmanager.hxx>
#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 )