Top Constructors Methods
org.jabref.model.openoffice.uno

public Class UnoCrossRef

extends Object
Class Inheritance
Imports
com.sun.star.beans.PropertyVetoException, com.sun.star.beans.UnknownPropertyException, com.sun.star.beans.XPropertySet, com.sun.star.lang.WrappedTargetException, com.sun.star.lang.XMultiServiceFactory, com.sun.star.text.ReferenceFieldPart, com.sun.star.text.ReferenceFieldSource, com.sun.star.text.XTextContent, com.sun.star.text.XTextDocument, com.sun.star.text.XTextRange, com.sun.star.uno.Exception, com.sun.star.util.XRefreshable

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
insertReferenceToPageNumberOfReferenceMark(com.sun.star.text.XTextDocument doc, String referenceMarkName, com.sun.star.text.XTextRange cursor)

Insert a clickable cross-reference to a reference mark, with a label containing the target's page number.

public static void
refresh(com.sun.star.text.XTextDocument doc)

Update TextFields, etc. We use it to refresh cross-references in the document.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

UnoCrossRefback to summary
private UnoCrossRef()

Method Detail

insertReferenceToPageNumberOfReferenceMarkback to summary
public static void insertReferenceToPageNumberOfReferenceMark(com.sun.star.text.XTextDocument doc, String referenceMarkName, com.sun.star.text.XTextRange cursor) throws CreationException, com.sun.star.lang.WrappedTargetException

Insert a clickable cross-reference to a reference mark, with a label containing the target's page number.

May need a documentConnection.refresh() after, to update the text shown.

refreshback to summary
public static void refresh(com.sun.star.text.XTextDocument doc)

Update TextFields, etc. We use it to refresh cross-references in the document.