summaryrefslogtreecommitdiff
path: root/officecfg/registry/schema
diff options
context:
space:
mode:
authorSarper Akdemir <sarper.akdemir.extern@allotropia.de>2023-12-06 21:40:37 +0300
committerSarper Akdemir <sarper.akdemir.extern@allotropia.de>2023-12-07 13:07:17 +0100
commit8d3ac3968e31d8d804d72d39a9387f225d30d087 (patch)
tree3871050759db6f734455ae5778c115fc3d498116 /officecfg/registry/schema
parentbfbae5ddd52cf80af94b250b9de349f0340dbe34 (diff)
tdf#158375: add expert option to disable active content
adds new expert option DisableActiveContent Right now only disables active embedded content / OLE. If OLE content is being imported via UNOEmbeddedObjectCreator::createInstanceInitFromEntry with the expert option DisableActiveContent set, the imported OLE object is now forced to be ODummyEmbeddedObject. ODummyEmbeddedObject doesn't implement any other state then embed::EmbedStates::LOADED (i.e. doesn't implement RUNNING, ACTIVE etc.) which makes it possible to prevent the imported OLE object becoming active. The functions that now throw lang::NoSuchElementException are usually called on new creation of embedded content via UI. But since the call sites expect the possibility of embedded content failing to initialize, that is handled by showing a popup stating some form of `unable to insert`. A follow-up improvement of disabling insertion of OLE content via dialogs could be implemented. Change-Id: Ib558a2a129b491798f5036a7bb269116545be75d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160402 Tested-by: Jenkins Reviewed-by: Sarper Akdemir <sarper.akdemir.extern@allotropia.de>
Diffstat (limited to 'officecfg/registry/schema')
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/Common.xcs7
1 files changed, 7 insertions, 0 deletions
diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
index bf760476afa3..27e7eba04007 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
@@ -2517,6 +2517,13 @@
</info>
<value>false</value>
</prop>
+ <prop oor:name="DisableActiveContent" oor:type="xs:boolean" oor:nillable="false">
+ <info>
+ <desc>Specifies whether or not to disable active content. Right now
+ only disables active embedded content (OLE).</desc>
+ </info>
+ <value>false</value>
+ </prop>
<prop oor:name="CheckDocumentEvents" oor:type="xs:boolean" oor:nillable="false">
<info>
<desc>Warn on load when a document binds an event to a macro</desc>