writer2latex.latex

Class TableConverter

public class TableConverter extends ConverterHelper

This class converts OpenDocument tables to LaTeX.

The following LaTeX packages are used; some of them are optional

array.sty, longtable.sty, supertabular.sty, tabulary.sty, hhline.sty, colortbl.sty.

Options:

Constructor Summary
TableConverter(OfficeReader ofr, Config config, ConverterPalette palette)

Constructs a new TableConverter.

Method Summary
voidappendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
voidhandleCaption(Element node, LaTeXDocumentPortion ldp, Context oc)
voidhandleTable(Element node, Element caption, boolean bCaptionAbove, LaTeXDocumentPortion ldp, Context oc)

Process a table (table:table or table:sub-table tag)

Constructor Detail

TableConverter

public TableConverter(OfficeReader ofr, Config config, ConverterPalette palette)

Constructs a new TableConverter.

Method Detail

appendDeclarations

public void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)

handleCaption

public void handleCaption(Element node, LaTeXDocumentPortion ldp, Context oc)

handleTable

public void handleTable(Element node, Element caption, boolean bCaptionAbove, LaTeXDocumentPortion ldp, Context oc)

Process a table (table:table or table:sub-table tag)

Parameters: node The element containing the table ldp the LaTeXDocumentPortion to which LaTeX code should be added oc the current context