1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: SearchDescriptor.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_util_SearchDescriptor_idl__
31 #define __com_sun_star_util_SearchDescriptor_idl__
33 #ifndef __com_sun_star_util_XSearchDescriptor_idl__
34 #include
<com
/sun
/star
/util
/XSearchDescriptor.idl
>
37 #ifndef __com_sun_star_beans_XPropertySet_idl__
38 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
42 //=============================================================================
44 module com
{ module sun
{ module star
{ module util
{
46 //=============================================================================
48 /** describes what and how to search within a container.
50 published service SearchDescriptor
52 interface com
::sun
::star
::util
::XSearchDescriptor
;
54 interface com
::sun
::star
::beans
::XPropertySet
;
56 //-------------------------------------------------------------------------
57 /** If <TRUE/>, the search is done backwards in the document.
59 [property
] boolean SearchBackwards
;
61 //-------------------------------------------------------------------------
62 /** If <TRUE/>, the case of the letters is important for the match.
64 [property
] boolean SearchCaseSensitive
;
66 //-------------------------------------------------------------------------
67 /** If <TRUE/>, only complete words will be found.
69 [property
] boolean SearchWords
;
71 //-------------------------------------------------------------------------
72 /** If <TRUE/>, the search string is evaluated as a regular expression.
74 [property
] boolean SearchRegularExpression
;
76 //-------------------------------------------------------------------------
77 /** If <TRUE/>, it is searched for positions where the paragraph style with
78 the name of the search pattern is applied.
80 [property
] boolean SearchStyles
;
82 //-------------------------------------------------------------------------
83 /** If <TRUE/>, a "similarity search" is performed.
85 <p>In the case of a similarity search, the following properties
86 specify the kind of similarity:
89 <li>SearchSimilarityRelax
91 <li>SearchSimilarityRemove
93 <li>SearchSimilarityAdd
95 <li>SearchSimilarityExchange
99 [property
] boolean SearchSimilarity
;
101 //-------------------------------------------------------------------------
102 /** If <TRUE/>, all similarity rules are applied together.
104 <p>In the case of a relaxed similarity search, the following
105 properties are applied together:
109 <li>SearchSimilarityRemove
111 <li>SearchSimilarityAdd
113 <li>SearchSimilarityExchange
117 [property
] boolean SearchSimilarityRelax
;
119 //-------------------------------------------------------------------------
120 /** This property specifies the number of characters that may be
121 ignored to match the search pattern.
123 [property
] short SearchSimilarityRemove
;
125 //-------------------------------------------------------------------------
126 /** specifies the number of characters that must be
127 added to match the search pattern.
129 [property
] short SearchSimilarityAdd
;
131 //-------------------------------------------------------------------------
132 /** This property specifies the number of characters that must
133 be replaced to match the search pattern.
135 [property
] short SearchSimilarityExchange
;
139 //=============================================================================