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) throw ()
 
virtual ~SvxUnoNameItemTable () override throw ()
 
virtual NameOrIndexcreateItem () const =0
 
virtual bool isValid (const NameOrIndex *pItem) const
 
void dispose ()
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override throw ()
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) 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 const mnMemberId
 
ItemPoolVector maItemSetVector
 

Detailed Description

Definition at line 40 of file UnoNameItemTable.hxx.

Constructor & Destructor Documentation

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

Definition at line 40 of file UnoNameItemTable.cxx.

References StartListening.

SvxUnoNameItemTable::~SvxUnoNameItemTable ( )
throw (
)
overridevirtual

Definition at line 49 of file UnoNameItemTable.cxx.

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

Member Function Documentation

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

Definition at line 61 of file UnoNameItemTable.cxx.

References maItemSetVector.

Referenced by removeByName(), 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 80 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 
)
throw (
)
overridevirtual

Reimplemented from SfxListener.

Definition at line 66 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 75 of file UnoNameItemTable.cxx.

References cppu::supportsService().

Member Data Documentation

ItemPoolVector SvxUnoNameItemTable::maItemSetVector
private

Definition at line 49 of file UnoNameItemTable.hxx.

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

sal_uInt8 const SvxUnoNameItemTable::mnMemberId
private

Definition at line 47 of file UnoNameItemTable.hxx.

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

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

Definition at line 44 of file UnoNameItemTable.hxx.

Referenced by ~SvxUnoNameItemTable().

SfxItemPool* SvxUnoNameItemTable::mpModelPool
private

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