[Libreoffice-commits] .: extensions/source wizards/source

Sebastian Spaeth spaetz at kemper.freedesktop.org
Fri Nov 12 06:04:57 PST 2010


 extensions/source/propctrlr/browserline.cxx |   21 +++------------------
 wizards/source/formwizard/Language.xba      |    2 +-
 2 files changed, 4 insertions(+), 19 deletions(-)

New commits:
commit f68e925d20bb326789e940e6edb445a05652d693
Author: Sebastian Spaeth <Sebastian at SSpaeth.de>
Date:   Fri Nov 12 15:02:12 2010 +0100

    Remove two more _HC instances

diff --git a/extensions/source/propctrlr/browserline.cxx b/extensions/source/propctrlr/browserline.cxx
index 74a2765..74fe5ca 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& )
         {
diff --git a/wizards/source/formwizard/Language.xba b/wizards/source/formwizard/Language.xba
index 5a2dcb1..2f2b7e3 100644
--- a/wizards/source/formwizard/Language.xba
+++ b/wizards/source/formwizard/Language.xba
@@ -112,8 +112,8 @@ Dim slblFields as String
 		.optAlign2.Label = GetResText(RID_FORM + 34)
 		.optAlign0.State = 1
 		
+                //FIXME: Remove this unused FNameAddOn through the file
 		FNameAddOn = &quot;&quot;
-		If isHighContrast(DlgFormDB.getPeer) Then FNameAddOn = &quot;_hc&quot;
 
 		IDArray = Array(36, 37, 40, 38, 39)
 		For i = 1 To 5


More information about the Libreoffice-commits mailing list