summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomas Straupis <tomasstraupis@gmail.com>2011-03-29 15:08:03 (GMT)
committerQt Commercial Integration <QtCommercial@digia.com>2012-01-31 10:25:03 (GMT)
commit10d45f8f288bdc9afd042a45e5ed398e6eb44f7f (patch)
treecd2cf8a97568ed0ca7764c29355d7d4051cd4499 /src
parent4ea25071a909c1ac6d69930af2575774d4e9127e (diff)
downloadQt-10d45f8f288bdc9afd042a45e5ed398e6eb44f7f.zip
Qt-10d45f8f288bdc9afd042a45e5ed398e6eb44f7f.tar.gz
Qt-10d45f8f288bdc9afd042a45e5ed398e6eb44f7f.tar.bz2
Add version attributes as per ODF specification
Merge-request: 1120 Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/text/qtextodfwriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/text/qtextodfwriter.cpp b/src/gui/text/qtextodfwriter.cpp
index 6dc7d03..2b1f92f 100644
--- a/src/gui/text/qtextodfwriter.cpp
+++ b/src/gui/text/qtextodfwriter.cpp
@@ -124,6 +124,7 @@ public:
manifestWriter.writeNamespace(manifestNS, QString::fromLatin1("manifest"));
manifestWriter.writeStartDocument();
manifestWriter.writeStartElement(manifestNS, QString::fromLatin1("manifest"));
+ manifestWriter.writeAttribute(manifestNS, QString::fromLatin1("version"), QString::fromLatin1("1.2"));
addFile(QString::fromLatin1("/"), QString::fromLatin1("application/vnd.oasis.opendocument.text"));
addFile(QString::fromLatin1("content.xml"), QString::fromLatin1("text/xml"));
}
@@ -778,6 +779,7 @@ bool QTextOdfWriter::writeAll()
writer.writeNamespace(svgNS, QString::fromLatin1("svg"));
writer.writeStartDocument();
writer.writeStartElement(officeNS, QString::fromLatin1("document-content"));
+ writer.writeAttribute(officeNS, QString::fromLatin1("version"), QString::fromLatin1("1.2"));
// add fragments. (for character formats)
QTextDocumentPrivate::FragmentIterator fragIt = m_document->docHandle()->begin();