From ff6c2e720ba3eb42636b0e7f2ad1981537658d39 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Thu, 14 Mar 2013 23:25:31 +0100 Subject: remove some unnecessary lines Change-Id: I0a83769f19a38fd5c0421ba6117603517cded17b --- sc/source/ui/drawfunc/fuins2.cxx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sc/source/ui/drawfunc/fuins2.cxx b/sc/source/ui/drawfunc/fuins2.cxx index f5a8aebb8167..95e589db63c9 100644 --- a/sc/source/ui/drawfunc/fuins2.cxx +++ b/sc/source/ui/drawfunc/fuins2.cxx @@ -61,9 +61,6 @@ #include #include -#include -#include - using namespace ::com::sun::star; // BM/IHA -- @@ -792,16 +789,10 @@ FuInsertChartFromFile::FuInsertChartFromFile( ScTabViewShell* pViewSh, Window* p OUString aName; uno::Reference< embed::XEmbeddedObject > xObj = rObjContainer.InsertEmbeddedObject( xStorage, aName ); - uno::Reference< ::com::sun::star::chart2::data::XDataReceiver > xReceiver; - uno::Reference< embed::XComponentSupplier > xCompSupp( xObj, uno::UNO_QUERY ); - if( xCompSupp.is()) - xReceiver.set( xCompSupp->getComponent(), uno::UNO_QUERY ); - const sal_Int64 nAspect = embed::Aspects::MSOLE_CONTENT; awt::Size aSz = xObj->getVisualAreaSize( nAspect ); Size aSize( aSz.Width, aSz.Height ); - MapUnit aMapUnit = VCLUnoHelper::UnoEmbed2VCLMapUnit( xObj->getMapUnit( nAspect ) ); ScRange aPositionRange = pViewSh->GetViewData()->GetCurPos(); Point aStart = pViewSh->GetChartInsertPos( aSize, aPositionRange ); Rectangle aRect (aStart, aSize); @@ -818,7 +809,6 @@ FuInsertChartFromFile::FuInsertChartFromFile( ScTabViewShell* pViewSh, Window* p pView->MarkObj( pObj, pPV ); pViewShell->ActivateObject( (SdrOle2Obj*) pObj, SVVERB_SHOW ); - } void FuInsertChartFromFile::Activate() -- cgit v1.2.3