Top Fields Constructors Methods
org.jabref.logic.openoffice.style

public Class OOFormatBibliography

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, .Optional, org.jabref.logic.l10n.Localization, org.jabref.logic.layout.Layout, org.jabref.model.database.BibDatabase, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.Field, .UnknownField, org.jabref.model.openoffice.ootext.OOFormat, .OOText, org.jabref.model.openoffice.style.CitationGroup, .CitationGroupId, .CitationGroups, .CitationPath, .CitedKey, .CitedKeys

Field Summary

Modifier and TypeField and Description
private static final OOPreFormatter
private static final Field

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static OOText

Returns:

The formatted bibliography, including its title.
formatBibliography
(CitationGroups citationGroups, CitedKeys bibliography, OOBibStyle style, boolean alwaysAddCitedOnPages)

public static OOText

Returns:

Formatted body of the bibliography. Excludes the title.
formatBibliographyBody
(CitationGroups citationGroups, CitedKeys bibliography, OOBibStyle style, boolean alwaysAddCitedOnPages)

public static OOText

Returns:

A paragraph. Includes label and "Cited on pages".
formatBibliographyEntry
(CitationGroups citationGroups, CitedKey citedKey, OOBibStyle style, boolean alwaysAddCitedOnPages)

public static OOText

Returns:

just the body of a bibliography entry. No label, "Cited on pages" or paragraph.
formatBibliographyEntryBody
(CitedKey citedKey, OOBibStyle style)

private static OOText
formatCitedOnPages(CitationGroups citationGroups, CitedKey citedKey)

Format links to citations of the source (citedKey).

private static OOText

Returns:

OOText The reference part of a bibliography entry formatted as OOText
formatFullReferenceOfBibEntry
(Layout
The Layout to format the reference with.
layout
,
BibEntry
The entry to insert.
entry
,
BibDatabase
The database the entry belongs to.
database
,
String
Uniqiefier letter, if any, to append to the entry's year.
uniquefier
)

Format the reference part of a bibliography entry using a Layout.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

POSTFORMATTERback to summary
private static final OOPreFormatter POSTFORMATTER
UNIQUEFIER_FIELDback to summary
private static final Field UNIQUEFIER_FIELD

Constructor Detail

OOFormatBibliographyback to summary
private OOFormatBibliography()

Method Detail

formatBibliographyback to summary
public static OOText formatBibliography(CitationGroups citationGroups, CitedKeys bibliography, OOBibStyle style, boolean alwaysAddCitedOnPages)
Returns:OOText

The formatted bibliography, including its title.

formatBibliographyBodyback to summary
public static OOText formatBibliographyBody(CitationGroups citationGroups, CitedKeys bibliography, OOBibStyle style, boolean alwaysAddCitedOnPages)
Returns:OOText

Formatted body of the bibliography. Excludes the title.

formatBibliographyEntryback to summary
public static OOText formatBibliographyEntry(CitationGroups citationGroups, CitedKey citedKey, OOBibStyle style, boolean alwaysAddCitedOnPages)
Returns:OOText

A paragraph. Includes label and "Cited on pages".

formatBibliographyEntryBodyback to summary
public static OOText formatBibliographyEntryBody(CitedKey citedKey, OOBibStyle style)
Returns:OOText

just the body of a bibliography entry. No label, "Cited on pages" or paragraph.

formatCitedOnPagesback to summary
private static OOText formatCitedOnPages(CitationGroups citationGroups, CitedKey citedKey)

Format links to citations of the source (citedKey). Requires reference marks for the citation groups. - The links are created as references that show page numbers of the reference marks. - We do not control the text shown, that is provided by OpenOffice.

formatFullReferenceOfBibEntryback to summary
private static OOText formatFullReferenceOfBibEntry(Layout layout, BibEntry entry, BibDatabase database, String uniquefier)

Format the reference part of a bibliography entry using a Layout.

Parameters
layout:Layout

The Layout to format the reference with.

entry:BibEntry

The entry to insert.

database:BibDatabase

The database the entry belongs to.

uniquefier:String

Uniqiefier letter, if any, to append to the entry's year.

Returns:OOText

OOText The reference part of a bibliography entry formatted as OOText