|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object writer2latex.latex.ConverterHelper writer2latex.latex.BlockConverter
public class BlockConverter
This class handles basic block content, including the main text body, sections, tables, lists, headings and paragraphs.
Field Summary |
---|
Fields inherited from class writer2latex.latex.ConverterHelper |
---|
config, ofr, palette |
Constructor Summary | |
---|---|
BlockConverter(OfficeReader ofr,
LaTeXConfig config,
ConverterPalette palette)
|
Method Summary | |
---|---|
void |
appendDeclarations(LaTeXDocumentPortion pack,
LaTeXDocumentPortion decl)
|
void |
handleList(org.w3c.dom.Element node,
LaTeXDocumentPortion ldp,
Context oc)
Process a list (text:ordered-lst or text:unordered-list tag) |
void |
traverseBlockText(org.w3c.dom.Element node,
LaTeXDocumentPortion ldp,
Context oc)
Traverse block text (eg. content of body, section, list item). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockConverter(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)
Method Detail |
---|
public void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
appendDeclarations
in class ConverterHelper
public void traverseBlockText(org.w3c.dom.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)
node
- The element containing the block textldp
- the LaTeXDocumentPortion
to which
LaTeX code should be addedoc
- the current contextpublic void handleList(org.w3c.dom.Element node, LaTeXDocumentPortion ldp, Context oc)
Process a list (text:ordered-lst or text:unordered-list tag)
node
- The element containing the listldp
- the LaTeXDocumentPortion
to which
LaTeX code should be addedoc
- the current context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |