From 830356f1fdb678e9079a2180fd23d163b0be1285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20S=C3=A1nchez?= Date: Fri, 8 Jul 2005 23:13:29 +0000 Subject: [PATCH] * src/docgen/OpenOfficeDoc.py: Make the output conform to the DTDs for OpenOffice.org XML svn: r4914 --- gramps2/ChangeLog | 4 +++ gramps2/src/docgen/OpenOfficeDoc.py | 43 ++++++++++++----------------- 2 files changed, 22 insertions(+), 25 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 15e2106af..cb2ca0ea8 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2005-07-09 Julio Sanchez + * src/docgen/OpenOfficeDoc.py: Make the output conform to the DTDs + for OpenOffice.org XML + 2005-07-08 Alex Roitman * src/plugins/GraphViz.py: Use single margin value, properly use cm for margin, properly use 2 digits after converting to inches. diff --git a/gramps2/src/docgen/OpenOfficeDoc.py b/gramps2/src/docgen/OpenOfficeDoc.py index f41d3df7f..68b75967c 100644 --- a/gramps2/src/docgen/OpenOfficeDoc.py +++ b/gramps2/src/docgen/OpenOfficeDoc.py @@ -152,9 +152,9 @@ class OpenOfficeDoc(BaseDoc.BaseDoc): self.cntnt.write('draw:fill-color="#%02x%02x%02x" ' % style.get_fill_color()) if style.get_line_style() == BaseDoc.DASHED: - self.cntnt.write('draw:color="#cccccc" ') + self.cntnt.write('svg:stroke-color="#cccccc" ') else: - self.cntnt.write('draw:color="#%02x%02x%02x" ' % style.get_color()) + self.cntnt.write('svg:stroke-color="#%02x%02x%02x" ' % style.get_color()) if style.get_line_width(): self.cntnt.write('draw:stroke="solid" ') @@ -304,10 +304,10 @@ class OpenOfficeDoc(BaseDoc.BaseDoc): #Begin photo style self.cntnt.write('') + self.cntnt.write(' style:parent-style-name="photo">') self.cntnt.write('\n') self.cntnt.write('') + self.cntnt.write(' style:parent-style-name="photo">') self.cntnt.write('\n') self.cntnt.write('') + self.cntnt.write(' style:parent-style-name="Graphics">') self.cntnt.write('\n') self.cntnt.write('') + self.cntnt.write(' style:parent-style-name="Graphics">') self.cntnt.write('\n') + self.sfile.write('office:version="0.9">\n') self.sfile.write('\n') self.sfile.write('\n') self.sfile.write('\n') self.sfile.write('\n') + self.sfile.write('\n') + self.sfile.write('\n') + self.sfile.write('\n') + self.sfile.write('\n') + self.sfile.write('\n') + self.sfile.write('\n') + self.sfile.write('\n') self.sfile.write('\n') - self.sfile.write('\n') - self.sfile.write('\n') - self.sfile.write('\n') - self.sfile.write('\n') - self.sfile.write('\n') - self.sfile.write('\n') - self.sfile.write('\n') - self.sfile.write('\n') self.sfile.write('\n') self.sfile.write('\n') @@ -755,7 +748,7 @@ class OpenOfficeDoc(BaseDoc.BaseDoc): self.meta.write('xmlns:xlink="http://www.w3.org/1999/xlink" ') self.meta.write('xmlns:dc="http://purl.org/dc/elements/1.1/" ') self.meta.write('xmlns:meta="http://openoffice.org/2000/meta" ') - self.meta.write('office:class="text" office:version="0.9">\n'); + self.meta.write('office:version="0.9">\n'); self.meta.write('\n') self.meta.write('') self.meta.write(const.progName + ' ' + const.version) @@ -850,7 +843,7 @@ class OpenOfficeDoc(BaseDoc.BaseDoc): self.cntnt.write('"/>\n') def draw_line(self,style,x1,y1,x2,y2): - self.cntnt.write('