* src/docgen/OpenOfficeDoc.py: allow disabling of the box shadow

svn: r2621
This commit is contained in:
Don Allingham 2004-01-10 02:37:07 +00:00
parent 8a5a9940ce
commit 5ef54614ad

View File

@ -911,15 +911,16 @@ class OpenOfficeDoc(BaseDoc.BaseDoc):
para_name = box_style.get_paragraph_style()
shadow_width = box_style.get_shadow_space()
self.f.write('<draw:rect text:anchor-type="paragraph" ')
self.f.write('draw:style-name="%s_shadow" ' % style)
self.f.write('draw:text-style-name="%s" ' % para_name)
self.f.write('draw:z-index="0" ')
self.f.write('svg:width="%.3fcm" ' % box_style.get_width())
self.f.write('svg:height="%.3fcm" ' % box_style.get_height())
self.f.write('svg:x="%.3fcm" ' % (float(x)+shadow_width))
self.f.write('svg:y="%.3fcm">\n' % (float(y)+shadow_width))
self.f.write('</draw:rect>\n')
if box_style.get_shadow():
self.f.write('<draw:rect text:anchor-type="paragraph" ')
self.f.write('draw:style-name="%s_shadow" ' % style)
self.f.write('draw:text-style-name="%s" ' % para_name)
self.f.write('draw:z-index="0" ')
self.f.write('svg:width="%.3fcm" ' % box_style.get_width())
self.f.write('svg:height="%.3fcm" ' % box_style.get_height())
self.f.write('svg:x="%.3fcm" ' % (float(x)+shadow_width))
self.f.write('svg:y="%.3fcm">\n' % (float(y)+shadow_width))
self.f.write('</draw:rect>\n')
self.f.write('<draw:rect text:anchor-type="paragraph" ')
self.f.write('draw:style-name="%s" ' % style)