public class OWriterDoc.WordCursor extends java.lang.Object implements OWriterDoc.TextCursor
| Constructor and Description |
|---|
WordCursor()
Constructs a paragraph cursor positioned at the document start.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Advances the cursor to the next word, if there is one.
|
java.lang.String |
text()
Returns the word.
|
com.sun.star.text.XWordCursor |
xGetXWordCursor()
Gets the XWordCursor object for the document.
|
public WordCursor()
throws com.sun.star.uno.Exception
com.sun.star.uno.Exceptionpublic boolean hasNext()
hasNext in interface OWriterDoc.TextCursorpublic java.lang.String text()
text in interface OWriterDoc.TextCursorpublic com.sun.star.text.XWordCursor xGetXWordCursor()
xGetXWordCursor in interface OWriterDoc.TextCursor