1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #include "GL3DBarChartDialogController.hxx"
11 #include <Strings.hrc>
12 #include <Bitmaps.hrc>
15 #include <svtools/valueset.hxx>
19 GL3DBarChartDialogController::GL3DBarChartDialogController() {}
21 GL3DBarChartDialogController::~GL3DBarChartDialogController() {}
23 bool GL3DBarChartDialogController::shouldShow_GL3DResourceGroup() const
28 OUString
GL3DBarChartDialogController::getName()
30 return SchResId(STR_TYPE_GL3D_BAR
).toString();
33 Image
GL3DBarChartDialogController::getImage()
35 return Image(SchResId(IMG_TYPE_GL3D_BAR
));
38 const tTemplateServiceChartTypeParameterMap
&
39 GL3DBarChartDialogController::getTemplateMap() const
41 static tTemplateServiceChartTypeParameterMap aMap
=
42 tTemplateServiceChartTypeParameterMap
43 ("com.sun.star.chart2.template.GL3DBar", ChartTypeParameter(1))
44 ("com.sun.star.chart2.template.GL3DBarRoundedRectangle", ChartTypeParameter(2));
48 void GL3DBarChartDialogController::fillSubTypeList(
49 ValueSet
& rSubTypeList
, const ChartTypeParameter
& /*rParameter*/ )
52 rSubTypeList
.InsertItem(1, Image(Bitmap(SchResId(BMP_GL3D_BAR_ROUNDRECT
))));
54 rSubTypeList
.SetItemText(1, SchResId(STR_GL3D_BAR
).toString());
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */