29#include <com/sun/star/xml/sax/Parser.hpp>
30#include <com/sun/star/xml/sax/Writer.hpp>
31#include <com/sun/star/xml/sax/SAXException.hpp>
32#include <com/sun/star/io/IOException.hpp>
55 Reference< XInputStream >
const & rInputStream )
57 Reference< XParser > xParser = Parser::create(
m_xContext );
60 InputSource aInputSource;
74 xParser->setDocumentHandler( xFilter );
78 xParser->parseStream( aInputSource );
79 return xItemContainer;
84 throw WrappedTargetException( e.Message, Reference< XInterface >(), anyEx );
86 catch(
const SAXException& e )
89 SAXException aWrappedSAXException;
91 if ( !( e.WrappedException >>= aWrappedSAXException ))
92 throw WrappedTargetException( e.Message, Reference< XInterface >(), anyEx );
94 throw WrappedTargetException( aWrappedSAXException.Message, Reference< XInterface >(), e.WrappedException );
96 catch(
const css::io::IOException& e )
99 throw WrappedTargetException( e.Message, Reference< XInterface >(), anyEx );
104 Reference< XIndexAccess >
const & rMenuBarConfiguration,
105 Reference< XOutputStream >
const & rOutputStream,
bool bIsMenuBar )
107 Reference< XWriter > xWriter = Writer::create(
m_xContext);
108 xWriter->setOutputStream( rOutputStream );
118 throw WrappedTargetException( e.Message, Reference< XInterface >(), anyEx );
120 catch (
const SAXException& e )
123 throw WrappedTargetException( e.Message, Reference< XInterface >(), anyEx );
125 catch (
const css::io::IOException& e )
128 throw WrappedTargetException( e.Message, Reference< XInterface >(), anyEx );
Reference< XInputStream > rInputStream
css::uno::Reference< css::uno::XComponentContext > m_xContext
Any SAL_CALL getCaughtException()