diff options
-rw-r--r-- | cui/source/options/optjava.cxx | 3 | ||||
-rw-r--r-- | officecfg/registry/schema/org/openoffice/Office/Common.xcs | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx index 1841c40a700a..ce5c162df13a 100644 --- a/cui/source/options/optjava.cxx +++ b/cui/source/options/optjava.cxx @@ -23,6 +23,7 @@ #include "optjava.hxx" #include <dialmgr.hxx> +#include <officecfg/Office/Common.hxx> #include <svtools/miscopt.hxx> #include <cuires.hrc> @@ -183,6 +184,8 @@ SvxJavaOptionsPage::SvxJavaOptionsPage( Window* pParent, const SfxItemSet& rSet m_aResetTimer.SetTimeout( RESET_TIMEOUT ); m_pExpertConfigBtn->SetClickHdl( LINK( this, SvxJavaOptionsPage, ExpertConfigHdl_Impl) ); + if (!officecfg::Office::Common::Security::EnableExpertConfiguration::get()) + m_pExpertConfigBtn->Disable(); xDialogListener->SetDialogClosedLink( LINK( this, SvxJavaOptionsPage, DialogClosedHdl ) ); diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs index 069a12870ebe..affd280d0bde 100644 --- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs +++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs @@ -2417,6 +2417,13 @@ <info> <desc>Contains security specific Office settings.</desc> </info> + <prop oor:name="EnableExpertConfiguration" oor:type="xs:boolean" oor:nillable="false"> + <info> + <desc>Determines if the user has access to the entire + configuration via the Expert Configuration button.</desc> + </info> + <value>true</value> + </prop> <group oor:name="Scripting"> <info> <desc>Contains security settings regarding Basic scripts.</desc> |