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 TextDocumentTextShape

java.lang.Object
  extended by ag.ion.bion.officelayer.text.AbstractTextComponent
      extended by ag.ion.bion.officelayer.internal.text.TextDocumentTextShape
All Implemented Interfaces:
ITextComponent, ITextContent, ITextDocumentTextShape

public class TextDocumentTextShape
extends AbstractTextComponent
implements ITextDocumentTextShape

Text shape of a text document.


Field Summary
 
Fields inherited from class ag.ion.bion.officelayer.text.AbstractTextComponent
textDocument
 
Constructor Summary
TextDocumentTextShape(ITextDocument textDocument, com.sun.star.text.XTextContent xTextContent, TextInfo textInfo)
          Constructs new TextDocumentTextShape.
 
Method Summary
 TextInfo getTextInfo()
          Returns graphic information of the displayed text.
 com.sun.star.text.XText getXText()
          Returns the XText object for setting the text after it was inserted into the doc.
 com.sun.star.text.XTextContent getXTextContent()
          Returns OpenOffice.org XTextContent interface.
 void setXText(com.sun.star.text.XText xText)
          Sets the XText object
 
Methods inherited from class ag.ion.bion.officelayer.text.AbstractTextComponent
getTextDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ag.ion.bion.officelayer.text.ITextComponent
getTextDocument
 

Constructor Detail

TextDocumentTextShape

public TextDocumentTextShape(ITextDocument textDocument,
                             com.sun.star.text.XTextContent xTextContent,
                             TextInfo textInfo)
                      throws java.lang.IllegalArgumentException
Constructs new TextDocumentTextShape.

Parameters:
textDocument - text document to be used
xTextContent - OpenOffice.org XTextContent interface
textInfo - the text info the text shape was created with
Throws:
java.lang.IllegalArgumentException - if the OpenOffice.org interface or the document or text info is not valid
Method Detail

getTextInfo

public TextInfo getTextInfo()
Returns graphic information of the displayed text.

Specified by:
getTextInfo in interface ITextDocumentTextShape
Returns:
graphic information of the displayed text

getXTextContent

public com.sun.star.text.XTextContent getXTextContent()
Returns OpenOffice.org XTextContent interface. This method is not part of the public API. It should be never used from outside.

Specified by:
getXTextContent in interface ITextContent
Returns:
OpenOffice.org XTextContent interface

getXText

public com.sun.star.text.XText getXText()
Returns the XText object for setting the text after it was inserted into the doc.

Specified by:
getXText in interface ITextDocumentTextShape
Returns:
the XText object

setXText

public void setXText(com.sun.star.text.XText xText)
Sets the XText object

Specified by:
setXText in interface ITextDocumentTextShape
Parameters:
xText - the XText object

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