diff options
author | David Tardon <dtardon@redhat.com> | 2012-03-06 06:11:58 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-03-06 10:32:07 +0100 |
commit | 71eb43357bf2e4d98f67a17cdf1071e018289d1a (patch) | |
tree | 90566cb242b8a1d238a6b7eb6b633b714aaf20d9 /sdext | |
parent | e02aeba0d7a69bc5c50d930351406a269b7cbf00 (diff) |
this code is still used by pdfimport's test apps
This reverts commit 4001370ba5900dd0a0ec04c62f5aeb347bde025a.
Conflicts:
unusedcode.easy
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/pdfiadaptor.cxx | 16 | ||||
-rw-r--r-- | sdext/source/pdfimport/pdfiadaptor.hxx | 3 |
2 files changed, 19 insertions, 0 deletions
diff --git a/sdext/source/pdfimport/pdfiadaptor.cxx b/sdext/source/pdfimport/pdfiadaptor.cxx index 1d1a3ad03087..1fc25d85932b 100644 --- a/sdext/source/pdfimport/pdfiadaptor.cxx +++ b/sdext/source/pdfimport/pdfiadaptor.cxx @@ -260,6 +260,22 @@ bool PDFIRawAdaptor::parse( const uno::Reference<io::XInputStream>& xInput return bSuccess; } +bool PDFIRawAdaptor::odfConvert( const rtl::OUString& rURL, + const uno::Reference<io::XOutputStream>& xOutput, + const uno::Reference<task::XStatusIndicator>& xStatus ) +{ + XmlEmitterSharedPtr pEmitter = createOdfEmitter(xOutput); + const bool bSuccess = parse(uno::Reference<io::XInputStream>(), + uno::Reference<task::XInteractionHandler>(), + rtl::OUString(), + xStatus,pEmitter,rURL); + + // tell input stream that it is no longer needed + xOutput->closeOutput(); + + return bSuccess; +} + // XImportFilter sal_Bool SAL_CALL PDFIRawAdaptor::importer( const uno::Sequence< beans::PropertyValue >& rSourceData, const uno::Reference< xml::sax::XDocumentHandler >& rHdl, diff --git a/sdext/source/pdfimport/pdfiadaptor.hxx b/sdext/source/pdfimport/pdfiadaptor.hxx index d2b2943681f0..d9d6d71356f7 100644 --- a/sdext/source/pdfimport/pdfiadaptor.hxx +++ b/sdext/source/pdfimport/pdfiadaptor.hxx @@ -121,6 +121,9 @@ namespace pdfi @param xStatus Optional status indicator */ + bool odfConvert( const rtl::OUString& rURL, + const com::sun::star::uno::Reference<com::sun::star::io::XOutputStream>& xOutput, + const com::sun::star::uno::Reference<com::sun::star::task::XStatusIndicator>& xStatus ); // XImportFilter virtual sal_Bool SAL_CALL importer( const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& rSourceData, |