24#include <com/sun/star/xml/sax/Parser.hpp>
25#include <com/sun/star/xml/sax/Writer.hpp>
26#include <com/sun/star/xml/sax/SAXException.hpp>
27#include <com/sun/star/io/IOException.hpp>
28#include <com/sun/star/io/XInputStream.hpp>
40 const Reference< XComponentContext >& rxContext,
41 const Reference< XInputStream >& xInputStream,
42 const Reference< XIndexContainer >& rStatusbarConfiguration )
44 Reference< XParser > xParser = Parser::create(rxContext);
47 InputSource aInputSource;
48 aInputSource.aInputStream = xInputStream;
55 xParser->setDocumentHandler( xFilter );
59 xParser->parseStream( aInputSource );
66 catch(
const SAXException& )
70 catch(
const css::io::IOException& )
77 const Reference< XComponentContext >& rxContext,
78 const Reference< XOutputStream >& xOutputStream,
79 const Reference< XIndexAccess >& rStatusbarConfiguration )
81 Reference< XWriter > xWriter = Writer::create( rxContext );
82 xWriter->setOutputStream( xOutputStream );
94 catch (
const SAXException& )
98 catch (
const css::io::IOException& )
void WriteStatusBarDocument()
static bool LoadStatusBar(const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::io::XInputStream > &xInputStream, const css::uno::Reference< css::container::XIndexContainer > &rStatusbarConfiguration)
static bool StoreStatusBar(const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::io::XOutputStream > &xOutputStream, const css::uno::Reference< css::container::XIndexAccess > &rStatusbarConfiguration)