writer2latex.latex
Class ParConverter

java.lang.Object
  extended by writer2latex.latex.ConverterHelper
      extended by writer2latex.latex.StyleConverter
          extended by writer2latex.latex.ParConverter

public class ParConverter
extends StyleConverter


Constructor Summary
ParConverter(OfficeReader ofr, Config config, ConverterPalette palette)
          Constructs a new ParConverter.
 
Method Summary
 void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
           
 void applyAlignment(StyleWithProperties style, boolean bIsSimple, boolean bInherit, BeforeAfter ba)
           
 void handleParagraph(org.w3c.dom.Element node, LaTeXDocumentPortion ldp, Context oc, boolean bLastInBlock)
           Process a text:p tag
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParConverter

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

Constructs a new ParConverter.

Method Detail

appendDeclarations

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

handleParagraph

public void handleParagraph(org.w3c.dom.Element node,
                            LaTeXDocumentPortion ldp,
                            Context oc,
                            boolean bLastInBlock)

Process a text:p tag

Parameters:
node - The text:h element node containing the heading
ldp - The LaTeXDocumentPortion to add LaTeX code to
oc - The current context
bLastInBlock - If this is true, the paragraph is the last one in a block, and we need no trailing blank line (eg. right before \end{enumerate}).

applyAlignment

public void applyAlignment(StyleWithProperties style,
                           boolean bIsSimple,
                           boolean bInherit,
                           BeforeAfter ba)