writer2latex.latex

Class BibConverter


public class BibConverter
extends ConverterHelper

This class handles the bibliography. The result depends on these configuration options. The citations will be treated like this: The bibliography will be treated like this:

Field Summary

Fields inherited from class writer2latex.latex.ConverterHelper

config, ofr, palette

Constructor Summary

BibConverter(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)
Construct a new BibConverter.

Method Summary

void
appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
Append declarations needed by the BibConverter to the preamble.
BibTeXDocument
getBibTeXDocument()
Get the BibTeX document, if any (the document is only created if it's specified in the configuration *and* the document contains bibliographic data *and* the configuration does not specify external BibTeX files
void
handleBibliography(Element node, LaTeXDocumentPortion ldp, Context oc)
Process a bibliography (text:bibliography tag)
void
handleBibliographyMark(Element node, LaTeXDocumentPortion ldp, Context oc)
Process a Bibliography Mark (text:bibliography-mark tag)

Methods inherited from class writer2latex.latex.ConverterHelper

appendDeclarations

Constructor Details

BibConverter

public BibConverter(OfficeReader ofr,
                    LaTeXConfig config,
                    ConverterPalette palette)
Construct a new BibConverter.
Parameters:
config - the configuration to use
palette - the ConverterPalette to use

Method Details

appendDeclarations

public void appendDeclarations(LaTeXDocumentPortion pack,
                               LaTeXDocumentPortion decl)
Append declarations needed by the BibConverter to the preamble.
Overrides:
appendDeclarations in interface ConverterHelper
Parameters:
pack - the LaTeXDocumentPortion to which declarations of packages should be added (\\usepackage).
decl - the LaTeXDocumentPortion to which other declarations should be added.

getBibTeXDocument

public BibTeXDocument getBibTeXDocument()
Get the BibTeX document, if any (the document is only created if it's specified in the configuration *and* the document contains bibliographic data *and* the configuration does not specify external BibTeX files
Returns:
the BiBTeXDocument, or null if it does not exist).

handleBibliography

public void handleBibliography(Element node,
                               LaTeXDocumentPortion ldp,
                               Context oc)
Process a bibliography (text:bibliography tag)
Parameters:
node - The element containing the Bibliography
ldp - the LaTeXDocumentPortion to which LaTeX code should be added
oc - the current context

handleBibliographyMark

public void handleBibliographyMark(Element node,
                                   LaTeXDocumentPortion ldp,
                                   Context oc)
Process a Bibliography Mark (text:bibliography-mark tag)
Parameters:
node - The element containing the Mark
ldp - the LaTeXDocumentPortion to which LaTeX code should be added
oc - the current context