de.init.service
Class ItsManager

java.lang.Object
  extended by de.init.service.ItsManager

public class ItsManager
extends java.lang.Object

Managing class for ITS markup in XTextDocuments

Author:
mkandora

Method Summary
static ItsManager getItsManager(com.sun.star.text.XTextDocument doc)
          returns a singleton instance of the itsmanager
 java.util.List<java.lang.String> getItsTagIds()
          Returns a List of all ITS Ids.
 java.lang.String insertDataCategory(com.sun.star.uno.XComponentContext xContext, com.sun.star.frame.XModel model, com.sun.star.text.XTextRange range, java.util.Map<java.lang.String,java.lang.String> map, java.lang.String dataCategoryName)
          Inserts an its tag into the XTextDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getItsManager

public static final ItsManager getItsManager(com.sun.star.text.XTextDocument doc)
returns a singleton instance of the itsmanager

Parameters:
doc -
Returns:

getItsTagIds

public java.util.List<java.lang.String> getItsTagIds()
Returns a List of all ITS Ids. The LibreOffice Bookmarks mechanism will be used for this. Internally, the XBookmarksSupplier will be used to retrieve the names of all bookmarks

Returns:
a list of all its tag ids

insertDataCategory

public java.lang.String insertDataCategory(com.sun.star.uno.XComponentContext xContext,
                                           com.sun.star.frame.XModel model,
                                           com.sun.star.text.XTextRange range,
                                           java.util.Map<java.lang.String,java.lang.String> map,
                                           java.lang.String dataCategoryName)
Inserts an its tag into the XTextDocument

Parameters:
xContext -
range - the XTextRange
dataCategoryName -
currentSelection -
attrib - the ITS Tag Attribute Name ItsAttributes
values - a set of values for the attribute
Returns:
the XTextContent with bookmark set