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 |
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 |
Adapts raw pdf import to XImportFilter interface.
Definition at line 80 of file pdfiadaptor.hxx.
|
explicit |
Definition at line 204 of file pdfiadaptor.cxx.
References implementationName.
|
override |
Definition at line 308 of file pdfiadaptor.cxx.
References m_implementationName.
|
override |
Definition at line 318 of file pdfiadaptor.cxx.
|
overridevirtual |
Definition at line 258 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 241 of file pdfiadaptor.cxx.
References pdfi::createOdfEmitter(), and parse().
|
private |
Definition at line 215 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 300 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 210 of file pdfiadaptor.cxx.
References m_pVisitorFactory.
|
override |
Definition at line 313 of file pdfiadaptor.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 83 of file pdfiadaptor.hxx.
Referenced by getImplementationName().
|
private |
Definition at line 88 of file pdfiadaptor.hxx.
Referenced by parse(), and setTreeVisitorFactory().
|
private |
Definition at line 85 of file pdfiadaptor.hxx.
Referenced by parse().
|
private |
Definition at line 87 of file pdfiadaptor.hxx.
Referenced by setTargetDocument().