Verified Owner
Top Constructors Methods
org.jabref.logic.openoffice.action

public Class EditInsert

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, .Optional, org.jabref.logic.JabRefException, org.jabref.logic.openoffice.frontend.OOFrontend, .UpdateCitationMarkers, org.jabref.logic.openoffice.style.JStyle, org.jabref.logic.util.strings.StringUtil, org.jabref.model.database.BibDatabase, org.jabref.model.entry.BibEntry, org.jabref.model.openoffice.ootext.OOText, org.jabref.model.openoffice.style.Citation, .CitationMarkerEntry, .CitationType, .NonUniqueCitationMarker, .OODataModel, org.jabref.model.openoffice.uno.CreationException, .NoDocumentException, .UnoScreenRefresh, org.jabref.model.openoffice.util.OOListUtil, .OOVoidResult, com.sun.star.beans.IllegalTypeException, com.sun.star.beans.NotRemoveableException, com.sun.star.beans.PropertyVetoException, com.sun.star.lang.WrappedTargetException, com.sun.star.text.XTextCursor, com.sun.star.text.XTextDocument, com.sun.star.uno.XComponentContext

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static OOVoidResult<JabRefException>
insertCitationGroup(com.sun.star.text.XTextDocument doc, com.sun.star.uno.XComponentContext context, OOFrontend frontend, com.sun.star.text.XTextCursor
Where to insert.
cursor
,
List<BibEntry> entries, BibDatabase database, JStyle style, CitationType citationType, String
A single pageInfo for a list of entries. This is what we get from the GUI.
pageInfo
,
boolean insertSpaceBefore, boolean insertSpaceAfter)

private static String
insertEntryGetCitationKey(BibEntry entry)

In insertEntry we receive BibEntry values from the GUI.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EditInsertback to summary
private EditInsert()

Method Detail

insertCitationGroupback to summary
public static OOVoidResult<JabRefException> insertCitationGroup(com.sun.star.text.XTextDocument doc, com.sun.star.uno.XComponentContext context, OOFrontend frontend, com.sun.star.text.XTextCursor cursor, List<BibEntry> entries, BibDatabase database, JStyle style, CitationType citationType, String pageInfo, boolean insertSpaceBefore, boolean insertSpaceAfter)
Parameters
cursor:com.sun.star.text.XTextCursor

Where to insert.

pageInfo:String

A single pageInfo for a list of entries. This is what we get from the GUI.

insertEntryGetCitationKeyback to summary
private static String insertEntryGetCitationKey(BibEntry entry)

In insertEntry we receive BibEntry values from the GUI.

In the document we store citations by their citation key.

If the citation key is missing, the best we can do is to notify the user. Or the programmer, that we cannot accept such input.