diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-03-09 22:24:31 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-03-10 02:11:58 +0100 |
commit | d0b36b780dca966bc5e8682d8dff635072124603 (patch) | |
tree | e5705350ad7a566d106a7a6f2e087e3ff104d847 /oox/source/helper/graphichelper.cxx | |
parent | 1dc39d36806cc9382763bfd0b74e3d28e3fa1365 (diff) |
oox: remove unused methods that rely on GraphicObject URL
Change-Id: Ie68ccfa8d802bb284da8bb4af69882f4b66a3dac
Reviewed-on: https://gerrit.libreoffice.org/51010
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'oox/source/helper/graphichelper.cxx')
-rw-r--r-- | oox/source/helper/graphichelper.cxx | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/oox/source/helper/graphichelper.cxx b/oox/source/helper/graphichelper.cxx index fdefc8ad2de6..7f4262de787c 100644 --- a/oox/source/helper/graphichelper.cxx +++ b/oox/source/helper/graphichelper.cxx @@ -64,8 +64,7 @@ inline sal_Int32 lclConvertScreenPixelToHmm( double fPixel, double fPixelPerHmm GraphicHelper::GraphicHelper( const Reference< XComponentContext >& rxContext, const Reference< XFrame >& rxTargetFrame, const StorageRef& rxStorage ) : mxContext( rxContext ), - mxStorage( rxStorage ), - maGraphicObjScheme( "vnd.sun.star.GraphicObject:" ) + mxStorage( rxStorage ) { OSL_ENSURE( mxContext.is(), "GraphicHelper::GraphicHelper - missing component context" ); if( mxContext.is() ) @@ -350,28 +349,6 @@ Reference< XGraphic > GraphicHelper::importEmbeddedGraphic( const OUString& rStr return xGraphic; } -OUString GraphicHelper::createGraphicObject( const Reference< XGraphic >& rxGraphic ) const -{ - OUString aGraphicObjUrl; - if( mxContext.is() && rxGraphic.is() ) try - { - Reference< XGraphicObject > xGraphicObj( graphic::GraphicObject::create( mxContext ), UNO_SET_THROW ); - xGraphicObj->setGraphic( rxGraphic ); - maGraphicObjects.push_back( xGraphicObj ); - aGraphicObjUrl = maGraphicObjScheme + xGraphicObj->getUniqueID(); - } - catch( Exception& ) - { - } - return aGraphicObjUrl; -} - -OUString GraphicHelper::importGraphicObject( const Reference< XInputStream >& rxInStrm, - const WmfExternal* pExtHeader ) const -{ - return createGraphicObject( importGraphic( rxInStrm, pExtHeader ) ); -} - awt::Size GraphicHelper::getOriginalSize( const Reference< XGraphic >& xGraphic ) const { awt::Size aSizeHmm; |