예제 #1
0
def write_mergecells(ws):
    """Write merged cells to xml."""

    merged = [MergeCell(str(ref)) for ref in ws.merged_cells]

    if merged:
        return MergeCells(mergeCell=merged).to_tree()
예제 #2
0
def write_mergecells(worksheet):
    """Write merged cells to xml."""

    merged = [MergeCell(ref) for ref in worksheet._merged_cells]

    if merged:
        return MergeCells(mergeCell=merged).to_tree()
예제 #3
0
 def parse_merge(self, element):
     merged = MergeCells.from_tree(element)
     self.ws.merged_cells.ranges = merged.mergeCell
예제 #4
0
 def parse_merge(self, element):
     merged = MergeCells.from_tree(element)
     self.ws.merged_cells.ranges = merged.mergeCell
     for cr in merged.mergeCell:
         self.ws._clean_merge_range(cr)
예제 #5
0
 def parse_merge(self, element):
     merged = MergeCells.from_tree(element)
     for c in merged.mergeCell:
         self.ws.merge_cells(c.ref)
예제 #6
0
파일: worksheet.py 프로젝트: cloudera/hue
 def parse_merge(self, element):
     merged = MergeCells.from_tree(element)
     for c in merged.mergeCell:
         self.ws.merge_cells(c.ref)
예제 #7
0
 def parse_merge(self, element):
     merged = MergeCells.from_tree(element)
     self.ws.merged_cells.ranges = merged.mergeCell
     for cr in merged.mergeCell:
         self.ws._clean_merge_range(cr)