diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-14 23:25:31 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-15 01:30:55 +0100 |
commit | ff6c2e720ba3eb42636b0e7f2ad1981537658d39 (patch) | |
tree | 3b8f843a780d7b9e22f91b4dbb02ad29c84df7e3 /sc | |
parent | 4517bb391afea870f856e030d8b1e5e8ee9364ac (diff) |
remove some unnecessary lines
Change-Id: I0a83769f19a38fd5c0421ba6117603517cded17b
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/drawfunc/fuins2.cxx | 10 |
1 files changed, 0 insertions, 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 <com/sun/star/chart/ChartDataRowSource.hpp> #include <cppuhelper/bootstrap.hxx> -#include <com/sun/star/embed/XEmbeddedObjectCreator.hpp> -#include <com/sun/star/embed/EmbeddedObjectCreator.hpp> - 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() |