svx/source/gallery2/galctrl.cxx |  198 ----------------------------------------
 1 file changed, 198 deletions(-)

New commits:
commit 0ce8533ee2b3202922e0ff7ba9f9212080965167
Author: Samuel Mehrbrodt <s.mehrbr...@gmail.com>
Date:   Sun Sep 21 23:51:48 2014 +0200

    Remove dead code
    
    Change-Id: I0bbfdbdc7ef4674260771f15b9c2aa40c4bf5f36

diff --git a/svx/source/gallery2/galctrl.cxx b/svx/source/gallery2/galctrl.cxx
index 90be8c1..31a2100 100644
--- a/svx/source/gallery2/galctrl.cxx
+++ b/svx/source/gallery2/galctrl.cxx
@@ -368,105 +368,6 @@ void GalleryIconView::UserDraw( const UserDrawEvent& 
rUDEvt )
         }
 
         SetItemText(nId, aItemTextTitle);
-
-        //SgaObject* pObj = mpTheme->AcquireObject( nId - 1 );
-
-        //if( pObj )
-        //{
-        //    const Rectangle& rRect = rUDEvt.GetRect();
-        //    const Size aSize(rRect.GetWidth(), rRect.GetHeight());
-        //    const BitmapEx aBitmapEx(pObj->createPreviewBitmapEx(aSize));
-        //    const Size aBitmapExSizePixel(aBitmapEx.GetSizePixel());
-
-        //    if(!aBitmapEx.IsEmpty())
-        //    {
-        //        const Point aPos(
-        //            ((aSize.Width() - aBitmapExSizePixel.Width()) >> 1) + 
rRect.Left(),
-        //            ((aSize.Height() - aBitmapExSizePixel.Height()) >> 1) + 
rRect.Top());
-        //        OutputDevice* pDev = rUDEvt.GetDevice();
-
-        //        if(aBitmapEx.IsTransparent())
-        //        {
-        //            // draw checkered background
-        //            drawTransparenceBackground(*pDev, aPos, 
aBitmapExSizePixel);
-        //        }
-
-        //        pDev->DrawBitmapEx(aPos, aBitmapEx);
-        //    }
-
-        //  //const Rectangle&  rRect = rUDEvt.GetRect();
-        //  //OutputDevice*     pDev = rUDEvt.GetDevice();
-        //  //Graphic           aGraphic;
-        //    //bool bTransparent(false);
-
-        //  //if( pObj->IsThumbBitmap() )
-        //  //{
-        //  //  BitmapEx aBitmapEx;
-
-        //  //  if( pObj->GetObjKind() == SGA_OBJ_SOUND )
-        //    //    {
-        //    //        Bitmap aTemp = pObj->GetThumbBmp().GetBitmap();
-
-        //    //        aTemp.Replace( COL_LIGHTMAGENTA, COL_WHITE );
-        //    //        aBitmapEx = BitmapEx(aTemp);
-        //    //    }
-        //    //    else
-        //    //    {
-        //    //        aBitmapEx = pObj->GetThumbBmp();
-        //    //        bTransparent = aBitmapEx.IsTransparent();
-        //    //    }
-
-        //  //  if( ( pDev->GetBitCount() <= 8 ) && ( aBitmapEx.GetBitCount() 
>= 8 ) )
-        //    //    {
-        //  //      aBitmapEx.Dither( BMP_DITHER_FLOYD );
-        //    //    }
-
-        //  //  aGraphic = aBitmapEx;
-        //  //}
-        //  //else
-        //    //{
-        //  //  aGraphic = pObj->GetThumbMtf();
-        //    //    bTransparent = true;
-        //    //}
-
-        //  //Size aSize( aGraphic.GetSizePixel( pDev ) );
-
-        //  //if ( aSize.Width() && aSize.Height() )
-        //  //{
-        //  //  if( ( aSize.Width() > rRect.GetWidth() ) || ( aSize.Height() > 
rRect.GetHeight() ) )
-        //  //  {
-        //  //      Point           aNewPos;
-        //  //      const double    fBmpWH  = (double) aSize.Width() / 
aSize.Height();
-        //  //      const double    fThmpWH = (double) rRect.GetWidth() / 
rRect.GetHeight();
-
-        //  //      // Bitmap an Thumbgroesse anpassen
-        //  //      if ( fBmpWH < fThmpWH )
-        //  //      {
-        //  //          aSize.Width() = (long) ( rRect.GetHeight() * fBmpWH );
-        //  //          aSize.Height()= rRect.GetHeight();
-        //  //      }
-        //  //      else
-        //  //      {
-        //  //          aSize.Width() = rRect.GetWidth();
-        //  //          aSize.Height()= (long) ( rRect.GetWidth() / fBmpWH );
-        //  //      }
-        //  //  }
-
-        //  //  const Point aPos( ( ( rRect.GetWidth() - aSize.Width() ) >> 1 
) + rRect.Left(),
-        //  //                    ( ( rRect.GetHeight() - aSize.Height() ) >> 
1 ) + rRect.Top() );
-
-        //    //    if(bTransparent)
-        //    //    {
-        //    //        // draw checkered background
-        //    //        drawTransparenceBackground(*pDev, aPos, aSize);
-        //    //    }
-
-        //  //  aGraphic.Draw( pDev, aPos, aSize );
-        //  //}
-
-        //  SetItemText( nId, GalleryBrowser2::GetItemText( *mpTheme, *pObj, 
GALLERY_ITEM_TITLE) );
-        //  mpTheme->ReleaseObject( pObj );
-        //}
     }
 }
 
