(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

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

interface XReplaceable
Base Interfaces
XReplaceableXSearchable

XSearchable
(referenced interface's summary:)
enables the object to look for specified contents of the object (in particular, for a text range which contains a specific string pattern).
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 )
 
Developers Guide
Text - Navigating - Search and Replace
Spreadsheets - Search and Replace

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
XReplaceDescriptor
createReplaceDescriptor();

Description
creates a descriptor which contains properties that specify a search in this container.
See also
SearchDescriptor
replaceAll
long
replaceAll( [in] XSearchDescriptor  xDesc );

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

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.