diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-10 10:23:56 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-10 11:47:08 -0400 |
commit | 085ab6263e470f81030c626b814698589ceaf8e8 (patch) | |
tree | b724f4a3606ec1a97b1c2af341bef13ce7f736ef /chart2 | |
parent | c0a4de1ede27c5911fea0829deabee0b599d5d40 (diff) |
Remove the old GL3DBarChart code.
Change-Id: Id7039021f252fb45464b5e42248cf3c68edc7be4
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/Library_chartcore.mk | 1 | ||||
-rw-r--r-- | chart2/source/view/charttypes/GL3DBarChart.cxx | 83 | ||||
-rw-r--r-- | chart2/source/view/charttypes/GL3DBarChart.hxx | 30 | ||||
-rw-r--r-- | chart2/source/view/charttypes/VSeriesPlotter.cxx | 3 |
4 files changed, 0 insertions, 117 deletions
diff --git a/chart2/Library_chartcore.mk b/chart2/Library_chartcore.mk index dae64e9d966e..7851bd5b55c1 100644 --- a/chart2/Library_chartcore.mk +++ b/chart2/Library_chartcore.mk @@ -93,7 +93,6 @@ $(eval $(call gb_Library_add_exception_objects,chartcore,\ chart2/source/view/charttypes/BubbleChart \ chart2/source/view/charttypes/CandleStickChart \ chart2/source/view/charttypes/CategoryPositionHelper \ - chart2/source/view/charttypes/GL3DBarChart \ chart2/source/view/charttypes/NetChart \ chart2/source/view/charttypes/PieChart \ chart2/source/view/charttypes/Splines \ diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx deleted file mode 100644 index 0249a658e34f..000000000000 --- a/chart2/source/view/charttypes/GL3DBarChart.cxx +++ /dev/null @@ -1,83 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -#include "GL3DBarChart.hxx" -#include <unonames.hxx> - -#include <com/sun/star/chart2/data/XDataSequence.hpp> -#include <com/sun/star/chart2/data/LabelOrigin.hpp> - -#include <stdio.h> - -using namespace com::sun::star; - -namespace chart { - -GL3DBarChart::GL3DBarChart( const css::uno::Reference<css::chart2::XChartType>& xChartTypeModel ) : - VSeriesPlotter(xChartTypeModel, 3, false) -{ -} - -GL3DBarChart::~GL3DBarChart() -{ -} - -void GL3DBarChart::createShapes() -{ - fprintf(stdout, "GL3DBarChart::createShapes: type = '%s'\n", - rtl::OUStringToOString(m_xChartTypeModel->getChartType(), RTL_TEXTENCODING_UTF8).getStr()); - - uno::Reference<beans::XPropertySet> xPropSet(m_xChartTypeModel, uno::UNO_QUERY); - if (xPropSet.is()) - { - bool bRoundedEdge = false; - if (xPropSet->getPropertyValue(CHART_UNONAME_ROUNDED_EDGE) >>= bRoundedEdge) - fprintf(stdout, "GL3DBarChart::createShapes: rounded edge = %d (%p)\n", bRoundedEdge, m_xChartTypeModel.get()); - } - -#if 0 - if (m_pExplicitCategoriesProvider) - { - uno::Reference<chart2::data::XDataSequence> xCats = m_pExplicitCategoriesProvider->getOriginalCategories(); - - OUString aSrcRange = xCats->getSourceRangeRepresentation(); - - fprintf(stdout, "GL3DBarChart::createShapes: source range = '%s'\n", rtl::OUStringToOString(aSrcRange, RTL_TEXTENCODING_UTF8).getStr()); - - uno::Sequence<OUString> aCats = m_pExplicitCategoriesProvider->getSimpleCategories(); - for (sal_Int32 i = 0; i < aCats.getLength(); ++i) - fprintf(stdout, "GL3DBarChart::createShapes: category = '%s'\n", rtl::OUStringToOString(aCats[i], RTL_TEXTENCODING_UTF8).getStr()); - } - - uno::Sequence<OUString> aSeriesNames = getSeriesNames(); - fprintf(stdout, "GL3DBarChart::createShapes: series name count = %d\n", aSeriesNames.getLength()); - for (sal_Int32 i = 0; i < aSeriesNames.getLength(); ++i) - fprintf(stdout, "GL3DBarChart::createShapes: name = '%s'\n", rtl::OUStringToOString(aSeriesNames[i], RTL_TEXTENCODING_UTF8).getStr()); - - std::vector<VDataSeries*> aAllSeries = getAllSeries(); - fprintf(stdout, "GL3DBarChart::createShapes: series count = %d\n", aAllSeries.size()); - for (size_t i = 0, n = aAllSeries.size(); i < n; ++i) - { - const VDataSeries* pSeries = aAllSeries[i]; - fprintf(stdout, "GL3DBarChart::createShapes: series %d: cid = '%s' particle = '%s'\n", - i, - rtl::OUStringToOString(pSeries->getCID(), RTL_TEXTENCODING_UTF8).getStr(), - rtl::OUStringToOString(pSeries->getSeriesParticle(), RTL_TEXTENCODING_UTF8).getStr()); - - uno::Sequence<double> aXValues = pSeries->getAllX(); - uno::Sequence<double> aYValues = pSeries->getAllY(); - for (size_t j = 0; j < aXValues.getLength(); ++j) - fprintf(stdout, "GL3DBarChart::createShapes: (x=%g,y=%g)\n", aXValues[j], aYValues[j]); - } -#endif -} - -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/source/view/charttypes/GL3DBarChart.hxx b/chart2/source/view/charttypes/GL3DBarChart.hxx deleted file mode 100644 index 87128a87188e..000000000000 --- a/chart2/source/view/charttypes/GL3DBarChart.hxx +++ /dev/null @@ -1,30 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -#ifndef CHART2_GL3DBARCHART_HXX -#define CHART2_GL3DBARCHART_HXX - -#include <VSeriesPlotter.hxx> - -namespace chart { - -class GL3DBarChart : public VSeriesPlotter -{ -public: - GL3DBarChart( const css::uno::Reference<css::chart2::XChartType>& xChartTypeModel ); - virtual ~GL3DBarChart(); - - virtual void createShapes() SAL_OVERRIDE; -}; - -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx index 10271929de5b..7433eb8bc1b9 100644 --- a/chart2/source/view/charttypes/VSeriesPlotter.cxx +++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx @@ -51,7 +51,6 @@ #include "CandleStickChart.hxx" #include "BubbleChart.hxx" #include "NetChart.hxx" -#include "GL3DBarChart.hxx" #include <com/sun/star/chart/ErrorBarStyle.hpp> #include <com/sun/star/chart/TimeUnit.hpp> @@ -2443,8 +2442,6 @@ VSeriesPlotter* VSeriesPlotter::createSeriesPlotter( pRet = new AreaChart(xChartTypeModel,nDimensionCount,false,true); else if( aChartType.equalsIgnoreAsciiCase(CHART2_SERVICE_NAME_CHARTTYPE_BUBBLE) ) pRet = new BubbleChart(xChartTypeModel,nDimensionCount); - else if (aChartType.equalsIgnoreAsciiCase(CHART2_SERVICE_NAME_CHARTTYPE_GL3DBAR)) - pRet = new GL3DBarChart(xChartTypeModel); else if( aChartType.equalsIgnoreAsciiCase(CHART2_SERVICE_NAME_CHARTTYPE_PIE) ) pRet = new PieChart(xChartTypeModel,nDimensionCount, bExcludingPositioning ); else if( aChartType.equalsIgnoreAsciiCase(CHART2_SERVICE_NAME_CHARTTYPE_NET) ) |