diff options
author | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2021-03-16 16:27:44 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2021-04-06 16:21:57 +0200 |
commit | fed5feac93225b52ac71c43a9c61bfed46cc81e0 (patch) | |
tree | 693d175d7df71e5148be495fe545080069e5e25e /officecfg | |
parent | 573d9193a04c7dd13aa9e3271becf92e5a50de75 (diff) |
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 <samuel.mehrbrodt@allotropia.de>
(cherry picked from commit 0a893a15b02a3662e3c68776be09534c9f955e4f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113627
Tested-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'officecfg')
-rw-r--r-- | officecfg/registry/schema/org/openoffice/Office/Common.xcs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs index cf4154524599..40edfcd97dc1 100644 --- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs +++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs @@ -2674,6 +2674,22 @@ </info> <value>true</value> </prop> + <prop oor:name="AllowedDocumentEventURLs" oor:type="oor:string-list"> + <info> + <desc>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. + </desc> + </info> + </prop> <set oor:name="TrustedAuthors" oor:node-type="TrustedAuthor"> <info> <desc>List with trusted authors.</desc> |