summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-05-30 17:27:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-05-31 12:35:06 +0100
commit2009cbb8515c99f8139f3e067e77823e2122cf71 (patch)
tree27a4ab3f10d93bca55890684d08b1fda040dfa63 /sfx2
parent48245f6f61be33f1273b1c56a04daa0dbbd921b4 (diff)
show experimental tab-layout only if in experimental mode
Change-Id: I10cb366abfeedf50b4c3be21968997a260e020ea (cherry picked from commit dcb11907aee648fe2e382cdc16137d3fa469b530)
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/taskpane.cxx18
1 files changed, 11 insertions, 7 deletions
diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx
index c7aa092801e5..992f56d7ee16 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() )