LibreOffice Module comphelper (master)  1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
comphelper::MasterPropertySet Class Referenceabstract

#include <MasterPropertySet.hxx>

Inheritance diagram for comphelper::MasterPropertySet:
[legend]
Collaboration diagram for comphelper::MasterPropertySet:
[legend]

Public Member Functions

 MasterPropertySet (comphelper::MasterPropertySetInfo *pInfo, SolarMutex *pMutex) throw ()
 
virtual ~MasterPropertySet () throw ()
 
void registerSlave (ChainablePropertySet *pNewSet) throw ()
 
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
 

Protected Member Functions

virtual void _preSetValues ()=0
 
virtual void _setSingleValue (const comphelper::PropertyInfo &rInfo, const css::uno::Any &rValue)=0
 
virtual void _postSetValues ()=0
 
virtual void _preGetValues ()=0
 
virtual void _getSingleValue (const comphelper::PropertyInfo &rInfo, css::uno::Any &rValue)=0
 
virtual void _postGetValues ()=0
 

Protected Attributes

SolarMutex *const mpMutex
 
sal_uInt8 mnLastId
 
std::map< sal_uInt8, comphelper::SlaveData * > maSlaveMap
 
rtl::Reference< MasterPropertySetInfomxInfo
 

Detailed Description

Definition at line 60 of file MasterPropertySet.hxx.

Constructor & Destructor Documentation

MasterPropertySet::MasterPropertySet ( comphelper::MasterPropertySetInfo pInfo,
comphelper::SolarMutex pMutex 
)
throw (
)

Definition at line 59 of file MasterPropertySet.cxx.

MasterPropertySet::~MasterPropertySet ( )
throw (
)
virtual

Definition at line 67 of file MasterPropertySet.cxx.

References maSlaveMap.

Member Function Documentation

virtual void comphelper::MasterPropertySet::_getSingleValue ( const comphelper::PropertyInfo rInfo,
css::uno::Any &  rValue 
)
protectedpure virtual
Exceptions
css::beans::UnknownPropertyException
css::lang::WrappedTargetException
css::uno::RuntimeException

Referenced by getPropertyValue(), and getPropertyValues().

virtual void comphelper::MasterPropertySet::_postGetValues ( )
protectedpure virtual
Exceptions
css::beans::UnknownPropertyException
css::beans::PropertyVetoException
css::lang::IllegalArgumentException
css::lang::WrappedTargetException

Referenced by getPropertyValue().

virtual void comphelper::MasterPropertySet::_postSetValues ( )
protectedpure virtual
Exceptions
css::beans::UnknownPropertyException
css::beans::PropertyVetoException
css::lang::IllegalArgumentException
css::lang::WrappedTargetException

Referenced by getPropertyValues(), setPropertyValue(), and setPropertyValues().

virtual void comphelper::MasterPropertySet::_preGetValues ( )
protectedpure virtual
Exceptions
css::beans::UnknownPropertyException
css::beans::PropertyVetoException
css::lang::IllegalArgumentException
css::lang::WrappedTargetException

Referenced by getPropertyValue(), and getPropertyValues().

virtual void comphelper::MasterPropertySet::_preSetValues ( )
protectedpure virtual
Exceptions
css::beans::UnknownPropertyException
css::beans::PropertyVetoException
css::lang::IllegalArgumentException
css::lang::WrappedTargetException

Referenced by setPropertyValue(), and setPropertyValues().

virtual void comphelper::MasterPropertySet::_setSingleValue ( const comphelper::PropertyInfo rInfo,
const css::uno::Any &  rValue 
)
protectedpure virtual
Exceptions
css::beans::UnknownPropertyException
css::beans::PropertyVetoException
css::lang::IllegalArgumentException
css::lang::WrappedTargetException
css::uno::RuntimeException

Referenced by setPropertyValue(), and setPropertyValues().

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

Definition at line 302 of file MasterPropertySet.cxx.

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

Definition at line 155 of file MasterPropertySet.cxx.

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

Definition at line 165 of file MasterPropertySet.cxx.

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

Definition at line 312 of file MasterPropertySet.cxx.

Any SAL_CALL MasterPropertySet::getPropertyDefault ( const OUString &  aPropertyName)
overridevirtual

Definition at line 384 of file MasterPropertySet.cxx.

References Any, and mxInfo.

Reference< XPropertySetInfo > SAL_CALL MasterPropertySet::getPropertySetInfo ( )
overridevirtual

Definition at line 75 of file MasterPropertySet.cxx.

References mxInfo.

PropertyState SAL_CALL MasterPropertySet::getPropertyState ( const OUString &  PropertyName)
overridevirtual
Sequence< PropertyState > SAL_CALL MasterPropertySet::getPropertyStates ( const css::uno::Sequence< OUString > &  aPropertyName)
overridevirtual
Any SAL_CALL MasterPropertySet::getPropertyValue ( const OUString &  PropertyName)
overridevirtual
Sequence< Any > SAL_CALL MasterPropertySet::getPropertyValues ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

! have a unique_ptr to an array of OGuards in order to have the ! allocated memory properly freed (exception safe!). ! Since the array itself has unique_ptrs as members we have to use a ! helper class 'AutoOGuardArray' in order to have ! the acquired locks properly released.

Definition at line 239 of file MasterPropertySet.cxx.

References _getSingleValue(), _postSetValues(), _preGetValues(), Any, i, comphelper::SlaveData::IsInit(), maSlaveMap, mpMutex, mxInfo, comphelper::SlaveData::mxSlave, and comphelper::SlaveData::SetInit().

void MasterPropertySet::registerSlave ( ChainablePropertySet pNewSet)
throw (
)

Definition at line 80 of file MasterPropertySet.cxx.

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

Definition at line 307 of file MasterPropertySet.cxx.

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

Definition at line 160 of file MasterPropertySet.cxx.

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

Definition at line 170 of file MasterPropertySet.cxx.

void SAL_CALL MasterPropertySet::setPropertyToDefault ( const OUString &  PropertyName)
overridevirtual

Definition at line 376 of file MasterPropertySet.cxx.

References mxInfo.

void SAL_CALL MasterPropertySet::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual
void SAL_CALL MasterPropertySet::setPropertyValues ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Sequence< css::uno::Any > &  aValues 
)
overridevirtual

! have a unique_ptr to an array of OGuards in order to have the ! allocated memory properly freed (exception safe!). ! Since the array itself has unique_ptrs as members we have to use a ! helper class 'AutoOGuardArray' in order to have ! the acquired locks properly released.

Definition at line 176 of file MasterPropertySet.cxx.

References _postSetValues(), _preSetValues(), _setSingleValue(), Any, i, comphelper::SlaveData::IsInit(), maSlaveMap, mpMutex, mxInfo, comphelper::SlaveData::mxSlave, and comphelper::SlaveData::SetInit().

Member Data Documentation

std::map< sal_uInt8, comphelper::SlaveData* > comphelper::MasterPropertySet::maSlaveMap
protected
sal_uInt8 comphelper::MasterPropertySet::mnLastId
protected

Definition at line 66 of file MasterPropertySet.hxx.

SolarMutex* const comphelper::MasterPropertySet::mpMutex
protected
rtl::Reference< MasterPropertySetInfo > comphelper::MasterPropertySet::mxInfo
protected

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