writer2latex.latex
Class IndexConverter
public class 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.
void | appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl) - Append declarations needed by the
IndexConverter 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)
|
IndexConverter
public IndexConverter(OfficeReader ofr,
LaTeXConfig config,
ConverterPalette palette)
Construct a new IndexConverter
.
config
- the configuration to usepalette
- the ConverterPalette
to link to
if such a document is created by the IndexConverter
appendDeclarations
public void appendDeclarations(LaTeXDocumentPortion pack,
LaTeXDocumentPortion decl)
Append declarations needed by the IndexConverter
to
the preamble.
- appendDeclarations in interface ConverterHelper
pack
- the LaTeXDocumentPortion
to which
declarations of packages should be added (\\usepackage
).decl
- the LaTeXDocumentPortion
to which
other declarations should be added.
handleAlphabeticalIndex
public void handleAlphabeticalIndex(Element node,
LaTeXDocumentPortion ldp,
Context oc)
Process Alphabetical Index (text:alphabetical-index tag)
node
- The element containing the Alphabetical Indexldp
- the LaTeXDocumentPortion
to which
LaTeX code should be addedoc
- the current context
handleAlphabeticalIndexMark
public void handleAlphabeticalIndexMark(Element node,
LaTeXDocumentPortion ldp,
Context oc)
Process an Alphabetical Index Mark (text:alphabetical-index-mark{-start} tag)
node
- The element containing the Markldp
- the LaTeXDocumentPortion
to which
LaTeX code should be addedoc
- the current context
handleLOF
public void handleLOF(Element node,
LaTeXDocumentPortion ldp,
Context oc)
Process List of Illustrations (text:list-of-illustrations tag)
node
- The element containing the List of Illustrationsldp
- the LaTeXDocumentPortion
to which
LaTeX code should be addedoc
- the current context
handleLOT
public void handleLOT(Element node,
LaTeXDocumentPortion ldp,
Context oc)
Process List of Tables (text:list-of-tables tag)
node
- The element containing the List of Tablesldp
- the LaTeXDocumentPortion
to which
LaTeX code should be addedoc
- the current context
handleObjectIndex
public void handleObjectIndex(Element node,
LaTeXDocumentPortion ldp,
Context oc)
Process Object Index (text:object index tag)
node
- The element containing the Object Indexldp
- the LaTeXDocumentPortion
to which
LaTeX code should be addedoc
- the current context
handleTOC
public void handleTOC(Element node,
LaTeXDocumentPortion ldp,
Context oc)
Process Table of Contents (text:table-of-content tag)
node
- The element containing the Table of Contentsldp
- the LaTeXDocumentPortion
to which
LaTeX code should be addedoc
- the current context
handleUserIndex
public void handleUserIndex(Element node,
LaTeXDocumentPortion ldp,
Context oc)
Process User Index (text:user-index tag)
node
- The element containing the User Indexldp
- the LaTeXDocumentPortion
to which
LaTeX code should be addedoc
- the current context