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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #include <com/sun/star/beans/PropertyValue.hpp>
22 #include <com/sun/star/beans/XPropertySet.hpp>
23 #include <com/sun/star/beans/XPropertySetInfo.hpp>
24 #include <com/sun/star/beans/XPropertyAccess.hpp>
25 #include <cppuhelper/implbase.hxx>
29 typedef std::vector
<css::beans::PropertyValue
> SbPropertyValueArr_Impl
;
31 typedef ::cppu::WeakImplHelper
< css::beans::XPropertySet
,
32 css::beans::XPropertyAccess
> SbPropertyValuesHelper
;
35 class SbPropertyValues final
: public SbPropertyValuesHelper
37 SbPropertyValueArr_Impl m_aPropVals
;
38 css::uno::Reference
< css::beans::XPropertySetInfo
> m_xInfo
;
41 size_t GetIndex_Impl( const OUString
&rPropName
) const;
45 virtual ~SbPropertyValues() override
;
48 virtual css::uno::Reference
< css::beans::XPropertySetInfo
> SAL_CALL
49 getPropertySetInfo() override
;
50 virtual void SAL_CALL
setPropertyValue(
51 const OUString
& aPropertyName
,
52 const css::uno::Any
& aValue
) override
;
53 virtual css::uno::Any SAL_CALL
getPropertyValue( const OUString
& PropertyName
) override
;
54 virtual void SAL_CALL
addPropertyChangeListener(
55 const OUString
& aPropertyName
,
56 const css::uno::Reference
< css::beans::XPropertyChangeListener
>& ) override
;
57 virtual void SAL_CALL
removePropertyChangeListener(
58 const OUString
& aPropertyName
,
59 const css::uno::Reference
< css::beans::XPropertyChangeListener
>& ) override
;
60 virtual void SAL_CALL
addVetoableChangeListener(
61 const OUString
& aPropertyName
,
62 const css::uno::Reference
< css::beans::XVetoableChangeListener
>& ) override
;
63 virtual void SAL_CALL
removeVetoableChangeListener(
64 const OUString
& aPropertyName
,
65 const css::uno::Reference
< css::beans::XVetoableChangeListener
>& ) override
;
68 virtual css::uno::Sequence
< css::beans::PropertyValue
> SAL_CALL
getPropertyValues() override
;
69 virtual void SAL_CALL
setPropertyValues(const css::uno::Sequence
< css::beans::PropertyValue
>& PropertyValues_
) override
;
74 void RTL_Impl_CreatePropertySet( SbxArray
& rPar
);
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */