office-gobmx/embeddedobj
Sarper Akdemir 8d3ac3968e 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>
2023-12-07 13:07:17 +01:00
..
qa XmlTestTools: factor out common code 2023-03-16 07:21:08 +00:00
source tdf#158375: add expert option to disable active content 2023-12-07 13:07:17 +01:00
test Simplify Sequences initializations (desktop/e*/filter/forms/formula/fpicker) 2021-06-08 17:08:06 +02:00
util
CppunitTest_embeddedobj_general.mk move password handling from SwModelTestBase to UnoApiTest 2022-11-11 20:09:41 +01:00
CppunitTest_embeddedobj_msole.mk CppunitTest_embeddedobj_msole: inherit from UnoApiXmlTest 2022-11-04 08:52:57 +01:00
IwyuFilter_embeddedobj.yaml
Library_embobj.mk tdf#147590 update OLE object after document refresh 2022-05-10 09:02:01 +02:00
Library_emboleobj.mk Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
Makefile
Module_embeddedobj.mk embeddedobj: handle getting the visible area on a thread 2021-05-07 14:21:40 +02:00
README.md

Embedding Objects Into LibreOffice

Code for embedding objects into LibreOffice (reverse of embedserv module).