Added set_borders which turns on all cell borders

svn: r19880
This commit is contained in:
Doug Blank 2012-06-19 15:39:05 +00:00
parent e7032c45b6
commit 75f4cf2ee2

View File

@ -163,6 +163,17 @@ class TableCellStyle(object):
"Return the cell padding in centimeters"
self.padding = val
def set_borders(self, val):
"""
Defines if a border is used
@param val: if True, a border is used, if False, it is not
"""
self.rborder = val
self.lborder = val
self.tborder = val
self.bborder = val
def set_right_border(self, val):
"""
Defines if a right border in used