Class FieldConverter
-
Field Summary
Fields inherited from class writer2latex.latex.ConverterHelper
config, ofr, palette -
Constructor Summary
ConstructorsConstructorDescriptionFieldConverter(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTarget(String sName, String sSuffix, LaTeXDocumentPortion ldp) Add a\\hypertargetvoidaddTarget(Element node, String sSuffix, LaTeXDocumentPortion ldp) Add a\\hypertargetvoidAppend declarations needed by theFieldConverterto the preamble.voidProcess pending reference marks and bookmarks (which may have been postponed within sections, captions or verbatim text.voidhandleAnchor(Element node, LaTeXDocumentPortion ldp, Context oc) Process a hyperlink (text:a tag)voidhandleBookmark(Element node, LaTeXDocumentPortion ldp, Context oc) Process a bookmark (text:bookmark tag)voidhandleBookmarkRef(Element node, LaTeXDocumentPortion ldp, Context oc) Process a bookmark reference (text:bookmark-ref tag).voidhandlePageCount(Element node, LaTeXDocumentPortion ldp, Context oc) Process a page count field (text:page-count tag)voidhandlePageNumber(Element node, LaTeXDocumentPortion ldp, Context oc) Process a page number field (text:page-number tag)voidhandleReferenceMark(Element node, LaTeXDocumentPortion ldp, Context oc) Process a reference mark (text:reference-mark tag)voidhandleReferenceRef(Element node, LaTeXDocumentPortion ldp, Context oc) Process a reference (text:reference-ref tag)voidhandleSequence(Element node, LaTeXDocumentPortion ldp, Context oc) Process a sequence field (text:sequence tag)voidhandleSequenceDecls(Element node) Process sequence declarationsvoidhandleSequenceLabel(Element node, LaTeXDocumentPortion ldp) Create label for a sequence field (text:sequence tag)voidhandleSequenceRef(Element node, LaTeXDocumentPortion ldp, Context oc) Process a sequence reference (text:sequence-ref tag)
-
Constructor Details
-
FieldConverter
-
-
Method Details
-
appendDeclarations
Append declarations needed by the
FieldConverterto the preamble.- Overrides:
appendDeclarationsin classConverterHelper- Parameters:
pack- theLaTeXDocumentPortionto which declarations of packages should be added (\\usepackage).decl- theLaTeXDocumentPortionto which other declarations should be added.
-
handleSequenceDecls
Process sequence declarations
- Parameters:
node- the text:sequence-decls node
-
handleSequence
Process a sequence field (text:sequence tag)
- Parameters:
node- The element containing the sequence fieldldp- theLaTeXDocumentPortionto which LaTeX code should be addedoc- the current context
-
handleSequenceLabel
Create label for a sequence field (text:sequence tag)
- Parameters:
node- The element containing the sequence fieldldp- theLaTeXDocumentPortionto which LaTeX code should be added
-
handleSequenceRef
Process a sequence reference (text:sequence-ref tag)
- Parameters:
node- The element containing the sequence referenceldp- theLaTeXDocumentPortionto which LaTeX code should be addedoc- the current context
-
handleReferenceMark
Process a reference mark (text:reference-mark tag)
- Parameters:
node- The element containing the reference markldp- theLaTeXDocumentPortionto which LaTeX code should be addedoc- the current context
-
handleReferenceRef
Process a reference (text:reference-ref tag)
- Parameters:
node- The element containing the referenceldp- theLaTeXDocumentPortionto which LaTeX code should be addedoc- the current context
-
handleBookmark
Process a bookmark (text:bookmark tag)
A bookmark may be the target for either a hyperlink or a reference, so this will generate a
\\hyperrefand/or a\\label- Parameters:
node- The element containing the bookmarkldp- theLaTeXDocumentPortionto which LaTeX code should be addedoc- the current context
-
handleBookmarkRef
Process a bookmark reference (text:bookmark-ref tag).
- Parameters:
node- The element containing the bookmark referenceldp- theLaTeXDocumentPortionto which LaTeX code should be addedoc- the current context
-
flushReferenceMarks
Process pending reference marks and bookmarks (which may have been postponed within sections, captions or verbatim text.
- Parameters:
ldp- theLaTeXDocumentPortionto which LaTeX code should be addedoc- the current context
-
handleAnchor
Process a hyperlink (text:a tag)
- Parameters:
node- The element containing the hyperlinkldp- theLaTeXDocumentPortionto which LaTeX code should be addedoc- the current context
-
addTarget
Add a
\\hypertarget- Parameters:
node- The element containing the name of the targetsSuffix- A suffix to be added to the target, e.g. "|table" for a reference to a table.ldp- theLaTeXDocumentPortionto which LaTeX code should be added
-
addTarget
Add a
\\hypertarget- Parameters:
sName- The name of the targetsSuffix- A suffix to be added to the target, e.g. "|table" for a reference to a table.ldp- theLaTeXDocumentPortionto which LaTeX code should be added
-
handlePageNumber
Process a page number field (text:page-number tag)
- Parameters:
node- The element containing the page number fieldldp- theLaTeXDocumentPortionto which LaTeX code should be addedoc- the current context
-
handlePageCount
Process a page count field (text:page-count tag)
- Parameters:
node- The element containing the page count fieldldp- theLaTeXDocumentPortionto which LaTeX code should be addedoc- the current context
-