From 34a513428d0786578c1c5f38fdc8a0fbd3b8f82f Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 19 May 2020 12:40:32 +0200 Subject: xmloff,filter: Flat ODF import: import BuildId from meta:generator The problem is that SvXMLMetaDocumentContext::endFastElement() works to init BuildId property for ODF packages but not for flat ODF files because the entire content of the document is inside that element. So init BuildId when the office:meta element ends. Also, add the missing "BuildId" property in XmlFilterAdaptor. This allows the CppunitTest_sd_import_tests testGradientAngle to work in the subsequent commit. Change-Id: I916a9288631078c1552cd8673e41fa9a9679f574 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94499 Tested-by: Jenkins Reviewed-by: Michael Stahl --- filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'filter') diff --git a/filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx b/filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx index 5e5a897e9e8e..8a1b2c96ade2 100644 --- a/filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx +++ b/filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx @@ -84,6 +84,7 @@ bool XmlFilterAdaptor::importImpl( const Sequence< css::beans::PropertyValue >& PropertyMapEntry aImportInfoMap[] = { { OUString("BaseURI"), 0, ::cppu::UnoType::get(), PropertyAttribute::MAYBEVOID, 0}, + { OUString("BuildId"), 0, ::cppu::UnoType::get(), PropertyAttribute::MAYBEVOID, 0 }, { OUString("DefaultDocumentSettings"), 0, ::cppu::UnoType>::get(), PropertyAttribute::MAYBEVOID, 0 }, { OUString(), 0, css::uno::Type(), 0, 0 } -- cgit