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
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 

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 ( SdrModel pModel,
sal_uInt16  nWhich,
sal_uInt8  nMemberId 
)
noexcept

Definition at line 60 of file UnoNameItemTable.cxx.

References StartListening.

SvxUnoNameItemTable::~SvxUnoNameItemTable ( )
overridevirtualnoexcept

Definition at line 69 of file UnoNameItemTable.cxx.

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

Member Function Documentation

void SAL_CALL SvxUnoNameItemTable::cancel ( )
overridevirtual

Definition at line 127 of file UnoNameItemTable.cxx.

References dispose().

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

Referenced by ImplInsertByName(), and replaceByName().

void SvxUnoNameItemTable::dispose ( void  )

Definition at line 83 of file UnoNameItemTable.cxx.

References maItemSetVector.

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

uno::Any SAL_CALL SvxUnoNameItemTable::getByName ( const OUString &  aName)
overridevirtual
uno::Sequence< OUString > SAL_CALL SvxUnoNameItemTable::getElementNames ( )
overridevirtual
sal_Bool SAL_CALL SvxUnoNameItemTable::hasByName ( const OUString &  aName)
overridevirtual
sal_Bool SAL_CALL SvxUnoNameItemTable::hasElements ( )
overridevirtual
void SvxUnoNameItemTable::ImplInsertByName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
private

Definition at line 102 of file UnoNameItemTable.cxx.

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

Referenced by insertByName(), and replaceByName().

void SAL_CALL SvxUnoNameItemTable::insertByName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
overridevirtual
bool SvxUnoNameItemTable::isValid ( const NameOrIndex pItem) const
virtual
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.

void SAL_CALL SvxUnoNameItemTable::removeByName ( const OUString &  Name)
overridevirtual
void SAL_CALL SvxUnoNameItemTable::replaceByName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
overridevirtual
sal_Bool SAL_CALL SvxUnoNameItemTable::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 97 of file UnoNameItemTable.cxx.

References cppu::supportsService().

Member Data Documentation

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

sal_uInt8 SvxUnoNameItemTable::mnMemberId
private

Definition at line 50 of file UnoNameItemTable.hxx.

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

sal_uInt16 SvxUnoNameItemTable::mnWhich
private
SdrModel* SvxUnoNameItemTable::mpModel
private

Definition at line 47 of file UnoNameItemTable.hxx.

Referenced by ~SvxUnoNameItemTable().

SfxItemPool* SvxUnoNameItemTable::mpModelPool
private

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