writer2latex.xhtml

Class TableConverter


public class TableConverter
extends ConverterHelper

TableConverter.java This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1, as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Copyright: 2002-2008 by Henrik Just All Rights Reserved. Version 1.0 (2008-12-15)

Field Summary

protected Vector
sheetNames

Fields inherited from class writer2latex.xhtml.ConverterHelper

config, converter, ofr

Constructor Summary

TableConverter(OfficeReader ofr, XhtmlConfig config, Converter converter)

Method Summary

String
borderWidth(String sBorder)
void
convertTableContent(Element onode)
Converts an office node as a complete table (spreadsheet) document
void
handleTable(Node onode, Node hnode)
Process a table:table tag

Methods inherited from class writer2latex.xhtml.ConverterHelper

applyStyle, getCellSc, getDrawCv, getFrameSc, getListSc, getMathCv, getPageSc, getParSc, getPresentationSc, getRowSc, getSectionSc, getStyleCv, getTableCv, getTableSc, getTextCv, getTextSc

Field Details

sheetNames

protected Vector sheetNames

Constructor Details

TableConverter

public TableConverter(OfficeReader ofr,
                      XhtmlConfig config,
                      Converter converter)

Method Details

borderWidth

public String borderWidth(String sBorder)

convertTableContent

public void convertTableContent(Element onode)
Converts an office node as a complete table (spreadsheet) document
Parameters:
onode - the Office node containing the content to convert

handleTable

public void handleTable(Node onode,
                        Node hnode)
Process a table:table tag
Parameters:
onode - the Office node containing the table element
hnode - the XHTML node to which the table should be attached