Package writer2latex.office
Class TableReader
java.lang.Object
writer2latex.office.TableReader
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
ConstructorsConstructorDescriptionTableReader
(OfficeReader ofr, Element tableNode) The constructor reads a table from a table:table or table:sub-table node. -
Method Summary
Modifier and TypeMethodDescriptiongetCell
(int nRow, int nCol) getCellStyleName
(int nRow, int nCol) getCellWidth
(int nRow, int nCol) getCol
(int nCol) int
getColumnWidth
(int nCol) int
int
int
getPrintRange
(int nIndex) int
getRelColumnWidth
(int nCol) getRow
(int nRow) int
boolean
-
Constructor Details
-
TableReader
The constructor reads a table from a table:table or table:sub-table node.
- Parameters:
ofr
- the OfficeReader object to get style information fromtableNode
- the table node
-
-
Method Details
-
isSubTable
public boolean isSubTable() -
getTableName
-
getTableStyleName
-
getTableWidth
-
getRelTableWidth
-
getRowCount
public int getRowCount() -
getMaxRowCount
public int getMaxRowCount() -
getFirstBodyRow
public int getFirstBodyRow() -
getColCount
public int getColCount() -
getMaxColCount
public int getMaxColCount() -
getColumnWidth
-
getRelColumnWidth
-
getCell
-
getCellStyleName
-
getCellWidth
-
getRow
-
getCol
-
getPrintRangeCount
public int getPrintRangeCount() -
getPrintRange
-