LibreOffice Module test (master) 1
xpropertyset.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_BEANS_XPROPERTYSET_HXX
11#define INCLUDED_TEST_BEANS_XPROPERTYSET_HXX
12
13#include <com/sun/star/beans/XPropertySet.hpp>
14#include <com/sun/star/beans/XPropertySetInfo.hpp>
15
16#include <com/sun/star/uno/Reference.hxx>
17
18#include <test/testdllapi.hxx>
19
20#include <set>
21#include <vector>
22
23namespace apitest
24{
26{
27public:
29
30 XPropertySet(const std::set<OUString> rIgnoreValue)
31 : m_IgnoreValue(rIgnoreValue)
32 {
33 }
34 virtual css::uno::Reference<css::uno::XInterface> init() = 0;
35
36 void testGetPropertySetInfo();
37 void testSetPropertyValue();
38 void testGetPropertyValue();
39 void testPropertyChangeListener();
40 void testVetoableChangeListener();
41
42protected:
44 bool isPropertyValueChangeable(const OUString& rName);
45
46 virtual bool isPropertyIgnored(const OUString& rName);
47
48private:
49 void fillPropsToTest(const css::uno::Reference<css::beans::XPropertySetInfo>& xPropInfo);
50 static bool
51 getSinglePropertyValue(const css::uno::Reference<css::beans::XPropertySet>& xPropSet,
52 const OUString& rName);
53
55 {
56 std::vector<OUString> constrained;
57 std::vector<OUString> bound;
58 std::vector<OUString> normal;
59 std::vector<OUString> readonly;
60
62
64 };
65
67 std::set<OUString> m_IgnoreValue;
68};
69
70} // namespace apitest
71
72#endif
73
74/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
PropsToTest maPropsToTest
virtual css::uno::Reference< css::uno::XInterface > init()=0
XPropertySet(const std::set< OUString > rIgnoreValue)
std::set< OUString > m_IgnoreValue
std::vector< OUString > readonly
std::vector< OUString > normal
std::vector< OUString > bound
std::vector< OUString > constrained
#define OOO_DLLPUBLIC_TEST
Definition: testdllapi.hxx:28