Top   Module   Use   Manual   Index 
 EXPORTING SERVICES | METHODS' SUMMARY | METHODS' DETAILS 

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

interface XReplaceable

Base Interface
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 )


Known Services which Export this Interface

com::sun::star::sheet::SheetCell represents a single addressable cell in a spreadsheet document.
com::sun::star::sheet::SheetCellRange represents a rectangular range of cells in a spreadsheet document.
com::sun::star::sheet::SheetCellRanges represents a collection of cell ranges in a spreadsheet document.
com::sun::star::text::AdvancedTextDocument [ DEPRECATED ]
An advanced text document is an extension of a hypertext document which can also contain text-frames, foot- and endnotes, and some other advanced contents.
com::sun::star::text::TextDocument A text document is a model component which contains text structured by paragraphs.

Methods' Summary

createReplaceDescriptor creates a descriptor which contains properties that specify a search in this container.
replaceAll searches for all occurrences of whatever is specified.

Methods' Details

createReplaceDescriptor
 
com::sun::star::util::XReplaceDescriptor
createReplaceDescriptor();
Description
creates a descriptor which contains properties that specify a search in this container.
See also
SearchDescriptor
replaceAll
 
long
replaceAll(
[ in ] com::sun::star::util::XSearchDescriptor xDesc );

Description
searches for all occurrences of whatever is specified.
See also
SearchDescriptor

Top of Page