writer2latex.office

Class 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.

Constructor Summary

TableReader(OfficeReader ofr, Element tableNode)
The constructor reads a table from a table:table or table:sub-table node.

Method Summary

Node
getCell(int nRow, int nCol)
String
getCellStyleName(int nRow, int nCol)
String
getCellWidth(int nRow, int nCol)
TableLine
getCol(int nCol)
int
getColCount()
String
getColumnWidth(int nCol)
int
getFirstBodyRow()
int
getMaxColCount()
int
getMaxRowCount()
String
getRelColumnWidth(int nCol)
String
getRelTableWidth()
TableLine
getRow(int nRow)
int
getRowCount()
String
getTableName()
String
getTableStyleName()
String
getTableWidth()
boolean
isSubTable()

Constructor Details

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 Details

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()