LibreOffice Module test (master) 1
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
12
13#include <com/sun/star/beans/XPropertySet.hpp>
14
15#include <com/sun/star/uno/Reference.hxx>
16
17using namespace css;
18
19namespace apitest
20{
22{
23 uno::Reference<beans::XPropertySet> xPS(init(), uno::UNO_QUERY_THROW);
24
25 OUString aPropName;
26
27 aPropName = "SearchBackwards";
29
30 aPropName = "SearchCaseSensitive";
32
33 aPropName = "SearchWords";
35
36 aPropName = "SearchRegularExpression";
38
39 aPropName = "SearchStyles";
41
42 aPropName = "SearchSimilarity";
44
45 aPropName = "SearchSimilarityRelax";
47
48 aPropName = "SearchSimilarityRemove";
50
51 aPropName = "SearchSimilarityAdd";
53
54 aPropName = "SearchSimilarityExchange";
56
57 aPropName = "SearchWildcard";
59}
60
61} // namespace apitest
62
63/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
virtual css::uno::Reference< css::uno::XInterface > init()=0
void testShortProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int16 &nValue)
void testBooleanProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name)
void testBooleanOptionalProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName)
OUString aPropName