LibreOffice LibreOffice 24.2 SDK C/C++ API Reference

Loading...
Searching...
No Matches
propshlp.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
20/*
21 * This file is part of LibreOffice published API.
22 */
23
24#ifndef INCLUDED_CPPUHELPER_PROPSHLP_HXX
25#define INCLUDED_CPPUHELPER_PROPSHLP_HXX
26
27#include "rtl/alloc.h"
28
29#include "cppuhelper/interfacecontainer.h"
30
31#include "com/sun/star/beans/XPropertySet.hpp"
32#include "com/sun/star/beans/XPropertySetOption.hpp"
33#include "com/sun/star/beans/XMultiPropertySet.hpp"
34#include "com/sun/star/beans/XFastPropertySet.hpp"
35
36#include "cppuhelper/cppuhelperdllapi.h"
37
38
39 namespace cppu
40{
41
42
43/*************************************************************************
44*************************************************************************/
45
46
50 class SAL_WARN_UNUSED CPPUHELPER_DLLPUBLIC IPropertyArrayHelper
51{
52 public:
53 // these are here to force memory de/allocation to sal lib.
54 static void * SAL_CALL operator new( size_t nSize )
55 { return ::rtl_allocateMemory( nSize ); }
56 static void SAL_CALL operator delete( void * pMem )
57 { ::rtl_freeMemory( pMem ); }
58 static void * SAL_CALL operator new( size_t, void * pMem )
59 { return pMem; }
60 static void SAL_CALL operator delete( void *, void * )
61 {}
62
66 virtual ~IPropertyArrayHelper();
67
79 virtual sal_Bool SAL_CALL fillPropertyMembersByHandle(
80 ::rtl::OUString * pPropName, sal_Int16 * pAttributes, sal_Int32 nHandle ) = 0;
84 virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties() = 0;
90 virtual css::beans::Property SAL_CALL getPropertyByName(
91 const ::rtl::OUString& rPropertyName ) = 0;
96 virtual sal_Bool SAL_CALL hasPropertyByName(const ::rtl::OUString& rPropertyName) = 0;
102 virtual sal_Int32 SAL_CALL getHandleByName( const ::rtl::OUString & rPropertyName ) = 0;
108 virtual sal_Int32 SAL_CALL fillHandles(
109 /*out*/ sal_Int32 * pHandles, const css::uno::Sequence< ::rtl::OUString > & rPropNames ) = 0;
110};
111
116 class SAL_WARN_UNUSED CPPUHELPER_DLLPUBLIC OPropertyArrayHelper : public IPropertyArrayHelper
117{
118 public:
127 OPropertyArrayHelper(
128 css::beans::Property *pProps,
129 sal_Int32 nElements ,
130 sal_Bool bSorted = true );
131
138 OPropertyArrayHelper(
139 const css::uno::Sequence< css::beans::Property > & aProps,
140 sal_Bool bSorted = true );
141
145 sal_Int32 SAL_CALL getCount() const;
158 virtual sal_Bool SAL_CALL fillPropertyMembersByHandle(
159 ::rtl::OUString * pPropName, sal_Int16 * pAttributes, sal_Int32 nHandle ) SAL_OVERRIDE;
163 virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties() SAL_OVERRIDE;
169 virtual css::beans::Property SAL_CALL getPropertyByName(
170 const ::rtl::OUString& rPropertyName ) SAL_OVERRIDE;
175 virtual sal_Bool SAL_CALL hasPropertyByName(const ::rtl::OUString& rPropertyName) SAL_OVERRIDE;
181 virtual sal_Int32 SAL_CALL getHandleByName( const ::rtl::OUString & rPropertyName ) SAL_OVERRIDE;
187 virtual sal_Int32 SAL_CALL fillHandles(
188 /*out*/sal_Int32 * pHandles, const css::uno::Sequence< ::rtl::OUString > & rPropNames ) SAL_OVERRIDE;
189
190protected:
193 void * m_pReserved;
194
195private:
196 void init( sal_Bool bSorted );
197
199 css::uno::Sequence< css::beans::Property > aInfos;
200
205 sal_Bool bRightOrdered;
206};
207
208
209// helper defines needed for an interface container with a 32 bit key values
210
211struct equalInt32_Impl
212{
213 bool operator()(const sal_Int32 & i1 , const sal_Int32 & i2) const
214 { return i1 == i2; }
215};
216
217 struct hashInt32_Impl
218{
219 size_t operator()(const sal_Int32 & i) const
220 { return i; }
221};
222
226 class SAL_WARN_UNUSED CPPUHELPER_DLLPUBLIC OMultiTypeInterfaceContainerHelperInt32
227{
228 public:
229 // these are here to force memory de/allocation to sal lib.
230 static void * SAL_CALL operator new( size_t nSize )
231 { return ::rtl_allocateMemory( nSize ); }
232 static void SAL_CALL operator delete( void * pMem )
233 { ::rtl_freeMemory( pMem ); }
234 static void * SAL_CALL operator new( size_t, void * pMem )
235 { return pMem; }
236 static void SAL_CALL operator delete( void *, void * )
237 {}
238
246 OMultiTypeInterfaceContainerHelperInt32( ::osl::Mutex & rMutex );
250 ~OMultiTypeInterfaceContainerHelperInt32();
251
255 css::uno::Sequence< sal_Int32 > SAL_CALL getContainedTypes() const;
256
262 OInterfaceContainerHelper * SAL_CALL getContainer( const sal_Int32 & rKey ) const;
263
271 sal_Int32 SAL_CALL addInterface(
272 const sal_Int32 & rKey,
273 const css::uno::Reference< css::uno::XInterface > & r );
274
282 sal_Int32 SAL_CALL removeInterface(
283 const sal_Int32 & rKey,
284 const css::uno::Reference< css::uno::XInterface > & rxIFace );
285
290 void SAL_CALL disposeAndClear( const css::lang::EventObject & rEvt );
294 void SAL_CALL clear();
295
296 typedef sal_Int32 keyType;
297 private:
298 void * m_pMap;
299 ::osl::Mutex & rMutex;
300
301 OMultiTypeInterfaceContainerHelperInt32( const OMultiTypeInterfaceContainerHelperInt32 & ) SAL_DELETED_FUNCTION;
302 OMultiTypeInterfaceContainerHelperInt32 & operator = ( const OMultiTypeInterfaceContainerHelperInt32 & )SAL_DELETED_FUNCTION;
303};
304
305
308 class IEventNotificationHook
309{
310 public:
330 virtual void fireEvents(
331 sal_Int32 * pnHandles,
332 sal_Int32 nCount,
333 sal_Bool bVetoable,
334 bool bIgnoreRuntimeExceptionsWhileFiring) = 0;
335
336#if !defined _MSC_VER // public -> protected changes mangled names there
337 protected:
338#endif
339 ~IEventNotificationHook() {}
340 // avoid warnings about virtual members and non-virtual dtor
341};
342
343
356 class CPPUHELPER_DLLPUBLIC OPropertySetHelper :
357 public css::beans::XMultiPropertySet,
358 public css::beans::XFastPropertySet,
359 public css::beans::XPropertySet
360{
361 public:
368 OPropertySetHelper( OBroadcastHelper & rBHelper );
369
388 OPropertySetHelper(
389 OBroadcastHelper & rBHelper, bool bIgnoreRuntimeExceptionsWhileFiring );
390
412 OPropertySetHelper(
413 OBroadcastHelper & rBHelper,
414 IEventNotificationHook *i_pFireEvents,
415 bool bIgnoreRuntimeExceptionsWhileFiring = false);
416
421 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) SAL_OVERRIDE;
422
427 css::uno::Sequence< css::uno::Type > getTypes();
428
435 void SAL_CALL disposing();
436
442 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& rPropertyName, const css::uno::Any& aValue ) SAL_OVERRIDE;
447 virtual css::uno::Any SAL_CALL getPropertyValue(const ::rtl::OUString& aPropertyName) SAL_OVERRIDE;
449 virtual void SAL_CALL addPropertyChangeListener(
450 const ::rtl::OUString& aPropertyName,
451 const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener) SAL_OVERRIDE;
452
454 virtual void SAL_CALL removePropertyChangeListener(
455 const ::rtl::OUString& aPropertyName,
456 const css::uno::Reference < css::beans::XPropertyChangeListener >& aListener) SAL_OVERRIDE;
457
459 virtual void SAL_CALL addVetoableChangeListener(
460 const ::rtl::OUString& aPropertyName,
461 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener) SAL_OVERRIDE;
462
464 virtual void SAL_CALL removeVetoableChangeListener(
465 const ::rtl::OUString& aPropertyName,
466 const css::uno::Reference< css::beans::XVetoableChangeListener > & aListener ) SAL_OVERRIDE;
467
475 virtual void SAL_CALL setFastPropertyValue( sal_Int32 nHandle, const css::uno::Any& rValue ) SAL_OVERRIDE;
476
481 virtual css::uno::Any SAL_CALL getFastPropertyValue( sal_Int32 nHandle ) SAL_OVERRIDE;
482
483 // XMultiPropertySet
484 virtual void SAL_CALL setPropertyValues(
485 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
486 const css::uno::Sequence< css::uno::Any >& Values ) SAL_OVERRIDE;
487
488 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues(
489 const css::uno::Sequence< ::rtl::OUString >& PropertyNames ) SAL_OVERRIDE;
490
491 virtual void SAL_CALL addPropertiesChangeListener(
492 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
493 const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener ) SAL_OVERRIDE;
494
495 virtual void SAL_CALL removePropertiesChangeListener(
496 const css::uno::Reference< css::beans::XPropertiesChangeListener >& Listener ) SAL_OVERRIDE;
497
498 virtual void SAL_CALL firePropertiesChangeEvent(
499 const css::uno::Sequence< ::rtl::OUString >& PropertyNames,
500 const css::uno::Reference< css::beans::XPropertiesChangeListener > & Listener ) SAL_OVERRIDE;
501
505 static css::uno::Reference < css::beans::XPropertySetInfo > SAL_CALL
506 createPropertySetInfo( IPropertyArrayHelper & rProperties );
507 protected:
517 void SAL_CALL fire(
518 sal_Int32 * pnHandles,
519 const css::uno::Any * pNewValues,
520 const css::uno::Any * pOldValues,
521 sal_Int32 nCount,
522 sal_Bool bVetoable );
523
533 void SAL_CALL setFastPropertyValues(
534 sal_Int32 nSeqLen,
535 sal_Int32 * pHandles,
536 const css::uno::Any * pValues,
537 sal_Int32 nHitCount );
538
543 virtual IPropertyArrayHelper & SAL_CALL getInfoHelper() = 0;
544
560 virtual sal_Bool SAL_CALL convertFastPropertyValue(
561 css::uno::Any & rConvertedValue,
562 css::uno::Any & rOldValue,
563 sal_Int32 nHandle,
564 const css::uno::Any& rValue ) = 0;
565
585 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
586 sal_Int32 nHandle,
587 const css::uno::Any& rValue ) = 0;
593 virtual void SAL_CALL getFastPropertyValue(
594 css::uno::Any& rValue,
595 sal_Int32 nHandle ) const = 0;
596
615 void setDependentFastPropertyValue(
616 sal_Int32 i_handle,
617 const css::uno::Any& i_value
618 );
619
621 OBroadcastHelper &rBHelper;
625 OMultiTypeInterfaceContainerHelperInt32 aBoundLC;
629 OMultiTypeInterfaceContainerHelperInt32 aVetoableLC;
630
631 class Impl;
632
635 Impl * const m_pReserved;
636
637 private:
638 OPropertySetHelper( const OPropertySetHelper & ) SAL_DELETED_FUNCTION;
639 OPropertySetHelper & operator = ( const OPropertySetHelper & )
640 SAL_DELETED_FUNCTION;
641
645 void impl_fireAll(
646 sal_Int32* i_handles,
647 const css::uno::Any * i_newValues,
648 const css::uno::Any * i_oldValues,
649 sal_Int32 i_count
650 );
651
652#if defined _MSC_VER // public -> protected changes mangled names there
653 public:
654#else
655 protected:
656#endif
660 ~OPropertySetHelper();
661};
662
670 class CPPUHELPER_DLLPUBLIC OPropertySetHelper2 : public OPropertySetHelper,
671 public css::beans::XPropertySetOption
672{
673 public:
678 explicit OPropertySetHelper2(
679 OBroadcastHelper & rBHelper,
680 IEventNotificationHook *i_pFireEvents = NULL,
681 bool bIgnoreRuntimeExceptionsWhileFiring = false);
682
683 // XInterface
684 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) SAL_OVERRIDE;
685
686 // XPropertySetOption
687 virtual void SAL_CALL enableChangeListenerNotification( sal_Bool bEnable ) SAL_OVERRIDE;
688
689
690 private:
691 OPropertySetHelper2( const OPropertySetHelper2 & ) SAL_DELETED_FUNCTION;
692 OPropertySetHelper2 & operator = ( const OPropertySetHelper2 & )
693 SAL_DELETED_FUNCTION;
694
695#if defined _MSC_VER // public -> protected changes mangled names there
696 public:
697#else
698 protected:
699#endif
700// Suppress warning about virtual functions but non-virtual destructor:
704 virtual ~OPropertySetHelper2();
705};
706
707} // end namespace cppuhelper
708#endif
709
710
711/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SAL_DELETED_FUNCTION
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition types.h:378
sal_Bool
unsigned char sal_Bool
Definition types.h:38
SAL_OVERRIDE
#define SAL_OVERRIDE
C++11 "override" feature.
Definition types.h:391
SAL_WARN_UNUSED
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition types.h:587
alloc.h
rtl_freeMemory
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
interfacecontainer.h
cppuhelperdllapi.h
CPPUHELPER_DLLPUBLIC
#define CPPUHELPER_DLLPUBLIC
Definition cppuhelperdllapi.h:32
com::sun::star
Definition types.h:359
rtl
Definition bootstrap.hxx:34
cppu
Definition Enterable.hxx:31
rtl::OUString
This String class provides base functionality for C++ like Unicode character array handling.
Definition ustring.hxx:171
osl::Mutex
A mutual exclusion synchronization object.
Definition mutex.hxx:35
cppu::OInterfaceContainerHelper
A container of interfaces.
Definition interfacecontainer.h:132
cppu::OBroadcastHelperVar
This struct contains the standard variables of a broadcaster.
Definition interfacecontainer.h:440
cppu::IPropertyArrayHelper
This interface is used by the OPropertyHelper, to access the property description.
Definition propshlp.hxx:51
cppu::IPropertyArrayHelper::hasPropertyByName
virtual sal_Bool hasPropertyByName(const ::rtl::OUString &rPropertyName)=0
Return true if the property with the name rPropertyName exist, otherwise false.
cppu::IPropertyArrayHelper::getPropertyByName
virtual css::beans::Property getPropertyByName(const ::rtl::OUString &rPropertyName)=0
Return the property with the name rPropertyName.
cppu::IPropertyArrayHelper::~IPropertyArrayHelper
virtual ~IPropertyArrayHelper()
Following the rule, the first virtual method implies a virtual destructor.
cppu::IPropertyArrayHelper::fillPropertyMembersByHandle
virtual sal_Bool fillPropertyMembersByHandle(::rtl::OUString *pPropName, sal_Int16 *pAttributes, sal_Int32 nHandle)=0
Return the property members Name and Attribute from the handle nHandle.
cppu::IPropertyArrayHelper::fillHandles
virtual sal_Int32 fillHandles(sal_Int32 *pHandles, const css::uno::Sequence< ::rtl::OUString > &rPropNames)=0
Fill the array with the handles of the properties.
cppu::IPropertyArrayHelper::getProperties
virtual css::uno::Sequence< css::beans::Property > getProperties()=0
Return the sequence of properties.
cppu::IPropertyArrayHelper::getHandleByName
virtual sal_Int32 getHandleByName(const ::rtl::OUString &rPropertyName)=0
Return the handle of the property with the name rPropertyName.
cppu::OPropertyArrayHelper
You can use this helper class to map a XPropertySet-Interface to a XFast- or a XMultiPropertySet inte...
Definition propshlp.hxx:117
cppu::OPropertyArrayHelper::getCount
sal_Int32 getCount() const
Return the number of properties.
cppu::OPropertyArrayHelper::OPropertyArrayHelper
OPropertyArrayHelper(const css::uno::Sequence< css::beans::Property > &aProps, sal_Bool bSorted=true)
Create an object which supports the common property interfaces.
cppu::OPropertyArrayHelper::getProperties
virtual css::uno::Sequence< css::beans::Property > getProperties() SAL_OVERRIDE
Return the sequence of properties.
cppu::OPropertyArrayHelper::OPropertyArrayHelper
OPropertyArrayHelper(css::beans::Property *pProps, sal_Int32 nElements, sal_Bool bSorted=true)
Create an object which supports the common property interfaces.
cppu::OPropertyArrayHelper::fillPropertyMembersByHandle
virtual sal_Bool fillPropertyMembersByHandle(::rtl::OUString *pPropName, sal_Int16 *pAttributes, sal_Int32 nHandle) SAL_OVERRIDE
Return the property members Name and Attribute from the handle nHandle.
cppu::equalInt32_Impl
Definition propshlp.hxx:212
cppu::equalInt32_Impl::operator()
bool operator()(const sal_Int32 &i1, const sal_Int32 &i2) const
Definition propshlp.hxx:213
cppu::hashInt32_Impl
Definition propshlp.hxx:218
cppu::hashInt32_Impl::operator()
size_t operator()(const sal_Int32 &i) const
Definition propshlp.hxx:219
cppu::OMultiTypeInterfaceContainerHelperInt32
Specialized class for key type sal_Int32, without explicit usage of STL symbols.
Definition propshlp.hxx:227
cppu::OMultiTypeInterfaceContainerHelperInt32::addInterface
sal_Int32 addInterface(const sal_Int32 &rKey, const css::uno::Reference< css::uno::XInterface > &r)
Insert an element in the container specified with the key.
cppu::OMultiTypeInterfaceContainerHelperInt32::clear
void clear()
Remove all elements of all containers.
cppu::OMultiTypeInterfaceContainerHelperInt32::getContainedTypes
css::uno::Sequence< sal_Int32 > getContainedTypes() const
Return all id's under which at least one interface is added.
cppu::OMultiTypeInterfaceContainerHelperInt32::keyType
sal_Int32 keyType
Definition propshlp.hxx:296
cppu::OMultiTypeInterfaceContainerHelperInt32::~OMultiTypeInterfaceContainerHelperInt32
~OMultiTypeInterfaceContainerHelperInt32()
Delete all containers.
cppu::OMultiTypeInterfaceContainerHelperInt32::removeInterface
sal_Int32 removeInterface(const sal_Int32 &rKey, const css::uno::Reference< css::uno::XInterface > &rxIFace)
Remove an element from the container specified with the key.
cppu::OMultiTypeInterfaceContainerHelperInt32::OMultiTypeInterfaceContainerHelperInt32
OMultiTypeInterfaceContainerHelperInt32(::osl::Mutex &rMutex)
Create a container of interface containers.
cppu::OMultiTypeInterfaceContainerHelperInt32::disposeAndClear
void disposeAndClear(const css::lang::EventObject &rEvt)
Call disposing on all objects in the container that support XEventListener.
cppu::OMultiTypeInterfaceContainerHelperInt32::getContainer
OInterfaceContainerHelper * getContainer(const sal_Int32 &rKey) const
Return the container created under this key.
cppu::IEventNotificationHook
An interface to extend event notification actions.
Definition propshlp.hxx:309
cppu::IEventNotificationHook::fireEvents
virtual void fireEvents(sal_Int32 *pnHandles, sal_Int32 nCount, sal_Bool bVetoable, bool bIgnoreRuntimeExceptionsWhileFiring)=0
Method to be called by OPropertySetHelper::fire.
cppu::IEventNotificationHook::~IEventNotificationHook
~IEventNotificationHook()
Definition propshlp.hxx:339
cppu::OPropertySetHelper
This abstract class maps the methods of the interfaces XMultiPropertySet, XFastPropertySet and XPrope...
Definition propshlp.hxx:360
cppu::OPropertySetHelper::convertFastPropertyValue
virtual sal_Bool convertFastPropertyValue(css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)=0
Converted the value rValue and return the result in rConvertedValue and the old value in rOldValue.
cppu::OPropertySetHelper::setDependentFastPropertyValue
void setDependentFastPropertyValue(sal_Int32 i_handle, const css::uno::Any &i_value)
sets an dependent property's value
cppu::OPropertySetHelper::removeVetoableChangeListener
virtual void removeVetoableChangeListener(const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE
Ignored if the property is not constrained.
cppu::OPropertySetHelper::getInfoHelper
virtual IPropertyArrayHelper & getInfoHelper()=0
This abstract method must return the name to index table.
cppu::OPropertySetHelper::setFastPropertyValues
void setFastPropertyValues(sal_Int32 nSeqLen, sal_Int32 *pHandles, const css::uno::Any *pValues, sal_Int32 nHitCount)
Set multiple properties with the handles.
cppu::OPropertySetHelper::firePropertiesChangeEvent
virtual void firePropertiesChangeEvent(const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE
cppu::OPropertySetHelper::getPropertyValues
virtual css::uno::Sequence< css::uno::Any > getPropertyValues(const css::uno::Sequence< ::rtl::OUString > &PropertyNames) SAL_OVERRIDE
cppu::OPropertySetHelper::setPropertyValue
virtual void setPropertyValue(const ::rtl::OUString &rPropertyName, const css::uno::Any &aValue) SAL_OVERRIDE
Throw UnknownPropertyException or PropertyVetoException if the property with the name rPropertyName d...
cppu::OPropertySetHelper::m_pReserved
Impl *const m_pReserved
reserved for future use.
Definition propshlp.hxx:635
cppu::OPropertySetHelper::~OPropertySetHelper
~OPropertySetHelper()
You must call disposing before destruction.
cppu::OPropertySetHelper::getFastPropertyValue
virtual void getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const =0
The same as getFastPropertyValue, but return the value through rValue and nHandle is always valid.
cppu::OPropertySetHelper::aBoundLC
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
Container for the XPropertyChangedListener.
Definition propshlp.hxx:625
cppu::OPropertySetHelper::setFastPropertyValue_NoBroadcast
virtual void setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue)=0
The same as setFastPropertyValue; nHandle is always valid.
cppu::OPropertySetHelper::setFastPropertyValue
virtual void setFastPropertyValue(sal_Int32 nHandle, const css::uno::Any &rValue) SAL_OVERRIDE
Throw UnknownPropertyException or PropertyVetoException if the property with the name rPropertyName d...
cppu::OPropertySetHelper::disposing
void disposing()
Send a disposing notification to the listeners in the containers aBoundLC and aVetoableLC.
cppu::OPropertySetHelper::rBHelper
OBroadcastHelper & rBHelper
The common data of a broadcaster.
Definition propshlp.hxx:621
cppu::OPropertySetHelper::OPropertySetHelper
OPropertySetHelper(OBroadcastHelper &rBHelper, bool bIgnoreRuntimeExceptionsWhileFiring)
Constructor.
cppu::OPropertySetHelper::queryInterface
virtual css::uno::Any queryInterface(const css::uno::Type &rType) SAL_OVERRIDE
Only returns a reference to XMultiPropertySet, XFastPropertySet, XPropertySet and XEventListener.
cppu::OPropertySetHelper::getPropertyValue
virtual css::uno::Any getPropertyValue(const ::rtl::OUString &aPropertyName) SAL_OVERRIDE
Throw UnknownPropertyException if the property with the name rPropertyName does not exist.
cppu::OPropertySetHelper::aVetoableLC
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
Container for the XPropertyVetoableListener.
Definition propshlp.hxx:629
cppu::OPropertySetHelper::setPropertyValues
virtual void setPropertyValues(const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) SAL_OVERRIDE
cppu::OPropertySetHelper::OPropertySetHelper
OPropertySetHelper(OBroadcastHelper &rBHelper)
cppu::OPropertySetHelper::getFastPropertyValue
virtual css::uno::Any getFastPropertyValue(sal_Int32 nHandle) SAL_OVERRIDE
cppu::OPropertySetHelper::removePropertiesChangeListener
virtual void removePropertiesChangeListener(const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE
cppu::OPropertySetHelper::removePropertyChangeListener
virtual void removePropertyChangeListener(const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE
Ignored if the property is not bound.
cppu::OPropertySetHelper::OPropertySetHelper
OPropertySetHelper(OBroadcastHelper &rBHelper, IEventNotificationHook *i_pFireEvents, bool bIgnoreRuntimeExceptionsWhileFiring=false)
Constructor.
cppu::OPropertySetHelper::fire
void fire(sal_Int32 *pnHandles, const css::uno::Any *pNewValues, const css::uno::Any *pOldValues, sal_Int32 nCount, sal_Bool bVetoable)
This method fire events to all registered property listeners.
cppu::OPropertySetHelper::addPropertyChangeListener
virtual void addPropertyChangeListener(const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE
Ignored if the property is not bound.
cppu::OPropertySetHelper::addVetoableChangeListener
virtual void addVetoableChangeListener(const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE
Ignored if the property is not constrained.
cppu::OPropertySetHelper::addPropertiesChangeListener
virtual void addPropertiesChangeListener(const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE
cppu::OPropertySetHelper::getTypes
css::uno::Sequence< css::uno::Type > getTypes()
eases implementing XTypeProvider::getTypes, returns the types of XMultiPropertySet,...
cppu::OPropertySetHelper::createPropertySetInfo
static css::uno::Reference< css::beans::XPropertySetInfo > createPropertySetInfo(IPropertyArrayHelper &rProperties)
The property sequence is created in the call.
cppu::OPropertySetHelper2
OPropertySetHelper plus XPropertySetOption.
Definition propshlp.hxx:672
cppu::OPropertySetHelper2::enableChangeListenerNotification
virtual void enableChangeListenerNotification(sal_Bool bEnable) SAL_OVERRIDE
cppu::OPropertySetHelper2::queryInterface
virtual css::uno::Any queryInterface(const css::uno::Type &rType) SAL_OVERRIDE
Only returns a reference to XMultiPropertySet, XFastPropertySet, XPropertySet and XEventListener.
cppu::OPropertySetHelper2::OPropertySetHelper2
OPropertySetHelper2(OBroadcastHelper &rBHelper, IEventNotificationHook *i_pFireEvents=NULL, bool bIgnoreRuntimeExceptionsWhileFiring=false)
Constructor.
cppu::OPropertySetHelper2::~OPropertySetHelper2
virtual ~OPropertySetHelper2()
You must call disposing before destruction.