LibreOffice
LibreOffice 24.2 SDK API Reference
|
enables the object to look for specified contents of the object (in particular, for a text range which contains a specific string pattern). More...
import"XSearchable.idl";
Public Member Functions | |
com::sun::star::util::XSearchDescriptor | createSearchDescriptor () |
creates a SearchDescriptor which contains properties that specify a search in this container. More... | |
com::sun::star::container::XIndexAccess | findAll ([in] com::sun::star::util::XSearchDescriptor xDesc) |
searches the contained texts for all occurrences of whatever is specified. More... | |
com::sun::star::uno::XInterface | findFirst ([in] com::sun::star::util::XSearchDescriptor xDesc) |
searches the contained texts for the next occurrence of whatever is specified. More... | |
com::sun::star::uno::XInterface | findNext ([in] com::sun::star::uno::XInterface xStartAt, [in] com::sun::star::util::XSearchDescriptor xDesc) |
searches the contained texts for the next occurrence of whatever is specified. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
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():
com::sun::star::util::XSearchDescriptor createSearchDescriptor | ( | ) |
creates a SearchDescriptor which contains properties that specify a search in this container.
com::sun::star::container::XIndexAccess findAll | ( | [in] com::sun::star::util::XSearchDescriptor | xDesc | ) |
searches the contained texts for all occurrences of whatever is specified.
com::sun::star::uno::XInterface findFirst | ( | [in] com::sun::star::util::XSearchDescriptor | xDesc | ) |
searches the contained texts for the next occurrence of whatever is specified.
com::sun::star::uno::XInterface findNext | ( | [in] com::sun::star::uno::XInterface | xStartAt, |
[in] com::sun::star::util::XSearchDescriptor | xDesc | ||
) |
searches the contained texts for the next occurrence of whatever is specified.
xStartAt | represents a position within the component at which the search continues. This position is returned by XSearchable::findFirst() or the previous XSearchable::findNext(). |
xDesc | the descriptor used for searching. |