LibreOffice Module chart2 (master) 1
ChartTypePanel.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#pragma once
20
24#include <vcl/EnumContext.hxx>
29
31{
32class XModifyListener;
33}
34
35namespace weld
36{
37class CustomWeld;
38}
39
40namespace chart
41{
42class ChartController;
43class Dim3DLookResourceGroup;
44class StackingResourceGroup;
45class SplineResourceGroup;
46class GeometryResourceGroup;
47class ChartTypeParameter;
48class SortByXValuesResourceGroup;
49
50namespace sidebar
51{
53 public PanelLayout,
54 public ::sfx2::sidebar::IContextChangeReceiver,
55 public sfx2::sidebar::SidebarModelUpdate,
58{
59public:
60 virtual void DataChanged(const DataChangedEvent& rEvent) override;
61
62 virtual void HandleContextChange(const vcl::EnumContext& rContext) override;
63
64 // constructor/destructor
66
67 virtual ~ChartTypePanel() override;
68
69 virtual void updateData() override;
70 virtual void modelInvalid() override;
71
72 virtual void updateModel(css::uno::Reference<css::frame::XModel> xModel) override;
73
75
76private:
78 void showAllControls(ChartTypeDialogController& rTypeController);
79 void fillAllControls(const ChartTypeParameter& rParameter, bool bAlsoResetSubTypeList = true);
81
82 virtual void stateChanged() override;
83
84 void commitToModel(const ChartTypeParameter& rParameter);
85 void selectMainType();
86
87 DECL_LINK(SelectMainTypeHdl, weld::ComboBox&, void);
88 DECL_LINK(SelectSubTypeHdl, ValueSet*, void);
89
91
92 css::uno::Reference<css::util::XModifyListener> mxListener;
93
95
96 void Initialize();
98
99 std::unique_ptr<Dim3DLookResourceGroup> m_pDim3DLookResourceGroup;
100 std::unique_ptr<StackingResourceGroup> m_pStackingResourceGroup;
101 std::unique_ptr<SplineResourceGroup> m_pSplineResourceGroup;
102 std::unique_ptr<GeometryResourceGroup> m_pGeometryResourceGroup;
103 std::unique_ptr<SortByXValuesResourceGroup> m_pSortByXValuesResourceGroup;
104
106
107 std::vector<std::unique_ptr<ChartTypeDialogController>> m_aChartTypeDialogControllerList;
109
111
113
114 std::unique_ptr<weld::ComboBox> m_xMainTypeList;
115 std::unique_ptr<ValueSet> m_xSubTypeList;
116 std::unique_ptr<weld::CustomWeld> m_xSubTypeListWin;
117};
118}
119} // end of namespace ::chart::sidebar
120
121/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void commitToModel(const ChartTypeParameter &rParameter)
virtual ~ChartTypePanel() override
void showAllControls(ChartTypeDialogController &rTypeController)
TimerTriggeredControllerLock m_aTimerTriggeredControllerLock
virtual void stateChanged() override
ChartTypeDialogController * m_pCurrentMainType
ChartTypePanel(weld::Widget *pParent, ::chart::ChartController *pController)
ChartTypeParameter getCurrentParameter() const
std::unique_ptr< ValueSet > m_xSubTypeList
virtual void updateData() override
std::unique_ptr< weld::ComboBox > m_xMainTypeList
virtual void HandleContextChange(const vcl::EnumContext &rContext) override
void fillAllControls(const ChartTypeParameter &rParameter, bool bAlsoResetSubTypeList=true)
std::unique_ptr< SplineResourceGroup > m_pSplineResourceGroup
virtual void DataChanged(const DataChangedEvent &rEvent) override
ChartTypeDialogController * getSelectedMainType()
std::vector< std::unique_ptr< ChartTypeDialogController > > m_aChartTypeDialogControllerList
virtual rtl::Reference<::chart::ChartTypeTemplate > getCurrentTemplate() const override
std::unique_ptr< weld::CustomWeld > m_xSubTypeListWin
rtl::Reference<::chart::ChartModel > m_xChartModel
std::unique_ptr< SortByXValuesResourceGroup > m_pSortByXValuesResourceGroup
css::uno::Reference< css::util::XModifyListener > mxListener
std::unique_ptr< GeometryResourceGroup > m_pGeometryResourceGroup
virtual void updateModel(css::uno::Reference< css::frame::XModel > xModel) override
DECL_LINK(SelectSubTypeHdl, ValueSet *, void)
DECL_LINK(SelectMainTypeHdl, weld::ComboBox &, void)
void doUpdateModel(rtl::Reference<::chart::ChartModel > xModel)
std::unique_ptr< Dim3DLookResourceGroup > m_pDim3DLookResourceGroup
virtual void modelInvalid() override
std::unique_ptr< StackingResourceGroup > m_pStackingResourceGroup
Reference< XModel > xModel