summaryrefslogtreecommitdiff
path: root/unotools/source/config/securityoptions.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/config/securityoptions.cxx')
-rw-r--r--unotools/source/config/securityoptions.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/unotools/source/config/securityoptions.cxx b/unotools/source/config/securityoptions.cxx
index 5c1c3dbe0a56..f75a21ad6c82 100644
--- a/unotools/source/config/securityoptions.cxx
+++ b/unotools/source/config/securityoptions.cxx
@@ -100,6 +100,10 @@ bool IsReadOnly( EOption eOption )
case SvtSecurityOptions::EOption::BlockUntrustedRefererLinks:
bReadonly = officecfg::Office::Common::Security::Scripting::BlockUntrustedRefererLinks::isReadOnly();
break;
+ case SvtSecurityOptions::EOption::DisableActiveContent:
+ bReadonly = officecfg::Office::Common::Security::Scripting::DisableActiveContent::isReadOnly() ||
+ officecfg::Office::Common::Security::Scripting::DisableOLEAutomation::isReadOnly();
+ break;
default:
assert(false);
@@ -334,6 +338,10 @@ bool IsOptionSet( EOption eOption )
case SvtSecurityOptions::EOption::BlockUntrustedRefererLinks:
bSet = officecfg::Office::Common::Security::Scripting::BlockUntrustedRefererLinks::get();
break;
+ case SvtSecurityOptions::EOption::DisableActiveContent:
+ bSet = officecfg::Office::Common::Security::Scripting::DisableActiveContent::get() &&
+ officecfg::Office::Common::Security::Scripting::DisableOLEAutomation::get();
+ break;
default:
assert(false);
@@ -383,6 +391,10 @@ void SetOption( EOption eOption, bool bValue )
case SvtSecurityOptions::EOption::BlockUntrustedRefererLinks:
officecfg::Office::Common::Security::Scripting::BlockUntrustedRefererLinks::set(bValue, xChanges);
break;
+ case SvtSecurityOptions::EOption::DisableActiveContent:
+ officecfg::Office::Common::Security::Scripting::DisableActiveContent::set(bValue, xChanges);
+ officecfg::Office::Common::Security::Scripting::DisableOLEAutomation::set(bValue, xChanges);
+ break;
default:
assert(false);