From cde7dc6117d4033c1fb590341f304755a55f764c Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Tue, 16 Mar 2021 16:27:44 +0100 Subject: Add mechanism to selectively enable macros for document events Change-Id: I56703b2c0ee009a645458c78c026c546b2e7e321 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112584 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt (cherry picked from commit 0a893a15b02a3662e3c68776be09534c9f955e4f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114436 Tested-by: Thorsten Behrens Reviewed-by: Thorsten Behrens Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114706 --- .../schema/org/openoffice/Office/Common.xcs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'officecfg') diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs index 7c0eb6c255d2..b317f616deeb 100644 --- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs +++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs @@ -2708,6 +2708,28 @@ false + + + Warn on load when a document binds an event to a macro + + true + + + + List of script URLS which are allowed to be called by document events. + Look into content.xml of the odf file to find the URL. + You can either write the full URL, a part of it (starting from the beginning), + or use regular expressions. + Examples: + * vnd.sun.star.script:Standard.Module1.Main?language=Basic&location=user + * vnd.sun.star.script:Standard.Module1 + * vnd.sun.star.script:YourScript.*location=share + * .*location=application.* + + When this list is empty, all document event URLs are allowed. + + + List with trusted authors. -- cgit