|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectag.ion.bion.officelayer.internal.text.TextCursor
public class TextCursor
Cursor of a text document.
Constructor Summary | |
---|---|
TextCursor(ITextDocument textDocument,
com.sun.star.text.XTextCursor xTextCursor)
Constructs new TextCursor. |
Method Summary | |
---|---|
ICharacterProperties |
getCharacterProperties()
Returns the character properties. |
ITextRange |
getEnd()
Returns end position of the cursor. |
short |
getEndPageNumber()
Returns the page number of the text cursor end, returns -1 if page number could not be determined. |
ITextRange |
getStart()
Returns start position of the cursor. |
short |
getStartPageNumber()
Returns the page number of the text cursor start, returns -1 if page number could not be determined. |
java.lang.String |
getString()
Gets the text that is marked by the cursor. |
void |
goLeft(short stepNumber,
boolean mark)
Goes to the submitted position. |
void |
goRight(short stepNumber,
boolean mark)
Goes to the submitted position. |
void |
gotoEnd(boolean mark)
Sets the cursor to the end position (wherever it is currently) |
void |
gotoEndOfParagraph(boolean mark)
Moves the cursor to the end of the current paragraph. |
void |
gotoEndOfSentence(boolean mark)
Moves the cursor to the end of the current sentence. |
boolean |
gotoEndOfWord(boolean mark)
Moves the cursor to the end of the current word. |
void |
gotoNextParagraph(boolean mark)
Moves the cursor to the next paragraph. |
void |
gotoNextSentence(boolean mark)
Moves the cursor to the next sentence. |
boolean |
gotoNextWord(boolean mark)
Moves the cursor to the next word. |
void |
gotoPreviousParagraph(boolean mark)
Moves the cursor to the previous paragraph. |
void |
gotoPreviousSentence(boolean mark)
Moves the cursor to the previous sentence. |
boolean |
gotoPreviousWord(boolean mark)
Moves the cursor to the previous word. |
void |
gotoRange(ITextRange range,
boolean mark)
Goes to the submitted position. |
void |
gotoStart(boolean mark)
Sets the cursor to the start position (wherever it is currently) |
void |
gotoStartOfParagraph(boolean mark)
Moves the cursor to the start of the current paragraph. |
void |
gotoStartOfSentence(boolean mark)
Moves the cursor to the start of the current sentence. |
boolean |
gotoStartOfWord(boolean mark)
Moves the cursor to the start of the current word. |
void |
insertDocument(java.io.InputStream inputStream,
IFilter filter)
Inserts a file stream at the current cursor location. |
void |
insertDocument(java.lang.String url)
Inserts a text document at the current cursor location. |
void |
insertPageBreak()
Inserts page break at the current cursor position. |
boolean |
isEndOfParagraph()
Returns if the cursor is positioned at the end of a paragraph. |
boolean |
isEndOfSentence()
Returns if the cursor is positioned at the end of a sentence. |
boolean |
isEndOfWord()
Returns if the cursor is positioned at the end of a word. |
boolean |
isStartOfParagraph()
Returns if the cursor is positioned at the start of a paragraph. |
boolean |
isStartOfSentence()
Returns if the cursor is positioned at the start of a sentence. |
boolean |
isStartOfWord()
Returns if the cursor is positioned at the start of a word. |
void |
setString(java.lang.String content)
Sets content to the cursor. |
boolean |
supportsParagraphCursor()
Returns if the current cursor supports paragraph cursor operations. |
boolean |
supportsSentenceCursor()
Returns if the current cursor supports sentence cursor operations. |
boolean |
supportsWordCursor()
Returns if the current cursor supports word cursor operations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextCursor(ITextDocument textDocument, com.sun.star.text.XTextCursor xTextCursor)
textDocument
- text document to be usedxTextCursor
- OpenOffice.org XTextCursor interface
java.lang.IllegalArgumentException
- if the submitted OpenOffice.org XTextCursor or XTextDocument interface
is not validMethod Detail |
---|
public ICharacterProperties getCharacterProperties()
getCharacterProperties
in interface ITextCursor
public void gotoEnd(boolean mark)
gotoEnd
in interface ITextCursor
mark
- indicates if the space between the current
position and the end is to be markedpublic void gotoStart(boolean mark)
gotoStart
in interface ITextCursor
mark
- indicates if the space between the current
position and the start is to be markedpublic void gotoRange(ITextRange range, boolean mark)
gotoRange
in interface ITextCursor
range
- the range that specifies where to gotmark
- indicates if the space between the current
position and the new one is to be markedpublic void setString(java.lang.String content)
setString
in interface ITextCursor
content
- content to be usedpublic java.lang.String getString()
getString
in interface ITextCursor
public void goLeft(short stepNumber, boolean mark)
goLeft
in interface ITextCursor
stepNumber
- stepNumber the number of cursor steps to jumpmark
- mark indicates if the space between the current
position and the new one is to be markedpublic void goRight(short stepNumber, boolean mark)
goRight
in interface ITextCursor
stepNumber
- the number of cursor steps to jumpmark
- mark indicates if the space between the current
position and the new one is to be markedpublic ITextRange getStart()
getStart
in interface ITextCursor
public ITextRange getEnd()
getEnd
in interface ITextCursor
public short getStartPageNumber()
getStartPageNumber
in interface ITextCursor
public short getEndPageNumber()
getEndPageNumber
in interface ITextCursor
public void insertPageBreak() throws NOAException
insertPageBreak
in interface ITextCursor
NOAException
- if the page break can not be setpublic void insertDocument(java.lang.String url) throws NOAException
insertDocument
in interface ITextCursor
url
- URL of the document (must look like file:///c:/test.odt)
NOAException
- if the text document can not be insertedpublic void insertDocument(java.io.InputStream inputStream, IFilter filter) throws NOAException
insertDocument
in interface ITextCursor
inputStream
- a file stream to be insertedfilter
- the filter that the stream is baes on
NOAException
- if the file stream can not be insertedpublic boolean supportsWordCursor()
supportsWordCursor
in interface ITextCursor
public boolean isStartOfWord() throws NOAException
isStartOfWord
in interface ITextCursor
NOAException
- if word cursor operations are not supportedpublic boolean isEndOfWord() throws NOAException
isEndOfWord
in interface ITextCursor
NOAException
- if word cursor operations are not supportedpublic boolean gotoNextWord(boolean mark) throws NOAException
gotoNextWord
in interface ITextCursor
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if word cursor operations are not supportedpublic boolean gotoPreviousWord(boolean mark) throws NOAException
gotoPreviousWord
in interface ITextCursor
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if word cursor operations are not supportedpublic boolean gotoEndOfWord(boolean mark) throws NOAException
gotoEndOfWord
in interface ITextCursor
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if word cursor operations are not supportedpublic boolean gotoStartOfWord(boolean mark) throws NOAException
gotoStartOfWord
in interface ITextCursor
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if word cursor operations are not supportedpublic boolean supportsSentenceCursor()
supportsSentenceCursor
in interface ITextCursor
public boolean isStartOfSentence() throws NOAException
isStartOfSentence
in interface ITextCursor
NOAException
- if sentence cursor operations are not supportedpublic boolean isEndOfSentence() throws NOAException
isEndOfSentence
in interface ITextCursor
NOAException
- if sentence cursor operations are not supportedpublic void gotoNextSentence(boolean mark) throws NOAException
gotoNextSentence
in interface ITextCursor
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if sentence cursor operations are not supportedpublic void gotoPreviousSentence(boolean mark) throws NOAException
gotoPreviousSentence
in interface ITextCursor
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if sentence cursor operations are not supportedpublic void gotoEndOfSentence(boolean mark) throws NOAException
gotoEndOfSentence
in interface ITextCursor
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if sentence cursor operations are not supportedpublic void gotoStartOfSentence(boolean mark) throws NOAException
gotoStartOfSentence
in interface ITextCursor
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if sentence cursor operations are not supportedpublic boolean supportsParagraphCursor()
supportsParagraphCursor
in interface ITextCursor
public boolean isStartOfParagraph() throws NOAException
isStartOfParagraph
in interface ITextCursor
NOAException
- if paragraph cursor operations are not supportedpublic boolean isEndOfParagraph() throws NOAException
isEndOfParagraph
in interface ITextCursor
NOAException
- if paragraph cursor operations are not supportedpublic void gotoNextParagraph(boolean mark) throws NOAException
gotoNextParagraph
in interface ITextCursor
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if paragraph cursor operations are not supportedpublic void gotoPreviousParagraph(boolean mark) throws NOAException
gotoPreviousParagraph
in interface ITextCursor
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if paragraph cursor operations are not supportedpublic void gotoEndOfParagraph(boolean mark) throws NOAException
gotoEndOfParagraph
in interface ITextCursor
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if paragraph cursor operations are not supportedpublic void gotoStartOfParagraph(boolean mark) throws NOAException
gotoStartOfParagraph
in interface ITextCursor
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if paragraph cursor operations are not supported
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |