Package writer2latex.latex
Class IndexConverter
java.lang.Object
writer2latex.latex.ConverterHelper
writer2latex.latex.IndexConverter
This class handles indexes (table of contents, list of tables, list of illustrations, object index, user index, alphabetical index) as well as their associated index marks.
-
Field Summary
Fields inherited from class writer2latex.latex.ConverterHelper
config, ofr, palette
-
Constructor Summary
ConstructorsConstructorDescriptionIndexConverter
(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette) Construct a newIndexConverter
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Append declarations needed by theIndexConverter
to the preamble.void
flushIndexMarks
(LaTeXDocumentPortion ldp, Context oc) void
handleAlphabeticalIndex
(Element node, LaTeXDocumentPortion ldp, Context oc) Process Alphabetical Index (text:alphabetical-index tag)void
handleAlphabeticalIndexMark
(Element node, LaTeXDocumentPortion ldp, Context oc) Process an Alphabetical Index Mark (text:alphabetical-index-mark{-start} tag)void
handleLOF
(Element node, LaTeXDocumentPortion ldp, Context oc) Process List of Illustrations (text:list-of-illustrations tag)void
handleLOT
(Element node, LaTeXDocumentPortion ldp, Context oc) Process List of Tables (text:list-of-tables tag)void
handleObjectIndex
(Element node, LaTeXDocumentPortion ldp, Context oc) Process Object Index (text:object index tag)void
handleTOC
(Element node, LaTeXDocumentPortion ldp, Context oc) Process Table of Contents (text:table-of-content tag)void
handleUserIndex
(Element node, LaTeXDocumentPortion ldp, Context oc) Process User Index (text:user-index tag)
-
Constructor Details
-
IndexConverter
Construct a new
IndexConverter
.- Parameters:
config
- the configuration to usepalette
- theConverterPalette
to link to if such a document is created by theIndexConverter
-
-
Method Details
-
appendDeclarations
Append declarations needed by the
IndexConverter
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.
-
handleTOC
Process Table of Contents (text:table-of-content tag)- Parameters:
node
- The element containing the Table of Contentsldp
- theLaTeXDocumentPortion
to which LaTeX code should be addedoc
- the current context
-
handleLOF
Process List of Illustrations (text:list-of-illustrations tag)- Parameters:
node
- The element containing the List of Illustrationsldp
- theLaTeXDocumentPortion
to which LaTeX code should be addedoc
- the current context
-
handleLOT
Process List of Tables (text:list-of-tables tag)- Parameters:
node
- The element containing the List of Tablesldp
- theLaTeXDocumentPortion
to which LaTeX code should be addedoc
- the current context
-
handleObjectIndex
Process Object Index (text:object index tag)- Parameters:
node
- The element containing the Object Indexldp
- theLaTeXDocumentPortion
to which LaTeX code should be addedoc
- the current context
-
handleUserIndex
Process User Index (text:user-index tag)- Parameters:
node
- The element containing the User Indexldp
- theLaTeXDocumentPortion
to which LaTeX code should be addedoc
- the current context
-
handleAlphabeticalIndex
Process Alphabetical Index (text:alphabetical-index tag)- Parameters:
node
- The element containing the Alphabetical Indexldp
- theLaTeXDocumentPortion
to which LaTeX code should be addedoc
- the current context
-
handleAlphabeticalIndexMark
Process an Alphabetical Index Mark (text:alphabetical-index-mark{-start} tag)- Parameters:
node
- The element containing the Markldp
- theLaTeXDocumentPortion
to which LaTeX code should be addedoc
- the current context
-
flushIndexMarks
-