diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-01-17 18:21:40 +0100 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-01-17 20:28:28 +0100 |
commit | ef6083200a4f28e43198c7a0878da6f4b880725f (patch) | |
tree | 7be33661ca863824ab39022a26fa90d60d1dcc72 /unotools | |
parent | c8aef3e46256b667f4c777d6a26684df1d4c57f2 (diff) |
Add ConfigurationGroup/Set::isReadOnly
Change-Id: I0c6c00a8a3c5c8bba923af24d136adccd269cef5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162204
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/securityoptions.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/unotools/source/config/securityoptions.cxx b/unotools/source/config/securityoptions.cxx index f75a21ad6c82..a29a40894db1 100644 --- a/unotools/source/config/securityoptions.cxx +++ b/unotools/source/config/securityoptions.cxx @@ -90,9 +90,7 @@ bool IsReadOnly( EOption eOption ) bReadonly = officecfg::Office::Common::Security::Scripting::MacroSecurityLevel::isReadOnly(); break; case SvtSecurityOptions::EOption::MacroTrustedAuthors: - // the officecfg does not expose isReadOnly for a ConfigurationSet, so we have to code this ourself - bReadonly = - comphelper::detail::ConfigurationWrapper::get().isReadOnly(u"/org.openoffice.Office.Common/Security/Scripting/TrustedAuthors"_ustr); + bReadonly = officecfg::Office::Common::Security::Scripting::TrustedAuthors::isReadOnly(); break; case SvtSecurityOptions::EOption::CtrlClickHyperlink: bReadonly = officecfg::Office::Common::Security::Scripting::HyperlinksWithCtrlClick::isReadOnly(); |