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

(Global Index)

Syntax

interface XReplaceable : com::sun::star::util::XSearchable ;

Description

makes it possible to replace strings in a text described by a SearchDescriptor .

Example

 'replace all bold words "search for" by "look for"
 xReplaceDescr = xDocument.createReplaceDescriptor()
 xReplaceDescr.SearchString = "search for"
 xReplaceDescr.ReplaceString = "look for"
 xFound = xDocument.replaceAll( xReplaceDescr )

Method Summary

createReplaceDescriptor creates a descriptor which contains properties that specify a search in this container.

replaceAll searches for all occurrences of whatever is specified.

Known Services Which Export this Interface

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

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

Method Details



createReplaceDescriptor

Syntax

com::sun::star::util::XReplaceDescriptor createReplaceDescriptor ();

Description

creates a descriptor which contains properties that specify a search in this container.

See also

SearchDescriptor

replaceAll

Syntax

long replaceAll (
com::sun::star::util::XSearchDescriptor xDesc );

Description

searches for all occurrences of whatever is specified.

See also

SearchDescriptor
Top of Page