LibreOffice Module xmloff (master) 1
|
helper class wrapping different script event representations More...
#include <eventexport.hxx>
Public Member Functions | |
OEventDescriptorMapper (const css::uno::Sequence< css::script::ScriptEventDescriptor > &_rEvents) | |
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 css::uno::Type SAL_CALL | getElementType () override |
virtual sal_Bool SAL_CALL | hasElements () override |
Private Types | |
typedef std::map< OUString, css::uno::Sequence< css::beans::PropertyValue > > | MapString2PropertyValueSequence |
Private Attributes | |
MapString2PropertyValueSequence | m_aMappedEvents |
helper class wrapping different script event representations
In the form layer, the script events are represented by <type scope="com.sun.star.script">ScriptEventDescriptor</type> instances. The office applications, on the other hand, represent their a single script event as sequence of <type scope="com.sun.star.beans">PropertyValue</type>s, where all events of a given object are accessible through a <type scope="com.sun.star.container">XNameReplace</type> interface.
This class maps the first representation of events of a single object to the second one.
This way, we can use the helper classes here in the project.
Definition at line 47 of file eventexport.hxx.
|
private |
Definition at line 49 of file eventexport.hxx.
|
explicit |
Definition at line 35 of file eventexport.cxx.
References Any, xmloff::EVENT_APPLICATION, xmloff::EVENT_LIBRARY, xmloff::EVENT_LOCALMACRONAME, EVENT_NAME_SEPARATOR, xmloff::EVENT_SCRIPTURL, EVENT_STARBASIC, xmloff::EVENT_STAROFFICE, xmloff::EVENT_TYPE, m_aMappedEvents, SAL_WARN_IF, sLibrary, and sName.
|
overridevirtual |
Definition at line 92 of file eventexport.cxx.
References Any, and m_aMappedEvents.
|
overridevirtual |
Definition at line 103 of file eventexport.cxx.
References m_aMappedEvents, and comphelper::mapKeysToSequence().
|
overridevirtual |
Definition at line 114 of file eventexport.cxx.
|
overridevirtual |
Definition at line 108 of file eventexport.cxx.
References m_aMappedEvents.
|
overridevirtual |
Definition at line 119 of file eventexport.cxx.
References m_aMappedEvents.
|
overridevirtual |
Definition at line 86 of file eventexport.cxx.
|
private |
Definition at line 50 of file eventexport.hxx.
Referenced by getByName(), getElementNames(), hasByName(), hasElements(), and OEventDescriptorMapper().