Remove fill color to improve the fanchart display in OpenOfficeDoc format (#0001072)

svn: r8653
This commit is contained in:
Brian Matherly 2007-06-24 21:13:36 +00:00
parent e1987a77cc
commit ef570f2d69
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-06-24 Brian Matherly <brian@gramps-project.org>
* src/docgen/OpenOfficeDoc.py (rotate_text, init): remove fill color to
improve the fanchart display (#0001072)
2007-06-24 Brian Matherly <brian@gramps-project.org>
* src/docgen/ODFDoc.py (rotate_text, init): fix rotated text location and
remove background color to improve the fanchart display (#0001072)

View File

@ -173,6 +173,14 @@ class OpenOfficeDoc(BaseDoc.BaseDoc):
self.cntnt.write('style:run-through="background" ')
self.cntnt.write('/>\n')
self.cntnt.write('</style:style>\n')
self.cntnt.write('<style:style style:name="nofill" ')
self.cntnt.write('style:family="graphics">\n')
self.cntnt.write('\t<style:properties draw:stroke="none" ')
self.cntnt.write('svg:stroke-color="#000000" draw:fill="none" ')
self.cntnt.write('draw:fill-color="#ff3f00" draw:shadow="hidden" ')
self.cntnt.write('style:run-through="background"/>\n')
self.cntnt.write('</style:style>\n')
for style_name in self.style_list.keys():
style = self.style_list[style_name]
@ -834,7 +842,7 @@ class OpenOfficeDoc(BaseDoc.BaseDoc):
rangle = (pi/180.0) * angle
self.cntnt.write('<draw:text-box draw:style-name="%s" ' % style)
self.cntnt.write('<draw:text-box draw:style-name="nofill" ')
self.cntnt.write('draw:layer="layout" svg:width="%.3fcm" ' % wcm)
self.cntnt.write('svg:height="%.3fpt" ' % hcm)
self.cntnt.write('draw:transform="')