LibreOffice Module basic (master) 1
propacc.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 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
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>
27
28#include <vector>
29
30typedef std::vector<css::beans::PropertyValue> SbPropertyValueArr_Impl;
31typedef std::vector<comphelper::PropertyMapEntry> SbPropertyInfoArr_Impl;
32
33typedef ::cppu::WeakImplHelper< css::beans::XPropertySet,
34 css::beans::XPropertyAccess > SbPropertyValuesHelper;
35
36
38{
41 css::uno::Reference< css::beans::XPropertySetInfo > m_xInfo;
42
43private:
44 size_t GetIndex_Impl( const OUString &rPropName ) const;
45
46public:
48 virtual ~SbPropertyValues() override;
49
50 // XPropertySet
51 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
52 getPropertySetInfo() override;
53 virtual void SAL_CALL setPropertyValue(
54 const OUString& aPropertyName,
55 const css::uno::Any& aValue) override;
56 virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
57 virtual void SAL_CALL addPropertyChangeListener(
58 const OUString& aPropertyName,
59 const css::uno::Reference< css::beans::XPropertyChangeListener >& ) override;
60 virtual void SAL_CALL removePropertyChangeListener(
61 const OUString& aPropertyName,
62 const css::uno::Reference< css::beans::XPropertyChangeListener >& ) override;
63 virtual void SAL_CALL addVetoableChangeListener(
64 const OUString& aPropertyName,
65 const css::uno::Reference< css::beans::XVetoableChangeListener >& ) override;
66 virtual void SAL_CALL removeVetoableChangeListener(
67 const OUString& aPropertyName,
68 const css::uno::Reference< css::beans::XVetoableChangeListener >& ) override;
69
70 // XPropertyAccess
71 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPropertyValues() override;
72 virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< css::beans::PropertyValue >& PropertyValues_) override;
73};
74
75class SbxArray;
76
78
79/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
size_t GetIndex_Impl(const OUString &rPropName) const
Definition: propacc.cxx:66
css::uno::Reference< css::beans::XPropertySetInfo > m_xInfo
Definition: propacc.hxx:41
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &) override
Definition: propacc.cxx:105
virtual void SAL_CALL removeVetoableChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &) override
Definition: propacc.cxx:117
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPropertyValues() override
Definition: propacc.cxx:123
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< css::beans::PropertyValue > &PropertyValues_) override
Definition: propacc.cxx:129
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: propacc.cxx:81
SbPropertyValueArr_Impl m_aPropVals
Definition: propacc.hxx:39
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &) override
Definition: propacc.cxx:99
virtual ~SbPropertyValues() override
virtual void SAL_CALL addVetoableChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &) override
Definition: propacc.cxx:111
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: propacc.cxx:91
SbPropertyInfoArr_Impl m_aPropInfos
Definition: propacc.hxx:40
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: propacc.cxx:52
Definition: sbx.hxx:95
std::vector< comphelper::PropertyMapEntry > SbPropertyInfoArr_Impl
Definition: propacc.hxx:31
std::vector< css::beans::PropertyValue > SbPropertyValueArr_Impl
Definition: propacc.hxx:30
::cppu::WeakImplHelper< css::beans::XPropertySet, css::beans::XPropertyAccess > SbPropertyValuesHelper
Definition: propacc.hxx:34
void RTL_Impl_CreatePropertySet(SbxArray &rPar)
Definition: propacc.cxx:141