diff options
author | Jan Holesovsky <kendy@collabora.com> | 2013-12-12 21:15:45 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2013-12-13 13:01:27 +0100 |
commit | 0ef9ed2628d7c5d14fcbe91be2f8f29383d4fec7 (patch) | |
tree | 22c2e801f3f3a38d45feb295a7a578b45ceabe7d /cui | |
parent | cb800415f6bedd40c34e78cc9c1d1c3c9deab795 (diff) |
Expert config: Introduce configuration key to disable expert config.
It is /org.openoffice.Office.Common/Security/EnableExpertConfiguration with
values true/false; defaults to true.
Change-Id: I5a18d16182c28a13169677b11f68884f34c11c63
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optjava.cxx | 3 |
1 files changed, 3 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 ) ); |