Top Description Constructors Methods
org.jabref.model.openoffice.ootext

public Class OOFormat

extends Object
Class Inheritance
Imports
org.jabref.model.strings.StringUtil

Helper functions to produce some of the markup as understood by OOTextIntoOO.write

These do not cover all tags, only those needed to embed markup from Layout and citation marker formatters into citation markers and bibliography.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static OOText
formatReferenceToPageNumberOfReferenceMark(String referenceMarkName)

Format an OO cross-reference showing the target's page number as label to a reference mark.

public static OOText
paragraph(OOText ootext, String paraStyle)

Mark ootext as part of a paragraph with style paraStyle

public static OOText
paragraph(OOText ootext)

Mark ootext as part of a paragraph.

public static OOText
setCharStyle(OOText ootext, String
Name of a character style known to OO. May be empty for "Standard", which in turn means do not override any properties.
charStyle
)

Mark ootext using a character style charStyle

public static OOText
setLocale(OOText ootext, String
language[-country[-territory]]

https://www.openoffice.org/api/docs/common/ref/com/sun/star/lang/Locale.html

The country part is optional.

The territory part is not only optional, the allowed "codes are vendor and browser-specific", so probably best to avoid them if possible.

locale
)

Mark ootext as using a character locale known to OO.

public static OOText
setLocaleNone(OOText ootext)

Mark ootext as using the character locale "zxx", which means "no language", "no linguistic content".

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

OOFormatback to summary
private OOFormat()

Method Detail

formatReferenceToPageNumberOfReferenceMarkback to summary
public static OOText formatReferenceToPageNumberOfReferenceMark(String referenceMarkName)

Format an OO cross-reference showing the target's page number as label to a reference mark.

paragraphback to summary
public static OOText paragraph(OOText ootext, String paraStyle)

Mark ootext as part of a paragraph with style paraStyle

paragraphback to summary
public static OOText paragraph(OOText ootext)

Mark ootext as part of a paragraph.

setCharStyleback to summary
public static OOText setCharStyle(OOText ootext, String charStyle)

Mark ootext using a character style charStyle

Parameters
charStyle:String

Name of a character style known to OO. May be empty for "Standard", which in turn means do not override any properties.

setLocaleback to summary
public static OOText setLocale(OOText ootext, String locale)

Mark ootext as using a character locale known to OO.

Parameters
locale:String

language[-country[-territory]]

https://www.openoffice.org/api/docs/common/ref/com/sun/star/lang/Locale.html

The country part is optional.

The territory part is not only optional, the allowed "codes are vendor and browser-specific", so probably best to avoid them if possible.

setLocaleNoneback to summary
public static OOText setLocaleNone(OOText ootext)

Mark ootext as using the character locale "zxx", which means "no language", "no linguistic content".

Used around citation marks, probably to turn off spellchecking.