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:
config, ofr, palette
Constructor and Description |
---|
TableConverter(OfficeReader ofr,
LaTeXConfig config,
ConverterPalette palette)
Constructs a new
TableConverter . |
Modifier and Type | Method and Description |
---|---|
void |
appendDeclarations(LaTeXDocumentPortion pack,
LaTeXDocumentPortion decl) |
void |
handleCaption(org.w3c.dom.Element node,
LaTeXDocumentPortion ldp,
Context oc) |
void |
handleTable(org.w3c.dom.Element node,
org.w3c.dom.Element caption,
boolean bCaptionAbove,
LaTeXDocumentPortion ldp,
Context oc)
Process a table (table:table or table:sub-table tag)
|
public TableConverter(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)
Constructs a new TableConverter
.
public void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
appendDeclarations
in class ConverterHelper
public void handleCaption(org.w3c.dom.Element node, LaTeXDocumentPortion ldp, Context oc)
public void handleTable(org.w3c.dom.Element node, org.w3c.dom.Element caption, boolean bCaptionAbove, LaTeXDocumentPortion ldp, Context oc)
Process a table (table:table or table:sub-table tag)
node
- The element containing the tableldp
- the LaTeXDocumentPortion
to which
LaTeX code should be addedoc
- the current context