LibreOffice Module chart2 (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
chart::WrappedPropertySet Class Referenceabstract

#include <WrappedPropertySet.hxx>

Inheritance diagram for chart::WrappedPropertySet:
[legend]
Collaboration diagram for chart::WrappedPropertySet:
[legend]

Public Member Functions

 WrappedPropertySet ()
 
virtual ~WrappedPropertySet () override
 
void clearWrappedPropertySet ()
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL setPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames) override
 
virtual void SAL_CALL addPropertiesChangeListener (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual void SAL_CALL firePropertiesChangeEvent (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual css::beans::PropertyState SAL_CALL getPropertyState (const OUString &PropertyName) override
 
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override
 
virtual void SAL_CALL setPropertyToDefault (const OUString &PropertyName) override
 
virtual css::uno::Any SAL_CALL getPropertyDefault (const OUString &aPropertyName) override
 
virtual void SAL_CALL setAllPropertiesToDefault () override
 
virtual void SAL_CALL setPropertiesToDefault (const css::uno::Sequence< OUString > &aPropertyNames) override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyDefaults (const css::uno::Sequence< OUString > &aPropertyNames) override
 

Protected Member Functions

virtual const css::uno::Sequence< css::beans::Property > & getPropertySequence ()=0
 give all the properties that should be visible to the outer side More...
 
virtual std::vector< std::unique_ptr< WrappedProperty > > createWrappedProperties ()=0
 give a list of all properties that need a special treatment; properties that are not in this list will be wrapped identical. More...
 
virtual css::uno::Reference< css::beans::XPropertySetgetInnerPropertySet ()=0
 
SAL_DLLPRIVATE css::uno::Reference< css::beans::XPropertyState > getInnerPropertyState ()
 
::cppu::IPropertyArrayHelpergetInfoHelper ()
 
SAL_DLLPRIVATE tWrappedPropertyMapgetWrappedPropertyMap ()
 
const WrappedPropertygetWrappedProperty (const OUString &rOuterName)
 
const WrappedPropertygetWrappedProperty (sal_Int32 nHandle)
 

Protected Attributes

std::mutex m_aMutex
 

Private Attributes

css::uno::Reference< css::beans::XPropertySetInfo > m_xInfo
 
std::unique_ptr<::cppu::OPropertyArrayHelperm_pPropertyArrayHelper
 
std::unique_ptr< tWrappedPropertyMapm_pWrappedPropertyMap
 

Detailed Description

Definition at line 39 of file WrappedPropertySet.hxx.

Constructor & Destructor Documentation

◆ WrappedPropertySet()

chart::WrappedPropertySet::WrappedPropertySet ( )

Definition at line 34 of file WrappedPropertySet.cxx.

◆ ~WrappedPropertySet()

chart::WrappedPropertySet::~WrappedPropertySet ( )
overridevirtual

Definition at line 37 of file WrappedPropertySet.cxx.

References clearWrappedPropertySet().

Member Function Documentation

◆ addPropertiesChangeListener()

void SAL_CALL chart::WrappedPropertySet::addPropertiesChangeListener ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener 
)
overridevirtual

Definition at line 260 of file WrappedPropertySet.cxx.

◆ addPropertyChangeListener()

void SAL_CALL chart::WrappedPropertySet::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

◆ addVetoableChangeListener()

void SAL_CALL chart::WrappedPropertySet::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

◆ clearWrappedPropertySet()

void chart::WrappedPropertySet::clearWrappedPropertySet ( )

Definition at line 47 of file WrappedPropertySet.cxx.

References m_pPropertyArrayHelper, m_pWrappedPropertyMap, and m_xInfo.

Referenced by ~WrappedPropertySet().

◆ createWrappedProperties()

virtual std::vector< std::unique_ptr< WrappedProperty > > chart::WrappedPropertySet::createWrappedProperties ( )
protectedpure virtual

give a list of all properties that need a special treatment; properties that are not in this list will be wrapped identical.

The base class 'WrappedPropertySet' will take ownership on the contained pointer. It is not allowed to have duplicate entries in this list.

Referenced by getWrappedPropertyMap().

◆ firePropertiesChangeEvent()

void SAL_CALL chart::WrappedPropertySet::firePropertiesChangeEvent ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener 
)
overridevirtual

Definition at line 270 of file WrappedPropertySet.cxx.

◆ getInfoHelper()

cppu::IPropertyArrayHelper & chart::WrappedPropertySet::getInfoHelper ( )
protected

◆ getInnerPropertySet()

virtual css::uno::Reference< css::beans::XPropertySet > chart::WrappedPropertySet::getInnerPropertySet ( )
protectedpure virtual

◆ getInnerPropertyState()

Reference< beans::XPropertyState > chart::WrappedPropertySet::getInnerPropertyState ( )
protected

◆ getPropertyDefault()

