25#include <com/sun/star/xml/sax/Parser.hpp>
26#include <com/sun/star/xml/sax/Writer.hpp>
27#include <com/sun/star/xml/sax/SAXException.hpp>
28#include <com/sun/star/io/IOException.hpp>
29#include <com/sun/star/io/XInputStream.hpp>
39 const css::uno::Reference<css::uno::XComponentContext>& rxContext,
42 Reference<XParser> xParser = Parser::create(rxContext);
45 InputSource aInputSource;
54 xParser->setDocumentHandler(xFilter);
58 xParser->parseStream(aInputSource);
65 catch (
const SAXException&)
69 catch (
const css::io::IOException&)
76 const css::uno::Reference<css::uno::XComponentContext>& rxContext,
77 const css::uno::Reference<css::io::XOutputStream>& rOutputStream,
80 Reference<XWriter> xWriter = Writer::create(rxContext);
81 xWriter->setOutputStream(rOutputStream);
93 catch (
const SAXException&)
97 catch (
const css::io::IOException&)
static bool LoadImages(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::io::XInputStream > &rInputStream, ImageItemDescriptorList &rItems)
static bool StoreImages(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::io::XOutputStream > &rOutputStream, const ImageItemDescriptorList &rItems)
void WriteImagesDocument()
Reference< XInputStream > rInputStream
std::vector< ImageItemDescriptor > ImageItemDescriptorList