diff options
author | Jan Holesovsky <kendy@suse.cz> | 2010-10-06 13:35:21 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2010-10-06 13:35:21 +0200 |
commit | 542a0e91f425b05bc4fb402777f0068c2a8159f4 (patch) | |
tree | 778fad1d2f39e3b54584d2643cddf0fdc78a9d86 /reportbuilder/java/com/sun/star/report/pentaho/output/OfficeDocumentReportTarget.java | |
parent | silence warnings (diff) | |
parent | masterfix OOO330: #i10000# build problem with cygwin shell (Windows) (diff) | |
download | core-542a0e91f425b05bc4fb402777f0068c2a8159f4.tar.gz core-542a0e91f425b05bc4fb402777f0068c2a8159f4.zip |
Merge commit 'ooo/OOO330_m9'
Conflicts:
swext/mediawiki/build.xml
swext/prj/build.lst
Diffstat (limited to 'reportbuilder/java/com/sun/star/report/pentaho/output/OfficeDocumentReportTarget.java')
-rw-r--r-- | reportbuilder/java/com/sun/star/report/pentaho/output/OfficeDocumentReportTarget.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/output/OfficeDocumentReportTarget.java b/reportbuilder/java/com/sun/star/report/pentaho/output/OfficeDocumentReportTarget.java index d4046424e07d..b41252a17089 100644 --- a/reportbuilder/java/com/sun/star/report/pentaho/output/OfficeDocumentReportTarget.java +++ b/reportbuilder/java/com/sun/star/report/pentaho/output/OfficeDocumentReportTarget.java @@ -138,6 +138,10 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget public static final String VERTICAL_POS = "vertical-pos"; private static final String ZERO_CM = "0cm"; + /** the verison of the ODF specification to which generated documents + * shall conform. */ + public static final String ODF_VERSION = "1.2"; + protected static class BufferState { @@ -376,7 +380,8 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget rootAttributes.addNamespaceDeclaration("xsd", OfficeNamespaces.XSD_NS); rootAttributes.addNamespaceDeclaration("xsi", OfficeNamespaces.XSI_NS); rootAttributes.addNamespaceDeclaration("grddl", OfficeNamespaces.GRDDL_NS); - rootAttributes.setAttribute(OfficeNamespaces.OFFICE_NS, "version", "1.2"); + rootAttributes.setAttribute(OfficeNamespaces.OFFICE_NS, "version", + ODF_VERSION); this.rootXmlWriter.writeXmlDeclaration("UTF-8"); this.rootXmlWriter.writeTag(OfficeNamespaces.OFFICE_NS, "document-content", rootAttributes, XmlWriterSupport.OPEN); |