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
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
#include "optjava.hxx"
|
#include "optjava.hxx"
|
||||||
#include <dialmgr.hxx>
|
#include <dialmgr.hxx>
|
||||||
|
|
||||||
|
#include <officecfg/Office/Common.hxx>
|
||||||
#include <svtools/miscopt.hxx>
|
#include <svtools/miscopt.hxx>
|
||||||
|
|
||||||
#include <cuires.hrc>
|
#include <cuires.hrc>
|
||||||
@@ -183,6 +184,8 @@ SvxJavaOptionsPage::SvxJavaOptionsPage( Window* pParent, const SfxItemSet& rSet
|
|||||||
m_aResetTimer.SetTimeout( RESET_TIMEOUT );
|
m_aResetTimer.SetTimeout( RESET_TIMEOUT );
|
||||||
|
|
||||||
m_pExpertConfigBtn->SetClickHdl( LINK( this, SvxJavaOptionsPage, ExpertConfigHdl_Impl) );
|
m_pExpertConfigBtn->SetClickHdl( LINK( this, SvxJavaOptionsPage, ExpertConfigHdl_Impl) );
|
||||||
|
if (!officecfg::Office::Common::Security::EnableExpertConfiguration::get())
|
||||||
|
m_pExpertConfigBtn->Disable();
|
||||||
|
|
||||||
xDialogListener->SetDialogClosedLink( LINK( this, SvxJavaOptionsPage, DialogClosedHdl ) );
|
xDialogListener->SetDialogClosedLink( LINK( this, SvxJavaOptionsPage, DialogClosedHdl ) );
|
||||||
|
|
||||||
|
@@ -2417,6 +2417,13 @@
|
|||||||
<info>
|
<info>
|
||||||
<desc>Contains security specific Office settings.</desc>
|
<desc>Contains security specific Office settings.</desc>
|
||||||
</info>
|
</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">
|
<group oor:name="Scripting">
|
||||||
<info>
|
<info>
|
||||||
<desc>Contains security settings regarding Basic scripts.</desc>
|
<desc>Contains security settings regarding Basic scripts.</desc>
|
||||||
|
Reference in New Issue
Block a user