Top Description Fields Constructors Methods
org.jabref.gui.openoffice

public Class OpenOfficePanel

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.file.Path, java.util.ArrayList, .List, .Optional, javax.swing.undo.UndoManager, javafx.concurrent.Task, javafx.geometry.Insets, .Side, javafx.scene.Node, javafx.scene.control.Button, .CheckMenuItem, .ContextMenu, .MenuItem, .ProgressBar, .RadioMenuItem, .SeparatorMenuItem, .ToggleGroup, .Tooltip, javafx.scene.layout.FlowPane, .HBox, .Priority, .VBox, org.jabref.gui.ClipBoardManager, .DialogService, .LibraryTab, .LibraryTabContainer, .StateManager, org.jabref.gui.actions.ActionFactory, .StandardActions, org.jabref.gui.help.HelpAction, org.jabref.gui.icon.IconTheme, org.jabref.gui.undo.NamedCompound, .UndoableKeyChange, org.jabref.gui.util.BackgroundTask, .DirectoryDialogConfiguration, .TaskExecutor, org.jabref.logic.citationkeypattern.CitationKeyGenerator, .CitationKeyPatternPreferences, org.jabref.logic.help.HelpFile, org.jabref.logic.journals.JournalAbbreviationRepository, org.jabref.logic.l10n.Localization, org.jabref.logic.openoffice.OpenOfficeFileSearch, .OpenOfficePreferences, org.jabref.logic.openoffice.action.Update, org.jabref.logic.openoffice.style.OOBibStyle, .StyleLoader, org.jabref.model.database.BibDatabase, .BibDatabaseContext, org.jabref.model.entry.BibEntry, .BibEntryTypesManager, org.jabref.model.openoffice.style.CitationType, org.jabref.model.openoffice.uno.CreationException, org.jabref.model.util.FileUpdateMonitor, org.jabref.preferences.PreferencesService, com.sun.star.comp.helper.BootstrapException, org.slf4j.Logger, .LoggerFactory

Pane to manage the interaction between JabRef and OpenOffice.

Field Summary

Modifier and TypeField and Description
private final ClipBoardManager
private final Button
private final DialogService
private final BibEntryTypesManager
private final Button
private final FileUpdateMonitor
private final Button
private final StyleLoader
private static final Logger
private final Button
private final Button
private final Button
private OOBibBase
private final PreferencesService
private final Button
private final Button
private final Button
private final Button
private final Button
private final Button
private final Button
private final StateManager
private OOBibStyle
private final LibraryTabContainer
private final TaskExecutor
private final UndoManager
private final Button
private final Button
private final VBox

Constructor Summary

AccessConstructor and Description
public
OpenOfficePanel(LibraryTabContainer tabContainer, PreferencesService preferencesService, JournalAbbreviationRepository abbreviationRepository, TaskExecutor taskExecutor, DialogService dialogService, StateManager stateManager, FileUpdateMonitor fileUpdateMonitor, BibEntryTypesManager entryTypesManager, ClipBoardManager clipBoardManager, UndoManager undoManager)

Method Summary

Modifier and TypeMethod and Description
private boolean

Returns:

true if all entries have citation keys, if it so may be after generating them
checkThatEntriesHaveKeys
(List<BibEntry>
A list of entries to be checked
entries
)

Check that all entries in the list have citation keys, if not ask if they should be generated

private static CitationType
citationTypeFromOptions(boolean
False means invisible citation (no text).
withText
,
boolean
True means "(Au and Thor 2000)". False means "Au and Thor (2000)".
inParenthesis
)

Given the withText and inParenthesis options, return the corresponding citationType.

private void
private void
private void
private OOBibBase
private ContextMenu
private void
private List<BibDatabase>
public Node
private boolean
private void
private void
pushEntries(CitationType citationType, boolean addPageInfo)

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clipBoardManagerback to summary
private final ClipBoardManager clipBoardManager
connectback to summary
private final Button connect
dialogServiceback to summary
private final DialogService dialogService
entryTypesManagerback to summary
private final BibEntryTypesManager entryTypesManager
exportCitationsback to summary
private final Button exportCitations
fileUpdateMonitorback to summary
private final FileUpdateMonitor fileUpdateMonitor
helpback to summary
private final Button help
loaderback to summary
private final StyleLoader loader
LOGGERback to summary
private static final Logger LOGGER
manageCitationsback to summary
private final Button manageCitations
manualConnectback to summary
private final Button manualConnect
mergeback to summary
private final Button merge
ooBaseback to summary
private OOBibBase ooBase
preferencesServiceback to summary
private final PreferencesService preferencesService
pushEntriesback to summary
private final Button pushEntries
pushEntriesAdvancedback to summary
private final Button pushEntriesAdvanced
pushEntriesEmptyback to summary
private final Button pushEntriesEmpty
pushEntriesIntback to summary
private final Button pushEntriesInt
selectDocumentback to summary
private final Button selectDocument
setStyleFileback to summary
private final Button setStyleFile
settingsBback to summary
private final Button settingsB
stateManagerback to summary
private final StateManager stateManager
styleback to summary
private OOBibStyle style
tabContainerback to summary
private final LibraryTabContainer tabContainer
taskExecutorback to summary
private final TaskExecutor taskExecutor
undoManagerback to summary
private final UndoManager undoManager
unmergeback to summary
private final Button unmerge
updateback to summary
private final Button update
vboxback to summary
private final VBox vbox

Constructor Detail

OpenOfficePanelback to summary
public OpenOfficePanel(LibraryTabContainer tabContainer, PreferencesService preferencesService, JournalAbbreviationRepository abbreviationRepository, TaskExecutor taskExecutor, DialogService dialogService, StateManager stateManager, FileUpdateMonitor fileUpdateMonitor, BibEntryTypesManager entryTypesManager, ClipBoardManager clipBoardManager, UndoManager undoManager)

Method Detail

checkThatEntriesHaveKeysback to summary
private boolean checkThatEntriesHaveKeys(List<BibEntry> entries)

Check that all entries in the list have citation keys, if not ask if they should be generated

Parameters
entries:List<BibEntry>

A list of entries to be checked

Returns:boolean

true if all entries have citation keys, if it so may be after generating them

citationTypeFromOptionsback to summary
private static CitationType citationTypeFromOptions(boolean withText, boolean inParenthesis)

Given the withText and inParenthesis options, return the corresponding citationType.

Parameters
withText:boolean

False means invisible citation (no text).

inParenthesis:boolean

True means "(Au and Thor 2000)". False means "Au and Thor (2000)".

connectback to summary
private void connect()
connectAutomaticallyback to summary
private void connectAutomatically()
connectManuallyback to summary
private void connectManually()
createBibBaseback to summary
private OOBibBase createBibBase(Path loPath) throws com.sun.star.comp.helper.BootstrapException, CreationException
createSettingsPopupback to summary
private ContextMenu createSettingsPopup()
exportEntriesback to summary
private void exportEntries()
getBaseListback to summary
private List<BibDatabase> getBaseList()
getContentback to summary
public Node getContent()
getOrUpdateTheStyleback to summary
private boolean getOrUpdateTheStyle(String title)
initPanelback to summary
private void initPanel()
pushEntriesback to summary
private void pushEntries(CitationType citationType, boolean addPageInfo)
updateButtonAvailabilityback to summary
private void updateButtonAvailability()