21#include <com/sun/star/uno/Reference.hxx>
22#include <com/sun/star/document/XEventsSupplier.hpp>
23#include <com/sun/star/uno/XInterface.hpp>
24#include <com/sun/star/lang/XMultiServiceFactory.hpp>
33using ::com::sun::star::uno::Any;
34using ::com::sun::star::uno::Reference;
35using ::com::sun::star::uno::Sequence;
36using ::com::sun::star::uno::Type;
37using ::com::sun::star::uno::XInterface;
38using ::com::sun::star::document::XEventsSupplier;
39using ::com::sun::star::container::XNameReplace;
43 const css::uno::Reference<css::uno::XComponentContext>& xContext)
44 : SvXMLImport(xContext,
"com.sun.star.comp.Writer.XMLOasisAutotextEventsImporter")
54 for (
const auto& rArgument : rArguments)
56 const Type& rType = rArgument.getValueType();
59 Reference<XEventsSupplier> xSupplier;
60 rArgument >>= xSupplier;
61 DBG_ASSERT(xSupplier.is(),
"need XEventsSupplier or XNameReplace");
63 xEvents = xSupplier->getEvents();
73 SvXMLImport::initialize(rArguments);
77 sal_Int32 nElement,
const Reference<css::xml::sax::XFastAttributeList>& )
86extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
88 css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any>
const&)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_Writer_XMLOasisAutotextEventsImporter_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
This class deliberately does not support XWeak, to improve performance when loading large documents.
Import the text:auto-text-container element.
css::uno::Reference< css::container::XNameReplace > xEvents
virtual ~XMLAutoTextEventImport() noexcept override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &rArguments) override
virtual SvXMLImportContext * CreateFastContext(sal_Int32 Element, const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList > &xAttrList) override
XMLAutoTextEventImport(const css::uno::Reference< css::uno::XComponentContext > &xContext)
#define DBG_ASSERT(sCon, aError)
#define XML_ELEMENT(prefix, name)