public class ViewCursorTools extends Object
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.XParagraphCursor |
getParagraphCursorUnderViewCursor()
Get paragraph cursor under view cursor
|
com.sun.star.text.XTextViewCursor |
getViewCursor()
Returns ViewCursor
Returns null if it fails
|
org.languagetool.openoffice.DocumentCache.TextParagraph |
getViewCursorParagraph()
get the paragraph under the view cursor
|
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,
org.languagetool.openoffice.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 |
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 org.languagetool.openoffice.DocumentCache.TextParagraph getViewCursorParagraph()
public com.sun.star.text.XParagraphCursor getParagraphCursorUnderViewCursor()
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 setDocumentTextViewCursor(int xChar, int paraNum)
public void setTextViewCursor(int xChar, org.languagetool.openoffice.DocumentCache.TextParagraph yPara)