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 TypeMethodDescriptionvoidAppend declarations needed by theIndexConverterto the preamble.voidflushIndexMarks(LaTeXDocumentPortion ldp, Context oc) voidhandleAlphabeticalIndex(Element node, LaTeXDocumentPortion ldp, Context oc) Process Alphabetical Index (text:alphabetical-index tag)voidhandleAlphabeticalIndexMark(Element node, LaTeXDocumentPortion ldp, Context oc) Process an Alphabetical Index Mark (text:alphabetical-index-mark{-start} tag)voidhandleLOF(Element node, LaTeXDocumentPortion ldp, Context oc) Process List of Illustrations (text:list-of-illustrations tag)voidhandleLOT(Element node, LaTeXDocumentPortion ldp, Context oc) Process List of Tables (text:list-of-tables tag)voidhandleObjectIndex(Element node, LaTeXDocumentPortion ldp, Context oc) Process Object Index (text:object index tag)voidhandleTOC(Element node, LaTeXDocumentPortion ldp, Context oc) Process Table of Contents (text:table-of-content tag)voidhandleUserIndex(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- theConverterPaletteto link to if such a document is created by theIndexConverter
-
-
Method Details
-
appendDeclarations
Append declarations needed by the
IndexConverterto the preamble.- Overrides:
appendDeclarationsin classConverterHelper- Parameters:
pack- theLaTeXDocumentPortionto which declarations of packages should be added (\\usepackage).decl- theLaTeXDocumentPortionto 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- theLaTeXDocumentPortionto 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- theLaTeXDocumentPortionto 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- theLaTeXDocumentPortionto 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- theLaTeXDocumentPortionto 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- theLaTeXDocumentPortionto 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- theLaTeXDocumentPortionto 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- theLaTeXDocumentPortionto which LaTeX code should be addedoc- the current context
-
flushIndexMarks
-