Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.openoffice.backend

public Class GetContext

extends Object
Class Inheritance
Imports
com.sun.star.text.XTextCursor, org.slf4j.Logger, .LoggerFactory

Utility methods for processing OO Writer documents.

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String
getCursorStringWithContext(com.sun.star.text.XTextCursor cursor, int
Number of characters requested.
charBefore
,
int
Number of characters requested.
charAfter
,
boolean
If true, the text belonging to the reference mark is surrounded by bold html tag.
htmlMarkup
)

Get the text belonging to cursor with up to charBefore and charAfter characters of context.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

GetContextback to summary
private GetContext()

Method Detail

getCursorStringWithContextback to summary
public static String getCursorStringWithContext(com.sun.star.text.XTextCursor cursor, int charBefore, int charAfter, boolean htmlMarkup)

Get the text belonging to cursor with up to charBefore and charAfter characters of context.

The actual context may be smaller than requested.

Parameters
charBefore:int

Number of characters requested.

charAfter:int

Number of characters requested.

htmlMarkup:boolean

If true, the text belonging to the reference mark is surrounded by bold html tag.