20#ifndef INCLUDED_SDEXT_SOURCE_PDFIMPORT_PDFIADAPTOR_HXX
21#define INCLUDED_SDEXT_SOURCE_PDFIMPORT_PDFIADAPTOR_HXX
26#include <com/sun/star/lang/XServiceInfo.hpp>
27#include <com/sun/star/xml/XImportFilter.hpp>
28#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
29#include <com/sun/star/uno/XComponentContext.hpp>
30#include <com/sun/star/task/XStatusIndicator.hpp>
31#include <com/sun/star/document/XFilter.hpp>
32#include <com/sun/star/io/XInputStream.hpp>
33#include <com/sun/star/io/XOutputStream.hpp>
34#include <com/sun/star/document/XImporter.hpp>
35#include <com/sun/star/frame/XModel.hpp>
43 css::document::XFilter,
44 css::document::XImporter,
57 css::uno::XComponentContext >& xContext );
60 virtual sal_Bool SAL_CALL
filter(
const css::uno::Sequence<css::beans::PropertyValue>& rFilterData )
override;
61 virtual void SAL_CALL
cancel()
override;
64 virtual void SAL_CALL
setTargetDocument(
const css::uno::Reference< css::lang::XComponent >& xDocument )
override;
74 css::xml::XImportFilter,
75 css::document::XImporter,
90 bool parse(
const css::uno::Reference<css::io::XInputStream>& xInput,
91 const css::uno::Reference<css::task::XInteractionHandler>& xIHdl,
93 const css::uno::Reference<css::task::XStatusIndicator>& xStatus,
96 const OUString& rFilterOptions);
100 const css::uno::Reference<
101 css::uno::XComponentContext >& xContext );
119 const css::uno::Reference<css::io::XOutputStream>& xOutput,
120 const css::uno::Reference<css::task::XStatusIndicator>& xStatus );
123 virtual sal_Bool SAL_CALL
importer(
const css::uno::Sequence< css::beans::PropertyValue >& rSourceData,
124 const css::uno::Reference< css::xml::sax::XDocumentHandler >& rHdl,
125 const css::uno::Sequence< OUString >& rUserData )
override;
128 virtual void SAL_CALL
setTargetDocument(
const css::uno::Reference< css::lang::XComponent >& xDocument )
override;
virtual void SAL_CALL cancel() override
sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL filter(const css::uno::Sequence< css::beans::PropertyValue > &rFilterData) override
virtual void SAL_CALL setTargetDocument(const css::uno::Reference< css::lang::XComponent > &xDocument) override
OUString SAL_CALL getImplementationName() override
css::uno::Reference< css::uno::XComponentContext > m_xContext
PDFIHybridAdaptor(const css::uno::Reference< css::uno::XComponentContext > &xContext)
css::uno::Reference< css::frame::XModel > m_xModel
Adapts raw pdf import to XImportFilter interface.
bool parse(const css::uno::Reference< css::io::XInputStream > &xInput, const css::uno::Reference< css::task::XInteractionHandler > &xIHdl, const OUString &rPwd, const css::uno::Reference< css::task::XStatusIndicator > &xStatus, const XmlEmitterSharedPtr &rEmitter, const OUString &rURL, const OUString &rFilterOptions)
bool odfConvert(const OUString &rURL, const css::uno::Reference< css::io::XOutputStream > &xOutput, const css::uno::Reference< css::task::XStatusIndicator > &xStatus)
Export pdf document to ODG.
css::uno::Reference< css::frame::XModel > m_xModel
virtual void SAL_CALL setTargetDocument(const css::uno::Reference< css::lang::XComponent > &xDocument) override
TreeVisitorFactorySharedPtr m_pVisitorFactory
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
void setTreeVisitorFactory(const TreeVisitorFactorySharedPtr &rVisitorFactory)
Set factory object used to create the tree visitors.
PDFIRawAdaptor(OUString const &implementationName, const css::uno::Reference< css::uno::XComponentContext > &xContext)
css::uno::Reference< css::uno::XComponentContext > m_xContext
OUString SAL_CALL getImplementationName() override
sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
OUString const m_implementationName
virtual sal_Bool SAL_CALL importer(const css::uno::Sequence< css::beans::PropertyValue > &rSourceData, const css::uno::Reference< css::xml::sax::XDocumentHandler > &rHdl, const css::uno::Sequence< OUString > &rUserData) override
::comphelper::WeakComponentImplHelper< css::xml::XImportFilter, css::document::XImporter, css::lang::XServiceInfo > PDFIAdaptorBase
std::shared_ptr< TreeVisitorFactory > TreeVisitorFactorySharedPtr
::comphelper::WeakComponentImplHelper< css::document::XFilter, css::document::XImporter, css::lang::XServiceInfo > PDFIHybridAdaptorBase
std::shared_ptr< XmlEmitter > XmlEmitterSharedPtr