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 | 85f4b6abd19eb9290bb40a9ab573c6a05945db94 (patch) | |
tree | 8633b15c4752a813b553e70f2153808c1fe3933f /extensions/source | |
parent | 5515c056ab6438f2a2d6b4b3ab1d66cf6723e7fb (diff) |
Remove two more _HC instances
Diffstat (limited to 'extensions/source')
-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 ad43e61ca7f9..894a462a8108 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& ) { |