Exemplo n.º 1
0
 def AddCell(self, attributes=None, rowspan=1, colspan=1):
     tc = TableCell(attributes=attributes)
     tc.number = self.nextcell
     self.nextcell += colspan
     tc.setAttribute('numberrowsspanned', str(rowspan))
     tc.setAttribute('numbercolumnsrepeated', str(colspan))
     tc.setAttribute('numbercolumnsspanned', str(colspan))
     self.row.addElement(tc)
     return tc
Exemplo n.º 2
0
 def AddCell(self, attributes=None, rowspan=1, colspan=1):
     tc = TableCell(attributes=attributes)
     tc.number = self.nextcell
     self.nextcell += colspan
     tc.setAttribute('numberrowsspanned', str(rowspan))
     tc.setAttribute('numbercolumnsrepeated', str(colspan))
     tc.setAttribute('numbercolumnsspanned', str(colspan))
     self.row.addElement(tc)
     return tc