LibreOffice Module svx (master)  1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected 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, sal_Int32 nServiceId)
 
 SvxUnoDrawPool (SdrModel *pModel)
 deprecated More...
 
virtual ~SvxUnoDrawPool () override throw ()
 
virtual SfxItemPoolgetModelPool (bool bReadOnly) throw ()
 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 () override throw ()
 
virtual void SAL_CALL release () override throw ()
 
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 setDelegator (const css::uno::Reference< css::uno::XInterface > &Delegator) SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
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 > const &xInfo)
 
virtual ~PropertySetHelper ()
 
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 ()
 

Static Protected Member Functions

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

Protected Attributes

SdrModelmpModel
 
SfxItemPoolmpDefaultsPool
 
- 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 38 of file unopool.hxx.

Constructor & Destructor Documentation

SvxUnoDrawPool::SvxUnoDrawPool ( SdrModel pModel,
sal_Int32  nServiceId 
)

Definition at line 45 of file unopool.cxx.

References init().

SvxUnoDrawPool::SvxUnoDrawPool ( SdrModel pModel)

deprecated

Definition at line 52 of file unopool.cxx.

References init().

SvxUnoDrawPool::~SvxUnoDrawPool ( )
throw (
)
overridevirtual

Definition at line 58 of file unopool.cxx.

References SfxItemPool::Free(), SfxItemPool::GetSecondaryPool(), and mpDefaultsPool.

Member Function Documentation

uno::Any SvxUnoDrawPool::_getPropertyDefault ( const comphelper::PropertyMapEntry pEntry)
overridevirtual
void SvxUnoDrawPool::_getPropertyStates ( const comphelper::PropertyMapEntry **  ppEntries,
css::beans::PropertyState *  pStates 
)
overridevirtual
void SvxUnoDrawPool::_getPropertyValues ( const comphelper::PropertyMapEntry **  ppEntries,
css::uno::Any *  pValue 
)
overridevirtual

Implements comphelper::PropertySetHelper.

Definition at line 210 of file unopool.cxx.

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

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

Implements comphelper::PropertySetHelper.

Definition at line 196 of file unopool.cxx.

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

void SAL_CALL SvxUnoDrawPool::acquire ( )
throw (
)
overridevirtual

Reimplemented from cppu::OWeakAggObject.

Definition at line 349 of file unopool.cxx.

void SvxUnoDrawPool::getAny ( SfxItemPool const *  pPool,
const comphelper::PropertyMapEntry pEntry,
css::uno::Any &  rValue 
)
staticprotected
uno::Sequence< sal_Int8 > SAL_CALL SvxUnoDrawPool::getImplementationId ( )
overridevirtual

Definition at line 371 of file unopool.cxx.

OUString SAL_CALL SvxUnoDrawPool::getImplementationName ( )
overridevirtual

Definition at line 382 of file unopool.cxx.

SfxItemPool * SvxUnoDrawPool::getModelPool ( bool  bReadOnly)
throw (
)
virtual

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 79 of file unopool.cxx.

Referenced by _getPropertyDefault(), _getPropertyStates(), _getPropertyValues(), _setPropertyToDefault(), and _setPropertyValues().

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

Definition at line 387 of file unopool.cxx.

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

Definition at line 359 of file unopool.cxx.

References cppu::UnoType< class >::get().

void SvxUnoDrawPool::init ( )
protected
void SvxUnoDrawPool::putAny ( SfxItemPool pPool,
const comphelper::PropertyMapEntry pEntry,
const css::uno::Any &  rValue 
)
protectedvirtual
uno::Any SAL_CALL SvxUnoDrawPool::queryAggregation ( const css::uno::Type &  rType)
overridevirtual

Reimplemented from cppu::OWeakAggObject.

Definition at line 329 of file unopool.cxx.

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

Reimplemented from cppu::OWeakAggObject.

Definition at line 324 of file unopool.cxx.

void SAL_CALL SvxUnoDrawPool::release ( )
throw (
)
overridevirtual

Reimplemented from cppu::OWeakAggObject.

Definition at line 354 of file unopool.cxx.

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

Definition at line 377 of file unopool.cxx.

References cppu::supportsService().

Member Data Documentation

SfxItemPool* SvxUnoDrawPool::mpDefaultsPool
protected

Definition at line 90 of file unopool.hxx.

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

SdrModel* SvxUnoDrawPool::mpModel
protected

Definition at line 89 of file unopool.hxx.


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