writer2latex.latex
Class TableConverter

java.lang.Object
  extended by writer2latex.latex.ConverterHelper
      extended by writer2latex.latex.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(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)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableConverter

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

Constructs a new TableConverter.

Method Detail

appendDeclarations

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

handleCaption

public void handleCaption(org.w3c.dom.Element node,
                          LaTeXDocumentPortion ldp,
                          Context oc)

handleTable

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)

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