| Modifier and Type | Field and Description |
|---|---|
| private final BibEntryTypesManager | |
| private BSTCitationOOAdapter | |
| private BstUpdateBibliography | |
| private final com. | |
| private final OOBibBaseConnect | |
| private CSLCitationOOAdapter | |
| private CSLUpdateBibliography | |
| private final DialogService | |
| private static final Logger | |
| private final OpenOfficePreferences |
| Access | Constructor and Description |
|---|---|
| public | OOBibBase(Path loPath, DialogService dialogService, OpenOfficePreferences openOfficePreferences, BibEntryTypesManager bibEntryTypesManager)
|
| Modifier and Type | Method and Description |
|---|---|
| private org.jabref.model.openoffice.util.OOVoidResult | checkCitationMarkersOutsidePendingDeletions(com.
|
| private static org.jabref.model.openoffice.util.OOVoidResult | |
| private static org.jabref.model.openoffice.util.OOVoidResult | checkRangeOverlapsWithCursor(com.
|
| private org.jabref.model.openoffice.util.OOVoidResult | checkStyleExistsInTheDocument(String familyName, String styleName, com.
|
| public org.jabref.model.openoffice.util.OOVoidResult | |
| private void | clearCitationAdapters()
Clear all document-bound helpers after connection loss or before switching to another document. |
| pack-priv org.jabref.model.openoffice.util.OOVoidResult | collectResults(String errorTitle, List<org.jabref.model.openoffice.util.OOVoidResult<OOError>> results)
|
| pack-priv org.jabref.model.openoffice.util.OOVoidResult | |
| public void | dispose()
|
| private org.jabref.model.openoffice.util.OOResult | |
| private org.jabref.model.openoffice.util.OOResult | |
| public Optional | exportCitedHelper(List<BibDatabase> databases, OOStyle style, boolean
If there are some unresolved keys, shall we return an otherwise nonempty result, or Optional.empty()? returnPartialResult)GUI action for "Export cited" Does not refresh the bibliography. |
| public Optional | |
| pack-priv org.jabref.model.openoffice.util.OOResult | |
| pack-priv org.jabref.model.openoffice.util.OOResult | getFunctionalTextViewCursor(com.
This may move the view cursor. |
| pack-priv org.jabref.model.openoffice.util.OOResult | getUserCursorForTextInsertion(com.
Get the cursor positioned by the user for inserting text. |
| public org.jabref.model.openoffice.util.OOResult | |
| public void | guiActionApplyCitationEntries(List<CitationEntry> citationEntries)
Apply editable parts of citationEntries to the document: store pageInfo. |
| public Optional | |
| public void | guiActionInsertEntry(List<BibEntry>
The entries to cite. entries, BibDatabaseContext The database the entries belong to (all of them). Used when creating the citation mark. bibDatabaseContext, List<BibDatabase> The databases selected for citation lookup in this action. selectedDatabases, OOStyle The bibliography style we are using. style, CitationType Indicates whether it is an in-text citation, a citation in parenthesis or an invisible citation. citationType, String A single page-info for these entries. Attributed to the last entry. pageInfo, Optional<SyncOptions> Indicates whether in-text citations should be refreshed in the document. Optional.empty() indicates no refresh. Otherwise, provides options for refreshing the reference list. syncOptions)Creates a citation group from |
| public void | guiActionMergeCitationGroups(List<BibDatabase> databases, OOStyle style)
GUI action "Merge citations" |
| public void | |
| public void | guiActionSeparateCitations(List<BibDatabase> databases, OOStyle style)
GUI action "Separate citations". |
| public void | guiActionUpdateDocument(List<BibDatabase>
Must have at least one. databases, OOStyle Style. style)GUI action, refreshes citation markers and bibliography. |
| pack-priv org.jabref.model.openoffice.util.OOResult | |
| private org.jabref.model.openoffice.util.OOResult | |
| private void | initializeCitationAdapter(com.
Adapter lifecycle is tied to the currently selected document. |
| private org.jabref.model.openoffice.util.OOVoidResult | insertBstCitation(List<BibEntry> entries, com.
Helper method for guiActionInsertEntry - handles BST citation insertion. |
| public org.jabref.model.openoffice.util.OOVoidResult | insertCSLCitation(List<BibEntry>
The entries to cite. entries, com.Indicates whether it is an in-text citation, a citation in parenthesis or an invisible citation. citationType, CitationStyle Indicates style, name and path of citation citationStyle, BibDatabaseContext The database the entries belong to. Used when creating the citation mark. currentEntryContext, List<BibDatabase> The databases selected for resolving existing CSL citations during this action. selectedDatabases, org.jabref.model.openoffice.util.OOResult<com.Indicates whether in-text citations should be refreshed in the document. Optional.empty() indicates no refresh. Otherwise, provides options for refreshing the reference list. syncOptions)Helper method for guiActionInsertEntry. |
| public org.jabref.model.openoffice.util.OOVoidResult | insertJStyleCitation(List<BibEntry>
The entries to cite. entries, com.Indicates whether it is an in-text citation, a citation in parentheses or an invisible citation. citationType, JStyle Indicates citation formating in JStyle jStyle, org.jabref.model.openoffice.util.OOResult<OOFrontend, OOError> frontend, org.jabref.model.openoffice.util.OOResult<com.The database the entries belong to (all of them). Used when creating the citation mark. bibDatabaseContext, Optional<SyncOptions> Indicates whether in-text citations should be refreshed in the document. Optional.empty() indicates no refresh. Otherwise, provides options for refreshing the reference list. syncOptions, String A single page-info for these entries. Attributed to the last entry. pageInfo, org.jabref.model.openoffice.util.OOResult<FunctionalTextViewCursor, OOError> fcursor)Helper method for guiActionInsertEntry Throws PropertyVetoException, WrappedTargetException, IllegalTypeException, NotRemoveableException, CreationException, NoDocumentException Exceptions caught by guiActionInsertEntry |
| public boolean | |
| public boolean | |
| pack-priv org.jabref.model.openoffice.util.OOVoidResult | |
| pack-priv void | |
| pack-priv org.jabref.model.openoffice.util.OOVoidResult | |
| private <T> T | supplyWithTrackChangesSuspended(com.
Run a marker-rewriting action with change recording suspended. |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv final boolean | |
| private org.jabref.model.openoffice.util.OOVoidResult | updateBstBibliography(List<BibDatabase>
Must have at least one. databases, BstStyle BST style to update the bibliography with. bstStyle, com.Text document. doc,Used to synchronize document. fcursor, String Error message for user. errorTitle)Helper method for guiActionUpdateDocument - refreshes a BST bibliography. |
| private org.jabref.model.openoffice.util.OOVoidResult | updateCSLBibliography(List<BibDatabase>
Must have at least one. databases, CitationStyle Citation style to update bibliography with. citationStyle, com.Text document. doc,Used to synchronize document. fcursor, String Error message for user. errorTitle)Helper method for guiActionUpdateDocument, refreshes a CSL bibliography. |
| pack-priv static org.jabref.model.openoffice.util.OOVoidResult | updateCSLBibliography(DialogService dialogService, List<BibDatabase> databases, CitationStyle citationStyle, com.
|
| private org.jabref.model.openoffice.util.OOVoidResult | updateJStyleBibliography(List<BibDatabase>
Must have at least one. databases, JStyle Indicates citation formating in JStyle. jStyle, com.Text document. doc,Error message for user. errorTitle)Helper method for guiActionUpdateDocument, refreshes a JStyle bibliography. |
| pack-priv org.jabref.model.openoffice.util.OOVoidResult | |
| pack-priv static org.jabref.model.openoffice.util.OOVoidResult |
| bibEntryTypesManager | back to summary |
|---|---|
| private final BibEntryTypesManager bibEntryTypesManager | |
| bstCitationOOAdapter | back to summary |
|---|---|
| private BSTCitationOOAdapter bstCitationOOAdapter | |
| bstUpdateBibliography | back to summary |
|---|---|
| private BstUpdateBibliography bstUpdateBibliography | |
| componentContext | back to summary |
|---|---|
| private final com. | |
| connection | back to summary |
|---|---|
| private final OOBibBaseConnect connection | |
| cslCitationOOAdapter | back to summary |
|---|---|
| private CSLCitationOOAdapter cslCitationOOAdapter | |
| cslUpdateBibliography | back to summary |
|---|---|
| private CSLUpdateBibliography cslUpdateBibliography | |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| openOfficePreferences | back to summary |
|---|---|
| private final OpenOfficePreferences openOfficePreferences | |
| OOBibBase | back to summary |
|---|---|
| public OOBibBase(Path loPath, DialogService dialogService, OpenOfficePreferences openOfficePreferences, BibEntryTypesManager bibEntryTypesManager) throws BootstrapException, org.jabref.model.openoffice.uno.CreationException, IOException, InterruptedException | |
| checkCitationMarkersOutsidePendingDeletions | back to summary |
|---|---|
| private org.jabref.model.openoffice.util.OOVoidResult | |
| checkRangeOverlaps | back to summary |
|---|---|
| private static org.jabref.model.openoffice.util.OOVoidResult | |
| checkRangeOverlapsWithCursor | back to summary |
|---|---|
| private static org.jabref.model.openoffice.util.OOVoidResult | |
| checkStyleExistsInTheDocument | back to summary |
|---|---|
| private org.jabref.model.openoffice.util.OOVoidResult | |
| checkStylesExistInTheDocument | back to summary |
|---|---|
| public org.jabref.model.openoffice.util.OOVoidResult | |
| clearCitationAdapters | back to summary |
|---|---|
| private void clearCitationAdapters() Clear all document-bound helpers after connection loss or before switching to another document. | |
| collectResults | back to summary |
|---|---|
| pack-priv org.jabref.model.openoffice.util.OOVoidResult | |
| databaseIsRequired | back to summary |
|---|---|
| pack-priv org.jabref.model.openoffice.util.OOVoidResult | |
| dispose | back to summary |
|---|---|
| public void dispose()
It is arguable that this wrapper logically adds no extra functionality over When called internally, we use the private helper as it does not come with the meaning mentioned above, as we
are about to reuse the same | |
| exportCitedForBST | back to summary |
|---|---|
| private org.jabref.model.openoffice.util.OOResult | |
| exportCitedForCSL | back to summary |
|---|---|
| private org.jabref.model.openoffice.util.OOResult | |
| exportCitedHelper | back to summary |
|---|---|
| public Optional GUI action for "Export cited" Does not refresh the bibliography.
| |
| getCurrentDocumentTitle | back to summary |
|---|---|
| public Optional The title of the current document, or Optional.empty() | |
| getFrontend | back to summary |
|---|---|
| pack-priv org.jabref.model.openoffice.util.OOResult | |
| getFunctionalTextViewCursor | back to summary |
|---|---|
| pack-priv org.jabref.model.openoffice.util.OOResult This may move the view cursor. | |
| getUserCursorForTextInsertion | back to summary |
|---|---|
| pack-priv org.jabref.model.openoffice.util.OOResult Get the cursor positioned by the user for inserting text. | |
| getXTextDocument | back to summary |
|---|---|
| public org.jabref.model.openoffice.util.OOResult Either return an XTextDocument or return JabRefException. | |
| guiActionApplyCitationEntries | back to summary |
|---|---|
| public void guiActionApplyCitationEntries(List<CitationEntry> citationEntries) Apply editable parts of citationEntries to the document: store pageInfo. Does not change presentation. Note we use no undo context here, because only DocumentConnection.setUserDefinedStringPropertyValue() is called, and Undo in LO will not undo that. GUI: "Manage citations" dialog "OK" button. Called from: ManageCitationsDialogViewModel.storeSettings Currently the only editable part is pageInfo. Since the only call to applyCitationEntries() only changes pageInfo w.r.t those returned by getCitationEntries(), we can do with the following restrictions:
| |
| guiActionGetCitationEntries | back to summary |
|---|---|
| public Optional | |
| guiActionInsertEntry | back to summary |
|---|---|
| public void guiActionInsertEntry(List<BibEntry> entries, BibDatabaseContext bibDatabaseContext, List<BibDatabase> selectedDatabases, OOStyle style, CitationType citationType, String pageInfo, Optional<SyncOptions> syncOptions) Creates a citation group from Uses LO undo context "Insert citation". Note Undo does not remove or reestablish custom properties. Consistency: for each entry in
| |
| guiActionMergeCitationGroups | back to summary |
|---|---|
| public void guiActionMergeCitationGroups(List<BibDatabase> databases, OOStyle style) GUI action "Merge citations" | |
| guiActionSelectDocument | back to summary |
|---|---|
| public void guiActionSelectDocument(boolean autoSelectForSingle) throws com.sun.star.lang.WrappedTargetException, com.sun.star.container.NoSuchElementException | |
| guiActionSeparateCitations | back to summary |
|---|---|
| public void guiActionSeparateCitations(List<BibDatabase> databases, OOStyle style) GUI action "Separate citations". Do the opposite of MergeCitationGroups. Combined markers are split, with a space inserted between. | |
| guiActionUpdateDocument | back to summary |
|---|---|
| public void guiActionUpdateDocument(List<BibDatabase> databases, OOStyle style) GUI action, refreshes citation markers and bibliography.
| |
| inferCslStyleFromDocument | back to summary |
|---|---|
| pack-priv org.jabref.model.openoffice.util.OOResult | |
| inferCslStyleFromDocument | back to summary |
|---|---|
| private org.jabref.model.openoffice.util.OOResult | |
| initializeCitationAdapter | back to summary |
|---|---|
| private void initializeCitationAdapter(com. Adapter lifecycle is tied to the currently selected document. Keep creation here so cite/export/ bibliography actions only ever use adapters that were initialized as part of document selection. | |
| insertBstCitation | back to summary |
|---|---|
| private org.jabref.model.openoffice.util.OOVoidResult Helper method for guiActionInsertEntry - handles BST citation insertion. | |
| insertCSLCitation | back to summary |
|---|---|
| public org.jabref.model.openoffice.util.OOVoidResult Helper method for guiActionInsertEntry. Handles CSL citation insertion Throws CreationException, com.sun.star.uno.Exception Caught by guiActionInsertEntry
| |
| insertJStyleCitation | back to summary |
|---|---|
| public org.jabref.model.openoffice.util.OOVoidResult Helper method for guiActionInsertEntry Throws PropertyVetoException, WrappedTargetException, IllegalTypeException, NotRemoveableException, CreationException, NoDocumentException Exceptions caught by guiActionInsertEntry
| |
| isConnectedToDocument | back to summary |
|---|---|
| public boolean isConnectedToDocument() A simple test for document availability. See also | |
| isDocumentConnectionMissing | back to summary |
|---|---|
public boolean isDocumentConnectionMissing()
| |
| selectedBibEntryIsRequired | back to summary |
|---|---|
| pack-priv org.jabref.model.openoffice.util.OOVoidResult | |
| showDialog | back to summary |
|---|---|
| pack-priv void showDialog(OOError err) | |
| styleIsRequired | back to summary |
|---|---|
| pack-priv org.jabref.model.openoffice.util.OOVoidResult | |
| supplyWithTrackChangesSuspended | back to summary |
|---|---|
| private <T> T supplyWithTrackChangesSuspended(com. Run a marker-rewriting action with change recording suspended. This prevents duplicated citations when Writer's change recording is enabled: deleting the old marker would otherwise only mark it as deleted, leaving old and new marker side by side. | |
| testDialog | back to summary |
|---|---|
| pack-priv boolean testDialog(org.jabref.model.openoffice.util.OOVoidResult<OOError> res) | |
| testDialog | back to summary |
|---|---|
| pack-priv boolean testDialog(String errorTitle, org.jabref.model.openoffice.util.OOVoidResult<OOError> res) | |
| testDialog | back to summary |
|---|---|
pack-priv final boolean testDialog(String errorTitle, org.jabref.model.openoffice.util.OOVoidResult<OOError>... results)
| |
| updateBstBibliography | back to summary |
|---|---|
| private org.jabref.model.openoffice.util.OOVoidResult Helper method for guiActionUpdateDocument - refreshes a BST bibliography.
| |
| updateCSLBibliography | back to summary |
|---|---|
| private org.jabref.model.openoffice.util.OOVoidResult Helper method for guiActionUpdateDocument, refreshes a CSL bibliography.
| |
| updateCSLBibliography | back to summary |
|---|---|
| pack-priv static org.jabref.model.openoffice.util.OOVoidResult | |
| updateJStyleBibliography | back to summary |
|---|---|
| private org.jabref.model.openoffice.util.OOVoidResult Helper method for guiActionUpdateDocument, refreshes a JStyle bibliography.
| |
| writeDocumentCslStyle | back to summary |
|---|---|
| pack-priv org.jabref.model.openoffice.util.OOVoidResult | |
| writeDocumentCslStyle | back to summary |
|---|---|
| pack-priv static org.jabref.model.openoffice.util.OOVoidResult | |