From 1c0809840b24305e976852940e27c9e315ababd4 Mon Sep 17 00:00:00 2001 From: Mikhail Voytenko Date: Mon, 6 Dec 2010 16:25:17 +0100 Subject: fwk162: #i115789# write manifest:version in manifest:manifest element for ODF1.2 and later --- package/source/manifest/ManifestExport.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'package') diff --git a/package/source/manifest/ManifestExport.cxx b/package/source/manifest/ManifestExport.cxx index e4b9ec533c60..6175bdc4e613 100644 --- a/package/source/manifest/ManifestExport.cxx +++ b/package/source/manifest/ManifestExport.cxx @@ -166,6 +166,11 @@ ManifestExport::ManifestExport(Reference < XDocumentHandler > xHandler, const S { // this is ODF12 generation, let encrypted streams contain start-key-generation entry bStoreStartKeyGeneration = sal_True; + + // starting from ODF12 the version should be also in manifest:manifest element + pRootAttrList->AddAttribute ( OUString( RTL_CONSTASCII_USTRINGPARAM ( ATTRIBUTE_VERSION ) ), + sCdataAttribute, + aDocVersion ); } } else -- cgit