writer2latex.office

Class TableReader

public class TableReader extends Object

This class reads a table from a table:table or table:sub-table element and presents it as an n by m grid. In addition it gives access to the absolute and relative widths of tables, columns and cells.

Constructor Summary
TableReader(OfficeReader ofr, Element tableNode)

The constructor reads a table from a table:table or table:sub-table node.

Method Summary
NodegetCell(int nRow, int nCol)
StringgetCellStyleName(int nRow, int nCol)
StringgetCellWidth(int nRow, int nCol)
TableLinegetCol(int nCol)
intgetColCount()
StringgetColumnWidth(int nCol)
intgetFirstBodyRow()
intgetMaxColCount()
intgetMaxRowCount()
StringgetRelColumnWidth(int nCol)
StringgetRelTableWidth()
TableLinegetRow(int nRow)
intgetRowCount()
StringgetTableName()
StringgetTableStyleName()
StringgetTableWidth()
booleanisSubTable()

Constructor Detail

TableReader

public TableReader(OfficeReader ofr, Element tableNode)

The constructor reads a table from a table:table or table:sub-table node.

Parameters: ofr the OfficeReader object to get style information from tableNode the table node

Method Detail

getCell

public Node getCell(int nRow, int nCol)

getCellStyleName

public String getCellStyleName(int nRow, int nCol)

getCellWidth

public String getCellWidth(int nRow, int nCol)

getCol

public TableLine getCol(int nCol)

getColCount

public int getColCount()

getColumnWidth

public String getColumnWidth(int nCol)

getFirstBodyRow

public int getFirstBodyRow()

getMaxColCount

public int getMaxColCount()

getMaxRowCount

public int getMaxRowCount()

getRelColumnWidth

public String getRelColumnWidth(int nCol)

getRelTableWidth

public String getRelTableWidth()

getRow

public TableLine getRow(int nRow)

getRowCount

public int getRowCount()

getTableName

public String getTableName()

getTableStyleName

public String getTableStyleName()

getTableWidth

public String getTableWidth()

isSubTable

public boolean isSubTable()