(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

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

interface XWordCursor
Base Interfaces
XWordCursorXTextCursorXTextRange

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

Methods' Summary
isStartOfWord determines if the cursor is positioned at the start of a word.  
isEndOfWord determines if the cursor is positioned at the end of a word.  
gotoNextWord moves the cursor to the next word.  
gotoPreviousWord moves the cursor to the previous word.  
gotoEndOfWord moves the cursor to the end of the current word.  
gotoStartOfWord moves the cursor to the start of the current word.  
Methods' Details
isStartOfWord
boolean
isStartOfWord();

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

Description
determines if the cursor is positioned at the end of a word.
gotoNextWord
boolean
gotoNextWord( [in] boolean  bExpand );

Description
moves the cursor to the next word.

Note: the function returning true does not necessarily mean that the cursor is located at the next word, or any word at all! This may happen for example if it travels over empty paragraphs.

Returns
true if the cursor was moved. It returns false it the cursor can not advance further.
gotoPreviousWord
boolean
gotoPreviousWord( [in] boolean  bExpand );

Description
moves the cursor to the previous word.

Note: the function returning true does not necessarily mean that the cursor is located at the previous word, or any word at all! This may happen for example if it travels over empty paragraphs.

Returns
true if the cursor was moved. It returns false it the cursor can not advance further.
gotoEndOfWord
boolean
gotoEndOfWord( [in] boolean  bExpand );

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

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

Apache Feather

Copyright & License | Privacy | Contact Us

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

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.