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

public Class EditInsert

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Collections, .List, .Optional, org.jabref.logic.openoffice.frontend.OOFrontend, .UpdateCitationMarkers, org.jabref.logic.openoffice.style.OOBibStyle, 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, org.jabref.model.strings.StringUtil, 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

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

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 void insertCitationGroup(com.sun.star.text.XTextDocument doc, OOFrontend frontend, com.sun.star.text.XTextCursor cursor, List<BibEntry> entries, BibDatabase database, OOBibStyle style, CitationType citationType, String pageInfo) throws NoDocumentException, com.sun.star.beans.NotRemoveableException, com.sun.star.lang.WrappedTargetException, com.sun.star.beans.PropertyVetoException, CreationException, com.sun.star.beans.IllegalTypeException
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.