LibreOffice Module xmloff (master) 1
|
Handle import of an event for a certain event type (as defined by the PropertyValue "EventType" in the API). More...
#include <xmlevent.hxx>
Public Member Functions | |
virtual | ~XMLEventContextFactory () |
virtual SvXMLImportContext * | CreateContext (SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, XMLEventsImportContext *rEvents, const OUString &rApiEventName)=0 |
Handle import of an event for a certain event type (as defined by the PropertyValue "EventType" in the API).
EventContextFactories must be registered with the EventImportHelper that is attached to the SvXMLImport.
The factory has to create an import context for a <script:event> element. The context has to call the EventsImportContext::AddEventValues() method to save its event registered with the enclosing element. For events consisting only of attributes (and an empty element) an easy solution is to handle all attributes in the CreateContext()-method and return a default context.
EventContextFactory objects have to be registered with the EventsImportHelper.
Definition at line 125 of file xmlevent.hxx.
|
inlinevirtual |
Definition at line 128 of file xmlevent.hxx.
|
pure virtual |
xAttrList | import context |
rEvents | attribute list the context for the enclosing <script:events> element |
rApiEventName | the event name (as understood by the API) |
Implemented in XMLScriptContextFactory, and XMLStarBasicContextFactory.