Package 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.
-
-
Constructor Summary
Constructors Constructor Description TableReader(OfficeReader ofr, org.w3c.dom.Element tableNode)
The constructor reads a table from a table:table or table:sub-table node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.Element
getCell(int nRow, int nCol)
java.lang.String
getCellStyleName(int nRow, int nCol)
java.lang.String
getCellWidth(int nRow, int nCol)
TableLine
getCol(int nCol)
int
getColCount()
java.lang.String
getColumnWidth(int nCol)
int
getFirstBodyRow()
int
getMaxColCount()
int
getMaxRowCount()
TableRange
getPrintRange(int nIndex)
int
getPrintRangeCount()
java.lang.String
getRelColumnWidth(int nCol)
java.lang.String
getRelTableWidth()
TableLine
getRow(int nRow)
int
getRowCount()
java.lang.String
getTableName()
java.lang.String
getTableStyleName()
java.lang.String
getTableWidth()
boolean
isSubTable()
-
-
-
Constructor Detail
-
TableReader
public TableReader(OfficeReader ofr, org.w3c.dom.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 fromtableNode
- the table node
-
-
Method Detail
-
isSubTable
public boolean isSubTable()
-
getTableName
public java.lang.String getTableName()
-
getTableStyleName
public java.lang.String getTableStyleName()
-
getTableWidth
public java.lang.String getTableWidth()
-
getRelTableWidth
public java.lang.String getRelTableWidth()
-
getRowCount
public int getRowCount()
-
getMaxRowCount
public int getMaxRowCount()
-
getFirstBodyRow
public int getFirstBodyRow()
-
getColCount
public int getColCount()
-
getMaxColCount
public int getMaxColCount()
-
getColumnWidth
public java.lang.String getColumnWidth(int nCol)
-
getRelColumnWidth
public java.lang.String getRelColumnWidth(int nCol)
-
getCell
public org.w3c.dom.Element getCell(int nRow, int nCol)
-
getCellStyleName
public java.lang.String getCellStyleName(int nRow, int nCol)
-
getCellWidth
public java.lang.String getCellWidth(int nRow, int nCol)
-
getRow
public TableLine getRow(int nRow)
-
getCol
public TableLine getCol(int nCol)
-
getPrintRangeCount
public int getPrintRangeCount()
-
getPrintRange
public TableRange getPrintRange(int nIndex)
-
-