diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-10 23:05:54 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-11 09:36:40 -0400 |
commit | a3354ecf4fe32e3ec14b40f0c6db17e84392e42f (patch) | |
tree | e40845fd7f2d2ca18504232025d582d9587be82a /chart2/source/view/main | |
parent | 999377f113fc8f4af4f08b7285658c8c081f6c0b (diff) |
Separate mouse event handlers for GL3D bar chart.
They are just skeletons for now.
Change-Id: I7e5e95ad8a2809125cbcf3affd17e663aafa99b0
Diffstat (limited to 'chart2/source/view/main')
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index da0e30a34e4b..c2056520aa40 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -49,6 +49,7 @@ #include "defines.hxx" #include <unonames.hxx> #include <GL3DBarChart.hxx> +#include <GL3DHelper.hxx> #include <rtl/uuid.h> #include <comphelper/scopeguard.hxx> @@ -2405,32 +2406,8 @@ void ChartView::impl_refreshAddIn() bool ChartView::isReal3DChart() { uno::Reference< XDiagram > xDiagram( mrChartModel.getFirstDiagram() ); - uno::Reference< XCoordinateSystemContainer > xCooSysContainer( xDiagram, uno::UNO_QUERY ); - if( !xCooSysContainer.is()) - return false; - uno::Sequence< uno::Reference< XCoordinateSystem > > aCooSysList( xCooSysContainer->getCoordinateSystems() ); - for( sal_Int32 nCS = 0; nCS < aCooSysList.getLength(); ++nCS ) - { - uno::Reference< XCoordinateSystem > xCooSys( aCooSysList[nCS] ); - // - //iterate through all chart types in the current coordinate system - uno::Reference< XChartTypeContainer > xChartTypeContainer( xCooSys, uno::UNO_QUERY ); - OSL_ASSERT( xChartTypeContainer.is()); - if( !xChartTypeContainer.is() ) - continue; - - uno::Sequence< uno::Reference< XChartType > > aChartTypeList( xChartTypeContainer->getChartTypes() ); - for( sal_Int32 nT = 0; nT < aChartTypeList.getLength(); ++nT ) - { - uno::Reference< XChartType > xChartType( aChartTypeList[nT] ); - OUString aChartType = xChartType->getChartType(); - if( aChartType == "com.sun.star.chart2.GL3DBarChartType" ) - return true; - } - } - - return false; + return GL3DHelper::isGL3DDiagram(xDiagram); } void ChartView::createShapes() |