Any SAL_CALL chart::WrappedPropertySet::getPropertyDefault ( const OUString &  aPropertyName)
overridevirtual

◆ getPropertyDefaults()

Sequence< Any > SAL_CALL chart::WrappedPropertySet::getPropertyDefaults ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Definition at line 366 of file WrappedPropertySet.cxx.

References getPropertyDefault().

◆ getPropertySequence()

virtual const css::uno::Sequence< css::beans::Property > & chart::WrappedPropertySet::getPropertySequence ( )
protectedpure virtual

give all the properties that should be visible to the outer side

Referenced by getInfoHelper(), and setAllPropertiesToDefault().

◆ getPropertySetInfo()

Reference< beans::XPropertySetInfo > SAL_CALL chart::WrappedPropertySet::getPropertySetInfo ( )
overridevirtual

◆ getPropertyState()

beans::PropertyState SAL_CALL chart::WrappedPropertySet::getPropertyState ( const OUString &  PropertyName)
overridevirtual

◆ getPropertyStates()

Sequence< beans::PropertyState > SAL_CALL chart::WrappedPropertySet::getPropertyStates ( const css::uno::Sequence< OUString > &  aPropertyName)
overridevirtual

Definition at line 307 of file WrappedPropertySet.cxx.

References getPropertyState().

◆ getPropertyValue()

Any SAL_CALL chart::WrappedPropertySet::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

◆ getPropertyValues()

Sequence< Any > SAL_CALL chart::WrappedPropertySet::getPropertyValues ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Definition at line 234 of file WrappedPropertySet.cxx.

References DBG_UNHANDLED_EXCEPTION, and getPropertyValue().

◆ getWrappedProperty() [1/2]

const WrappedProperty * chart::WrappedPropertySet::getWrappedProperty ( const OUString &  rOuterName)
protected

◆ getWrappedProperty() [2/2]

const WrappedProperty * chart::WrappedPropertySet::getWrappedProperty ( sal_Int32  nHandle)
protected

Definition at line 299 of file WrappedPropertySet.cxx.

References end, find(), getWrappedPropertyMap(), and nHandle.

◆ getWrappedPropertyMap()

tWrappedPropertyMap & chart::WrappedPropertySet::getWrappedPropertyMap ( )
protected

◆ removePropertiesChangeListener()

void SAL_CALL chart::WrappedPropertySet::removePropertiesChangeListener ( const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener)
overridevirtual

Definition at line 265 of file WrappedPropertySet.cxx.

◆ removePropertyChangeListener()

void SAL_CALL chart::WrappedPropertySet::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

◆ removeVetoableChangeListener()

void SAL_CALL chart::WrappedPropertySet::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

◆ setAllPropertiesToDefault()

void SAL_CALL chart::WrappedPropertySet::setAllPropertiesToDefault ( )
overridevirtual

Definition at line 351 of file WrappedPropertySet.cxx.

References getPropertySequence(), and setPropertyToDefault().

◆ setPropertiesToDefault()

void SAL_CALL chart::WrappedPropertySet::setPropertiesToDefault ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Definition at line 359 of file WrappedPropertySet.cxx.

References setPropertyToDefault().

◆ setPropertyToDefault()

void SAL_CALL chart::WrappedPropertySet::setPropertyToDefault ( const OUString &  PropertyName)
overridevirtual

◆ setPropertyValue()

void SAL_CALL chart::WrappedPropertySet::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

◆ setPropertyValues()

void SAL_CALL chart::WrappedPropertySet::setPropertyValues ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Sequence< css::uno::Any > &  aValues 
)
overridevirtual

Definition at line 212 of file WrappedPropertySet.cxx.

References DBG_UNHANDLED_EXCEPTION, and setPropertyValue().

Member Data Documentation

◆ m_aMutex

std::mutex chart::WrappedPropertySet::m_aMutex
protected

Definition at line 105 of file WrappedPropertySet.hxx.

◆ m_pPropertyArrayHelper

std::unique_ptr<::cppu::OPropertyArrayHelper> chart::WrappedPropertySet::m_pPropertyArrayHelper
private

Definition at line 110 of file WrappedPropertySet.hxx.

Referenced by clearWrappedPropertySet(), and getInfoHelper().

◆ m_pWrappedPropertyMap

std::unique_ptr<tWrappedPropertyMap> chart::WrappedPropertySet::m_pWrappedPropertyMap
private

Definition at line 112 of file WrappedPropertySet.hxx.

Referenced by clearWrappedPropertySet(), and getWrappedPropertyMap().

◆ m_xInfo

css::uno::Reference< css::beans::XPropertySetInfo > chart::WrappedPropertySet::m_xInfo
private

Definition at line 108 of file WrappedPropertySet.hxx.

Referenced by clearWrappedPropertySet(), and getPropertySetInfo().


The documentation for this class was generated from the following files: