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, SvxUnoDrawPoolDefaults nServiceId) | |
SvxUnoDrawPool (SdrModel *pModel) | |
deprecated More... | |
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 |
![]() | |
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 |
![]() | |
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 > () |
![]() | |
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) |
![]() | |
virtual | ~OWeakAggObject () SAL_OVERRIDE |
![]() | |
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 | |
![]() | |
css::uno::WeakReferenceHelper | xDelegator |
![]() | |
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 43 of file unopool.hxx.
SvxUnoDrawPool::SvxUnoDrawPool | ( | SdrModel * | pModel, |
SvxUnoDrawPoolDefaults | nServiceId | ||
) |
Definition at line 52 of file unopool.cxx.
References init().
SvxUnoDrawPool::SvxUnoDrawPool | ( | SdrModel * | pModel | ) |
|
overridevirtualnoexcept |
Definition at line 65 of file unopool.cxx.
|
overridevirtual |
Reimplemented from comphelper::PropertySetHelper.
Definition at line 307 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 223 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 209 of file unopool.cxx.
References DBG_ASSERT, getAny(), and getModelPool().
|
overridevirtual |
Reimplemented from comphelper::PropertySetHelper.
Definition at line 291 of file unopool.cxx.
References getModelPool(), SfxItemPool::GetWhich(), comphelper::PropertyMapEntry::mnHandle, mpDefaultsPool, and SfxItemPool::ResetPoolDefaultItem().
|
overridevirtual |
Implements comphelper::PropertySetHelper.
Definition at line 195 of file unopool.cxx.
References DBG_ASSERT, getModelPool(), putAny(), and pValues.
|
inlineoverridevirtualnoexcept |
Reimplemented from cppu::OWeakAggObject.
Definition at line 71 of file unopool.hxx.
References cppu::OWeakAggObject::acquire().
|
staticprotected |
css::beans::UnknownPropertyException |
Definition at line 95 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 363 of file unopool.cxx.
|
overridevirtual |
Definition at line 374 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 80 of file unopool.cxx.
References bReadOnly.
Referenced by _getPropertyDefault(), _getPropertyStates(), _getPropertyValues(), _setPropertyToDefault(), and _setPropertyValues().
|
overridevirtual |
Definition at line 379 of file unopool.cxx.
|
overridevirtual |
Definition at line 351 of file unopool.cxx.
References aTypes, and cppu::UnoType< typename T >::get().
|
protected |
Definition at line 69 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 146 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 331 of file unopool.cxx.
|
overridevirtual |
Reimplemented from cppu::OWeakAggObject.
Definition at line 326 of file unopool.cxx.
|
inlineoverridevirtualnoexcept |
Reimplemented from cppu::OWeakAggObject.
Definition at line 73 of file unopool.hxx.
References cppu::OWeakAggObject::release().
|
overridevirtual |
Definition at line 369 of file unopool.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 97 of file unopool.hxx.
Referenced by _getPropertyStates(), _setPropertyToDefault(), and init().
|
private |
Definition at line 96 of file unopool.hxx.