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 () 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 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) 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 ()
 

Static Protected Member Functions

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

Protected Attributes

SdrModelmpModel
 
rtl::Reference< 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 39 of file unopool.hxx.

Constructor & Destructor Documentation

SvxUnoDrawPool::SvxUnoDrawPool ( SdrModel pModel,
sal_Int32  nServiceId 
)

Definition at line 42 of file unopool.cxx.

References init().

SvxUnoDrawPool::SvxUnoDrawPool ( SdrModel pModel)

deprecated

Definition at line 49 of file unopool.cxx.

References init().

SvxUnoDrawPool::~SvxUnoDrawPool ( )
overridevirtualnoexcept

Definition at line 55 of file unopool.cxx.

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

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

virtual void SAL_CALL SvxUnoDrawPool::acquire ( )
inlineoverridevirtualnoexcept

Reimplemented from cppu::OWeakAggObject.

Definition at line 67 of file unopool.hxx.

References cppu::OWeakAggObject::acquire().

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

OUString SAL_CALL SvxUnoDrawPool::getImplementationName ( )
overridevirtual

Definition at line 364 of file unopool.cxx.

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

References bReadOnly.

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

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

Definition at line 369 of file unopool.cxx.

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

Definition at line 341 of file unopool.cxx.

References aTypes, and 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 321 of file unopool.cxx.

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

Reimplemented from cppu::OWeakAggObject.

Definition at line 316 of file unopool.cxx.

virtual void SAL_CALL SvxUnoDrawPool::release ( )
inlineoverridevirtualnoexcept

Reimplemented from cppu::OWeakAggObject.

Definition at line 69 of file unopool.hxx.

References cppu::OWeakAggObject::release().

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

Definition at line 359 of file unopool.cxx.

References cppu::supportsService().

Member Data Documentation

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

Definition at line 93 of file unopool.hxx.

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

SdrModel* SvxUnoDrawPool::mpModel
protected

Definition at line 92 of file unopool.hxx.


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