|
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 valid| Method Detail |
|---|
public ICharacterProperties getCharacterProperties()
getCharacterProperties in interface ITextCursorpublic void gotoEnd(boolean mark)
gotoEnd in interface ITextCursormark - indicates if the space between the current
position and the end is to be markedpublic void gotoStart(boolean mark)
gotoStart in interface ITextCursormark - indicates if the space between the current
position and the start is to be marked
public void gotoRange(ITextRange range,
boolean mark)
gotoRange in interface ITextCursorrange - 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 ITextCursorcontent - content to be usedpublic java.lang.String getString()
getString in interface ITextCursor
public void goLeft(short stepNumber,
boolean mark)
goLeft in interface ITextCursorstepNumber - stepNumber the number of cursor steps to jumpmark - mark indicates if the space between the current
position and the new one is to be marked
public void goRight(short stepNumber,
boolean mark)
goRight in interface ITextCursorstepNumber - 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 ITextCursorpublic ITextRange getEnd()
getEnd in interface ITextCursorpublic short getStartPageNumber()
getStartPageNumber in interface ITextCursorpublic short getEndPageNumber()
getEndPageNumber in interface ITextCursor
public void insertPageBreak()
throws NOAException
insertPageBreak in interface ITextCursorNOAException - if the page break can not be set
public void insertDocument(java.lang.String url)
throws NOAException
insertDocument in interface ITextCursorurl - URL of the document (must look like file:///c:/test.odt)
NOAException - if the text document can not be inserted
public void insertDocument(java.io.InputStream inputStream,
IFilter filter)
throws NOAException
insertDocument in interface ITextCursorinputStream - 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 ITextCursorNOAException - if word cursor operations are not supported
public boolean isEndOfWord()
throws NOAException
isEndOfWord in interface ITextCursorNOAException - if word cursor operations are not supported
public boolean gotoNextWord(boolean mark)
throws NOAException
gotoNextWord in interface ITextCursormark - mark indicates if the space between the current
position and the new one is to be marked
NOAException - if word cursor operations are not supported
public boolean gotoPreviousWord(boolean mark)
throws NOAException
gotoPreviousWord in interface ITextCursormark - mark indicates if the space between the current
position and the new one is to be marked
NOAException - if word cursor operations are not supported
public boolean gotoEndOfWord(boolean mark)
throws NOAException
gotoEndOfWord in interface ITextCursormark - mark indicates if the space between the current
position and the new one is to be marked
NOAException - if word cursor operations are not supported
public boolean gotoStartOfWord(boolean mark)
throws NOAException
gotoStartOfWord in interface ITextCursormark - 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 ITextCursorNOAException - if sentence cursor operations are not supported
public boolean isEndOfSentence()
throws NOAException
isEndOfSentence in interface ITextCursorNOAException - if sentence cursor operations are not supported
public void gotoNextSentence(boolean mark)
throws NOAException
gotoNextSentence in interface ITextCursormark - mark indicates if the space between the current
position and the new one is to be marked
NOAException - if sentence cursor operations are not supported
public void gotoPreviousSentence(boolean mark)
throws NOAException
gotoPreviousSentence in interface ITextCursormark - mark indicates if the space between the current
position and the new one is to be marked
NOAException - if sentence cursor operations are not supported
public void gotoEndOfSentence(boolean mark)
throws NOAException
gotoEndOfSentence in interface ITextCursormark - mark indicates if the space between the current
position and the new one is to be marked
NOAException - if sentence cursor operations are not supported
public void gotoStartOfSentence(boolean mark)
throws NOAException
gotoStartOfSentence in interface ITextCursormark - 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 ITextCursorNOAException - if paragraph cursor operations are not supported
public boolean isEndOfParagraph()
throws NOAException
isEndOfParagraph in interface ITextCursorNOAException - if paragraph cursor operations are not supported
public void gotoNextParagraph(boolean mark)
throws NOAException
gotoNextParagraph in interface ITextCursormark - 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
public void gotoPreviousParagraph(boolean mark)
throws NOAException
gotoPreviousParagraph in interface ITextCursormark - 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
public void gotoEndOfParagraph(boolean mark)
throws NOAException
gotoEndOfParagraph in interface ITextCursormark - 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
public void gotoStartOfParagraph(boolean mark)
throws NOAException
gotoStartOfParagraph in interface ITextCursormark - 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 | ||||||||