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

public Class UnoCursor

extends Object
Class Inheritance
Imports
java.util.Optional, com.sun.star.text.XTextContent, com.sun.star.text.XTextCursor, com.sun.star.text.XTextDocument, com.sun.star.text.XTextRange, com.sun.star.text.XTextViewCursor, com.sun.star.text.XTextViewCursorSupplier

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static com.sun.star.text.XTextCursor
createTextCursorByRange(com.sun.star.text.XTextRange range)

public static Optional<com.sun.star.text.XTextCursor>

Returns:

Optional.empty if mark is null, otherwise cursor.
getTextCursorOfTextContentAnchor
(com.sun.star.text.XTextContent mark)

Create a text cursor for a textContent.

public static Optional<com.sun.star.text.XTextViewCursor>
getViewCursor(com.sun.star.text.XTextDocument doc)

Get the cursor positioned by the user.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

UnoCursorback to summary
private UnoCursor()

Method Detail

createTextCursorByRangeback to summary
public static com.sun.star.text.XTextCursor createTextCursorByRange(com.sun.star.text.XTextRange range)
getTextCursorOfTextContentAnchorback to summary
public static Optional<com.sun.star.text.XTextCursor> getTextCursorOfTextContentAnchor(com.sun.star.text.XTextContent mark)

Create a text cursor for a textContent.

Returns:Optional<com.sun.star.text.XTextCursor>

Optional.empty if mark is null, otherwise cursor.

getViewCursorback to summary
public static Optional<com.sun.star.text.XTextViewCursor> getViewCursor(com.sun.star.text.XTextDocument doc)

Get the cursor positioned by the user.