Language
Asturianu (ast)
Català (ca)
Čeština (cs)
Dansk (da)
Deutsch (de)
English [US] (en-US)
Español (es)
Esperanto (eo)
Eesti keel (et)
Euskara (eu)
Français (fr)
Gàidhlig (gd)
Galego (gl)
Italiano (it)
Lietuvių (lt)
Magyar (hu)
Nederlands (nl)
Norsk (no)
Polski (pl)
Português [do Brasil] (pt-BR)
Português [Europeu] (pt)
Română (ro)
Slovenčina (sk)
Slovenščina (sl)
Suomi (fi)
Svenska (sv)
Yкраїнська (uk)
Tiếng Việt (vi)
Türkçe (tr)
ኦሮሚኛ (om)
Հայերեն (hy)
Ελληνικά (el)
български език (bg)
Русский (ru)
Cрпски [ћирилицом] (sr)
עברית (he)
हिन्दी (hi)
ភាសាខ្មែរ (km)
தமிழ் (ta)
ภาษาไทย (th)
简体中文 (zh-CN)
正體中文 (zh-TW)
日本語 (ja)
한국어 (ko)
The Free and Open Productivity Suite
:: com :: sun :: star :: util ::
interface XSearchable
Description
enables the object to look for specified contents of the object
(in particular, for a text range which contains a specific string pattern).
Example
in a ::com::sun::star::text ::TextDocument :
set all "search for" to bold using findFirst()/findNext():
xSearchDescr = xDocument.createSearchDescriptor()
xSearchDescr.SearchString = "search for"
xSearchDescr.SearchCaseSensitive = true
xSearchDescr.SearchWords = true
xFound = xDocument.findFirst( xSearchDescr )
do while not IsNull(xFound)
xFound.CharWeight = com.sun.star.awt.FontWeight.BOLD
xFound = xDocument.findNext( xFound.End, xSearchDescr )
loop
Developers Guide
Text - Navigating - Search and Replace
Methods' Summary
createSearchDescriptor
creates a SearchDescriptor which contains properties that
specify a search in this container.
findAll
searches the contained texts for all occurrences of whatever is specified.
findFirst
searches the contained texts for the next occurrence of whatever is specified.
findNext
searches the contained texts for the next occurrence of whatever is specified.
Methods' Details
createSearchDescriptor
findAll
Description
searches the contained texts for all occurrences of whatever is specified.
See also
SearchDescriptor
findFirst
Description
searches the contained texts for the next occurrence of whatever is specified.
Returns
the position within the component, e.g. a ::com::sun::star::text ::XTextRange
which determines the found elements.
See also
SearchDescriptor
findNext
Description
searches the contained texts for the next occurrence of whatever is specified.
Parameter xStartAt
represents a position within the component at which the search continues.
This position is returned by XSearchable::findFirst or
the previous XSearchable::findNext .
See also
SearchDescriptor
Top of Page Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.