LibreOffice Module svtools (master) 1
|
SvDetachedEventDescriptor: More...
#include <unoevent.hxx>
Public Member Functions | |
SvDetachedEventDescriptor (const SvEventDescription *pSupportedMacroItems) | |
SvDetachedEventDescriptor & | operator= (SvDetachedEventDescriptor const &)=delete |
SvDetachedEventDescriptor (SvDetachedEventDescriptor const &)=delete | |
virtual | ~SvDetachedEventDescriptor () override |
virtual OUString SAL_CALL | getImplementationName () override |
must be implemented in subclass More... | |
![]() | |
SvBaseEventDescriptor (const SvEventDescription *pSupportedMacroItems) | |
virtual | ~SvBaseEventDescriptor () override |
virtual void SAL_CALL | replaceByName (const OUString &rName, const css::uno::Any &rElement) override |
calls replaceByName(const sal_uInt16, const SvxMacro&) More... | |
virtual css::uno::Any SAL_CALL | getByName (const OUString &rName) override |
calls getByName(sal_uInt16) More... | |
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 |
must be implemented in subclass More... | |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Protected Member Functions | |
sal_Int16 | getIndex (const SvMacroItemId nID) const |
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... | |
bool | hasById (const SvMacroItemId nEvent) const |
do we have an event? return true: we have a macro for the event return false: no macro; getByName() will return an empty macro More... | |
virtual void SAL_CALL | replaceByName (const OUString &rName, const css::uno::Any &rElement) override |
calls replaceByName(const sal_uInt16, const SvxMacro&) More... | |
virtual void | replaceByName (const SvMacroItemId nEvent, const SvxMacro &rMacro)=0 |
Must be implemented in subclass. More... | |
virtual css::uno::Any SAL_CALL | getByName (const OUString &rName) override |
calls getByName(sal_uInt16) More... | |
virtual void | getByName (SvxMacro &rMacro, const SvMacroItemId nEvent)=0 |
Must be implemented in subclass. More... | |
![]() | |
virtual void | replaceByName (const SvMacroItemId nEvent, const SvxMacro &rMacro)=0 |
Must be implemented in subclass. More... | |
virtual void | getByName (SvxMacro &rMacro, const SvMacroItemId nEvent)=0 |
Must be implemented in subclass. More... | |
SvMacroItemId | mapNameToEventID (std::u16string_view rName) const |
convert an API event name to the event ID as used by SvxMacroItem More... | |
SvMacroItemId | getMacroID (std::u16string_view rName) const |
get the event ID for the name; return 0 if not supported More... | |
Private Attributes | |
std::vector< std::unique_ptr< SvxMacro > > | aMacros |
Additional Inherited Members | |
![]() | |
const SvEventDescription * | mpSupportedMacroItems |
last element is 0, 0 More... | |
sal_Int16 | mnMacroItems |
Definition at line 205 of file unoevent.hxx.
SvDetachedEventDescriptor::SvDetachedEventDescriptor | ( | const SvEventDescription * | pSupportedMacroItems | ) |
Definition at line 346 of file unoevent.cxx.
References aMacros, and SvBaseEventDescriptor::mnMacroItems.
|
delete |
References getImplementationName().
|
overridevirtual |
Definition at line 353 of file unoevent.cxx.
|
overrideprotectedvirtual |
calls getByName(sal_uInt16)
API name of event
Reimplemented from SvBaseEventDescriptor.
Definition at line 87 of file unoevent.cxx.
|
overrideprotectedvirtual |
item ID of event
nEvent | macro to be filled |
Implements SvBaseEventDescriptor.
Definition at line 388 of file unoevent.cxx.
References aMacros, getIndex(), and nIndex.
Referenced by SvMacroTableEventDescriptor::copyMacrosIntoTable().
|
protectedvirtual |
Must be implemented in subclass.
css::container::NoSuchElementException | |
css::lang::WrappedTargetException | |
css::uno::RuntimeException |
Implements SvBaseEventDescriptor.
|
overridevirtual |
must be implemented in subclass
Implements SvBaseEventDescriptor.
Definition at line 369 of file unoevent.cxx.
|
protected |
Definition at line 357 of file unoevent.cxx.
References SvBaseEventDescriptor::mpSupportedMacroItems, and nIndex.
Referenced by getByName(), and replaceByName().
|
protected |
do we have an event? return true: we have a macro for the event return false: no macro; getByName() will return an empty macro
item ID of event
css::lang::IllegalArgumentException | if the event is not supported |
Definition at line 400 of file unoevent.cxx.
References nIndex.
Referenced by SvMacroTableEventDescriptor::copyMacrosIntoTable().
|
delete |
|
overrideprotectedvirtual |
calls replaceByName(const sal_uInt16, const SvxMacro&)
event (PropertyValues)
rElement | API name of event |
Reimplemented from SvBaseEventDescriptor.
|
overrideprotectedvirtual |
event (will be copied)
rMacro | item ID of event |
Implements SvBaseEventDescriptor.
Definition at line 375 of file unoevent.cxx.
References aMacros, getIndex(), SvxMacro::GetLibName(), SvxMacro::GetMacName(), SvxMacro::GetScriptType(), and nIndex.
Referenced by SvMacroTableEventDescriptor::SvMacroTableEventDescriptor().
|
protectedvirtual |
Must be implemented in subclass.
css::lang::IllegalArgumentException | |
css::container::NoSuchElementException | |
css::lang::WrappedTargetException | |
css::uno::RuntimeException | event (will be copied) |
rMacro | item ID of event |
Implements SvBaseEventDescriptor.
|
private |
Definition at line 208 of file unoevent.hxx.
Referenced by getByName(), replaceByName(), and SvDetachedEventDescriptor().