|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.init.uno.text.MarkupService
public class MarkupService
Service class to manage bookmarks
Method Summary | |
---|---|
static com.sun.star.text.XTextCursor |
createCursorByBookmark(com.sun.star.lang.XComponent xComponent,
java.lang.String name)
Return cursor location of the bookmark specified by nameBookmark. |
static com.sun.star.text.XTextRange |
fetchSelection(com.sun.star.uno.XComponentContext context,
com.sun.star.frame.XFrame frame)
fetch first selection, |
IitsTagElement |
findBookmark(com.sun.star.uno.XComponentContext context,
com.sun.star.frame.XFrame frame)
returns the innermost bookmark from a selection as an ItsTagElement or
an empty ItsTagElement , if no bookmark can be found |
java.lang.String[] |
getBookmarkNames(com.sun.star.text.XTextDocument document)
Returns all available bookmarks in the provided document |
static MarkupService |
getMarkupService()
Returns a singleton instance of the MarkupService |
int |
getSelectionBegin(com.sun.star.text.XTextCursor xtc)
|
void |
insertBookmark(com.sun.star.uno.XComponentContext xContext,
com.sun.star.frame.XFrame xframe,
boolean update,
ItsAttributes.DataCategories datacategory,
IitsTagElement element)
Inserts a Bookmark |
void |
removeBookmark(com.sun.star.uno.XComponentContext xContext,
com.sun.star.frame.XFrame frame,
java.lang.String id)
Removes the boomark from uno context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MarkupService getMarkupService()
public void insertBookmark(com.sun.star.uno.XComponentContext xContext, com.sun.star.frame.XFrame xframe, boolean update, ItsAttributes.DataCategories datacategory, IitsTagElement element) throws java.lang.Exception
comp
- xframe
- update
-
java.lang.Exception
public void removeBookmark(com.sun.star.uno.XComponentContext xContext, com.sun.star.frame.XFrame frame, java.lang.String id)
xContext
- frame
- id
- public static com.sun.star.text.XTextCursor createCursorByBookmark(com.sun.star.lang.XComponent xComponent, java.lang.String name)
xComponent
- text component where the bookmark is retrieved fromname
- name of the bookmark.
public static com.sun.star.text.XTextRange fetchSelection(com.sun.star.uno.XComponentContext context, com.sun.star.frame.XFrame frame) throws com.sun.star.lang.IndexOutOfBoundsException, com.sun.star.lang.WrappedTargetException
context
- frame
-
com.sun.star.lang.IndexOutOfBoundsException
com.sun.star.lang.WrappedTargetException
public IitsTagElement findBookmark(com.sun.star.uno.XComponentContext context, com.sun.star.frame.XFrame frame)
ItsTagElement
or
an empty ItsTagElement
, if no bookmark can be found
context
- the application contextframe
- the frame
IitsTagElement
(wether empty or not)public java.lang.String[] getBookmarkNames(com.sun.star.text.XTextDocument document)
document
-
public int getSelectionBegin(com.sun.star.text.XTextCursor xtc)
xtc
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |