Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


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

interface XParagraphCursor
Base Interfaces
XParagraphCursorXTextCursorXTextRange

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

Methods' Summary
isStartOfParagraph determines if the cursor is positioned at the start of a paragraph.  
isEndOfParagraph determines if the cursor is positioned at the end of a paragraph.  
gotoStartOfParagraph moves the cursor to the start of the current paragraph.  
gotoEndOfParagraph moves the cursor to the end of the current paragraph.  
gotoNextParagraph moves the cursor to the next paragraph.  
gotoPreviousParagraph moves the cursor to the previous paragraph.  
Methods' Details
isStartOfParagraph
boolean
isStartOfParagraph();

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

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

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

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

Description
moves the cursor to the next paragraph.
Returns
true if the cursor was moved. It returns false it the cursor can not advance further.
gotoPreviousParagraph
boolean
gotoPreviousParagraph( [in] boolean  bExpand );

Description
moves the cursor to the previous paragraph.
Returns
true if the cursor was moved. It returns false it the cursor can not advance further.
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.