22#include <com/sun/star/document/XFilter.hpp>
23#include <com/sun/star/document/XImporter.hpp>
24#include <com/sun/star/document/XExporter.hpp>
25#include <com/sun/star/lang/XMultiServiceFactory.hpp>
26#include <com/sun/star/lang/XServiceInfo.hpp>
27#include <osl/mutex.hxx>
43 class XGraphicStorageHandler;
51 ::cppu::WeakImplHelper<
52 css::document::XFilter,
53 css::document::XExporter,
54 css::document::XImporter,
55 css::lang::XServiceInfo >
58 explicit XMLFilter( css::uno::Reference< css::uno::XComponentContext >
const & xContext );
69 const css::uno::Sequence< css::beans::PropertyValue >& aDescriptor )
override;
70 virtual void SAL_CALL
cancel()
override;
74 const css::uno::Reference< css::lang::XComponent >&
Document )
override;
78 const css::uno::Reference< css::lang::XComponent >&
Document )
override;
89 virtual void isOasisFormat(
const css::uno::Sequence< css::beans::PropertyValue >& _rMediaDescriptor,
bool & _rOutOASIS );
95 ErrCode impl_Import(
const css::uno::Reference< css::lang::XComponent > & xDocumentComp,
96 const css::uno::Sequence< css::beans::PropertyValue > & aMediaDescriptor );
99 const OUString & rStreamName,
100 const OUString & rServiceName,
101 const css::uno::Reference< css::embed::XStorage > & xStorage,
102 const css::uno::Reference< css::lang::XMultiComponentFactory > & xFactory,
103 const css::uno::Reference<css::document::XGraphicStorageHandler> & xGraphicStorageHandler,
104 css::uno::Reference< css::beans::XPropertySet >
const & xPropSet );
107 ErrCode impl_Export(
const css::uno::Reference< css::lang::XComponent > & xDocumentComp,
108 const css::uno::Sequence< css::beans::PropertyValue > & aMediaDescriptor );
111 const OUString & rStreamName,
112 const OUString & rServiceName,
113 const css::uno::Reference< css::embed::XStorage > & xStorage,
114 const css::uno::Reference< css::xml::sax::XWriter >& xActiveDataSource,
115 const css::uno::Reference< css::lang::XMultiServiceFactory > & xFactory,
116 const css::uno::Sequence< css::uno::Any > & rFilterProperties );
119 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
133 virtual void isOasisFormat(
const css::uno::Sequence< css::beans::PropertyValue >& _rMediaDescriptor,
134 bool & _rOutOASIS )
override;
140 virtual OUString SAL_CALL
143 return "com.sun.star.comp.chart2.report.XMLFilter";
147 const css::uno::Reference< css::lang::XComponent >& Document )
override
155 const css::uno::Reference< css::lang::XComponent >& Document )
override
ErrCode impl_Import(const css::uno::Reference< css::lang::XComponent > &xDocumentComp, const css::uno::Sequence< css::beans::PropertyValue > &aMediaDescriptor)
volatile bool m_bCancelOperation
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual OUString SAL_CALL getImplementationName() override
XServiceInfo declarations.
OUString m_sDocumentHandler
ErrCode impl_ImportStream(const OUString &rStreamName, const OUString &rServiceName, const css::uno::Reference< css::embed::XStorage > &xStorage, const css::uno::Reference< css::lang::XMultiComponentFactory > &xFactory, const css::uno::Reference< css::document::XGraphicStorageHandler > &xGraphicStorageHandler, css::uno::Reference< css::beans::XPropertySet > const &xPropSet)
void setDocumentHandler(const OUString &_sDocumentHandler)
virtual OUString getMediaType(bool _bOasis)
virtual sal_Bool SAL_CALL filter(const css::uno::Sequence< css::beans::PropertyValue > &aDescriptor) override
css::uno::Reference< css::lang::XComponent > m_xSourceDoc
ErrCode impl_Export(const css::uno::Reference< css::lang::XComponent > &xDocumentComp, const css::uno::Sequence< css::beans::PropertyValue > &aMediaDescriptor)
virtual ~XMLFilter() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
css::uno::Sequence< css::beans::PropertyValue > m_aMediaDescriptor
virtual void SAL_CALL setSourceDocument(const css::uno::Reference< css::lang::XComponent > &Document) override
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual void SAL_CALL setTargetDocument(const css::uno::Reference< css::lang::XComponent > &Document) override
virtual void SAL_CALL cancel() override
XMLFilter(css::uno::Reference< css::uno::XComponentContext > const &xContext)
ErrCode impl_ExportStream(const OUString &rStreamName, const OUString &rServiceName, const css::uno::Reference< css::embed::XStorage > &xStorage, const css::uno::Reference< css::xml::sax::XWriter > &xActiveDataSource, const css::uno::Reference< css::lang::XMultiServiceFactory > &xFactory, const css::uno::Sequence< css::uno::Any > &rFilterProperties)
css::uno::Reference< css::lang::XComponent > m_xTargetDoc
virtual void isOasisFormat(const css::uno::Sequence< css::beans::PropertyValue > &_rMediaDescriptor, bool &_rOutOASIS)
fills the oasis flag only when a filtername was set
XMLReportFilterHelper(css::uno::Reference< css::uno::XComponentContext > const &_xContext)
virtual void SAL_CALL setTargetDocument(const css::uno::Reference< css::lang::XComponent > &Document) override
virtual OUString getMediaType(bool _bOasis) override
virtual OUString SAL_CALL getImplementationName() override
XServiceInfo declarations.
virtual void SAL_CALL setSourceDocument(const css::uno::Reference< css::lang::XComponent > &Document) override
virtual void isOasisFormat(const css::uno::Sequence< css::beans::PropertyValue > &_rMediaDescriptor, bool &_rOutOASIS) override
fills the oasis flag only when a filtername was set
class SAL_NO_VTABLE XPropertySet
Reference< XComponentContext > _xContext