diff options
author | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2010-11-12 15:02:12 +0100 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2010-11-12 15:02:12 +0100 |
commit | f68e925d20bb326789e940e6edb445a05652d693 (patch) | |
tree | e6646788546c88ab47696707c2a1479f370a85df /extensions | |
parent | 90531f25698e2b861bf761607eaf0798d3935a0d (diff) |
Remove two more _HC instances
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/browserline.cxx | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/extensions/source/propctrlr/browserline.cxx b/extensions/source/propctrlr/browserline.cxx index 74a276516..74fe5ca4f 100644 --- a/extensions/source/propctrlr/browserline.cxx +++ b/extensions/source/propctrlr/browserline.cxx @@ -412,7 +412,9 @@ namespace pcr return *rpButton; } - //------------------------------------------------------------------ +/** + * @param _out_rHCImage is unused now as there are no highcontrast variants + */ void OBrowserLine::impl_getImagesFromURL_nothrow( const ::rtl::OUString& _rImageURL, Image& _out_rImage, Image& _out_rHCImage ) { try @@ -426,23 +428,6 @@ namespace pcr Reference< XGraphic > xGraphic( xGraphicProvider->queryGraphic( aMediaProperties ), UNO_QUERY_THROW ); _out_rImage = _out_rHCImage = Image( xGraphic ); - - // see if we find an HC version beside the normal graphic - INetURLObject aURL( _rImageURL ); - ::rtl::OUString sBaseName( aURL.getBase() ); - aURL.setBase( sBaseName + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "_hc" ) ) ); - ::rtl::OUString sHCImageURL( aURL.GetMainURL( INetURLObject::NO_DECODE ) ); - - Reference< XGraphic > xHCGraphic; - try - { - aMediaProperties[0].Value <<= sHCImageURL; - xHCGraphic = xGraphicProvider->queryGraphic( aMediaProperties ); - } - catch( const Exception& ) { } - - if ( xHCGraphic.is() ) - _out_rHCImage = Image( xHCGraphic ); } catch( const Exception& ) { |