LibreOffice Module chart2 (master) 1
ChartResourceGroups.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include "res_BarGeometry.hxx"
23#include "ChangingResource.hxx"
26
27namespace chart
28{
29using namespace ::com::sun::star;
30using namespace ::com::sun::star::chart2;
31
32class SplinePropertiesDialog;
33class SteppedPropertiesDialog;
34
35enum
36{
39};
40
42{
43public:
44 explicit Dim3DLookResourceGroup(weld::Builder* pBuilder);
45
46 void showControls(bool bShow);
47
48 void fillControls(const ChartTypeParameter& rParameter);
49 void fillParameter(ChartTypeParameter& rParameter);
50
51private:
52 DECL_LINK(Dim3DLookCheckHdl, weld::Toggleable&, void);
53 DECL_LINK(SelectSchemeHdl, weld::ComboBox&, void);
54
55private:
56 std::unique_ptr<weld::CheckButton> m_xCB_3DLook;
57 std::unique_ptr<weld::ComboBox> m_xLB_Scheme;
58};
59
61{
62public:
63 explicit SortByXValuesResourceGroup(weld::Builder* pBuilder);
64
65 void showControls(bool bShow);
66
67 void fillControls(const ChartTypeParameter& rParameter);
68 void fillParameter(ChartTypeParameter& rParameter);
69
70private:
71 DECL_LINK(SortByXValuesCheckHdl, weld::Toggleable&, void);
72
73private:
74 std::unique_ptr<weld::CheckButton> m_xCB_XValueSorting;
75};
76
78{
79public:
80 explicit StackingResourceGroup(weld::Builder* pBuilder);
81
82 void showControls(bool bShow);
83
84 void fillControls(const ChartTypeParameter& rParameter);
85 void fillParameter(ChartTypeParameter& rParameter);
86
87private:
88 DECL_LINK(StackingChangeHdl, weld::Toggleable&, void);
89 DECL_LINK(StackingEnableHdl, weld::Toggleable&, void);
90
91private:
92 std::unique_ptr<weld::CheckButton> m_xCB_Stacked;
93 std::unique_ptr<weld::RadioButton> m_xRB_Stack_Y;
94 std::unique_ptr<weld::RadioButton> m_xRB_Stack_Y_Percent;
95 std::unique_ptr<weld::RadioButton> m_xRB_Stack_Z;
96};
97
98#define POS_LINETYPE_STRAIGHT 0
99#define POS_LINETYPE_SMOOTH 1
100#define POS_LINETYPE_STEPPED 2
101
103{
104public:
105 explicit SplineResourceGroup(weld::Builder* pBuilder, weld::Window* pParent);
106
107 void showControls(bool bShow);
108
109 void fillControls(const ChartTypeParameter& rParameter);
110 void fillParameter(ChartTypeParameter& rParameter);
111
112private:
113 DECL_LINK(LineTypeChangeHdl, weld::ComboBox&, void);
114 DECL_LINK(SplineDetailsDialogHdl, weld::Button&, void);
115 DECL_LINK(SteppedDetailsDialogHdl, weld::Button&, void);
116 std::shared_ptr<SplinePropertiesDialog> getSplinePropertiesDialog();
117 std::shared_ptr<SteppedPropertiesDialog> getSteppedPropertiesDialog();
118
119private:
121 std::unique_ptr<weld::Label> m_xFT_LineType;
122 std::unique_ptr<weld::ComboBox> m_xLB_LineType;
123 std::unique_ptr<weld::Button> m_xPB_DetailsDialog;
124 std::shared_ptr<SplinePropertiesDialog> m_xSplinePropertiesDialog;
125 std::shared_ptr<SteppedPropertiesDialog> m_xSteppedPropertiesDialog;
126};
127
129{
130public:
131 explicit GeometryResourceGroup(weld::Builder* pBuilder);
132
133 void showControls(bool bShow);
134
135 void fillControls(const ChartTypeParameter& rParameter);
136 void fillParameter(ChartTypeParameter& rParameter);
137
138private:
139 DECL_LINK(GeometryChangeHdl, weld::TreeView&, void);
140
141private:
143};
144
145} //namespace chart
146
147/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void fillControls(const ChartTypeParameter &rParameter)
Dim3DLookResourceGroup(weld::Builder *pBuilder)
std::unique_ptr< weld::ComboBox > m_xLB_Scheme
DECL_LINK(Dim3DLookCheckHdl, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > m_xCB_3DLook
void fillParameter(ChartTypeParameter &rParameter)
DECL_LINK(SelectSchemeHdl, weld::ComboBox &, void)
void fillControls(const ChartTypeParameter &rParameter)
BarGeometryResources m_aGeometryResources
DECL_LINK(GeometryChangeHdl, weld::TreeView &, void)
void fillParameter(ChartTypeParameter &rParameter)
GeometryResourceGroup(weld::Builder *pBuilder)
DECL_LINK(SortByXValuesCheckHdl, weld::Toggleable &, void)
SortByXValuesResourceGroup(weld::Builder *pBuilder)
std::unique_ptr< weld::CheckButton > m_xCB_XValueSorting
void fillParameter(ChartTypeParameter &rParameter)
void fillControls(const ChartTypeParameter &rParameter)
std::shared_ptr< SteppedPropertiesDialog > m_xSteppedPropertiesDialog
std::unique_ptr< weld::ComboBox > m_xLB_LineType
SplineResourceGroup(weld::Builder *pBuilder, weld::Window *pParent)
std::unique_ptr< weld::Label > m_xFT_LineType
void fillParameter(ChartTypeParameter &rParameter)
std::shared_ptr< SplinePropertiesDialog > m_xSplinePropertiesDialog
DECL_LINK(LineTypeChangeHdl, weld::ComboBox &, void)
std::unique_ptr< weld::Button > m_xPB_DetailsDialog
std::shared_ptr< SplinePropertiesDialog > getSplinePropertiesDialog()
DECL_LINK(SplineDetailsDialogHdl, weld::Button &, void)
std::shared_ptr< SteppedPropertiesDialog > getSteppedPropertiesDialog()
DECL_LINK(SteppedDetailsDialogHdl, weld::Button &, void)
void fillControls(const ChartTypeParameter &rParameter)
void fillControls(const ChartTypeParameter &rParameter)
std::unique_ptr< weld::RadioButton > m_xRB_Stack_Y
StackingResourceGroup(weld::Builder *pBuilder)
std::unique_ptr< weld::CheckButton > m_xCB_Stacked
std::unique_ptr< weld::RadioButton > m_xRB_Stack_Z
DECL_LINK(StackingEnableHdl, weld::Toggleable &, void)
void fillParameter(ChartTypeParameter &rParameter)
std::unique_ptr< weld::RadioButton > m_xRB_Stack_Y_Percent
DECL_LINK(StackingChangeHdl, weld::Toggleable &, void)