LibreOffice
LibreOffice 24.2 SDK API Reference
Public Member Functions | List of all members
XParagraphCursor Interface Referencepublished

makes it possible to move paragraph by paragraph. More...

import"XParagraphCursor.idl";

Inheritance diagram for XParagraphCursor:
XTextCursor XTextRange XInterface TextCursor TextLayoutCursor TextViewCursor

Public Member Functions

boolean isStartOfParagraph ()
 determines if the cursor is positioned at the start of a paragraph. More...
 
boolean isEndOfParagraph ()
 determines if the cursor is positioned at the end of a paragraph. More...
 
boolean gotoStartOfParagraph ([in] boolean bExpand)
 moves the cursor to the start of the current paragraph. More...
 
boolean gotoEndOfParagraph ([in] boolean bExpand)
 moves the cursor to the end of the current paragraph. More...
 
boolean gotoNextParagraph ([in] boolean bExpand)
 moves the cursor to the next paragraph. More...
 
boolean gotoPreviousParagraph ([in] boolean bExpand)
 moves the cursor to the previous paragraph. More...
 
- Public Member Functions inherited from XTextCursor
void collapseToStart ()
 sets the end of the position to the start. More...
 
void collapseToEnd ()
 sets the start of the position to the end. More...
 
boolean isCollapsed ()
 determines if the start and end positions are the same. More...
 
boolean goLeft ([in] short nCount, [in] boolean bExpand)
 moves the cursor the specified number of characters to the left. More...
 
boolean goRight ([in] short nCount, [in] boolean bExpand)
 moves the cursor the specified number of characters to the right. More...
 
void gotoStart ([in] boolean bExpand)
 moves the cursor to the start of the text. More...
 
void gotoEnd ([in] boolean bExpand)
 moves the cursor to the end of the text. More...
 
void gotoRange ([in] com::sun::star::text::XTextRange xRange, [in] boolean bExpand)
 moves or expands the cursor to a specified TextRange. More...
 
- Public Member Functions inherited from XTextRange
XText getText ()
 
XTextRange getStart ()
 
XTextRange getEnd ()
 
string getString ()
 
void setString ([in] string aString)
 the whole string of characters of this piece of text is replaced. More...
 
- Public Member Functions inherited from XInterface
any queryInterface ([in] type aType)
 queries for a new interface to an existing UNO object. More...
 
void acquire ()
 increases the reference counter by one. More...
 
void release ()
 decreases the reference counter by one. More...
 

Detailed Description

makes it possible to move paragraph by paragraph.

Member Function Documentation

◆ gotoEndOfParagraph()

boolean gotoEndOfParagraph ( [in] boolean  bExpand)

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)

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)

moves the cursor to the previous paragraph.

Returns
TRUE if the cursor was moved. It returns FALSE it the cursor can not advance further.

◆ gotoStartOfParagraph()

boolean gotoStartOfParagraph ( [in] boolean  bExpand)

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.

◆ isEndOfParagraph()

boolean isEndOfParagraph ( )

determines if the cursor is positioned at the end of a paragraph.

◆ isStartOfParagraph()

boolean isStartOfParagraph ( )

determines if the cursor is positioned at the start of a paragraph.


The documentation for this interface was generated from the following file: