LibreOffice Module xmloff (master)  1
Public Member Functions | List of all members
XMLEventContextFactory Class Referenceabstract

Handle import of an event for a certain event type (as defined by the PropertyValue "EventType" in the API). More...

#include <xmlevent.hxx>

Inheritance diagram for XMLEventContextFactory:
[legend]

Public Member Functions

virtual ~XMLEventContextFactory ()
 
virtual SvXMLImportContextCreateContext (SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList, XMLEventsImportContext *rEvents, const OUString &rApiEventName)=0
 

Detailed Description

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 124 of file xmlevent.hxx.

Constructor & Destructor Documentation

virtual XMLEventContextFactory::~XMLEventContextFactory ( )
inlinevirtual

Definition at line 127 of file xmlevent.hxx.

Member Function Documentation

virtual SvXMLImportContext* XMLEventContextFactory::CreateContext ( SvXMLImport rImport,
const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList,
XMLEventsImportContext rEvents,
const OUString &  rApiEventName 
)
pure virtual
Parameters
xAttrListimport context
rEventsattribute list the context for the enclosing <script:events> element
rApiEventNamethe event name (as understood by the API)

Implemented in XMLScriptContextFactory, and XMLStarBasicContextFactory.


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