LibreOffice Module sdext (master) 1
|
Adapts raw pdf import to XImportFilter interface. More...
#include <pdfiadaptor.hxx>
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 |
![]() | |
mutable::osl::Mutex | m_aMutex |
Adapts raw pdf import to XImportFilter interface.
Definition at line 82 of file pdfiadaptor.hxx.
|
explicit |
Definition at line 205 of file pdfiadaptor.cxx.
References implementationName, and m_aMutex.
|
override |
Definition at line 310 of file pdfiadaptor.cxx.
References m_implementationName.
|
override |
Definition at line 320 of file pdfiadaptor.cxx.
|
overridevirtual |
Definition at line 260 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.
xOutput | Stream to write the flat xml file to |
xStatus | Optional status indicator |
Definition at line 243 of file pdfiadaptor.cxx.
References pdfi::createOdfEmitter(), and parse().
|
private |
Definition at line 217 of file pdfiadaptor.cxx.
References m_pVisitorFactory, m_xContext, pdfi::xpdf_ImportFromFile(), and pdfi::xpdf_ImportFromStream().
Referenced by importer(), and odfConvert().
|
overridevirtual |
Definition at line 302 of file pdfiadaptor.cxx.
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.
|
override |
Definition at line 315 of file pdfiadaptor.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 86 of file pdfiadaptor.hxx.
Referenced by getImplementationName().
|
private |
Definition at line 91 of file pdfiadaptor.hxx.
Referenced by parse(), and setTreeVisitorFactory().
|
private |
Definition at line 88 of file pdfiadaptor.hxx.
Referenced by parse().
|
private |
Definition at line 90 of file pdfiadaptor.hxx.
Referenced by setTargetDocument().