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

public Class Update

extends Object
Class Inheritance
Imports
java.io.IOException, java.util.List, org.jabref.logic.JabRefException, org.jabref.logic.openoffice.frontend.OOFrontend, .UpdateBibliography, .UpdateCitationMarkers, org.jabref.logic.openoffice.style.JStyle, .OOProcess, org.jabref.model.database.BibDatabase, org.jabref.model.openoffice.rangesort.FunctionalTextViewCursor, org.jabref.model.openoffice.uno.CreationException, .NoDocumentException, .UnoScreenRefresh, org.jabref.model.openoffice.util.OOResult, com.sun.star.lang.IllegalArgumentException, com.sun.star.lang.WrappedTargetException, com.sun.star.text.XTextDocument, org.slf4j.Logger, .LoggerFactory

Update document: citation marks and bibliography

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static OOResult<List<String>, JabRefException>
resyncDocument(com.sun.star.text.XTextDocument doc, JStyle style, FunctionalTextViewCursor fcursor, Update.SyncOptions syncOptions)

Reread document before sync

public static OOResult<List<String>, JabRefException>
synchronizeDocument(com.sun.star.text.XTextDocument doc, OOFrontend frontend, JStyle style, FunctionalTextViewCursor fcursor, Update.SyncOptions syncOptions)

private static List<String>
updateDocument(com.sun.star.text.XTextDocument doc, OOFrontend frontend, List<BibDatabase> databases, JStyle style, FunctionalTextViewCursor fcursor, boolean doUpdateBibliography, boolean alwaysAddCitedOnPages)

Returns: the list of unresolved citation keys

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

Updateback to summary
private Update()

Method Detail

resyncDocumentback to summary
public static OOResult<List<String>, JabRefException> resyncDocument(com.sun.star.text.XTextDocument doc, JStyle style, FunctionalTextViewCursor fcursor, Update.SyncOptions syncOptions)

Reread document before sync

synchronizeDocumentback to summary
public static OOResult<List<String>, JabRefException> synchronizeDocument(com.sun.star.text.XTextDocument doc, OOFrontend frontend, JStyle style, FunctionalTextViewCursor fcursor, Update.SyncOptions syncOptions)
updateDocumentback to summary
private static List<String> updateDocument(com.sun.star.text.XTextDocument doc, OOFrontend frontend, List<BibDatabase> databases, JStyle style, FunctionalTextViewCursor fcursor, boolean doUpdateBibliography, boolean alwaysAddCitedOnPages) throws CreationException, NoDocumentException, com.sun.star.lang.WrappedTargetException, com.sun.star.lang.IllegalArgumentException
Returns:List<String>

the list of unresolved citation keys

org.jabref.logic.openoffice.action back to summary

public Class Update.SyncOptions

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv boolean
public final List<BibDatabase>
pack-priv boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Update.SyncOptions
setAlwaysAddCitedOnPages(boolean value)

public Update.SyncOptions
setUpdateBibliography(boolean value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

alwaysAddCitedOnPagesback to summary
pack-priv boolean alwaysAddCitedOnPages
databasesback to summary
public final List<BibDatabase> databases
updateBibliographyback to summary
pack-priv boolean updateBibliography

Constructor Detail

SyncOptionsback to summary
public SyncOptions(List<BibDatabase> databases)

Method Detail

setAlwaysAddCitedOnPagesback to summary
public Update.SyncOptions setAlwaysAddCitedOnPages(boolean value)
setUpdateBibliographyback to summary
public Update.SyncOptions setUpdateBibliography(boolean value)