22#include <com/sun/star/uno/Reference.hxx>
31 namespace xml::sax {
class XFastAttributeList; }
37typedef ::std::map< OUString, std::unique_ptr<XMLEventContextFactory> >
FactoryMap;
38typedef ::std::map< XMLEventName, OUString >
NameMap;
72 std::unique_ptr<XMLEventContextFactory> aFactory );
86 const css::uno::Reference< css::xml::sax::XFastAttributeList> & xAttrList,
88 const OUString& rXmlEventName,
89 const OUString& rLanguage);
::std::map< XMLEventName, OUString > NameMap
::std::map< OUString, std::unique_ptr< XMLEventContextFactory > > FactoryMap
This class deliberately does not support XWeak, to improve performance when loading large documents.
Handle import of an event for a certain event type (as defined by the PropertyValue "EventType" in th...
Helps the XMLEventsImportContext.
FactoryMap aFactoryMap
map of XMLEventContextFactory objects
std::vector< std::unique_ptr< NameMap > > aEventNameMapVector
stack of previous aEventNameMap
void AddTranslationTable(const XMLEventNameTranslation *pTransTable)
add event name translation to the internal table
SvXMLImportContext * CreateContext(SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, XMLEventsImportContext *rEvents, const OUString &rXmlEventName, const OUString &rLanguage)
create an appropriate import context for a particular event
std::unique_ptr< NameMap > pEventNameMap
map from XML to API names
void RegisterFactory(const OUString &rLanguage, std::unique_ptr< XMLEventContextFactory > aFactory)
register a handler for a particular language type
void PopTranslationTable()
recover the top-most previously saved translation table
void PushTranslationTable()
save the old translation table on a stack and install an empty table
Import <script:events> element.
XMLEventNameTranslation: define tables that translate between event names as used in the XML file for...