Support for header level (needed for LaTeX)
svn: r98
This commit is contained in:
parent
052ffe7530
commit
5b9ea3be88
@ -431,6 +431,7 @@ class StyleSheetList:
|
|||||||
f.write('first="%.3f" ' % utils.fl2txt("%.3f",p.get_first_indent()))
|
f.write('first="%.3f" ' % utils.fl2txt("%.3f",p.get_first_indent()))
|
||||||
f.write('pad="%.3f" ' % utils.fl2txt("%.3f",p.get_padding()))
|
f.write('pad="%.3f" ' % utils.fl2txt("%.3f",p.get_padding()))
|
||||||
f.write('bgcolor="#%02x%02x%02x" ' % p.get_background_color())
|
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('align="%d" ' % p.get_alignment())
|
||||||
f.write('tborder="%d" ' % p.get_top_border())
|
f.write('tborder="%d" ' % p.get_top_border())
|
||||||
f.write('lborder="%d" ' % p.get_left_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_padding(utils.txt2fl(attrs['pad']))
|
||||||
self.p.set_alignment(int(attrs['align']))
|
self.p.set_alignment(int(attrs['align']))
|
||||||
self.p.set_right_border(int(attrs['rborder']))
|
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_left_border(int(attrs['lborder']))
|
||||||
self.p.set_top_border(int(attrs['tborder']))
|
self.p.set_top_border(int(attrs['tborder']))
|
||||||
self.p.set_bottom_border(int(attrs['bborder']))
|
self.p.set_bottom_border(int(attrs['bborder']))
|
||||||
|
Loading…
Reference in New Issue
Block a user