writer2latex.xhtml
Class TableConverter
java.lang.Object
writer2latex.xhtml.ConverterHelper
writer2latex.xhtml.TableConverter
public class TableConverter
- extends ConverterHelper
Field Summary |
protected java.util.Vector |
sheetNames
|
Method Summary |
private void |
applyCellStyle(java.lang.String sStyleName,
java.lang.String sTotalWidth,
java.lang.String sValueType,
org.w3c.dom.Element cell,
boolean bIsSubTable)
|
private void |
applyRowStyle(java.lang.String sStyleName,
org.w3c.dom.Element row)
|
private void |
applyTableStyle(java.lang.String sStyleName,
org.w3c.dom.Element table,
boolean bIsSubTable)
|
private java.lang.String |
borderWidth(java.lang.String sBorder)
|
void |
convertTableContent(org.w3c.dom.Element onode)
Converts an office node as a complete table (spreadsheet) document |
void |
handleTable(org.w3c.dom.Node onode,
org.w3c.dom.Node hnode)
Process a table:table tag |
private boolean |
isEmptyCell(org.w3c.dom.Node cell)
|
private org.w3c.dom.Element |
nextOutFile()
|
Methods inherited from class writer2latex.xhtml.ConverterHelper |
applyStyle, getCellSc, getDrawCv, getFrameSc, getListSc, getMathCv, getPageSc, getParSc, getPresentationSc, getRowSc, getSectionSc, getStyleCv, getTableCv, getTableSc, getTextCv, getTextSc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sheetNames
protected java.util.Vector sheetNames
TableConverter
public TableConverter(OfficeReader ofr,
Config config,
Converter converter)
convertTableContent
public void convertTableContent(org.w3c.dom.Element onode)
- Converts an office node as a complete table (spreadsheet) document
- Parameters:
onode
- the Office node containing the content to convert
nextOutFile
private org.w3c.dom.Element nextOutFile()
handleTable
public void handleTable(org.w3c.dom.Node onode,
org.w3c.dom.Node hnode)
- Process a table:table tag
- Parameters:
onode
- the Office node containing the table elementhnode
- the XHTML node to which the table should be attached
isEmptyCell
private boolean isEmptyCell(org.w3c.dom.Node cell)
applyTableStyle
private void applyTableStyle(java.lang.String sStyleName,
org.w3c.dom.Element table,
boolean bIsSubTable)
applyRowStyle
private void applyRowStyle(java.lang.String sStyleName,
org.w3c.dom.Element row)
applyCellStyle
private void applyCellStyle(java.lang.String sStyleName,
java.lang.String sTotalWidth,
java.lang.String sValueType,
org.w3c.dom.Element cell,
boolean bIsSubTable)
borderWidth
private java.lang.String borderWidth(java.lang.String sBorder)