Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.openoffice.oocsltext

public Class BstUpdateBibliography

extends Object
Class Inheritance
Imports
java.io.IOException, java.util.List, .Optional, org.jabref.logic.openoffice.style.BstStyle, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, org.jabref.model.openoffice.DocumentAnnotation, org.jabref.model.openoffice.uno.CreationException, .NoDocumentException, .UnoTextSection, com.sun.star.lang.WrappedTargetException, com.sun.star.text.XTextCursor, com.sun.star.text.XTextDocument, com.sun.star.text.XTextRange, org.slf4j.Logger, .LoggerFactory

Manages the named bibliography text section used by the BST path, mirroring CSLUpdateBibliography.

On the first call the section is created at the end of the document. On subsequent calls the existing section is cleared and repopulated in place, so repeated "Sync bibliography" calls never duplicate the References section.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

private void
createBstBibTextSection(com.sun.star.text.XTextDocument doc)

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

private void
populateBstBibTextSection(com.sun.star.text.XTextDocument doc, BSTCitationOOAdapter bstCitationOOAdapter, BstStyle style, List<BibEntry> entries, BibDatabaseContext ctx)

public void
rebuildBstBibliography(com.sun.star.text.XTextDocument doc, BSTCitationOOAdapter bstCitationOOAdapter, BstStyle style, List<BibEntry> entries, BibDatabaseContext ctx)

Creates or clears the BST bibliography section, then populates it.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BST_BIBLIOGRAPHY_SECTION_NAMEback to summary
private static final String BST_BIBLIOGRAPHY_SECTION_NAME
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

BstUpdateBibliographyback to summary
public BstUpdateBibliography()

Method Detail

clearBstBibTextSectionContentback to summary
private void clearBstBibTextSectionContent(com.sun.star.text.XTextDocument doc) throws NoDocumentException, com.sun.star.lang.WrappedTargetException
createBstBibTextSectionback to summary
private void createBstBibTextSection(com.sun.star.text.XTextDocument doc) throws CreationException
getBibliographyRangeback to summary
public Optional<com.sun.star.text.XTextRange> getBibliographyRange(com.sun.star.text.XTextDocument doc) throws NoDocumentException, com.sun.star.lang.WrappedTargetException
populateBstBibTextSectionback to summary
private void populateBstBibTextSection(com.sun.star.text.XTextDocument doc, BSTCitationOOAdapter bstCitationOOAdapter, BstStyle style, List<BibEntry> entries, BibDatabaseContext ctx) throws com.sun.star.uno.Exception, NoDocumentException, CreationException, IOException, InterruptedException, com.sun.star.lang.WrappedTargetException, MissingStyleDefinedCitationLabelException
rebuildBstBibliographyback to summary
public void rebuildBstBibliography(com.sun.star.text.XTextDocument doc, BSTCitationOOAdapter bstCitationOOAdapter, BstStyle style, List<BibEntry> entries, BibDatabaseContext ctx) throws com.sun.star.uno.Exception, NoDocumentException, CreationException, IOException, InterruptedException, com.sun.star.lang.WrappedTargetException, MissingStyleDefinedCitationLabelException

Creates or clears the BST bibliography section, then populates it.