fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / controller / dialogs / GL3DBarChartDialogController.cxx
blob08cb2eca2bfddc90e13e9990a187b7388e98e339
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #include "GL3DBarChartDialogController.hxx"
11 #include <Strings.hrc>
12 #include <Bitmaps.hrc>
13 #include <ResId.hxx>
15 #include <svtools/valueset.hxx>
17 namespace chart {
19 GL3DBarChartDialogController::GL3DBarChartDialogController() {}
21 GL3DBarChartDialogController::~GL3DBarChartDialogController() {}
23 bool GL3DBarChartDialogController::shouldShow_GL3DResourceGroup() const
25 return true;
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));
45 return aMap;
48 void GL3DBarChartDialogController::fillSubTypeList(
49 ValueSet& rSubTypeList, const ChartTypeParameter& /*rParameter*/ )
51 rSubTypeList.Clear();
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: */