22#include <com/sun/star/container/XNameReplace.hpp>
23#include <com/sun/star/lang/XServiceInfo.hpp>
62 css::container::XNameReplace,
63 css::lang::XServiceInfo
81 const OUString& rName,
82 const css::uno::Any& rElement )
87 virtual css::uno::Any SAL_CALL getByName(
88 const OUString& rName )
92 virtual css::uno::Sequence< OUString > SAL_CALL
93 getElementNames()
override;
97 const OUString& rName )
override;
100 virtual css::uno::Type SAL_CALL getElementType()
override;
103 virtual sal_Bool SAL_CALL hasElements()
override;
113 virtual css::uno::Sequence< OUString > SAL_CALL
139 SvMacroItemId mapNameToEventID(std::u16string_view rName)
const;
176 virtual void replaceByName(
182 virtual void getByName(
208 std::vector<std::unique_ptr<SvxMacro>>
aMacros;
226 virtual void replaceByName(
232 virtual void getByName(
SvBaseEventDescriptor: Abstract class that implements the basics of an XNameReplace that is delivered...
const SvEventDescription * mpSupportedMacroItems
last element is 0, 0
virtual void replaceByName(const SvMacroItemId nEvent, const SvxMacro &rMacro)=0
Must be implemented in subclass.
virtual OUString SAL_CALL getImplementationName() override=0
must be implemented in subclass
virtual void SAL_CALL replaceByName(const OUString &rName, const css::uno::Any &rElement) override
calls replaceByName(const sal_uInt16, const SvxMacro&)
virtual void getByName(SvxMacro &rMacro, const SvMacroItemId nEvent)=0
Must be implemented in subclass.
virtual css::uno::Any SAL_CALL getByName(const OUString &rName) override
calls getByName(sal_uInt16)
SvDetachedEventDescriptor:
SvDetachedEventDescriptor(SvDetachedEventDescriptor const &)=delete
std::vector< std::unique_ptr< SvxMacro > > aMacros
SvDetachedEventDescriptor & operator=(SvDetachedEventDescriptor const &)=delete
SvEventDescriptor: Implement the XNameReplace that is delivered by the XEventsSupplier::getEvents() m...
virtual void setMacroItem(const SvxMacroItem &rItem)=0
Set the SvxMacroItem at the parent.
virtual const SvxMacroItem & getMacroItem()=0
Get the SvxMacroItem from the parent.
virtual sal_uInt16 getMacroItemWhich() const =0
Get the SvxMacroItem Which Id needed for the current application must be implemented by subclass.
css::uno::Reference< css::uno::XInterface > xParentRef
keep reference to parent to prevent it from being destroyed
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
SvEventDescription: Description of a single event.