From e0f20211a8048a87b078aa4cf0f28c0c847487ad Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 16 Dec 2019 17:02:46 +0100 Subject: sw reqif-xhtml import: add a new AllowedRTFOLEMimeTypes parameter The HTML import is an old-style filter, so it has no XFilter implementation where filter() would get custom parameters out of the box. One way would be to fix by adding one more entry to the aFormalArgs table under sfx2/, but doing that with a random parameter of a random import filter feels dirty. So instead make SfxMedium store all arguments as-is, this way accessing other keys is as easy to accessing the already available FilterOptions (string) key. Regarding the actual filter change, don't require "text/rtf" as a mime type for embedded objects in the reqif XHTML import, so that in case the file has e.g. application/rtf, then that works as well. In case an (UNO) client wants to still limit the accepted set of MIME types, that's possible via the new parameter. Change-Id: Ia60da44d692f550d8ad5bbf374171cac67d9e04f Reviewed-on: https://gerrit.libreoffice.org/85229 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- include/sfx2/docfile.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/sfx2/docfile.hxx b/include/sfx2/docfile.hxx index 2019b5738c01..09aae02b1976 100644 --- a/include/sfx2/docfile.hxx +++ b/include/sfx2/docfile.hxx @@ -108,6 +108,7 @@ public: const OUString& GetOrigURL() const; SfxItemSet * GetItemSet() const; + css::uno::Sequence GetArgs() const; void Close(bool bInDestruction = false); void CloseAndRelease(); void ReOpen(); -- cgit