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

Implement the XNameAccess for the AutoText events. More...

#include <unoatxt.hxx>

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

Public Member Functions

 SwAutoTextEventDescriptor (SwXAutoTextEntry &rAutoText)
 
virtual ~SwAutoTextEventDescriptor () override
 
virtual OUString SAL_CALL getImplementationName () override
 
- Public Member Functions inherited from SvBaseEventDescriptor
 SvBaseEventDescriptor (const SvEventDescription *pSupportedMacroItems)
 
virtual ~SvBaseEventDescriptor () override
 
virtual void SAL_CALL replaceByName (const OUString &rName, const css::uno::Any &rElement) override
 
virtual css::uno::Any SAL_CALL getByName (const OUString &rName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames () override
 
virtual sal_Bool SAL_CALL hasByName (const OUString &rName) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual OUString SAL_CALL getImplementationName () override=0
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Private Member Functions

virtual void replaceByName (const SvMacroItemId nEvent, const SvxMacro &rMacro) override
 event (will be copied) More...
 
virtual void getByName (SvxMacro &rMacro, const SvMacroItemId nEvent) override
 item ID of event More...
 
virtual void SAL_CALL replaceByName (const OUString &rName, const css::uno::Any &rElement) override
 
virtual void replaceByName (const SvMacroItemId nEvent, const SvxMacro &rMacro)=0
 
virtual css::uno::Any SAL_CALL getByName (const OUString &rName) override
 
virtual void getByName (SvxMacro &rMacro, const SvMacroItemId nEvent)=0
 

Private Attributes

SwXAutoTextEntrym_rAutoTextEntry
 

Additional Inherited Members

- Protected Member Functions inherited from SvBaseEventDescriptor
virtual void replaceByName (const SvMacroItemId nEvent, const SvxMacro &rMacro)=0
 
virtual void getByName (SvxMacro &rMacro, const SvMacroItemId nEvent)=0
 
SvMacroItemId mapNameToEventID (std::u16string_view rName) const
 
SvMacroItemId getMacroID (std::u16string_view rName) const
 
- Protected Attributes inherited from SvBaseEventDescriptor
const SvEventDescriptionmpSupportedMacroItems
 
sal_Int16 mnMacroItems
 

Detailed Description

Implement the XNameAccess for the AutoText events.

Definition at line 225 of file unoatxt.hxx.

Constructor & Destructor Documentation

◆ SwAutoTextEventDescriptor()

SwAutoTextEventDescriptor::SwAutoTextEventDescriptor ( SwXAutoTextEntry rAutoText)

Definition at line 900 of file unoatxt.cxx.

◆ ~SwAutoTextEventDescriptor()

SwAutoTextEventDescriptor::~SwAutoTextEventDescriptor ( )
overridevirtual

Definition at line 907 of file unoatxt.cxx.

Member Function Documentation

◆ getByName() [1/3]

virtual css::uno::Any SAL_CALL SvBaseEventDescriptor::getByName ( const OUString &  rName)
privatevirtual

Reimplemented from SvBaseEventDescriptor.

◆ getByName() [2/3]

void SwAutoTextEventDescriptor::getByName ( SvxMacro rMacro,
const SvMacroItemId  nEvent 
)
overrideprivatevirtual

item ID of event

Parameters
nEventmacro to be filled

Implements SvBaseEventDescriptor.

Definition at line 949 of file unoatxt.cxx.

References SvxMacroTableDtor::Get(), SwXAutoTextEntry::GetEntryName(), SwXAutoTextEntry::GetGlossaries(), SwXAutoTextEntry::GetGroupName(), m_rAutoTextEntry, nIndex, and pGlossaries.

◆ getByName() [3/3]

virtual void SvBaseEventDescriptor::getByName ( SvxMacro rMacro,
const SvMacroItemId  nEvent 
)
privatevirtual

Implements SvBaseEventDescriptor.

◆ getImplementationName()

OUString SwAutoTextEventDescriptor::getImplementationName ( )
overridevirtual

Implements SvBaseEventDescriptor.

Definition at line 911 of file unoatxt.cxx.

◆ replaceByName() [1/3]

virtual void SAL_CALL SvBaseEventDescriptor::replaceByName ( const OUString &  rName,
const css::uno::Any &  rElement 
)
privatevirtual

Reimplemented from SvBaseEventDescriptor.

◆ replaceByName() [2/3]

void SwAutoTextEventDescriptor::replaceByName ( const SvMacroItemId  nEvent,
const SvxMacro rMacro 
)
overrideprivatevirtual

event (will be copied)

Parameters
rMacroitem ID of event

Implements SvBaseEventDescriptor.

Definition at line 916 of file unoatxt.cxx.

References SwXAutoTextEntry::GetEntryName(), SwXAutoTextEntry::GetGlossaries(), SwXAutoTextEntry::GetGroupName(), SvxMacroTableDtor::Insert(), m_rAutoTextEntry, nIndex, and pGlossaries.

◆ replaceByName() [3/3]

virtual void SvBaseEventDescriptor::replaceByName ( const SvMacroItemId  nEvent,
const SvxMacro rMacro 
)
privatevirtual

Implements SvBaseEventDescriptor.

Member Data Documentation

◆ m_rAutoTextEntry

SwXAutoTextEntry& SwAutoTextEventDescriptor::m_rAutoTextEntry
private

Definition at line 227 of file unoatxt.hxx.

Referenced by getByName(), and replaceByName().


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