Overview | Module | Use | Devguide | Index

Methods' Summary | Attributes' Summary | Methods' Details | Attributes' Details

:: com :: sun :: star :: text ::
interface XSentenceCursor
  Base Interfaces
      XSentenceCursor
      ┗ XTextCursor
         ┗ XTextRange
  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

Copyright © 2000, 2014 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.