LibreOffice Module test (master) 1
unoapi_property_testers.hxx
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#ifndef INCLUDED_TEST_INC_UNOAPIPROPERTYTESTERS_HXX
11#define INCLUDED_TEST_INC_UNOAPIPROPERTYTESTERS_HXX
12
13#include <com/sun/star/beans/XPropertySet.hpp>
14#include <com/sun/star/uno/Reference.hxx>
15#include <com/sun/star/util/Color.hpp>
16
17#include <sal/config.h>
18#include <test/testdllapi.hxx>
19
20namespace apitest
21{
28 css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, const OUString& name);
29
38 css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, const OUString& name);
39
46 css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, const OUString& name);
47
55testDoubleProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
56 const OUString& name, const double& dValue = 42.0);
57
65testDoubleReadonlyProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
66 const OUString& name, const double& dValue = 42.0);
67
75testLongProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
76 const OUString& name, const sal_Int32& nValue = 42);
77
85testLongOptionalProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
86 const OUString& name, const sal_Int32& nValue = 42);
87
95testLongReadonlyProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
96 const OUString& name, const sal_Int32& nValue = 42);
97
105testShortProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
106 const OUString& name, const sal_Int16& nValue = 42);
107
115testShortOptionalProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
116 const OUString& name, const sal_Int16& nValue = 42);
117
125testShortReadonlyProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
126 const OUString& name, const sal_Int16& nValue = 42);
127
135testStringProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
136 const OUString& name, const OUString& rValue);
137
147testStringOptionalProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
148 const OUString& name, const OUString& rValue = OUString("StringValue"));
149
157testStringReadonlyProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
158 const OUString& name, const OUString& rValue);
159
167 css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, const OUString& name,
168 const css::util::Color& rValue = css::util::Color(0x12345678));
169
170} // namespace apitest
171#endif // INCLUDED_TEST_INC_UNOAPIPROPERTYTESTERS_HXX
172
173/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
void testShortReadonlyProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int16 &nValue)
void testStringOptionalProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName, const OUString &rValue)
void testLongProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int32 &nValue)
void testStringProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const OUString &rValue)
void testShortOptionalProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName, const sal_Int16 &rValue)
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 testDoubleProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const double &dValue)
void testBooleanReadonlyProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name)
void testColorProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const util::Color &rValue)
void testBooleanOptionalProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName)
void testStringReadonlyProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const OUString &rValue)
void testDoubleReadonlyProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const double &dValue)
void testLongOptionalProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName, const sal_Int32 &rValue)
void testLongReadonlyProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int32 &nValue)
#define OOO_DLLPUBLIC_TEST
Definition: testdllapi.hxx:28