writer2latex.office
Class TableReader
java.lang.Object
writer2latex.office.TableReader
public class TableReader
extends java.lang.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.
TableReader(OfficeReader ofr, Element tableNode) - The constructor reads a table from a table:table or table:sub-table
node.
|
TableReader
public TableReader(OfficeReader ofr,
Element tableNode)
The constructor reads a table from a table:table or table:sub-table
node.
ofr
- the OfficeReader object to get style information fromtableNode
- the table node
getCell
public Node getCell(int nRow,
int nCol)
getCellStyleName
public String getCellStyleName(int nRow,
int nCol)
getCellWidth
public String getCellWidth(int nRow,
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()
getRowCount
public int getRowCount()
getTableName
public String getTableName()
getTableStyleName
public String getTableStyleName()
getTableWidth
public String getTableWidth()
isSubTable
public boolean isSubTable()