LibreOffice Module svx (master) 1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Attributes | List of all members
SvxUnoDrawPool Class Reference

This class implements the service com.sun.star.drawing.Defaults. More...

#include <unopool.hxx>

Inheritance diagram for SvxUnoDrawPool:
[legend]
Collaboration diagram for SvxUnoDrawPool:
[legend]

Public Member Functions

 SvxUnoDrawPool (SdrModel *pModel, rtl::Reference< comphelper::PropertySetInfo > const &xDefaults)
 
virtual ~SvxUnoDrawPool () noexcept override
 
virtual SfxItemPoolgetModelPool (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

SdrModelmpModel
 
rtl::Reference< SfxItemPoolmpDefaultsPool
 

Additional Inherited Members

- Protected Attributes inherited from cppu::OWeakAggObject
css::uno::WeakReferenceHelper xDelegator
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SvxUnoDrawPool()

SvxUnoDrawPool::SvxUnoDrawPool ( SdrModel pModel,
rtl::Reference< comphelper::PropertySetInfo > const &  xDefaults 
)

Definition at line 42 of file unopool.cxx.

References init().

◆ ~SvxUnoDrawPool()

SvxUnoDrawPool::~SvxUnoDrawPool ( )
overridevirtualnoexcept

Definition at line 48 of file unopool.cxx.

Member Function Documentation

◆ _getPropertyDefault()

uno::Any SvxUnoDrawPool::_getPropertyDefault ( const comphelper::PropertyMapEntry pEntry)
overridevirtual

◆ _getPropertyStates()

void SvxUnoDrawPool::_getPropertyStates ( const comphelper::PropertyMapEntry **  ppEntries,
css::beans::PropertyState *  pStates 
)
overridevirtual

◆ _getPropertyValues()

void SvxUnoDrawPool::_getPropertyValues ( const comphelper::PropertyMapEntry **  ppEntries,
css::uno::Any *  pValue 
)
overridevirtual

Implements comphelper::PropertySetHelper.

Definition at line 192 of file unopool.cxx.

References DBG_ASSERT, getAny(), and getModelPool().

◆ _setPropertyToDefault()

void SvxUnoDrawPool::_setPropertyToDefault ( const comphelper::PropertyMapEntry pEntry)
overridevirtual

◆ _setPropertyValues()

void SvxUnoDrawPool::_setPropertyValues ( const comphelper::PropertyMapEntry **  ppEntries,
const css::uno::Any *  pValues 
)
overridevirtual

Implements comphelper::PropertySetHelper.

Definition at line 178 of file unopool.cxx.

References DBG_ASSERT, getModelPool(), putAny(), and pValues.

◆ acquire()

virtual void SAL_CALL SvxUnoDrawPool::acquire ( )
inlineoverridevirtualnoexcept

Reimplemented from cppu::OWeakAggObject.

Definition at line 65 of file unopool.hxx.

References cppu::OWeakAggObject::acquire().

◆ getAny()

void SvxUnoDrawPool::getAny ( SfxItemPool const *  pPool,
const comphelper::PropertyMapEntry pEntry,
css::uno::Any &  rValue 
)
staticprotected

◆ getImplementationId()

uno::Sequence< sal_Int8 > SAL_CALL SvxUnoDrawPool::getImplementationId ( )
overridevirtual

Definition at line 346 of file unopool.cxx.

◆ getImplementationName()

OUString SAL_CALL SvxUnoDrawPool::getImplementationName ( )
overridevirtual

Definition at line 357 of file unopool.cxx.

◆ getModelPool()

SfxItemPool * SvxUnoDrawPool::getModelPool ( bool  bReadOnly)
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().

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL SvxUnoDrawPool::getSupportedServiceNames ( )
overridevirtual

Definition at line 362 of file unopool.cxx.

◆ getTypes()

uno::Sequence< uno::Type > SAL_CALL SvxUnoDrawPool::getTypes ( )
overridevirtual

Definition at line 334 of file unopool.cxx.

References aTypes, and cppu::UnoType< typename T >::get().

◆ init()

void SvxUnoDrawPool::init ( )
protected

◆ putAny()

void SvxUnoDrawPool::putAny ( SfxItemPool pPool,
const comphelper::PropertyMapEntry pEntry,
const css::uno::Any &  rValue 
)
protectedvirtual

◆ queryAggregation()

uno::Any SAL_CALL SvxUnoDrawPool::queryAggregation ( const css::uno::Type &  rType)
overridevirtual

Reimplemented from cppu::OWeakAggObject.

Definition at line 314 of file unopool.cxx.

◆ queryInterface()

uno::Any SAL_CALL SvxUnoDrawPool::queryInterface ( const css::uno::Type &  rType)
overridevirtual

Reimplemented from cppu::OWeakAggObject.

Definition at line 309 of file unopool.cxx.

◆ release()

virtual void SAL_CALL SvxUnoDrawPool::release ( )
inlineoverridevirtualnoexcept

Reimplemented from cppu::OWeakAggObject.

Definition at line 67 of file unopool.hxx.

References cppu::OWeakAggObject::release().

◆ supportsService()

sal_Bool SAL_CALL SvxUnoDrawPool::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 352 of file unopool.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ mpDefaultsPool

rtl::Reference<SfxItemPool> SvxUnoDrawPool::mpDefaultsPool
private

Definition at line 91 of file unopool.hxx.

Referenced by _getPropertyStates(), _setPropertyToDefault(), and init().

◆ mpModel

SdrModel* SvxUnoDrawPool::mpModel
private

Definition at line 90 of file unopool.hxx.


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