public class ViewCursorTools extends Object
Constructor and Description |
---|
ViewCursorTools(com.sun.star.lang.XComponent xComponent) |
Modifier and Type | Method and Description |
---|---|
com.sun.star.container.XIndexAccess |
getIndexAccessOfAllTables()
Returns the Index Access to all tables of a document
|
com.sun.star.text.XTextViewCursor |
getViewCursor()
Returns ViewCursor
Returns null if it fails
|
DocumentCache.TextParagraph |
getViewCursorParagraph()
get the paragraph under the view cursor
|
static boolean |
isBusy()
Returns the status of view cursor tools
true: If a cursor tool in one or more threads is active
|
static void |
reset()
Reset the busy flag
|
void |
setDisposed()
document is disposed: set all class variables to null
|
void |
setDocumentTextViewCursor(int xChar,
int paraNum)
Set the view cursor to paragraph paraNum
|
void |
setTextViewCursor(int xChar,
DocumentCache.TextParagraph yPara)
Set view cursor to paragraph paraNum
|
void |
setViewCursorToHeaderFooter(int xChar,
int numPara)
set the view cursor to header or footer paragraph
|
void |
setViewCursorToParagraphOfEndnote(int xChar,
int numPara)
Set the cursor to a paragraph of endnote
|
void |
setViewCursorToParagraphOfFootnote(int xChar,
int numPara)
Set the cursor to a paragraph of footnote
|
void |
setViewCursorToParagraphOfShape(int xChar,
int numPara)
Set the cursor to a paragraph of shape
|
void |
setViewCursorToParagraphOfTable(int xChar,
int numPara)
Set the cursor to a paragraph inside a cell of a table
|
public void setDisposed()
@Nullable public com.sun.star.text.XTextViewCursor getViewCursor()
public DocumentCache.TextParagraph getViewCursorParagraph()
public void setViewCursorToHeaderFooter(int xChar, int numPara)
public com.sun.star.container.XIndexAccess getIndexAccessOfAllTables()
public void setViewCursorToParagraphOfTable(int xChar, int numPara)
public void setViewCursorToParagraphOfFootnote(int xChar, int numPara)
public void setViewCursorToParagraphOfEndnote(int xChar, int numPara)
public void setViewCursorToParagraphOfShape(int xChar, int numPara)
public void setDocumentTextViewCursor(int xChar, int paraNum)
public void setTextViewCursor(int xChar, DocumentCache.TextParagraph yPara)
public static boolean isBusy()
public static void reset()