1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 */
9
10 #include <test/util/searchdescriptor.hxx>
11 #include <test/unoapi_property_testers.hxx>
12
13 #include <com/sun/star/beans/XPropertySet.hpp>
14
15 #include <com/sun/star/uno/Reference.hxx>
16
17 #include <cppunit/extensions/HelperMacros.h>
18
19 using namespace css;
20
21 namespace apitest
22 {
testSearchDescriptorProperties()23 void SearchDescriptor::testSearchDescriptorProperties()
24 {
25 uno::Reference<beans::XPropertySet> xPS(init(), uno::UNO_QUERY_THROW);
26
27 OUString aPropName;
28
29 aPropName = "SearchBackwards";
30 testBooleanProperty(xPS, aPropName);
31
32 aPropName = "SearchCaseSensitive";
33 testBooleanProperty(xPS, aPropName);
34
35 aPropName = "SearchWords";
36 testBooleanProperty(xPS, aPropName);
37
38 aPropName = "SearchRegularExpression";
39 testBooleanProperty(xPS, aPropName);
40
41 aPropName = "SearchStyles";
42 testBooleanProperty(xPS, aPropName);
43
44 aPropName = "SearchSimilarity";
45 testBooleanProperty(xPS, aPropName);
46
47 aPropName = "SearchSimilarityRelax";
48 testBooleanProperty(xPS, aPropName);
49
50 aPropName = "SearchSimilarityRemove";
51 testShortProperty(xPS, aPropName);
52
53 aPropName = "SearchSimilarityAdd";
54 testShortProperty(xPS, aPropName);
55
56 aPropName = "SearchSimilarityExchange";
57 testShortProperty(xPS, aPropName);
58
59 aPropName = "SearchWildcard";
60 testBooleanOptionalProperty(xPS, aPropName);
61 }
62
63 } // namespace apitest
64
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
66