summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-05-19 12:40:32 +0200
committerJan Holesovsky <kendy@collabora.com>2021-01-07 16:32:55 +0100
commit4181f01c032c8aa8ac018956a4da58168ce6fa50 (patch)
treee9eabe4a48004d3d8925041b2691cffe0fcb711a /include
parentcc5b6831301d95845e8fb842aa0047bd69e59a72 (diff)
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 <michael.stahl@cib.de>
Diffstat (limited to 'include')
-rw-r--r--include/xmloff/xmlmetai.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/xmloff/xmlmetai.hxx b/include/xmloff/xmlmetai.hxx
index ca908b41c114..1405b8b09b04 100644
--- a/include/xmloff/xmlmetai.hxx
+++ b/include/xmloff/xmlmetai.hxx
@@ -56,6 +56,8 @@ public:
sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
public:
+ void FinishMetaElement();
+
static void setBuildId(const OUString & rGenerator,
const css::uno::Reference< css::beans::XPropertySet>& xImportInfo );
};