LibreOffice Module svx (master) 1
|
This class implements the service com.sun.star.drawing.Defaults. More...
#include <unopool.hxx>
Public Member Functions | |
SvxUnoDrawPool (SdrModel *pModel, rtl::Reference< comphelper::PropertySetInfo > const &xDefaults) | |
virtual | ~SvxUnoDrawPool () noexcept override |
virtual SfxItemPool * | getModelPool (bool bReadOnly) noexcept |
This returns the item pool from the given model, or the default pool if there is no model and bReadOnly is true. More... | |
virtual void | _setPropertyValues (const comphelper::PropertyMapEntry **ppEntries, const css::uno::Any *pValues) override |
virtual void | _getPropertyValues (const comphelper::PropertyMapEntry **ppEntries, css::uno::Any *pValue) override |
virtual void | _getPropertyStates (const comphelper::PropertyMapEntry **ppEntries, css::beans::PropertyState *pStates) override |
virtual void | _setPropertyToDefault (const comphelper::PropertyMapEntry *pEntry) override |
virtual css::uno::Any | _getPropertyDefault (const comphelper::PropertyMapEntry *pEntry) override |
virtual css::uno::Any SAL_CALL | queryAggregation (const css::uno::Type &rType) override |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Public Member Functions inherited from cppu::OWeakAggObject | |
OWeakAggObject () | |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
virtual void SAL_CALL | setDelegator (const css::uno::Reference< css::uno::XInterface > &Delegator) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | queryAggregation (const css::uno::Type &rType) SAL_OVERRIDE |
Public Member Functions inherited from cppu::OWeakObject | |
OWeakObject () | |
OWeakObject (const OWeakObject &) | |
OWeakObject &SAL_CALL | operator= (const OWeakObject &) |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL | queryAdapter () SAL_OVERRIDE |
SAL_CALL | operator css::uno::Reference< css::uno::XInterface > () |
Public Member Functions inherited from comphelper::PropertySetHelper | |
PropertySetHelper (rtl::Reference< comphelper::PropertySetInfo > xInfo) noexcept | |
virtual | ~PropertySetHelper () noexcept |
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 | |
void | init () |
virtual void | putAny (SfxItemPool *pPool, const comphelper::PropertyMapEntry *pEntry, const css::uno::Any &rValue) |
Protected Member Functions inherited from cppu::OWeakAggObject | |
virtual | ~OWeakAggObject () SAL_OVERRIDE |
Protected Member Functions inherited from cppu::OWeakObject | |
virtual | ~OWeakObject () COVERITY_NOEXCEPT_FALSE |
void | disposeWeakConnectionPoint () |
virtual void | _setPropertyValues (const comphelper::PropertyMapEntry **ppEntries, const css::uno::Any *pValues)=0 |
virtual void | _getPropertyValues (const comphelper::PropertyMapEntry **ppEntries, css::uno::Any *pValue)=0 |
virtual void | _getPropertyStates (const comphelper::PropertyMapEntry **ppEntries, css::beans::PropertyState *pStates) |
virtual void | _setPropertyToDefault (const comphelper::PropertyMapEntry *pEntry) |
virtual css::uno::Any | _getPropertyDefault (const comphelper::PropertyMapEntry *pEntry) |
Static Protected Member Functions | |
static void | getAny (SfxItemPool const *pPool, const comphelper::PropertyMapEntry *pEntry, css::uno::Any &rValue) |
Private Attributes | |
SdrModel * | mpModel |
rtl::Reference< SfxItemPool > | mpDefaultsPool |
Additional Inherited Members | |
Protected Attributes inherited from cppu::OWeakAggObject | |
css::uno::WeakReferenceHelper | xDelegator |
Protected Attributes inherited from cppu::OWeakObject | |
oslInterlockedCount | m_refCount |
This class implements the service com.sun.star.drawing.Defaults.
It works on the SfxItemPool from the given model and the global draw object item pool. The class can work in a read only mode without a model. Derivated classes can set a model on demand by overriding getModelPool().
Definition at line 39 of file unopool.hxx.
SvxUnoDrawPool::SvxUnoDrawPool | ( | SdrModel * | pModel, |
rtl::Reference< comphelper::PropertySetInfo > const & | xDefaults | ||
) |
Definition at line 42 of file unopool.cxx.
References init().
|
overridevirtualnoexcept |
Definition at line 48 of file unopool.cxx.
|
overridevirtual |
Reimplemented from comphelper::PropertySetHelper.
Definition at line 290 of file unopool.cxx.
References getModelPool(), SfxItemPool::GetPoolDefaultItem(), SfxItemPool::GetWhich(), comphelper::PropertyMapEntry::mnHandle, comphelper::PropertyMapEntry::mnMemberId, and SfxPoolItem::QueryValue().
|
overridevirtual |
Reimplemented from comphelper::PropertySetHelper.
Definition at line 206 of file unopool.cxx.
References SfxItemPool::GetDefaultItem(), getModelPool(), SfxItemPool::GetWhich(), IsStaticDefaultItem(), mpDefaultsPool, OWN_ATTR_FILLBMP_MODE, OWN_ATTR_TEXTCOLUMNS, SDRATTR_TEXTCOLUMNS_NUMBER(), SDRATTR_TEXTCOLUMNS_SPACING(), XATTR_FILLBMP_STRETCH(), and XATTR_FILLBMP_TILE().
|
overridevirtual |
Implements comphelper::PropertySetHelper.
Definition at line 192 of file unopool.cxx.
References DBG_ASSERT, getAny(), and getModelPool().
|
overridevirtual |
Reimplemented from comphelper::PropertySetHelper.
Definition at line 274 of file unopool.cxx.
References getModelPool(), SfxItemPool::GetWhich(), comphelper::PropertyMapEntry::mnHandle, mpDefaultsPool, and SfxItemPool::ResetPoolDefaultItem().
|
overridevirtual |
Implements comphelper::PropertySetHelper.
Definition at line 178 of file unopool.cxx.
References DBG_ASSERT, getModelPool(), putAny(), and pValues.
|
inlineoverridevirtualnoexcept |
Reimplemented from cppu::OWeakAggObject.
Definition at line 65 of file unopool.hxx.
References cppu::OWeakAggObject::acquire().
|
staticprotected |
css::beans::UnknownPropertyException |
Definition at line 78 of file unopool.cxx.
References SfxItemPool::GetDefaultItem(), SfxItemPool::GetMetric(), SfxItemPool::GetWhich(), comphelper::PropertyMapEntry::maType, comphelper::PropertyMapEntry::mnHandle, comphelper::PropertyMapEntry::mnMemberId, comphelper::PropertyMapEntry::mnMoreFlags, OWN_ATTR_FILLBMP_MODE, uno::Any::setValue(), SvxUnoConvertToMM(), XATTR_FILLBMP_STRETCH(), and XATTR_FILLBMP_TILE().
Referenced by _getPropertyValues().
|
overridevirtual |
Definition at line 346 of file unopool.cxx.
|
overridevirtual |
Definition at line 357 of file unopool.cxx.
|
virtualnoexcept |
This returns the item pool from the given model, or the default pool if there is no model and bReadOnly is true.
If bReadOnly is false and there is no model the default implementation returns NULL.
Definition at line 63 of file unopool.cxx.
References bReadOnly.
Referenced by _getPropertyDefault(), _getPropertyStates(), _getPropertyValues(), _setPropertyToDefault(), and _setPropertyValues().
|
overridevirtual |
Definition at line 362 of file unopool.cxx.
|
overridevirtual |
Definition at line 334 of file unopool.cxx.
References aTypes, and cppu::UnoType< typename T >::get().
|
protected |
Definition at line 52 of file unopool.cxx.
References EditEngine::CreatePool(), SdrEngineDefaults::GetFontHeight(), SdrEngineDefaults::GetMapUnit(), mpDefaultsPool, and SdrModel::SetTextDefaults().
Referenced by SvxUnoDrawPool().
|
protectedvirtual |
css::beans::UnknownPropertyException | |
css::lang::IllegalArgumentException | |
css::uno::RuntimeException |
Definition at line 129 of file unopool.cxx.
References SfxPoolItem::Clone(), eMode, SfxItemPool::GetDefaultItem(), SfxItemPool::GetMetric(), SfxItemPool::GetWhich(), comphelper::PropertyMapEntry::mnHandle, comphelper::PropertyMapEntry::mnMemberId, comphelper::PropertyMapEntry::mnMoreFlags, OWN_ATTR_FILLBMP_MODE, SfxItemPool::SetPoolDefaultItem(), and SvxUnoConvertFromMM().
Referenced by _setPropertyValues().
|
overridevirtual |
Reimplemented from cppu::OWeakAggObject.
Definition at line 314 of file unopool.cxx.
|
overridevirtual |
Reimplemented from cppu::OWeakAggObject.
Definition at line 309 of file unopool.cxx.
|
inlineoverridevirtualnoexcept |
Reimplemented from cppu::OWeakAggObject.
Definition at line 67 of file unopool.hxx.
References cppu::OWeakAggObject::release().
|
overridevirtual |
Definition at line 352 of file unopool.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 91 of file unopool.hxx.
Referenced by _getPropertyStates(), _setPropertyToDefault(), and init().
|
private |
Definition at line 90 of file unopool.hxx.