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

#include <UnoNameItemTable.hxx>

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

Public Member Functions

 SvxUnoNameItemTable (SdrModel *pModel, sal_uInt16 nWhich, sal_uInt8 nMemberId) noexcept
 
virtual ~SvxUnoNameItemTable () noexcept override
 
virtual NameOrIndexcreateItem () const =0
 
virtual bool isValid (const NameOrIndex *pItem) const
 
void dispose ()
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) noexcept override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual void SAL_CALL cancel () override
 
virtual void SAL_CALL insertByName (const OUString &aName, const css::uno::Any &aElement) override
 
virtual void SAL_CALL removeByName (const OUString &Name) override
 
virtual void SAL_CALL replaceByName (const OUString &aName, const css::uno::Any &aElement) override
 
virtual css::uno::Any SAL_CALL getByName (const OUString &aName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames () override
 
virtual sal_Bool SAL_CALL hasByName (const OUString &aName) override
 
virtual sal_Bool SAL_CALL hasElements () override
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Private Member Functions

void ImplInsertByName (const OUString &aName, const css::uno::Any &aElement)
 

Private Attributes

SdrModelmpModel
 
SfxItemPoolmpModelPool
 
sal_uInt16 mnWhich
 
sal_uInt8 mnMemberId
 
ItemPoolVector maItemSetVector
 vector contains all items that were created by this service and will keep them alive even if nothing in the document references them More...
 

Detailed Description

Definition at line 39 of file UnoNameItemTable.hxx.

Constructor & Destructor Documentation

◆ SvxUnoNameItemTable()

SvxUnoNameItemTable::SvxUnoNameItemTable ( SdrModel pModel,
sal_uInt16  nWhich,
sal_uInt8  nMemberId 
)
noexcept

Definition at line 60 of file UnoNameItemTable.cxx.

References StartListening.

◆ ~SvxUnoNameItemTable()

SvxUnoNameItemTable::~SvxUnoNameItemTable ( )
overridevirtualnoexcept

Definition at line 69 of file UnoNameItemTable.cxx.

References dispose(), SfxListener::EndListening(), and mpModel.

Member Function Documentation

◆ cancel()

void SAL_CALL SvxUnoNameItemTable::cancel ( )
overridevirtual

Definition at line 127 of file UnoNameItemTable.cxx.

References dispose().

◆ createItem()

virtual NameOrIndex * SvxUnoNameItemTable::createItem ( ) const
pure virtual

Referenced by ImplInsertByName(), and replaceByName().

◆ dispose()

void SvxUnoNameItemTable::dispose ( void  )

Definition at line 83 of file UnoNameItemTable.cxx.

References maItemSetVector.

Referenced by cancel(), and ~SvxUnoNameItemTable().

◆ getByName()

uno::Any SAL_CALL SvxUnoNameItemTable::getByName ( const OUString &  aName)
overridevirtual

◆ getElementNames()

uno::Sequence< OUString > SAL_CALL SvxUnoNameItemTable::getElementNames ( )
overridevirtual

◆ hasByName()

sal_Bool SAL_CALL SvxUnoNameItemTable::hasByName ( const OUString &  aName)
overridevirtual

◆ hasElements()

sal_Bool SAL_CALL SvxUnoNameItemTable::hasElements ( )
overridevirtual

◆ ImplInsertByName()

void SvxUnoNameItemTable::ImplInsertByName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
private

Definition at line 102 of file UnoNameItemTable.cxx.

References aName, createItem(), maItemSetVector, mnMemberId, mnWhich, and mpModelPool.

Referenced by insertByName(), and replaceByName().

◆ insertByName()

void SAL_CALL SvxUnoNameItemTable::insertByName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
overridevirtual

◆ isValid()

bool SvxUnoNameItemTable::isValid ( const NameOrIndex pItem) const
virtual

◆ Notify()

void SvxUnoNameItemTable::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtualnoexcept

Reimplemented from SfxListener.

Definition at line 88 of file UnoNameItemTable.cxx.

References dispose(), SdrHint::GetKind(), and ModelCleared.

◆ removeByName()

void SAL_CALL SvxUnoNameItemTable::removeByName ( const OUString &  Name)
overridevirtual

◆ replaceByName()

void SAL_CALL SvxUnoNameItemTable::replaceByName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
overridevirtual

◆ supportsService()

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

Definition at line 97 of file UnoNameItemTable.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ maItemSetVector

ItemPoolVector SvxUnoNameItemTable::maItemSetVector
private

vector contains all items that were created by this service and will keep them alive even if nothing in the document references them

Definition at line 54 of file UnoNameItemTable.hxx.

Referenced by dispose(), ImplInsertByName(), removeByName(), and replaceByName().

◆ mnMemberId

sal_uInt8 SvxUnoNameItemTable::mnMemberId
private

Definition at line 50 of file UnoNameItemTable.hxx.

Referenced by getByName(), ImplInsertByName(), and replaceByName().

◆ mnWhich

sal_uInt16 SvxUnoNameItemTable::mnWhich
private

◆ mpModel

SdrModel* SvxUnoNameItemTable::mpModel
private

Definition at line 47 of file UnoNameItemTable.hxx.

Referenced by ~SvxUnoNameItemTable().

◆ mpModelPool

SfxItemPool* SvxUnoNameItemTable::mpModelPool
private

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