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


Field Summary
 
Fields inherited from class writer2latex.latex.StyleConverter
declarations, styleMap, styleNames
 
Fields inherited from class writer2latex.latex.ConverterHelper
config, ofr, palette
 
Constructor Summary
ParConverter(OfficeReader ofr, LaTeXConfig 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParConverter

public ParConverter(OfficeReader ofr,
                    LaTeXConfig 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)