LibreOffice Module test (master)
1
test
source
util
searchdescriptor.cxx
Go to the documentation of this file.
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
using namespace
css;
18
19
namespace
apitest
20
{
21
void
SearchDescriptor::testSearchDescriptorProperties
()
22
{
23
uno::Reference<beans::XPropertySet> xPS(
init
(), uno::UNO_QUERY_THROW);
24
25
OUString
aPropName
;
26
27
aPropName
=
"SearchBackwards"
;
28
testBooleanProperty
(xPS,
aPropName
);
29
30
aPropName
=
"SearchCaseSensitive"
;
31
testBooleanProperty
(xPS,
aPropName
);
32
33
aPropName
=
"SearchWords"
;
34
testBooleanProperty
(xPS,
aPropName
);
35
36
aPropName
=
"SearchRegularExpression"
;
37
testBooleanProperty
(xPS,
aPropName
);
38
39
aPropName
=
"SearchStyles"
;
40
testBooleanProperty
(xPS,
aPropName
);
41
42
aPropName
=
"SearchSimilarity"
;
43
testBooleanProperty
(xPS,
aPropName
);
44
45
aPropName
=
"SearchSimilarityRelax"
;
46
testBooleanProperty
(xPS,
aPropName
);
47
48
aPropName
=
"SearchSimilarityRemove"
;
49
testShortProperty
(xPS,
aPropName
);
50
51
aPropName
=
"SearchSimilarityAdd"
;
52
testShortProperty
(xPS,
aPropName
);
53
54
aPropName
=
"SearchSimilarityExchange"
;
55
testShortProperty
(xPS,
aPropName
);
56
57
aPropName
=
"SearchWildcard"
;
58
testBooleanOptionalProperty
(xPS,
aPropName
);
59
}
60
61
}
// namespace apitest
62
63
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
apitest::SearchDescriptor::testSearchDescriptorProperties
void testSearchDescriptorProperties()
Definition:
searchdescriptor.cxx:21
apitest::SearchDescriptor::init
virtual css::uno::Reference< css::uno::XInterface > init()=0
apitest
Definition:
xpropertyset.cxx:36
apitest::testShortProperty
void testShortProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int16 &nValue)
Definition:
unoapi_property_testers.cxx:162
apitest::testBooleanProperty
void testBooleanProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name)
Definition:
unoapi_property_testers.cxx:19
apitest::testBooleanOptionalProperty
void testBooleanOptionalProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName)
Definition:
unoapi_property_testers.cxx:39
aPropName
OUString aPropName
searchdescriptor.hxx
unoapi_property_testers.hxx
Generated on Sun Jul 30 2023 04:27:11 for LibreOffice Module test (master) by
1.9.3