Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: text ::

interface XSentenceCursor
Base Interfaces
XSentenceCursorXTextCursorXTextRange

XTextCursor
(referenced interface's summary:)
extends a text range by method to modify its position.
Description
makes it possible to perform cursor movements through sentences.

Methods' Summary
isStartOfSentence determines if the cursor is positioned at the start of a sentence.  
isEndOfSentence determines if the cursor is positioned at the end of a sentence.  
gotoNextSentence moves the cursor to the start of the next sentence.  
gotoPreviousSentence moves the cursor to the start of the previous sentence.  
gotoStartOfSentence moves the cursor to the start of the current sentence.  
gotoEndOfSentence moves the cursor to the end of the current sentence.  
Methods' Details
isStartOfSentence
boolean
isStartOfSentence();

Description
determines if the cursor is positioned at the start of a sentence.
isEndOfSentence
boolean
isEndOfSentence();

Description
determines if the cursor is positioned at the end of a sentence.
gotoNextSentence
boolean
gotoNextSentence( [in] boolean  Expand );

Description
moves the cursor to the start of the next sentence.
Returns
true if the cursor was moved. It returns false it the cursor can not advance further.
gotoPreviousSentence
boolean
gotoPreviousSentence( [in] boolean  Expand );

Description
moves the cursor to the start of the previous sentence.
Returns
true if the cursor was moved. It returns false it the cursor can not advance further.
gotoStartOfSentence
boolean
gotoStartOfSentence( [in] boolean  Expand );

Description
moves the cursor to the start of the current sentence.
Returns
true if the cursor is now at the start of a sentence, false otherwise. If false was returned the cursor will remain at its original position.
gotoEndOfSentence
boolean
gotoEndOfSentence( [in] boolean  Expand );

Description
moves the cursor to the end of the current sentence.
Returns
true if the cursor is now at the end of a sentence, false otherwise. If false was returned the cursor will remain at its original position.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.