Support for header level (needed for LaTeX)

svn: r98
This commit is contained in:
Don Allingham 2001-06-07 22:02:09 +00:00
parent 052ffe7530
commit 5b9ea3be88

View File

@ -431,6 +431,7 @@ class StyleSheetList:
f.write('first="%.3f" ' % utils.fl2txt("%.3f",p.get_first_indent()))
f.write('pad="%.3f" ' % utils.fl2txt("%.3f",p.get_padding()))
f.write('bgcolor="#%02x%02x%02x" ' % p.get_background_color())
f.write('level="%d" ' % p.get_header_level())
f.write('align="%d" ' % p.get_alignment())
f.write('tborder="%d" ' % p.get_top_border())
f.write('lborder="%d" ' % p.get_left_border())
@ -525,6 +526,7 @@ class SheetParser(xml.sax.handler.ContentHandler):
self.p.set_padding(utils.txt2fl(attrs['pad']))
self.p.set_alignment(int(attrs['align']))
self.p.set_right_border(int(attrs['rborder']))
self.p.set_header_level(int(attrs['level']))
self.p.set_left_border(int(attrs['lborder']))
self.p.set_top_border(int(attrs['tborder']))
self.p.set_bottom_border(int(attrs['bborder']))