summaryrefslogtreecommitdiff
path: root/package/source/manifest
diff options
context:
space:
mode:
authorMikhail Voytenko <mav@openoffice.org>2010-12-06 16:25:17 +0100
committerMikhail Voytenko <mav@openoffice.org>2010-12-06 16:25:17 +0100
commit1c0809840b24305e976852940e27c9e315ababd4 (patch)
treec1a0e9940f0637b5ba60f7dc2930f3fb9f37b854 /package/source/manifest
parent84025fa376598f1c42023ffddd2d851db914e984 (diff)
fwk162: #i115789# write manifest:version in manifest:manifest element for ODF1.2 and later
Diffstat (limited to 'package/source/manifest')
-rw-r--r--package/source/manifest/ManifestExport.cxx5
1 files changed, 5 insertions, 0 deletions
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