From 8d509d69b434bd70b61cb6eed8b8dc21707726a3 Mon Sep 17 00:00:00 2001 From: Zolnai Tamás Date: Mon, 11 Aug 2014 14:27:16 +0200 Subject: This OpenGL window is useless Change-Id: Ied9914c9a317dc3945c29b984d2a68957275fc52 --- sc/source/ui/inc/tabvwsh.hxx | 3 --- sc/source/ui/view/tabvwsh4.cxx | 33 --------------------------------- sc/source/ui/view/tabvwshb.cxx | 5 ----- 3 files changed, 41 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx index d29222fb5dd8..b20b82973be0 100644 --- a/sc/source/ui/inc/tabvwsh.hxx +++ b/sc/source/ui/inc/tabvwsh.hxx @@ -189,8 +189,6 @@ private: void DoReadUserDataSequence( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rSettings ); - void AddOpenGLChartWindows(); - DECL_LINK( SimpleRefClose, void* ); DECL_LINK( SimpleRefDone, OUString* ); DECL_LINK( SimpleRefAborted, OUString* ); @@ -327,7 +325,6 @@ public: ObjectSelectionType GetCurObjectSelectionType() { return eCurOST; } virtual ErrCode DoVerb(long nVerb) SAL_OVERRIDE; - virtual void Initialize() SAL_OVERRIDE; void StopEditShell(); bool IsDrawTextShell() const; diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx index 2fc38495a3cb..bcc679e7babf 100644 --- a/sc/source/ui/view/tabvwsh4.cxx +++ b/sc/source/ui/view/tabvwsh4.cxx @@ -571,39 +571,6 @@ bool isGL3DDiagram( const css::uno::Reference& xDiagram ) } -void ScTabViewShell::AddOpenGLChartWindows() -{ - ScDocument* pDoc = GetViewData().GetDocument(); - ScGridWindow* pParentWindow = GetActiveWin(); - - std::vector, Rectangle> > aCharts = pDoc->GetAllCharts(); - - for(std::vector, Rectangle> >::iterator itr = aCharts.begin(), - itrEnd = aCharts.end(); itr != itrEnd; ++itr) - { - if(!itr->first.is()) - return; - OpenGLWindow* pOpenGLWindow = new OpenGLWindow(pParentWindow); - - pOpenGLWindow->Show(false); - Size aSize = itr->second.GetSize(); - Size aWindowSize = pOpenGLWindow->LogicToPixel( aSize, MapMode( MAP_100TH_MM ) ); - - pOpenGLWindow->SetSizePixel(aWindowSize); - Point aPos = itr->second.TopLeft(); - pOpenGLWindow->SetPosPixel(pOpenGLWindow->LogicToPixel(aPos, MapMode(MAP_100TH_MM))); - pParentWindow->AddChildWindow(pOpenGLWindow); - uno::Reference< chart2::X3DChartWindowProvider > x3DWindowProvider( itr->first, uno::UNO_QUERY_THROW ); - sal_uInt64 nWindowPtr = reinterpret_cast(pOpenGLWindow); - x3DWindowProvider->setWindow(nWindowPtr); - - if(isGL3DDiagram(itr->first->getFirstDiagram())) - { - x3DWindowProvider->update(); - } - } -} - // DoReadUserData is also called from ctor when switching from print preview void ScTabViewShell::DoReadUserData( const OUString& rData ) diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx index 858bfa773ee7..e42950bdc9e0 100644 --- a/sc/source/ui/view/tabvwshb.cxx +++ b/sc/source/ui/view/tabvwshb.cxx @@ -244,11 +244,6 @@ ErrCode ScTabViewShell::DoVerb(long nVerb) return nErr; } -void ScTabViewShell::Initialize() -{ - AddOpenGLChartWindows(); -} - void ScTabViewShell::DeactivateOle() { // deactivate inplace editing if currently active -- cgit