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/.
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 .
22 #include "res_BarGeometry.hxx"
23 #include "ChangingResource.hxx"
24 #include "ChartTypeDialogController.hxx"
25 #include "ChartResourceGroupDlgs.hxx"
29 using namespace ::com::sun::star
;
31 class SplinePropertiesDialog
;
32 class SteppedPropertiesDialog
;
36 POS_3DSCHEME_SIMPLE
= 0,
37 POS_3DSCHEME_REALISTIC
= 1
40 class Dim3DLookResourceGroup final
: public ChangingResource
43 explicit Dim3DLookResourceGroup(weld::Builder
* pBuilder
);
45 void showControls(bool bShow
);
47 void fillControls(const ChartTypeParameter
& rParameter
);
48 void fillParameter(ChartTypeParameter
& rParameter
);
51 DECL_LINK(Dim3DLookCheckHdl
, weld::Toggleable
&, void);
52 DECL_LINK(SelectSchemeHdl
, weld::ComboBox
&, void);
55 std::unique_ptr
<weld::CheckButton
> m_xCB_3DLook
;
56 std::unique_ptr
<weld::ComboBox
> m_xLB_Scheme
;
59 class SortByXValuesResourceGroup final
: public ChangingResource
62 explicit SortByXValuesResourceGroup(weld::Builder
* pBuilder
);
64 void showControls(bool bShow
);
66 void fillControls(const ChartTypeParameter
& rParameter
);
67 void fillParameter(ChartTypeParameter
& rParameter
);
70 DECL_LINK(SortByXValuesCheckHdl
, weld::Toggleable
&, void);
73 std::unique_ptr
<weld::CheckButton
> m_xCB_XValueSorting
;
76 class StackingResourceGroup final
: public ChangingResource
79 explicit StackingResourceGroup(weld::Builder
* pBuilder
);
81 void showControls(bool bShow
);
83 void fillControls(const ChartTypeParameter
& rParameter
);
84 void fillParameter(ChartTypeParameter
& rParameter
);
87 DECL_LINK(StackingChangeHdl
, weld::Toggleable
&, void);
88 DECL_LINK(StackingEnableHdl
, weld::Toggleable
&, void);
91 std::unique_ptr
<weld::CheckButton
> m_xCB_Stacked
;
92 std::unique_ptr
<weld::RadioButton
> m_xRB_Stack_Y
;
93 std::unique_ptr
<weld::RadioButton
> m_xRB_Stack_Y_Percent
;
94 std::unique_ptr
<weld::RadioButton
> m_xRB_Stack_Z
;
97 #define POS_LINETYPE_STRAIGHT 0
98 #define POS_LINETYPE_SMOOTH 1
99 #define POS_LINETYPE_STEPPED 2
101 class SplineResourceGroup final
: public ChangingResource
104 explicit SplineResourceGroup(weld::Builder
* pBuilder
, weld::Window
* pParent
);
106 void showControls(bool bShow
);
108 void fillControls(const ChartTypeParameter
& rParameter
);
109 void fillParameter(ChartTypeParameter
& rParameter
);
112 DECL_LINK(LineTypeChangeHdl
, weld::ComboBox
&, void);
113 DECL_LINK(SplineDetailsDialogHdl
, weld::Button
&, void);
114 DECL_LINK(SteppedDetailsDialogHdl
, weld::Button
&, void);
115 const std::shared_ptr
<SplinePropertiesDialog
>& getSplinePropertiesDialog();
116 const std::shared_ptr
<SteppedPropertiesDialog
>& getSteppedPropertiesDialog();
119 weld::Window
* m_pParent
;
120 std::unique_ptr
<weld::Label
> m_xFT_LineType
;
121 std::unique_ptr
<weld::ComboBox
> m_xLB_LineType
;
122 std::unique_ptr
<weld::Button
> m_xPB_DetailsDialog
;
123 std::shared_ptr
<SplinePropertiesDialog
> m_xSplinePropertiesDialog
;
124 std::shared_ptr
<SteppedPropertiesDialog
> m_xSteppedPropertiesDialog
;
127 class GeometryResourceGroup final
: public ChangingResource
130 explicit GeometryResourceGroup(weld::Builder
* pBuilder
);
132 void showControls(bool bShow
);
134 void fillControls(const ChartTypeParameter
& rParameter
);
135 void fillParameter(ChartTypeParameter
& rParameter
);
138 DECL_LINK(GeometryChangeHdl
, weld::TreeView
&, void);
141 BarGeometryResources m_aGeometryResources
;
146 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */