20#ifndef INCLUDED_XMLOFF_XMLEVENTEXPORT_HXX
21#define INCLUDED_XMLOFF_XMLEVENTEXPORT_HXX
26#include <rtl/ustring.hxx>
34 namespace document {
class XEventsSupplier; }
35 namespace container {
class XNameReplace; }
36 namespace container {
class XNameAccess; }
37 namespace beans {
struct PropertyValue; }
43typedef ::std::map< OUString, std::unique_ptr<XMLEventExportHandler> >
HandlerMap;
44typedef ::std::map< OUString, XMLEventName >
NameMap;
82 void AddHandler(
const OUString& rName,
83 std::unique_ptr<XMLEventExportHandler> pHandler );
89 void Export( css::uno::Reference<css::document::XEventsSupplier>
const & xAccess,
90 bool bUseWhitespace =
true);
93 void Export( css::uno::Reference<css::container::XNameReplace>
const & xAccess,
94 bool bUseWhitespace =
true);
97 void Export( css::uno::Reference<css::container::XNameAccess>
const & xAccess,
98 bool bUseWhitespace =
true);
102 void ExportExt( css::uno::Reference<css::container::XNameAccess>
const & xAccess);
105 void ExportSingleEvent(
106 const css::uno::Sequence<css::beans::PropertyValue>& rEventValues,
107 const OUString& rApiEventName,
108 bool bUseWhitespace =
true );
113 SAL_DLLPRIVATE
void ExportEvent(
114 const css::uno::Sequence<css::beans::PropertyValue>& rEventValues,
120 SAL_DLLPRIVATE
void StartElement(
bool bUseWhitespace);
123 SAL_DLLPRIVATE
void EndElement(
bool bUseWhitespace);
::std::map< OUString, std::unique_ptr< XMLEventExportHandler > > HandlerMap
::std::map< OUString, XMLEventName > NameMap
::std::map< XMLEventName, OUString > NameMap
Export instances of EventsSupplier services.
void Export(css::uno::Reference< css::container::XNameAccess > const &xAccess, bool bUseWhitespace=true)
export the events (writes <office:events> element)
NameMap m_aNameTranslationMap
XMLEventExport & operator=(XMLEventExport const &)=delete
void Export(css::uno::Reference< css::container::XNameReplace > const &xAccess, bool bUseWhitespace=true)
export the events (calls EventExport::Export(Reference<XNameAccess>) )
void Export(css::uno::Reference< css::document::XEventsSupplier > const &xAccess, bool bUseWhitespace=true)
export the events (calls EventExport::Export(Reference<XNameAccess>) )
XMLEventExport(XMLEventExport const &)=delete
XMLEventNameTranslation: define tables that translate between event names as used in the XML file for...