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 PagePosition

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.text.PagePosition

public class PagePosition
extends java.lang.Object

Position on a text page.


Field Summary
static short PLAIN_TEXT
          The content of the page position is text.
static short TEXT_TABLE_CELL
          The content of the page position is a text table cell.
 
Constructor Summary
PagePosition(ITextDocument textDocument, com.sun.star.text.XTextRange xTextRange)
          Constructs new PagePosition.
 
Method Summary
 short getContentType()
          Returns content type of the page position.
 ITextRange getTextRange()
          Returns text range.
 ITextTableCell getTextTableCell()
          Returns text table cell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLAIN_TEXT

public static final short PLAIN_TEXT
The content of the page position is text.

See Also:
Constant Field Values

TEXT_TABLE_CELL

public static final short TEXT_TABLE_CELL
The content of the page position is a text table cell.

See Also:
Constant Field Values
Constructor Detail

PagePosition

public PagePosition(ITextDocument textDocument,
                    com.sun.star.text.XTextRange xTextRange)
             throws java.lang.IllegalArgumentException
Constructs new PagePosition.

Parameters:
textDocument - text document to be used
xTextRange - OpenOffice.org XTextRange interface
Throws:
java.lang.IllegalArgumentException - if one of the OpenOffice.org interfaces is not valid
Method Detail

getContentType

public short getContentType()
Returns content type of the page position.

Returns:
content type of the page position

getTextTableCell

public ITextTableCell getTextTableCell()
Returns text table cell. Returns null if the content of the page position is not a text table cell.

Returns:
text table cell

getTextRange

public ITextRange getTextRange()
Returns text range. Returns null if the content of the page position is not a text range.

Returns:
text range

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