Exemplo n.º 1
0
 public void writeGridSpan(SpanInfo spanInfo) {
   int columnSpan = spanInfo.getColumnSpan();
   int rowSpan = spanInfo.getRowSpan();
   if (columnSpan > 1) {
     writer.attribute("table:number-columns-spanned", columnSpan);
   }
   if (rowSpan > 1) {
     writer.attribute("table:number-rows-spanned", rowSpan);
   }
 }
Exemplo n.º 2
0
  public void writeSpanCell(SpanInfo info) {
    writer.openTag("table:covered-table-cell");
    StyleEntry style = info.getStyle();
    if (style != null) {
      writer.attribute("table:style-name", style.getName());
    }

    writeGridSpan(info);

    insertHiddenParagraph();
    writer.closeTag("table:covered-table-cell");
  }