diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-07 13:42:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-08 08:44:32 +0100 |
commit | bb7ade140df807b6a0f12766a1365b8f8d0fd342 (patch) | |
tree | d90de305c953a613373d27f8f89bb95c43ee9eb4 /xmloff | |
parent | 44d5188b2fd8afc82aa8fda1ad4b374734129aea (diff) |
loplugin:unusedmethods
Change-Id: Id6b4edd265cb6bef31c72e2a0a440211d51c7c33
Reviewed-on: https://gerrit.libreoffice.org/50900
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/xmlexp.cxx | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx index 7b3221f5bc3e..a3a41b31443e 100644 --- a/xmloff/source/core/xmlexp.cxx +++ b/xmloff/source/core/xmlexp.cxx @@ -1907,24 +1907,6 @@ OUString SvXMLExport::AddEmbeddedXGraphic(uno::Reference<graphic::XGraphic> cons return sURL; } -Reference< XInputStream > SvXMLExport::GetEmbeddedGraphicObjectStream( const OUString& rGraphicObjectURL ) -{ - if( (getExportFlags() & SvXMLExportFlags::EMBEDDED) && - rGraphicObjectURL.startsWith( msGraphicObjectProtocol ) && - mxGraphicResolver.is() ) - { - Reference< XBinaryStreamResolver > xStmResolver( mxGraphicResolver, UNO_QUERY ); - - if( xStmResolver.is() ) - { - Reference< XInputStream > xIn( xStmResolver->getInputStream( rGraphicObjectURL ) ); - return xIn; - } - } - - return nullptr; -} - bool SvXMLExport::GetGraphicMimeTypeFromStream(uno::Reference<graphic::XGraphic> const & rxGraphic, OUString & rOutMimeType) { if (mxGraphicResolver.is()) @@ -1966,31 +1948,6 @@ bool SvXMLExport::AddEmbeddedXGraphicAsBase64(uno::Reference<graphic::XGraphic> return false; } -bool SvXMLExport::AddEmbeddedGraphicObjectAsBase64( const OUString& rGraphicObjectURL ) -{ - bool bRet = false; - - if( (getExportFlags() & SvXMLExportFlags::EMBEDDED) && - rGraphicObjectURL.startsWith( msGraphicObjectProtocol ) && - mxGraphicResolver.is() ) - { - Reference< XBinaryStreamResolver > xStmResolver( mxGraphicResolver, UNO_QUERY ); - - if( xStmResolver.is() ) - { - Reference< XInputStream > xIn( xStmResolver->getInputStream( rGraphicObjectURL ) ); - - if( xIn.is() ) - { - XMLBase64Export aBase64Exp( *this ); - bRet = aBase64Exp.exportOfficeBinaryDataElement( xIn ); - } - } - } - - return bRet; -} - OUString SvXMLExport::AddEmbeddedObject( const OUString& rEmbeddedObjectURL ) { OUString sRet; |