@@ -657,105 +558,6 @@ void GalleryListView::PaintField( OutputDevice& rDev, 
const Rectangle& rRect, sa
         }
 
         rDev.DrawText(Point(rRect.Left() + rRect.GetHeight() + 6, nTextPosY), 
aItemTextTitle);
-
-
-        //SgaObject* pObj = mpTheme->AcquireObject( mnCurRow );
-
-        //if( pObj )
-        //{
-        //    const long nTextPosY = rRect.Top() + ( ( rRect.GetHeight() - 
rDev.GetTextHeight() ) >> 1 );
-
-        //    if( GALLERY_BRWBOX_TITLE == nColumnId )
-        //    {
-        //        const Size aSize(rRect.GetHeight(), rRect.GetHeight());
-        //        const BitmapEx aBitmapEx(pObj->createPreviewBitmapEx(aSize));
-        //        const Size aBitmapExSizePixel(aBitmapEx.GetSizePixel());
-
-        //        if(!aBitmapEx.IsEmpty())
-        //        {
-        //            const Point aPos(
-        //                ((aSize.Width() - aBitmapExSizePixel.Width()) >> 1) 
+ rRect.Left(),
-        //                ((aSize.Height() - aBitmapExSizePixel.Height()) >> 
1) + rRect.Top());
-
-        //            if(aBitmapEx.IsTransparent())
-        //            {
-        //                // draw checkered background
-        //                drawTransparenceBackground(rDev, aPos, 
aBitmapExSizePixel);
-        //            }
-
-        //            rDev.DrawBitmapEx(aPos, aBitmapEx);
-        //        }
-
-
-        //        //Rectangle       aOutputRect( rRect.TopLeft(), Size( 
rRect.GetHeight(), rRect.GetHeight() ) );
-        //      //GraphicObject   aGrfObj;
-        //        //bool bTransparent(false);
-
-        //        //if( pObj->GetObjKind() == SGA_OBJ_SOUND )
-        //        //{
-        //        //    aGrfObj = Graphic( BitmapEx( GAL_RESID( 
RID_SVXBMP_GALLERY_MEDIA ) ) );
-        //        //}
-        //        //else if( pObj->IsThumbBitmap() )
-        //        //{
-        //        //    const BitmapEx aBitmapEx(pObj->GetThumbBmp());
-
-        //        //    bTransparent = aBitmapEx.IsTransparent();
-        //      //    aGrfObj = Graphic(aBitmapEx);
-        //        //}
-        //      //else
-        //        //{
-        //      //    aGrfObj = Graphic( pObj->GetThumbMtf() );
-        //        //    bTransparent = true;
-        //        //}
-
-        //      //Size aSize( rDev.LogicToPixel( aGrfObj.GetPrefSize(), 
aGrfObj.GetPrefMapMode() ) );
-
-        //      //if( aSize.Width() && aSize.Height() )
-        //      //{
-        //      //    if( ( aSize.Width() > aOutputRect.GetWidth() ) || ( 
aSize.Height() > aOutputRect.GetHeight() ) )
-        //      //    {
-        //      //      Point           aNewPos;
-        //      //      const double    fBmpWH  = (double) aSize.Width() / 
aSize.Height();
-        //      //      const double    fThmpWH = (double) 
aOutputRect.GetWidth() / aOutputRect.GetHeight();
-
-        //      //      // Bitmap an Thumbgroesse anpassen
-        //      //      if ( fBmpWH < fThmpWH )
-        //      //      {
-        //      //          aSize.Width() = (long) ( aOutputRect.GetHeight() * 
fBmpWH );
-        //      //          aSize.Height()= aOutputRect.GetHeight();
-        //      //      }
-        //      //      else
-        //      //      {
-        //      //          aSize.Width() = aOutputRect.GetWidth();
-        //      //          aSize.Height()= (long) ( aOutputRect.GetWidth() / 
fBmpWH );
-        //      //      }
-        //      //    }
-
-        //        //    aSize.Width() = Max( aSize.Width(), 4L );
-        //        //    aSize.Height() = Max( aSize.Height(), 4L );
-
-        //      //    const Point aPos( ( ( aOutputRect.GetWidth() - 
aSize.Width() ) >> 1 ) + aOutputRect.Left(),
-        //      //                    ( ( aOutputRect.GetHeight() - 
aSize.Height() ) >> 1 ) + aOutputRect.Top() );
-
-        //        //    if(bTransparent)
-        //        //    {
-        //        //        // draw checkered background
-        //        //        drawTransparenceBackground(rDev, aPos, aSize);
-        //        //    }
-
-        //        //    aGrfObj.Draw( &rDev, aPos, aSize );
-        //      //}
-
-        //        // aOutputRect.Right() is here rRect.Left() + 
rRect.GetHeight()
-        //      rDev.DrawText( Point( rRect.Left() + rRect.GetHeight() + 6, 
nTextPosY ), GalleryBrowser2::GetItemText( *mpTheme, *pObj, GALLERY_ITEM_TITLE 
) );
-        //    }
-        //    else if( GALLERY_BRWBOX_PATH == nColumnId )
-        //    {
-        //        rDev.DrawText( Point( rRect.Left(), nTextPosY ), 
GalleryBrowser2::GetItemText( *mpTheme, *pObj, GALLERY_ITEM_PATH ) );
-        //    }
-
-        //    mpTheme->ReleaseObject( pObj );
-        //}
     }
 
     rDev.Pop();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to