diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-12-11 11:42:46 +0500 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2024-12-11 09:56:14 +0100 |
commit | a7d567d25e3f13ce78b494a6f49bb0b24cbc0fb3 (patch) | |
tree | 553cfa30c383b1840d9dff28fff6edc8cbf21127 /basctl | |
parent | 77814e2f61704e41753bb3a55a54467ab903509e (diff) |
Use SvtSecurityOptions::IsMacroDisabled() instead of officecfg check
The change is most important for Viewer app mode, which also disables
macros
Change-Id: Ie305649dafbb3717e7986a4b437c38b09ffc1802
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178276
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index b01e5c238a6c..5571faf33029 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -56,6 +56,7 @@ #include <svl/whiter.hxx> #include <svx/svxids.hrc> #include <tools/debug.hxx> +#include <unotools/securityoptions.hxx> #include <utility> #include <vcl/locktoplevels.hxx> #include <vcl/errinf.hxx> @@ -312,7 +313,7 @@ void ModulWindow::BasicExecute() { // #116444# check security settings before macro execution ScriptDocument aDocument( GetDocument() ); - bool bMacrosDisabled = officecfg::Office::Common::Security::Scripting::DisableMacrosExecution::get(); + bool bMacrosDisabled = SvtSecurityOptions::IsMacroDisabled(); if (bMacrosDisabled || (aDocument.isDocument() && !aDocument.allowMacros())) { std::unique_ptr<weld::MessageDialog> xBox( |