20 #ifndef INCLUDED_XMLOFF_INC_XMLEVENTIMPORTHELPER_HXX
21 #define INCLUDED_XMLOFF_INC_XMLEVENTIMPORTHELPER_HXX
23 #include <com/sun/star/uno/Reference.hxx>
32 namespace xml::sax {
class XFastAttributeList; }
38 typedef ::std::map< OUString, std::unique_ptr<XMLEventContextFactory> >
FactoryMap;
39 typedef ::std::map< XMLEventName, OUString >
NameMap;
73 std::unique_ptr<XMLEventContextFactory> aFactory );
87 const css::uno::Reference< css::xml::sax::XFastAttributeList> & xAttrList,
89 const OUString& rXmlEventName,
90 const OUString& rLanguage);
Handle import of an event for a certain event type (as defined by the PropertyValue "EventType" in th...
std::vector< std::unique_ptr< NameMap > > aEventNameMapVector
stack of previous aEventNameMap
::std::map< OUString, std::unique_ptr< XMLEventContextFactory > > FactoryMap
void AddTranslationTable(const XMLEventNameTranslation *pTransTable)
add event name translation to the internal table
FactoryMap aFactoryMap
map of XMLEventContextFactory objects
Helps the XMLEventsImportContext.
This class deliberately does not support XWeak, to improve performance when loading large documents...
void PopTranslationTable()
recover the top-most previously saved translation table
std::unique_ptr< NameMap > pEventNameMap
map from XML to API names
void PushTranslationTable()
save the old translation table on a stack and install an empty table
::std::map< XMLEventName, OUString > NameMap
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
void RegisterFactory(const OUString &rLanguage, std::unique_ptr< XMLEventContextFactory > aFactory)
register a handler for a particular language type
XMLEventNameTranslation: define tables that translate between event names as used in the XML file for...