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 TypeMethodDescriptionvoid
addTarget
(String sName, String sSuffix, LaTeXDocumentPortion ldp) Add a\\hypertarget
void
addTarget
(Element node, String sSuffix, LaTeXDocumentPortion ldp) Add a\\hypertarget
void
Append declarations needed by theFieldConverter
to the preamble.void
Process pending reference marks and bookmarks (which may have been postponed within sections, captions or verbatim text.void
handleAnchor
(Element node, LaTeXDocumentPortion ldp, Context oc) Process a hyperlink (text:a tag)void
handleBookmark
(Element node, LaTeXDocumentPortion ldp, Context oc) Process a bookmark (text:bookmark tag)void
handleBookmarkRef
(Element node, LaTeXDocumentPortion ldp, Context oc) Process a bookmark reference (text:bookmark-ref tag).void
handlePageCount
(Element node, LaTeXDocumentPortion ldp, Context oc) Process a page count field (text:page-count tag)void
handlePageNumber
(Element node, LaTeXDocumentPortion ldp, Context oc) Process a page number field (text:page-number tag)void
handleReferenceMark
(Element node, LaTeXDocumentPortion ldp, Context oc) Process a reference mark (text:reference-mark or text:reference-mark-start tag)void
handleReferenceMarkEnd
(Element node, LaTeXDocumentPortion ldp, Context oc) Process a reference mark end (text:reference-mark-end tag)void
handleReferenceRef
(Element node, LaTeXDocumentPortion ldp, Context oc) Process a reference (text:reference-ref tag)void
handleSequence
(Element node, LaTeXDocumentPortion ldp, Context oc) Process a sequence field (text:sequence tag)void
handleSequenceDecls
(Element node) Process sequence declarationsvoid
handleSequenceLabel
(Element node, LaTeXDocumentPortion ldp) Create label for a sequence field (text:sequence tag)void
handleSequenceRef
(Element node, LaTeXDocumentPortion ldp, Context oc) Process a sequence reference (text:sequence-ref tag)boolean
Do we have any pending reference marks or bookmarks, that may be inserted in this context?
-
Constructor Details
-
FieldConverter
-
-
Method Details
-
appendDeclarations
Append declarations needed by the
FieldConverter
to the preamble.- Overrides:
appendDeclarations
in classConverterHelper
- Parameters:
pack
- theLaTeXDocumentPortion
to which declarations of packages should be added (\\usepackage
).decl
- theLaTeXDocumentPortion
to 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
- theLaTeXDocumentPortion
to 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
- theLaTeXDocumentPortion
to which LaTeX code should be added
-
handleSequenceRef
Process a sequence reference (text:sequence-ref tag)
- Parameters:
node
- The element containing the sequence referenceldp
- theLaTeXDocumentPortion
to which LaTeX code should be addedoc
- the current context
-
handleReferenceMarkEnd
Process a reference mark end (text:reference-mark-end tag)
- Parameters:
node
- The element containing the reference markldp
- theLaTeXDocumentPortion
to which LaTeX code should be addedoc
- the current context
-
handleReferenceMark
Process a reference mark (text:reference-mark or text:reference-mark-start tag)
- Parameters:
node
- The element containing the reference markldp
- theLaTeXDocumentPortion
to which LaTeX code should be addedoc
- the current context
-
handleReferenceRef
Process a reference (text:reference-ref tag)
- Parameters:
node
- The element containing the referenceldp
- theLaTeXDocumentPortion
to 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
\\hyperref
and/or a\\label
- Parameters:
node
- The element containing the bookmarkldp
- theLaTeXDocumentPortion
to 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
- theLaTeXDocumentPortion
to which LaTeX code should be addedoc
- the current context
-
hasPendingReferenceMarks
Do we have any pending reference marks or bookmarks, that may be inserted in this context?- Parameters:
oc
- the context to verify against- Returns:
- true if there are pending marks
-
flushReferenceMarks
Process pending reference marks and bookmarks (which may have been postponed within sections, captions or verbatim text.
- Parameters:
ldp
- theLaTeXDocumentPortion
to which LaTeX code should be addedoc
- the current context
-
handleAnchor
Process a hyperlink (text:a tag)
- Parameters:
node
- The element containing the hyperlinkldp
- theLaTeXDocumentPortion
to 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
- theLaTeXDocumentPortion
to 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
- theLaTeXDocumentPortion
to 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
- theLaTeXDocumentPortion
to 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
- theLaTeXDocumentPortion
to which LaTeX code should be addedoc
- the current context
-