Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


See attached file,


Björgvin Ragnarsson
From 200d27b57eb9e6439c85d49a0cd7870bb6eacab1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rgvin=20Ragnarsson?= <nifgraup@gmail.com>
Date: Fri, 17 Feb 2012 23:19:28 +0000
Subject: [PATCH] Remove unused code in core/svx/source/dialog/_contdlg.cxx

---
 svx/source/dialog/_contdlg.cxx |   65 ----------------------------------------
 1 files changed, 0 insertions(+), 65 deletions(-)

diff --git a/svx/source/dialog/_contdlg.cxx b/svx/source/dialog/_contdlg.cxx
index 576d06e..c96bbf7 100644
--- a/svx/source/dialog/_contdlg.cxx
+++ b/svx/source/dialog/_contdlg.cxx
@@ -195,64 +195,9 @@ PolyPolygon SvxContourDlg::CreateAutoContour( const Graphic& rGraphic,
     return PolyPolygon( XOutBitmap::GetCountour( aBmp, nContourFlags, 128, pRect ) );
 }
 
-void SvxContourDlg::ScaleContour( PolyPolygon& rContour, const Graphic& rGraphic,
-                                  const MapUnit eUnit, const Size& rDisplaySize )
-{
-    DBG_ASSERT( rGraphic.GetType() != GRAPHIC_NONE, "Graphic is not valid!" );
-
-    OutputDevice*   pOutDev = Application::GetDefaultDevice();
-    const MapMode   aDispMap( eUnit );
-    const MapMode   aGrfMap( rGraphic.GetPrefMapMode() );
-    const Size      aGrfSize( rGraphic.GetPrefSize() );
-    Size            aOrgSize;
-    Point           aNewPoint;
-    sal_Bool            bPixelMap = aGrfMap.GetMapUnit() == MAP_PIXEL;
-
-    if ( bPixelMap )
-        aOrgSize = pOutDev->PixelToLogic( aGrfSize, aDispMap );
-    else
-        aOrgSize = pOutDev->LogicToLogic( aGrfSize, aGrfMap, aDispMap );
-
-    if ( aOrgSize.Width() && aOrgSize.Height() )
-    {
-        double fScaleX = (double) rDisplaySize.Width() / aOrgSize.Width();
-        double fScaleY = (double) rDisplaySize.Height() / aOrgSize.Height();
-
-        for ( sal_uInt16 j = 0, nPolyCount = rContour.Count(); j < nPolyCount; j++ )
-        {
-            Polygon& rPoly = rContour[ j ];
-
-            for ( sal_uInt16 i = 0, nCount = rPoly.GetSize(); i < nCount; i++ )
-            {
-                if ( bPixelMap )
-                    aNewPoint = pOutDev->PixelToLogic( rPoly[ i ], aDispMap  );
-                else
-                    aNewPoint = pOutDev->LogicToLogic( rPoly[ i ], aGrfMap, aDispMap  );
-
-                rPoly[ i ] = Point( FRound( aNewPoint.X() * fScaleX ), FRound( aNewPoint.Y() * 
fScaleY ) );
-            }
-        }
-    }
-}
-
 // Loop through to super class, no virtual Methods to not become incompatible
 // due to IF changes
 
-void SvxContourDlg::SetExecState( sal_Bool bEnable )
-{
-    pSuperClass->SetExecState( bEnable );
-}
-
-void SvxContourDlg::SetGraphic( const Graphic& rGraphic )
-{
-    pSuperClass->SetGraphic( rGraphic );
-}
-
-void SvxContourDlg::SetGraphicLinked( sal_Bool bGraphicLinked )
-{
-    pSuperClass->SetGraphicLinked( bGraphicLinked );
-}
-
 const Graphic& SvxContourDlg::GetGraphic() const
 {
     return pSuperClass->GetGraphic();
@@ -263,21 +208,11 @@ sal_Bool SvxContourDlg::IsGraphicChanged() const
     return pSuperClass->IsGraphicChanged();
 }
 
-void SvxContourDlg::SetPolyPolygon( const PolyPolygon& rPolyPoly )
-{
-    pSuperClass->SetPolyPolygon( rPolyPoly );
-}
-
 PolyPolygon SvxContourDlg::GetPolyPolygon()
 {
     return pSuperClass->GetPolyPolygon( sal_True );
 }
 
-void SvxContourDlg::SetEditingObject( void* pObj )
-{
-    pSuperClass->SetEditingObject( pObj );
-}
-
 const void* SvxContourDlg::GetEditingObject() const
 {
     return pSuperClass->GetEditingObject();
-- 
1.7.9


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.