Files
libreoffice/chart2/source/controller/dialogs/GL3DBarChartDialogController.cxx
Kohei Yoshida cea725111c Add the UI bits for showing "rounded edge" property for GL3D chart.
Change-Id: Ia6083c423bf8286a0b562d490283f8e1328a0124
2014-03-26 23:14:58 -04:00

60 lines
1.6 KiB
C++

/* -*- 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 "GL3DBarChartDialogController.hxx"
#include <Strings.hrc>
#include <Bitmaps.hrc>
#include <ResId.hxx>
#include <svtools/valueset.hxx>
namespace chart {
GL3DBarChartDialogController::GL3DBarChartDialogController() {}
GL3DBarChartDialogController::~GL3DBarChartDialogController() {}
bool GL3DBarChartDialogController::shouldShow_GL3DResourceGroup() const
{
return true;
}
OUString GL3DBarChartDialogController::getName()
{
return SchResId(STR_TYPE_GL3D_BAR).toString();
}
Image GL3DBarChartDialogController::getImage()
{
return Image(SchResId(IMG_TYPE_GL3D_BAR));
}
const tTemplateServiceChartTypeParameterMap&
GL3DBarChartDialogController::getTemplateMap() const
{
static tTemplateServiceChartTypeParameterMap aMap =
tTemplateServiceChartTypeParameterMap
("com.sun.star.chart2.template.GL3DBar", ChartTypeParameter(1))
("com.sun.star.chart2.template.GL3DBarRoundedRectangle", ChartTypeParameter(2));
return aMap;
}
void GL3DBarChartDialogController::fillSubTypeList(
ValueSet& rSubTypeList, const ChartTypeParameter& /*rParameter*/ )
{
rSubTypeList.Clear();
rSubTypeList.InsertItem(1, Image(Bitmap(SchResId(BMP_GL3D_BAR_ROUNDRECT))));
rSubTypeList.SetItemText(1, SchResId(STR_GL3D_BAR).toString());
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */