Avoid potential negative array index access to cached text.
[LibreOffice.git] / chart2 / source / inc / ChartResourceGroupDlgs.hxx
blobe545854889715a5f30b6a4e09b5b9f5dfada12df
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #pragma once
22 #include <vcl/weld.hxx>
24 namespace chart
26 class ChartTypeParameter;
28 class SplinePropertiesDialog final : public weld::GenericDialogController
30 public:
31 explicit SplinePropertiesDialog(weld::Window* pParent);
33 void fillControls(const ChartTypeParameter& rParameter);
34 void fillParameter(ChartTypeParameter& rParameter, bool bSmoothLines);
36 private:
37 DECL_LINK(SplineTypeListBoxHdl, weld::ComboBox&, void);
39 private:
40 std::unique_ptr<weld::ComboBox> m_xLB_Spline_Type;
41 std::unique_ptr<weld::SpinButton> m_xMF_SplineResolution;
42 std::unique_ptr<weld::Label> m_xFT_SplineOrder;
43 std::unique_ptr<weld::SpinButton> m_xMF_SplineOrder;
46 class SteppedPropertiesDialog final : public weld::GenericDialogController
48 public:
49 explicit SteppedPropertiesDialog(weld::Window* pParent);
51 void fillControls(const ChartTypeParameter& rParameter);
52 void fillParameter(ChartTypeParameter& rParameter, bool bSteppedLines);
54 private:
55 std::unique_ptr<weld::RadioButton> m_xRB_Start;
56 std::unique_ptr<weld::RadioButton> m_xRB_End;
57 std::unique_ptr<weld::RadioButton> m_xRB_CenterX;
58 std::unique_ptr<weld::RadioButton> m_xRB_CenterY;
61 } //namespace chart
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */