Revert "tdf#127471 Remove font width scaling hack"
[LibreOffice.git] / test / source / util / searchdescriptor.cxx
blobd8299455835da327310054e577cb4dc146ca7828
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.
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 */
10 #include <test/util/searchdescriptor.hxx>
11 #include <test/unoapi_property_testers.hxx>
13 #include <com/sun/star/beans/XPropertySet.hpp>
15 #include <com/sun/star/uno/Reference.hxx>
17 using namespace css;
19 namespace apitest
21 void SearchDescriptor::testSearchDescriptorProperties()
23 uno::Reference<beans::XPropertySet> xPS(init(), uno::UNO_QUERY_THROW);
25 OUString aPropName;
27 aPropName = "SearchBackwards";
28 testBooleanProperty(xPS, aPropName);
30 aPropName = "SearchCaseSensitive";
31 testBooleanProperty(xPS, aPropName);
33 aPropName = "SearchWords";
34 testBooleanProperty(xPS, aPropName);
36 aPropName = "SearchRegularExpression";
37 testBooleanProperty(xPS, aPropName);
39 aPropName = "SearchStyles";
40 testBooleanProperty(xPS, aPropName);
42 aPropName = "SearchSimilarity";
43 testBooleanProperty(xPS, aPropName);
45 aPropName = "SearchSimilarityRelax";
46 testBooleanProperty(xPS, aPropName);
48 aPropName = "SearchSimilarityRemove";
49 testShortProperty(xPS, aPropName);
51 aPropName = "SearchSimilarityAdd";
52 testShortProperty(xPS, aPropName);
54 aPropName = "SearchSimilarityExchange";
55 testShortProperty(xPS, aPropName);
57 aPropName = "SearchWildcard";
58 testBooleanOptionalProperty(xPS, aPropName);
61 } // namespace apitest
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */