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

public Class UnoTextRange

extends Object
Class Inheritance
Imports
java.util.Optional, com.sun.star.text.XFootnote, com.sun.star.text.XTextContent, com.sun.star.text.XTextRange, com.sun.star.text.XTextRangeCompare

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean
comparables(com.sun.star.text.XTextRange a, com.sun.star.text.XTextRange b)

Test if two XTextRange values are comparable (i.e. they share the same getText()).

public static int

Returns:

follows java conventions 1 if (a > b); (-1) if (a < b)
compareEnds
(com.sun.star.text.XTextRange a, com.sun.star.text.XTextRange b)

public static int
compareStarts(com.sun.star.text.XTextRange a, com.sun.star.text.XTextRange b)

public static int
compareStartsThenEnds(com.sun.star.text.XTextRange a, com.sun.star.text.XTextRange b)

public static int
compareStartsThenEndsUnsafe(com.sun.star.text.XTextRangeCompare compare, com.sun.star.text.XTextRange a, com.sun.star.text.XTextRange b)

public static int

Returns:

follows java conventions 1 if (a > b); (-1) if (a < b)
compareStartsUnsafe
(com.sun.star.text.XTextRangeCompare compare, com.sun.star.text.XTextRange a, com.sun.star.text.XTextRange b)

public static Optional<com.sun.star.text.XTextRange>
getFootnoteMarkRange(com.sun.star.text.XTextRange original)

If original is in a footnote, return a range containing the corresponding footnote marker.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

UnoTextRangeback to summary
private UnoTextRange()

Method Detail

comparablesback to summary
public static boolean comparables(com.sun.star.text.XTextRange a, com.sun.star.text.XTextRange b)

Test if two XTextRange values are comparable (i.e. they share the same getText()).

compareEndsback to summary
public static int compareEnds(com.sun.star.text.XTextRange a, com.sun.star.text.XTextRange b)
Returns:int

follows java conventions 1 if (a > b); (-1) if (a < b)

compareStartsback to summary
public static int compareStarts(com.sun.star.text.XTextRange a, com.sun.star.text.XTextRange b)
compareStartsThenEndsback to summary
public static int compareStartsThenEnds(com.sun.star.text.XTextRange a, com.sun.star.text.XTextRange b)
compareStartsThenEndsUnsafeback to summary
public static int compareStartsThenEndsUnsafe(com.sun.star.text.XTextRangeCompare compare, com.sun.star.text.XTextRange a, com.sun.star.text.XTextRange b)
compareStartsUnsafeback to summary
public static int compareStartsUnsafe(com.sun.star.text.XTextRangeCompare compare, com.sun.star.text.XTextRange a, com.sun.star.text.XTextRange b)
Returns:int

follows java conventions 1 if (a > b); (-1) if (a < b)

getFootnoteMarkRangeback to summary
public static Optional<com.sun.star.text.XTextRange> getFootnoteMarkRange(com.sun.star.text.XTextRange original)

If original is in a footnote, return a range containing the corresponding footnote marker.

Returns Optional.empty if not in a footnote.