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

public Class UpdateBibliography

extends Object
Class Inheritance
Imports
java.util.Optional, org.jabref.logic.openoffice.style.OOBibStyle, .OOFormatBibliography, org.jabref.model.openoffice.DocumentAnnotation, org.jabref.model.openoffice.ootext.OOText, .OOTextIntoOO, org.jabref.model.openoffice.style.CitedKeys, org.jabref.model.openoffice.uno.CreationException, .NoDocumentException, .UnoBookmark, .UnoTextSection, com.sun.star.lang.WrappedTargetException, com.sun.star.text.XTextCursor, com.sun.star.text.XTextDocument, com.sun.star.text.XTextRange

Field Summary

Modifier and TypeField and Description
private static final String
private static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
clearBibTextSectionContent2(com.sun.star.text.XTextDocument doc)

Find and clear the text section BIB_SECTION_NAME to "", or create it.

private static void
createBibTextSection2(com.sun.star.text.XTextDocument doc)

Insert a paragraph break and create a text section for the bibliography.

public static Optional<com.sun.star.text.XTextRange>
getBibliographyRange(com.sun.star.text.XTextDocument doc)

private static void
populateBibTextSection(com.sun.star.text.XTextDocument doc, OOFrontend frontend, CitedKeys bibliography, OOBibStyle style, boolean alwaysAddCitedOnPages)

Only called from: `rebuildBibTextSection`

Assumes the section named BIB_SECTION_NAME exists.

public static void
rebuildBibTextSection(com.sun.star.text.XTextDocument doc, OOFrontend frontend, CitedKeys bibliography, OOBibStyle style, boolean alwaysAddCitedOnPages)

Rebuilds the bibliography.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BIB_SECTION_END_NAMEback to summary
private static final String BIB_SECTION_END_NAME
BIB_SECTION_NAMEback to summary
private static final String BIB_SECTION_NAME

Constructor Detail

UpdateBibliographyback to summary
private UpdateBibliography()

Method Detail

clearBibTextSectionContent2back to summary
private static void clearBibTextSectionContent2(com.sun.star.text.XTextDocument doc) throws CreationException, NoDocumentException, com.sun.star.lang.WrappedTargetException

Find and clear the text section BIB_SECTION_NAME to "", or create it.

Only called from: `rebuildBibTextSection`

createBibTextSection2back to summary
private static void createBibTextSection2(com.sun.star.text.XTextDocument doc) throws CreationException

Insert a paragraph break and create a text section for the bibliography.

Only called from `clearBibTextSectionContent2`

getBibliographyRangeback to summary
public static Optional<com.sun.star.text.XTextRange> getBibliographyRange(com.sun.star.text.XTextDocument doc) throws NoDocumentException, com.sun.star.lang.WrappedTargetException
populateBibTextSectionback to summary
private static void populateBibTextSection(com.sun.star.text.XTextDocument doc, OOFrontend frontend, CitedKeys bibliography, OOBibStyle style, boolean alwaysAddCitedOnPages) throws CreationException, IllegalArgumentException, NoDocumentException, com.sun.star.lang.WrappedTargetException

Only called from: `rebuildBibTextSection`

Assumes the section named BIB_SECTION_NAME exists.

rebuildBibTextSectionback to summary
public static void rebuildBibTextSection(com.sun.star.text.XTextDocument doc, OOFrontend frontend, CitedKeys bibliography, OOBibStyle style, boolean alwaysAddCitedOnPages) throws com.sun.star.lang.WrappedTargetException, CreationException, NoDocumentException

Rebuilds the bibliography.