LibreOffice Module svx (master) 1
Public Member Functions | Private Attributes | List of all members
SvxShapeCollection Class Referencefinal

#include <shapecollection.hxx>

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

Public Member Functions

 SvxShapeCollection () noexcept
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
virtual sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL getByIndex (sal_Int32 Index) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual void SAL_CALL add (const css::uno::Reference< css::drawing::XShape > &xShape) override
 
virtual void SAL_CALL remove (const css::uno::Reference< css::drawing::XShape > &xShape) 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
 
void getAllShapes (std::vector< css::uno::Reference< css::drawing::XShape > > &rShapes) const
 
- Public Member Functions inherited from cppu::WeakAggImplHelper3< css::drawing::XShapes, css::lang::XServiceInfo, css::lang::XComponent >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_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 > ()
 

Private Attributes

std::mutex m_aMutex
 
std::vector< css::uno::Reference< css::drawing::XShape > > maShapeContainer
 
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
bool bDisposed = false
 
bool bInDispose = false
 

Additional Inherited Members

- 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 ()
 
- Protected Attributes inherited from cppu::OWeakAggObject
css::uno::WeakReferenceHelper xDelegator
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Definition at line 30 of file shapecollection.hxx.

Constructor & Destructor Documentation

◆ SvxShapeCollection()

SvxShapeCollection::SvxShapeCollection ( )
noexcept

Definition at line 31 of file unoshcol.cxx.

Member Function Documentation

◆ add()

void SAL_CALL SvxShapeCollection::add ( const css::uno::Reference< css::drawing::XShape > &  xShape)
overridevirtual

Definition at line 143 of file unoshcol.cxx.

References m_aMutex, and maShapeContainer.

◆ addEventListener()

void SAL_CALL SvxShapeCollection::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

◆ dispose()

void SvxShapeCollection::dispose ( void  )
overridevirtual

◆ getAllShapes()

void SvxShapeCollection::getAllShapes ( std::vector< css::uno::Reference< css::drawing::XShape > > &  rShapes) const

Definition at line 201 of file unoshcol.cxx.

References maShapeContainer.

◆ getByIndex()

uno::Any SAL_CALL SvxShapeCollection::getByIndex ( sal_Int32  Index)
overridevirtual

Definition at line 164 of file unoshcol.cxx.

References getCount(), m_aMutex, and maShapeContainer.

◆ getCount()

sal_Int32 SAL_CALL SvxShapeCollection::getCount ( )
overridevirtual

Definition at line 157 of file unoshcol.cxx.

References m_aMutex, and maShapeContainer.

Referenced by getByIndex(), and hasElements().

◆ getElementType()

uno::Type SAL_CALL SvxShapeCollection::getElementType ( )
overridevirtual

Definition at line 175 of file unoshcol.cxx.

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

◆ getImplementationName()

OUString SAL_CALL SvxShapeCollection::getImplementationName ( )
overridevirtual

Definition at line 186 of file unoshcol.cxx.

◆ getSupportedServiceNames()

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

Definition at line 196 of file unoshcol.cxx.

◆ hasElements()

sal_Bool SAL_CALL SvxShapeCollection::hasElements ( )
overridevirtual

Definition at line 180 of file unoshcol.cxx.

References getCount().

◆ release()

void SvxShapeCollection::release ( )
overridevirtualnoexcept

◆ remove()

void SAL_CALL SvxShapeCollection::remove ( const css::uno::Reference< css::drawing::XShape > &  xShape)
overridevirtual

Definition at line 150 of file unoshcol.cxx.

References m_aMutex, and maShapeContainer.

◆ removeEventListener()

void SAL_CALL SvxShapeCollection::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

◆ supportsService()

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

Definition at line 191 of file unoshcol.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ bDisposed

bool SvxShapeCollection::bDisposed = false
private

Definition at line 38 of file shapecollection.hxx.

Referenced by dispose(), and release().

◆ bInDispose

bool SvxShapeCollection::bInDispose = false
private

Definition at line 39 of file shapecollection.hxx.

Referenced by dispose().

◆ m_aMutex

std::mutex SvxShapeCollection::m_aMutex
private

◆ maEventListeners

comphelper::OInterfaceContainerHelper4<css::lang::XEventListener> SvxShapeCollection::maEventListeners
private

Definition at line 37 of file shapecollection.hxx.

Referenced by addEventListener(), dispose(), and removeEventListener().

◆ maShapeContainer

std::vector<css::uno::Reference<css::drawing::XShape> > SvxShapeCollection::maShapeContainer
private

Definition at line 36 of file shapecollection.hxx.

Referenced by add(), dispose(), getAllShapes(), getByIndex(), getCount(), and remove().


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