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 
20 namespace 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 
55 testDoubleProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
56  const OUString& name, const double& dValue = 42.0);
57 
65 testDoubleReadonlyProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
66  const OUString& name, const double& dValue = 42.0);
67 
75 testLongProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
76  const OUString& name, const sal_Int32& nValue = 42);
77 
85 testLongOptionalProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
86  const OUString& name, const sal_Int32& nValue = 42);
87 
95 testLongReadonlyProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
96  const OUString& name, const sal_Int32& nValue = 42);
97 
105 testShortProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
106  const OUString& name, const sal_Int16& nValue = 42);
107 
115 testShortOptionalProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
116  const OUString& name, const sal_Int16& nValue = 42);
117 
125 testShortReadonlyProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
126  const OUString& name, const sal_Int16& nValue = 42);
127 
135 testStringProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
136  const OUString& name, const OUString& rValue);
137 
147 testStringOptionalProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet,
148  const OUString& name, const OUString& rValue = OUString("StringValue"));
149 
157 testStringReadonlyProperty(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 testDoubleProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const double &dValue)
void testStringOptionalProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName, const OUString &rValue)
void testBooleanReadonlyProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name)
void testDoubleReadonlyProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const double &dValue)
void testColorProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const util::Color &rValue)
void testLongReadonlyProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int32 &nValue)
void testBooleanOptionalProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName)
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 testStringReadonlyProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const OUString &rValue)
void testLongOptionalProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName, const sal_Int32 &rValue)
void testBooleanProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name)
void testStringProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const OUString &rValue)
void testLongProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int32 &nValue)
void testShortReadonlyProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int16 &nValue)
#define OOO_DLLPUBLIC_TEST
Definition: testdllapi.hxx:28