merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / util / SearchDescriptor.idl
blobb49e174ccf5037050ad5d61dfeae022637d2c881
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef __com_sun_star_util_SearchDescriptor_idl__
28 #define __com_sun_star_util_SearchDescriptor_idl__
30 #ifndef __com_sun_star_util_XSearchDescriptor_idl__
31 #include <com/sun/star/util/XSearchDescriptor.idl>
32 #endif
34 #ifndef __com_sun_star_beans_XPropertySet_idl__
35 #include <com/sun/star/beans/XPropertySet.idl>
36 #endif
39 //=============================================================================
41 module com { module sun { module star { module util {
43 //=============================================================================
45 /** describes what and how to search within a container.
47 published service SearchDescriptor
49 interface com::sun::star::util::XSearchDescriptor;
51 interface com::sun::star::beans::XPropertySet;
53 //-------------------------------------------------------------------------
54 /** If <TRUE/>, the search is done backwards in the document.
56 [property] boolean SearchBackwards;
58 //-------------------------------------------------------------------------
59 /** If <TRUE/>, the case of the letters is important for the match.
61 [property] boolean SearchCaseSensitive;
63 //-------------------------------------------------------------------------
64 /** If <TRUE/>, only complete words will be found.
66 [property] boolean SearchWords;
68 //-------------------------------------------------------------------------
69 /** If <TRUE/>, the search string is evaluated as a regular expression.
71 [property] boolean SearchRegularExpression;
73 //-------------------------------------------------------------------------
74 /** If <TRUE/>, it is searched for positions where the paragraph style with
75 the name of the search pattern is applied.
77 [property] boolean SearchStyles;
79 //-------------------------------------------------------------------------
80 /** If <TRUE/>, a "similarity search" is performed.
82 <p>In the case of a similarity search, the following properties
83 specify the kind of similarity:
84 </p>
85 <ul>
86 <li>SearchSimilarityRelax
87 </li>
88 <li>SearchSimilarityRemove
89 </li>
90 <li>SearchSimilarityAdd
91 </li>
92 <li>SearchSimilarityExchange
93 </li>
94 </ul>
96 [property] boolean SearchSimilarity;
98 //-------------------------------------------------------------------------
99 /** If <TRUE/>, all similarity rules are applied together.
101 <p>In the case of a relaxed similarity search, the following
102 properties are applied together:
104 </p>
105 <ul>
106 <li>SearchSimilarityRemove
107 </li>
108 <li>SearchSimilarityAdd
109 </li>
110 <li>SearchSimilarityExchange
111 </li>
112 </ul>
114 [property] boolean SearchSimilarityRelax;
116 //-------------------------------------------------------------------------
117 /** This property specifies the number of characters that may be
118 ignored to match the search pattern.
120 [property] short SearchSimilarityRemove;
122 //-------------------------------------------------------------------------
123 /** specifies the number of characters that must be
124 added to match the search pattern.
126 [property] short SearchSimilarityAdd;
128 //-------------------------------------------------------------------------
129 /** This property specifies the number of characters that must
130 be replaced to match the search pattern.
132 [property] short SearchSimilarityExchange;
136 //=============================================================================
138 }; }; }; };
140 #endif