22#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
25#include <rtl/ustring.hxx>
28#include <unordered_map>
70 const OUString& aName,
71 const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs)
override;
73 virtual void SAL_CALL
endElement(
const OUString& aName)
override;
75 virtual void SAL_CALL
characters(
const OUString& aChars)
override;
80 const OUString& aData)
override;
83 const css::uno::Reference< css::xml::sax::XLocator > &xLocator)
override;
88 class ImageHashMap :
public std::unordered_map< OUString, Image_XML_Entry >
97 css::uno::Reference< css::xml::sax::XLocator >
m_xLocator;
105 css::uno::Reference< css::xml::sax::XDocumentHandler >
const &
106 rWriteDocumentHandler);
@ IMG_ELEMENT_IMAGECONTAINER
@ IMG_ELEMENT_EXTERNALENTRY
@ IMG_ELEMENT_EXTERNALIMAGES
@ IMG_ATTRIBUTE_BITMAPINDEX
@ IMG_ATTRIBUTE_MASKCOLOR
@ IMG_ATTRIBUTE_HIGHCONTRASTURL
@ IMG_ATTRIBUTE_HIGHCONTRASTMASKURL
virtual void SAL_CALL startElement(const OUString &aName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override
virtual void SAL_CALL startDocument() override
virtual ~OReadImagesDocumentHandler() override
OUString getErrorLineString()
virtual void SAL_CALL ignorableWhitespace(const OUString &aWhitespaces) override
virtual void SAL_CALL characters(const OUString &aChars) override
virtual void SAL_CALL endDocument() override
OReadImagesDocumentHandler(ImageItemDescriptorList &aItems)
bool m_bImageContainerStartFound
virtual void SAL_CALL setDocumentLocator(const css::uno::Reference< css::xml::sax::XLocator > &xLocator) override
virtual void SAL_CALL processingInstruction(const OUString &aTarget, const OUString &aData) override
ImageItemDescriptorList & m_rImageList
bool m_bImageContainerEndFound
virtual void SAL_CALL endElement(const OUString &aName) override
css::uno::Reference< css::xml::sax::XLocator > m_xLocator
OUString m_aAttributeValueSimple
css::uno::Reference< css::xml::sax::XAttributeList > m_xEmptyList
css::uno::Reference< css::xml::sax::XDocumentHandler > m_xWriteDocumentHandler
OUString m_aAttributeXlinkType
void WriteImageList(const ImageItemDescriptorList *)
~OWriteImagesDocumentHandler()
void WriteImage(const ImageItemDescriptor *)
const ImageItemDescriptorList & m_rImageItemList
OWriteImagesDocumentHandler(const ImageItemDescriptorList &aItems, css::uno::Reference< css::xml::sax::XDocumentHandler > const &rWriteDocumentHandler)
void WriteImagesDocument()
std::vector< ImageItemDescriptor > ImageItemDescriptorList