interface XTextSearch in module com::sun::star::util::

(Global Index)

Syntax

interface XTextSearch : com::sun::star::uno::XInterface ;

Method Summary

setOptions set the options for the forward or backward search.

searchForward search forward in the searchStr, starts at startPos and ends by endpos. The result is returned in the SearchResult.

searchBackward search backward in the searchStr, starts at startPos and ends by endpos. The endpos must be lower then the startpos, because the function searches backward! The result is returned in the SearchResult.

Known Services Which Export this Interface

com::sun::star::util::TextSearch

Method Details



setOptions

Syntax

void setOptions (
com::sun::star::util::SearchOptions options );

Description

set the options for the forward or backward search.


searchForward

Syntax

com::sun::star::util::SearchResult searchForward (
string searchStr,
long startPos,
long endPos );

Description

search forward in the searchStr, starts at startPos and ends by endpos. The result is returned in the SearchResult.


searchBackward

Syntax

com::sun::star::util::SearchResult searchBackward (
string searchStr,
long startPos,
long endPos );

Description

search backward in the searchStr, starts at startPos and ends by endpos. The endpos must be lower then the startpos, because the function searches backward! The result is returned in the SearchResult.

Top of Page