diff --git a/cui/source/options/optbasic.cxx b/cui/source/options/optbasic.cxx index 38324ea1a2f0..30b50463e8cc 100644 --- a/cui/source/options/optbasic.cxx +++ b/cui/source/options/optbasic.cxx @@ -19,7 +19,6 @@ #include "optbasic.hxx" #include -#include #include #include #include @@ -27,12 +26,6 @@ SvxBasicIDEOptionsPage::SvxBasicIDEOptionsPage( vcl::Window* pParent, const SfxItemSet& rSet ) : SfxTabPage(pParent, "OptBasicIDEPage", "cui/ui/optbasicidepage.ui", &rSet) { - SvtMiscOptions aMiscOpt; - if( ! aMiscOpt.IsExperimentalMode() ) - { - Disable(); - } - get(pCodeCompleteChk, "codecomplete_enable"); get(pAutocloseProcChk, "autoclose_proc"); get(pAutocloseParenChk, "autoclose_paren"); @@ -41,7 +34,6 @@ SvxBasicIDEOptionsPage::SvxBasicIDEOptionsPage( vcl::Window* pParent, const SfxI get(pUseExtendedTypesChk, "extendedtypes_enable"); LoadConfig(); - } SvxBasicIDEOptionsPage::~SvxBasicIDEOptionsPage() diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 964f43b3018b..070d01612e46 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -85,6 +85,7 @@ #include #include #include +#include #include #include #include @@ -1482,6 +1483,15 @@ void OfaTreeOptionsDialog::Initialize( const Reference< XFrame >& _xFrame ) continue; } } + + // Disable Basic IDE options, if experimental features are not enabled + if( RID_SVXPAGE_BASICIDE_OPTIONS == nPageId ) + { + SvtMiscOptions aMiscOpt; + if( ! aMiscOpt.IsExperimentalMode() ) + continue; + } + AddTabPage( nPageId, sNewTitle, nGroup ); } }