LibreOffice Module chart2 (master) 1
|
#include <XMLFilter.hxx>
Public Member Functions | |
XMLFilter (css::uno::Reference< css::uno::XComponentContext > const &xContext) | |
virtual | ~XMLFilter () override |
virtual OUString SAL_CALL | getImplementationName () override |
XServiceInfo declarations. More... | |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Protected Member Functions | |
virtual sal_Bool SAL_CALL | filter (const css::uno::Sequence< css::beans::PropertyValue > &aDescriptor) override |
virtual void SAL_CALL | cancel () override |
virtual void SAL_CALL | setTargetDocument (const css::uno::Reference< css::lang::XComponent > &Document) override |
virtual void SAL_CALL | setSourceDocument (const css::uno::Reference< css::lang::XComponent > &Document) override |
void | setDocumentHandler (const OUString &_sDocumentHandler) |
virtual OUString | getMediaType (bool _bOasis) |
virtual void | isOasisFormat (const css::uno::Sequence< css::beans::PropertyValue > &_rMediaDescriptor, bool &_rOutOASIS) |
fills the oasis flag only when a filtername was set More... | |
Private Member Functions | |
ErrCode | impl_Import (const css::uno::Reference< css::lang::XComponent > &xDocumentComp, const css::uno::Sequence< css::beans::PropertyValue > &aMediaDescriptor) |
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) |
ErrCode | impl_Export (const css::uno::Reference< css::lang::XComponent > &xDocumentComp, const css::uno::Sequence< css::beans::PropertyValue > &aMediaDescriptor) |
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) |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::lang::XComponent > | m_xTargetDoc |
css::uno::Reference< css::lang::XComponent > | m_xSourceDoc |
css::uno::Sequence< css::beans::PropertyValue > | m_aMediaDescriptor |
OUString | m_sDocumentHandler |
volatile bool | m_bCancelOperation |
::osl::Mutex | m_aMutex |
Definition at line 50 of file XMLFilter.hxx.
|
explicit |
Definition at line 188 of file XMLFilter.cxx.
|
overridevirtual |
Definition at line 193 of file XMLFilter.cxx.
|
overrideprotectedvirtual |
Definition at line 236 of file XMLFilter.cxx.
References m_aMutex, and m_bCancelOperation.
|
overrideprotectedvirtual |
Definition at line 197 of file XMLFilter.cxx.
References ERRCODE_NONE, impl_Export(), impl_Import(), m_aMutex, m_bCancelOperation, m_xSourceDoc, and m_xTargetDoc.
|
overridevirtual |
XServiceInfo declarations.
Reimplemented in chart::XMLReportFilterHelper.
Definition at line 726 of file XMLFilter.cxx.
|
protectedvirtual |
Reimplemented in chart::XMLReportFilterHelper.
Definition at line 721 of file XMLFilter.cxx.
References MIMETYPE_OASIS_OPENDOCUMENT_CHART_ASCII, and MIMETYPE_VND_SUN_XML_CHART_ASCII.
Referenced by impl_Export().
|
overridevirtual |
Definition at line 736 of file XMLFilter.cxx.
|
private |
Definition at line 505 of file XMLFilter.cxx.
References DBG_UNHANDLED_EXCEPTION, ERRCODE_NONE, ERRCODE_SFX_GENERAL, comphelper::GenericPropertySet_CreateInstance(), cppu::UnoType< typename T >::get(), getMediaType(), impl_ExportStream(), isOasisFormat(), m_aMediaDescriptor, m_sDocumentHandler, m_xContext, TOOLS_WARN_EXCEPTION, and xFactory.
Referenced by filter().
|
private |
Definition at line 646 of file XMLFilter.cxx.
References DBG_UNHANDLED_EXCEPTION, ERRCODE_NONE, ERRCODE_SFX_GENERAL, m_aMediaDescriptor, m_xSourceDoc, and xStream.
Referenced by impl_Export().
|
private |
property map for import info set
Definition at line 266 of file XMLFilter.cxx.
References DBG_UNHANDLED_EXCEPTION, ERRCODE_NONE, ERRCODE_SFX_GENERAL, comphelper::GenericPropertySet_CreateInstance(), cppu::UnoType< typename T >::get(), impl_ImportStream(), isOasisFormat(), m_xContext, m_xTargetDoc, SAL_INFO_IF, xFactory, and xModel.
Referenced by filter().
|
private |
Definition at line 392 of file XMLFilter.cxx.
References DBG_UNHANDLED_EXCEPTION, ERRCODE_IO_BROKENPACKAGE, ERRCODE_NONE, ERRCODE_SFX_GENERAL, m_sDocumentHandler, m_xContext, m_xTargetDoc, TOOLS_WARN_EXCEPTION, and xFactory.
Referenced by impl_Import().
|
protectedvirtual |
fills the oasis flag only when a filtername was set
_rMediaDescriptor | |
_rOutOASIS |
Reimplemented in chart::XMLReportFilterHelper.
Definition at line 715 of file XMLFilter.cxx.
References apphelper::MediaDescriptorHelper::FilterName, and apphelper::MediaDescriptorHelper::ISSET_FilterName.
Referenced by impl_Export(), and impl_Import().
|
inlineprotected |
Definition at line 80 of file XMLFilter.hxx.
References m_sDocumentHandler.
Referenced by chart::XMLReportFilterHelper::setSourceDocument(), and chart::XMLReportFilterHelper::setTargetDocument().
|
overrideprotectedvirtual |
Reimplemented in chart::XMLReportFilterHelper.
Definition at line 257 of file XMLFilter.cxx.
References Document, m_aMutex, m_xSourceDoc, and m_xTargetDoc.
Referenced by chart::XMLReportFilterHelper::setSourceDocument().
|
overrideprotectedvirtual |
Reimplemented in chart::XMLReportFilterHelper.
Definition at line 247 of file XMLFilter.cxx.
References Document, m_aMutex, m_xSourceDoc, and m_xTargetDoc.
Referenced by chart::XMLReportFilterHelper::setTargetDocument().
|
overridevirtual |
Definition at line 731 of file XMLFilter.cxx.
References cppu::supportsService().
|
private |
Definition at line 123 of file XMLFilter.hxx.
Referenced by impl_Export(), and impl_ExportStream().
|
private |
Definition at line 128 of file XMLFilter.hxx.
Referenced by cancel(), filter(), setSourceDocument(), and setTargetDocument().
|
private |
Definition at line 127 of file XMLFilter.hxx.
|
private |
Definition at line 125 of file XMLFilter.hxx.
Referenced by impl_Export(), impl_ImportStream(), and setDocumentHandler().
|
private |
Definition at line 119 of file XMLFilter.hxx.
Referenced by impl_Export(), impl_Import(), and impl_ImportStream().
|
private |
Definition at line 121 of file XMLFilter.hxx.
Referenced by filter(), impl_ExportStream(), setSourceDocument(), and setTargetDocument().
|
private |
Definition at line 120 of file XMLFilter.hxx.
Referenced by filter(), impl_Import(), impl_ImportStream(), setSourceDocument(), and setTargetDocument().