LibreOffice Module sdext (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
pdfi::PDFIRawAdaptor Class Reference

Adapts raw pdf import to XImportFilter interface. More...

#include <pdfiadaptor.hxx>

Inheritance diagram for pdfi::PDFIRawAdaptor:
[legend]
Collaboration diagram for pdfi::PDFIRawAdaptor:
[legend]

Public Member Functions

 PDFIRawAdaptor (OUString const &implementationName, const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
void setTreeVisitorFactory (const TreeVisitorFactorySharedPtr &rVisitorFactory)
 Set factory object used to create the tree visitors. More...
 
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. More...
 
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
 
virtual void SAL_CALL setTargetDocument (const css::uno::Reference< css::lang::XComponent > &xDocument) override
 
OUString SAL_CALL getImplementationName () override
 
sal_Bool SAL_CALL supportsService (OUString const &ServiceName) override
 
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc >
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelperBase
virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Private Member Functions

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)
 

Private Attributes

OUString const m_implementationName
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::frame::XModel > m_xModel
 
TreeVisitorFactorySharedPtr m_pVisitorFactory
 

Additional Inherited Members

- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 
- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

Adapts raw pdf import to XImportFilter interface.

Definition at line 80 of file pdfiadaptor.hxx.

Constructor & Destructor Documentation

◆ PDFIRawAdaptor()

pdfi::PDFIRawAdaptor::PDFIRawAdaptor ( OUString const &  implementationName,
const css::uno::Reference< css::uno::XComponentContext > &  xContext 
)
explicit

Definition at line 204 of file pdfiadaptor.cxx.

References implementationName.

Member Function Documentation

◆ getImplementationName()

OUString pdfi::PDFIRawAdaptor::getImplementationName ( )
override

Definition at line 308 of file pdfiadaptor.cxx.

References m_implementationName.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > pdfi::PDFIRawAdaptor::getSupportedServiceNames ( )
override

Definition at line 318 of file pdfiadaptor.cxx.

◆ importer()

sal_Bool SAL_CALL pdfi::PDFIRawAdaptor::importer ( const css::uno::Sequence< css::beans::PropertyValue > &  rSourceData,
const css::uno::Reference< css::xml::sax::XDocumentHandler > &  rHdl,
const css::uno::Sequence< OUString > &  rUserData 
)
overridevirtual

Definition at line 258 of file pdfiadaptor.cxx.

References aURL, pdfi::createSaxEmitter(), parse(), and SAL_INFO.

◆ odfConvert()

bool pdfi::PDFIRawAdaptor::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.

Parameters
xOutputStream to write the flat xml file to
xStatusOptional status indicator

Definition at line 241 of file pdfiadaptor.cxx.

References pdfi::createOdfEmitter(), and parse().

◆ parse()

bool pdfi::PDFIRawAdaptor::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 
)
private

◆ setTargetDocument()

void SAL_CALL pdfi::PDFIRawAdaptor::setTargetDocument ( const css::uno::Reference< css::lang::XComponent > &  xDocument)
overridevirtual

Definition at line 300 of file pdfiadaptor.cxx.

References m_xModel, and SAL_INFO.

◆ setTreeVisitorFactory()

void pdfi::PDFIRawAdaptor::setTreeVisitorFactory ( const TreeVisitorFactorySharedPtr rVisitorFactory)

Set factory object used to create the tree visitors.

Used for customizing the tree to the specific output format (writer, draw, etc)

Definition at line 210 of file pdfiadaptor.cxx.

References m_pVisitorFactory.

◆ supportsService()

sal_Bool pdfi::PDFIRawAdaptor::supportsService ( OUString const &  ServiceName)
override

Definition at line 313 of file pdfiadaptor.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_implementationName

OUString const pdfi::PDFIRawAdaptor::m_implementationName
private

Definition at line 83 of file pdfiadaptor.hxx.

Referenced by getImplementationName().

◆ m_pVisitorFactory

TreeVisitorFactorySharedPtr pdfi::PDFIRawAdaptor::m_pVisitorFactory
private

Definition at line 88 of file pdfiadaptor.hxx.

Referenced by parse(), and setTreeVisitorFactory().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > pdfi::PDFIRawAdaptor::m_xContext
private

Definition at line 85 of file pdfiadaptor.hxx.

Referenced by parse().

◆ m_xModel

css::uno::Reference< css::frame::XModel > pdfi::PDFIRawAdaptor::m_xModel
private

Definition at line 87 of file pdfiadaptor.hxx.

Referenced by setTargetDocument().


The documentation for this class was generated from the following files: