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:
Collaboration diagram for pdfi::PDFIRawAdaptor:

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

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
- Private Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex

Detailed Description

Adapts raw pdf import to XImportFilter interface.

Definition at line 82 of file pdfiadaptor.hxx.

Constructor & Destructor Documentation

◆ PDFIRawAdaptor()

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

Definition at line 205 of file pdfiadaptor.cxx.

References implementationName, and m_aMutex.

Member Function Documentation

◆ getImplementationName()

OUString pdfi::PDFIRawAdaptor::getImplementationName ( )

Definition at line 310 of file pdfiadaptor.cxx.

References m_implementationName.

◆ getSupportedServiceNames()

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

Definition at line 320 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 

Definition at line 260 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.

xOutputStream to write the flat xml file to
xStatusOptional status indicator

Definition at line 243 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 

◆ setTargetDocument()

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

Definition at line 302 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 212 of file pdfiadaptor.cxx.

References m_pVisitorFactory.

◆ supportsService()

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

Definition at line 315 of file pdfiadaptor.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_implementationName

OUString const pdfi::PDFIRawAdaptor::m_implementationName

Definition at line 86 of file pdfiadaptor.hxx.

Referenced by getImplementationName().

◆ m_pVisitorFactory

TreeVisitorFactorySharedPtr pdfi::PDFIRawAdaptor::m_pVisitorFactory

Definition at line 91 of file pdfiadaptor.hxx.

Referenced by parse(), and setTreeVisitorFactory().

◆ m_xContext

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

Definition at line 88 of file pdfiadaptor.hxx.

Referenced by parse().

◆ m_xModel

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

Definition at line 90 of file pdfiadaptor.hxx.

Referenced by setTargetDocument().

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