1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 module com
{ module sun
{ module star
{ module util
{
25 /** describes what and how to search within a container.
27 published service SearchDescriptor
29 interface com
::sun
::star
::util
::XSearchDescriptor
;
31 interface com
::sun
::star
::beans
::XPropertySet
;
33 /** If `TRUE`, the search is done backwards in the document.
35 [property
] boolean SearchBackwards
;
37 /** If `TRUE`, the case of the letters is important for the match.
39 [property
] boolean SearchCaseSensitive
;
41 /** If `TRUE`, only complete words will be found.
43 [property
] boolean SearchWords
;
45 /** If `TRUE`, the search string is evaluated as a regular expression.
47 <p> SearchRegularExpression, SearchWildcard and SearchSimilarity
48 are mutually exclusive, only one can be `TRUE` at the same time. </p>
50 [property
] boolean SearchRegularExpression
;
52 /** If `TRUE`, it is searched for positions where the paragraph style with
53 the name of the search pattern is applied.
55 [property
] boolean SearchStyles
;
57 /** If `TRUE`, a "similarity search" is performed.
59 <p>In the case of a similarity search, the following properties
60 specify the kind of similarity:
63 <li>SearchSimilarityRelax
65 <li>SearchSimilarityRemove
67 <li>SearchSimilarityAdd
69 <li>SearchSimilarityExchange
73 <p> SearchRegularExpression, SearchWildcard and SearchSimilarity
74 are mutually exclusive, only one can be `TRUE` at the same time. </p>
76 [property
] boolean SearchSimilarity
;
78 /** If `TRUE`, all similarity rules are applied together.
80 <p>In the case of a relaxed similarity search, the following
81 properties are applied together:
85 <li>SearchSimilarityRemove
87 <li>SearchSimilarityAdd
89 <li>SearchSimilarityExchange
93 [property
] boolean SearchSimilarityRelax
;
95 /** This property specifies the number of characters that may be
96 ignored to match the search pattern.
98 [property
] short SearchSimilarityRemove
;
100 /** specifies the number of characters that must be
101 added to match the search pattern.
103 [property
] short SearchSimilarityAdd
;
105 /** This property specifies the number of characters that must
106 be replaced to match the search pattern.
108 [property
] short SearchSimilarityExchange
;
110 /** If `TRUE`, the search string is evaluated as a wildcard pattern.
112 <p> Wildcards are '*' (asterisk) for any sequence of characters,
113 including an empty sequence, and '?' (question mark) for exactly
114 one character. Escape character is '\' (U+005C REVERSE SOLIDUS)
115 aka backslash, it escapes the special meaning of a question
116 mark, asterisk or escape character that follows immediately
117 after the escape character. </p>
119 <p> SearchRegularExpression, SearchWildcard and SearchSimilarity
120 are mutually exclusive, only one can be `TRUE` at the same time. </p>
122 @since LibreOffice 5.2
124 [optional, property
] boolean SearchWildcard
;
126 /** Specifies the character used to escape special characters in wildcards.
128 @since LibreOffice 24.2
130 [optional, property
] long WildcardEscapeCharacter
;
137 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */