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
 

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

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

Definition at line 207 of file pdfiadaptor.cxx.

References m_aMutex, and m_xModel.

Member Function Documentation

OUString pdfi::PDFIRawAdaptor::getImplementationName ( )
override

Definition at line 315 of file pdfiadaptor.cxx.

References m_implementationName.

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

Definition at line 325 of file pdfiadaptor.cxx.

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 265 of file pdfiadaptor.cxx.

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

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 248 of file pdfiadaptor.cxx.

References pdfi::createOdfEmitter(), and 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
void SAL_CALL pdfi::PDFIRawAdaptor::setTargetDocument ( const css::uno::Reference< css::lang::XComponent > &  xDocument)
overridevirtual

Definition at line 307 of file pdfiadaptor.cxx.

References m_xModel, and SAL_INFO.

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 216 of file pdfiadaptor.cxx.

References m_pVisitorFactory.

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

Definition at line 320 of file pdfiadaptor.cxx.

References cppu::supportsService().

Member Data Documentation

OUString const pdfi::PDFIRawAdaptor::m_implementationName
private

Definition at line 86 of file pdfiadaptor.hxx.

Referenced by getImplementationName().

TreeVisitorFactorySharedPtr pdfi::PDFIRawAdaptor::m_pVisitorFactory
private

Definition at line 91 of file pdfiadaptor.hxx.

Referenced by parse(), and setTreeVisitorFactory().

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

Definition at line 88 of file pdfiadaptor.hxx.

Referenced by parse().

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

Definition at line 90 of file pdfiadaptor.hxx.

Referenced by setTargetDocument().


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