LibreOffice
LibreOffice 24.2 SDK API Reference
Exported Interfaces | Public Attributes | List of all members
SearchDescriptor Service Referencepublished

describes what and how to search within a container. More...

import"SearchDescriptor.idl";

Inheritance diagram for SearchDescriptor:
XSearchDescriptor XPropertySet XPropertySet XInterface XInterface ReplaceDescriptor

Exported Interfaces

interface com::sun::star::util::XSearchDescriptor
 
interface com::sun::star::beans::XPropertySet
 

Public Attributes

boolean SearchBackwards
 If TRUE, the search is done backwards in the document. More...
 
boolean SearchCaseSensitive
 If TRUE, the case of the letters is important for the match. More...
 
boolean SearchWords
 If TRUE, only complete words will be found. More...
 
boolean SearchRegularExpression
 If TRUE, the search string is evaluated as a regular expression. More...
 
boolean SearchStyles
 If TRUE, it is searched for positions where the paragraph style with the name of the search pattern is applied. More...
 
boolean SearchSimilarity
 If TRUE, a "similarity search" is performed. More...
 
boolean SearchSimilarityRelax
 If TRUE, all similarity rules are applied together. More...
 
short SearchSimilarityRemove
 This property specifies the number of characters that may be ignored to match the search pattern. More...
 
short SearchSimilarityAdd
 specifies the number of characters that must be added to match the search pattern. More...
 
short SearchSimilarityExchange
 This property specifies the number of characters that must be replaced to match the search pattern. More...
 
boolean SearchWildcard
 If TRUE, the search string is evaluated as a wildcard pattern. More...
 
long WildcardEscapeCharacter
 Specifies the character used to escape special characters in wildcards. More...
 

Additional Inherited Members

- Public Member Functions inherited from XSearchDescriptor
string getSearchString ()
 
void setSearchString ([in] string aString)
 sets the string of characters to look for. More...
 
- Public Member Functions inherited from XPropertySet
com::sun::star::beans::XPropertySetInfo getPropertySetInfo ()
 
void setPropertyValue ([in] string aPropertyName, [in] any aValue) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::PropertyVetoException, com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException )
 sets the value of the property with the specified name. More...
 
any getPropertyValue ([in] string PropertyName) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException )
 
void addPropertyChangeListener ([in] string aPropertyName, [in] com::sun::star::beans::XPropertyChangeListener xListener) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException )
 adds an XPropertyChangeListener to the specified property. More...
 
void removePropertyChangeListener ([in] string aPropertyName, [in] com::sun::star::beans::XPropertyChangeListener aListener) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException )
 removes an XPropertyChangeListener from the listener list. More...
 
void addVetoableChangeListener ([in] string PropertyName, [in] com::sun::star::beans::XVetoableChangeListener aListener) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException )
 adds an XVetoableChangeListener to the specified property with the name PropertyName. More...
 
void removeVetoableChangeListener ([in] string PropertyName, [in] com::sun::star::beans::XVetoableChangeListener aListener) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException )
 removes an XVetoableChangeListener from the listener list. 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...
 

Detailed Description

describes what and how to search within a container.

Developers Guide
Text Documents - Navigating - Search and Replace

Exported Interfaces

◆ com::sun::star::beans::XPropertySet

◆ com::sun::star::util::XSearchDescriptor

Member Data Documentation

◆ SearchBackwards

boolean SearchBackwards
property

If TRUE, the search is done backwards in the document.

◆ SearchCaseSensitive

boolean SearchCaseSensitive
property

If TRUE, the case of the letters is important for the match.

◆ SearchRegularExpression

boolean SearchRegularExpression
property

If TRUE, the search string is evaluated as a regular expression.

SearchRegularExpression, SearchWildcard and SearchSimilarity are mutually exclusive, only one can be TRUE at the same time.

◆ SearchSimilarity

boolean SearchSimilarity
property

If TRUE, a "similarity search" is performed.

In the case of a similarity search, the following properties specify the kind of similarity:

  • SearchSimilarityRelax
  • SearchSimilarityRemove
  • SearchSimilarityAdd
  • SearchSimilarityExchange

SearchRegularExpression, SearchWildcard and SearchSimilarity are mutually exclusive, only one can be TRUE at the same time.

◆ SearchSimilarityAdd

short SearchSimilarityAdd
property

specifies the number of characters that must be added to match the search pattern.

◆ SearchSimilarityExchange

short SearchSimilarityExchange
property

This property specifies the number of characters that must be replaced to match the search pattern.

◆ SearchSimilarityRelax

boolean SearchSimilarityRelax
property

If TRUE, all similarity rules are applied together.

In the case of a relaxed similarity search, the following properties are applied together:

  • SearchSimilarityRemove
  • SearchSimilarityAdd
  • SearchSimilarityExchange

◆ SearchSimilarityRemove

short SearchSimilarityRemove
property

This property specifies the number of characters that may be ignored to match the search pattern.

◆ SearchStyles

boolean SearchStyles
property

If TRUE, it is searched for positions where the paragraph style with the name of the search pattern is applied.

◆ SearchWildcard

boolean SearchWildcard
optionalproperty

If TRUE, the search string is evaluated as a wildcard pattern.

Wildcards are '*' (asterisk) for any sequence of characters, including an empty sequence, and '?' (question mark) for exactly one character. Escape character is '\' (U+005C REVERSE SOLIDUS) aka backslash, it escapes the special meaning of a question mark, asterisk or escape character that follows immediately after the escape character.

SearchRegularExpression, SearchWildcard and SearchSimilarity are mutually exclusive, only one can be TRUE at the same time.

Since
LibreOffice 5.2

◆ SearchWords

boolean SearchWords
property

If TRUE, only complete words will be found.

◆ WildcardEscapeCharacter

long WildcardEscapeCharacter
optionalproperty

Specifies the character used to escape special characters in wildcards.

Since
LibreOffice 24.2

The documentation for this service was generated from the following file: