writer2latex.latex

Class BlockConverter

public class BlockConverter extends ConverterHelper

This class handles basic block content, including the main text body, sections, tables, lists, headings and paragraphs.

Constructor Summary
BlockConverter(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)
Method Summary
voidappendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
voidhandleList(Element node, LaTeXDocumentPortion ldp, Context oc)

Process a list (text:ordered-lst or text:unordered-list tag)

voidtraverseBlockText(Element node, LaTeXDocumentPortion ldp, Context oc)

Traverse block text (eg. content of body, section, list item).

Constructor Detail

BlockConverter

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

Method Detail

appendDeclarations

public void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)

handleList

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

Process a list (text:ordered-lst or text:unordered-list tag)

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

traverseBlockText

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

Traverse block text (eg. content of body, section, list item). This is traversed in logical order and dedicated handlers take care of each block element.

(Note: As a rule, all handling of block level elements should add a newline to the LaTeX document at the end of the block)

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