Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013

ag.ion.bion.officelayer.internal.text
Class TextContentService

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.text.TextContentService
All Implemented Interfaces:
ITextContentService

public class TextContentService
extends java.lang.Object
implements ITextContentService

Content service implementation of a text document.


Constructor Summary
TextContentService(ITextDocument textDocument, com.sun.star.lang.XMultiServiceFactory xMultiServiceFactory, com.sun.star.text.XText xText)
          Constructs new TextContentService.
 
Method Summary
 ITextDocumentImage constructNewImage(GraphicInfo graphicInfo)
          Constructs new image.
 IParagraph constructNewParagraph()
          Constructs new paragraph.
 void insertTextContent(ITextContent textContent)
          Inserts content.
 void insertTextContent(ITextRange textRange, ITextContent textContent)
          Inserts content at submitted position.
 void insertTextContentAfter(ITextContent newTextContent, ITextContent textContent)
          Inserts new text content after other text content.
 void insertTextContentBefore(ITextContent newTextContent, ITextContent textContent)
          Inserts new text content before other text content.
 void removeTextContent(ITextContent textContent)
          Removes content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextContentService

public TextContentService(ITextDocument textDocument,
                          com.sun.star.lang.XMultiServiceFactory xMultiServiceFactory,
                          com.sun.star.text.XText xText)
                   throws java.lang.IllegalArgumentException
Constructs new TextContentService.

Parameters:
textDocument - text document to be used
xText - OpenOffice.org XText interface
xMultiServiceFactory - OpenOffice.org XMultiServiceFactory interface
Throws:
java.lang.IllegalArgumentException - if the submitted text document or OpenOffice.org XText interface is not valid
Method Detail

constructNewParagraph

public IParagraph constructNewParagraph()
                                 throws TextException
Constructs new paragraph.

Specified by:
constructNewParagraph in interface ITextContentService
Returns:
new paragraph
Throws:
TextException - if the paragraph can not be constructed

constructNewImage

public ITextDocumentImage constructNewImage(GraphicInfo graphicInfo)
                                     throws TextException
Constructs new image.

Specified by:
constructNewImage in interface ITextContentService
Parameters:
graphicInfo - the graphic information to construct image with
Returns:
new image
Throws:
TextException - if the image can not be constructed

insertTextContent

public void insertTextContent(ITextContent textContent)
                       throws TextException
Inserts content.

Specified by:
insertTextContent in interface ITextContentService
Parameters:
textContent - text content to be inserted
Throws:
TextException - if the text content can not be inserted

removeTextContent

public void removeTextContent(ITextContent textContent)
                       throws TextException
Removes content.

Specified by:
removeTextContent in interface ITextContentService
Parameters:
textContent - text content to be removed
Throws:
TextException - if the text content can not be removed

insertTextContent

public void insertTextContent(ITextRange textRange,
                              ITextContent textContent)
                       throws TextException
Inserts content at submitted position.

Specified by:
insertTextContent in interface ITextContentService
Parameters:
textRange - position to be used
textContent - text content to be inserted
Throws:
TextException - if the text content can not be inserted

insertTextContentBefore

public void insertTextContentBefore(ITextContent newTextContent,
                                    ITextContent textContent)
                             throws TextException
Inserts new text content before other text content.

Specified by:
insertTextContentBefore in interface ITextContentService
Parameters:
newTextContent - text content to be inserted
textContent - available text content
Throws:
TextException - if the text content can not be inserted

insertTextContentAfter

public void insertTextContentAfter(ITextContent newTextContent,
                                   ITextContent textContent)
                            throws TextException
Inserts new text content after other text content.

Specified by:
insertTextContentAfter in interface ITextContentService
Parameters:
newTextContent - text content to be inserted
textContent - available text content
Throws:
TextException - if the text content can not be inserted

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013