Package writer2latex.latex
Class ParConverter
- java.lang.Object
-
- writer2latex.latex.ConverterHelper
-
- writer2latex.latex.StyleConverter
-
- 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
Constructors Constructor Description ParConverter(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)
Constructs a newParConverter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
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 classStyleConverter
-
handleParagraph
public void handleParagraph(org.w3c.dom.Element node, LaTeXDocumentPortion ldp, Context oc, boolean bLastInBlock)
Process a text:p tag
- Parameters:
node
- The text:p element node containing the paragraphldp
- TheLaTeXDocumentPortion
to add LaTeX code tooc
- The current contextbLastInBlock
- 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)
-
-