diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-05-30 17:27:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-30 17:27:59 +0100 |
commit | dcb11907aee648fe2e382cdc16137d3fa469b530 (patch) | |
tree | ca9045aa5a8b0379faddd2472ad032d1675267cd /sfx2/source | |
parent | 4f34a463dcf781ff23619b4513f6f88aa7d8e75e (diff) |
show experimental tab-layout only if in experimental mode
Change-Id: I10cb366abfeedf50b4c3be21968997a260e020ea
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/dialog/taskpane.cxx | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx index 894dc547759e..5a6b59379c7a 100644 --- a/sfx2/source/dialog/taskpane.cxx +++ b/sfx2/source/dialog/taskpane.cxx @@ -44,6 +44,7 @@ #include <comphelper/types.hxx> #include <comphelper/processfactory.hxx> #include <tools/diagnose_ex.h> +#include <svtools/miscopt.hxx> #include <svtools/toolpanel/toolpaneldeck.hxx> #include <svtools/toolpanel/tablayouter.hxx> #include <svtools/toolpanel/drawerlayouter.hxx> @@ -1237,14 +1238,17 @@ namespace sfx2 } pMenu->InsertSeparator(); - #if OSL_DEBUG_LEVEL > 0 - pMenu->InsertItem( MID_LAYOUT_TABS, OUString("Tab-Layout (exp.)"), MIB_CHECKABLE ); - pMenu->CheckItem( MID_LAYOUT_TABS, impl_getLayout() != LAYOUT_DRAWERS ); - pMenu->InsertItem( MID_LAYOUT_DRAWERS, OUString("Drawer-Layout"), MIB_CHECKABLE ); - pMenu->CheckItem( MID_LAYOUT_DRAWERS, impl_getLayout() == LAYOUT_DRAWERS ); +#if OSL_DEBUG_LEVEL > 0 + if (SvtMiscOptions().IsExperimentalMode()) + { + pMenu->InsertItem( MID_LAYOUT_TABS, OUString("Tab-Layout (exp.)"), MIB_CHECKABLE ); + pMenu->CheckItem( MID_LAYOUT_TABS, impl_getLayout() != LAYOUT_DRAWERS ); + pMenu->InsertItem( MID_LAYOUT_DRAWERS, OUString("Drawer-Layout"), MIB_CHECKABLE ); + pMenu->CheckItem( MID_LAYOUT_DRAWERS, impl_getLayout() == LAYOUT_DRAWERS ); - pMenu->InsertSeparator(); - #endif + pMenu->InsertSeparator(); + } +#endif // Add entry for docking or un-docking the tool panel. if ( m_rDockingWindow.IsFloatingMode() ) |