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:

Field Summary

Fields inherited from class writer2latex.latex.ConverterHelper

config, ofr, palette

Constructor Summary

TableConverter(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)
Constructs a new TableConverter.

Method Summary

void
appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
void
handleCaption(Element node, LaTeXDocumentPortion ldp, Context oc)
void
handleTable(Element node, Element caption, boolean bCaptionAbove, LaTeXDocumentPortion ldp, Context oc)
Process a table (table:table or table:sub-table tag)

Methods inherited from class writer2latex.latex.ConverterHelper

appendDeclarations

Constructor Details

TableConverter

public TableConverter(OfficeReader ofr,
                      LaTeXConfig config,
                      ConverterPalette palette)
Constructs a new TableConverter.

Method Details

appendDeclarations

public void appendDeclarations(LaTeXDocumentPortion pack,
                               LaTeXDocumentPortion decl)
Overrides:
appendDeclarations in interface ConverterHelper

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