LibreOffice Module comphelper (master)
1
|
#include <MasterPropertySet.hxx>
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< MasterPropertySetInfo > | mxInfo |
Definition at line 60 of file MasterPropertySet.hxx.
MasterPropertySet::MasterPropertySet | ( | comphelper::MasterPropertySetInfo * | pInfo, |
comphelper::SolarMutex * | pMutex | ||
) | |||
throw | ( | ||
) |
Definition at line 63 of file MasterPropertySet.cxx.
|
virtual |
Definition at line 71 of file MasterPropertySet.cxx.
References maSlaveMap.
|
protectedpure virtual |
css::beans::UnknownPropertyException | |
css::lang::WrappedTargetException | |
css::uno::RuntimeException |
Referenced by getPropertyValue(), and getPropertyValues().
|
protectedpure virtual |
css::beans::UnknownPropertyException | |
css::beans::PropertyVetoException | |
css::lang::IllegalArgumentException | |
css::lang::WrappedTargetException |
Referenced by getPropertyValue().
|
protectedpure virtual |
css::beans::UnknownPropertyException | |
css::beans::PropertyVetoException | |
css::lang::IllegalArgumentException | |
css::lang::WrappedTargetException |
Referenced by getPropertyValues(), setPropertyValue(), and setPropertyValues().
|
protectedpure virtual |
css::beans::UnknownPropertyException | |
css::beans::PropertyVetoException | |
css::lang::IllegalArgumentException | |
css::lang::WrappedTargetException |
Referenced by getPropertyValue(), and getPropertyValues().
|
protectedpure virtual |
css::beans::UnknownPropertyException | |
css::beans::PropertyVetoException | |
css::lang::IllegalArgumentException | |
css::lang::WrappedTargetException |
Referenced by setPropertyValue(), and setPropertyValues().
|
protectedpure virtual |
css::beans::UnknownPropertyException | |
css::beans::PropertyVetoException | |
css::lang::IllegalArgumentException | |
css::lang::WrappedTargetException | |
css::uno::RuntimeException |
Referenced by setPropertyValue(), and setPropertyValues().
|
overridevirtual |
Definition at line 306 of file MasterPropertySet.cxx.
|
overridevirtual |
Definition at line 159 of file MasterPropertySet.cxx.
|
overridevirtual |
Definition at line 169 of file MasterPropertySet.cxx.
|
overridevirtual |
Definition at line 316 of file MasterPropertySet.cxx.
|
overridevirtual |
Definition at line 388 of file MasterPropertySet.cxx.
|
overridevirtual |
Definition at line 79 of file MasterPropertySet.cxx.
References mxInfo.
|
overridevirtual |
Definition at line 322 of file MasterPropertySet.cxx.
References maSlaveMap, comphelper::ChainablePropertySet::mpMutex, and mxInfo.
|
overridevirtual |
Definition at line 342 of file MasterPropertySet.cxx.
References i, comphelper::SlaveData::IsInit(), maSlaveMap, mxInfo, nCount, and comphelper::SlaveData::SetInit().
|
overridevirtual |
Definition at line 124 of file MasterPropertySet.cxx.
References _getSingleValue(), comphelper::ChainablePropertySet::_getSingleValue(), _postGetValues(), comphelper::ChainablePropertySet::_postGetValues(), _preGetValues(), comphelper::ChainablePropertySet::_preGetValues(), Any, maSlaveMap, mpMutex, comphelper::ChainablePropertySet::mpMutex, and mxInfo.
|
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 243 of file MasterPropertySet.cxx.
References _getSingleValue(), _postSetValues(), _preGetValues(), Any, i, comphelper::SlaveData::IsInit(), maSlaveMap, mpMutex, mxInfo, comphelper::SlaveData::mxSlave, nCount, and comphelper::SlaveData::SetInit().
void MasterPropertySet::registerSlave | ( | ChainablePropertySet * | pNewSet | ) | |
throw | ( | ||||
) |
Definition at line 84 of file MasterPropertySet.cxx.
|
overridevirtual |
Definition at line 311 of file MasterPropertySet.cxx.
|
overridevirtual |
Definition at line 164 of file MasterPropertySet.cxx.
|
overridevirtual |
Definition at line 174 of file MasterPropertySet.cxx.
|
overridevirtual |
Definition at line 380 of file MasterPropertySet.cxx.
References mxInfo.
|
overridevirtual |
Definition at line 91 of file MasterPropertySet.cxx.
References _postSetValues(), comphelper::ChainablePropertySet::_postSetValues(), _preSetValues(), comphelper::ChainablePropertySet::_preSetValues(), _setSingleValue(), comphelper::ChainablePropertySet::_setSingleValue(), maSlaveMap, mpMutex, comphelper::ChainablePropertySet::mpMutex, and mxInfo.
|
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 180 of file MasterPropertySet.cxx.
References _postSetValues(), _preSetValues(), _setSingleValue(), Any, i, comphelper::SlaveData::IsInit(), maSlaveMap, mpMutex, mxInfo, comphelper::SlaveData::mxSlave, nCount, and comphelper::SlaveData::SetInit().
|
protected |
Definition at line 67 of file MasterPropertySet.hxx.
Referenced by getPropertyState(), getPropertyStates(), getPropertyValue(), getPropertyValues(), setPropertyValue(), setPropertyValues(), and ~MasterPropertySet().
|
protected |
Definition at line 66 of file MasterPropertySet.hxx.
|
protected |
Definition at line 65 of file MasterPropertySet.hxx.
Referenced by getPropertyValue(), getPropertyValues(), setPropertyValue(), and setPropertyValues().
|
protected |
Definition at line 68 of file MasterPropertySet.hxx.
Referenced by getPropertyDefault(), getPropertySetInfo(), getPropertyState(), getPropertyStates(), getPropertyValue(), getPropertyValues(), setPropertyToDefault(), setPropertyValue(), and setPropertyValues().