1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
10 #ifndef INCLUDED_TEST_BEANS_XPROPERTYSET_HXX
11 #define INCLUDED_TEST_BEANS_XPROPERTYSET_HXX
13 #include <com/sun/star/uno/Reference.hxx>
14 #include <com/sun/star/beans/XPropertySet.hpp>
15 #include <com/sun/star/beans/XPropertySetInfo.hpp>
17 #include <test/testdllapi.hxx>
23 class OOO_DLLPUBLIC_TEST XPropertySet
26 virtual ~XPropertySet();
28 virtual css::uno::Reference
<css::uno::XInterface
> init() = 0;
30 void testGetPropertySetInfo();
31 void testSetPropertyValue();
32 void testGetPropertyValue();
35 virtual bool isPropertyValueChangeable(const OUString
& rName
);
38 void fillPropsToTest(const css::uno::Reference
<css::beans::XPropertySetInfo
>& xPropInfo
);
39 static bool getSinglePropertyValue(
40 const css::uno::Reference
<css::beans::XPropertySet
>& xPropSet
, const OUString
& rName
);
42 struct OOO_DLLPUBLIC_TEST PropsToTest
44 std::vector
<OUString
> constrained
;
45 std::vector
<OUString
> bound
;
46 std::vector
<OUString
> normal
;
47 std::vector
<OUString
> readonly
;
54 PropsToTest maPropsToTest
;
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */