LibreOffice Module chart2 (master) 1
tp_ChartType.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 <vector>
23
27
28#include <vcl/wizardmachine.hxx>
29
30namespace com::sun::star::chart2 { class XChartDocument; }
31namespace weld { class CustomWeld; }
32
33class ValueSet;
34
35namespace chart
36{
37
38class Dim3DLookResourceGroup;
39class StackingResourceGroup;
40class SplineResourceGroup;
41class GeometryResourceGroup;
42class SortByXValuesResourceGroup;
43
45{
46public:
49 , bool bShowDescription = true );
50 virtual ~ChartTypeTabPage() override;
51
52 virtual void initializePage() override;
53 virtual bool commitPage( ::vcl::WizardTypes::CommitPageReason eReason ) override;
54
56
57private:
59 void showAllControls( ChartTypeDialogController& rTypeController );
60 void fillAllControls( const ChartTypeParameter& rParameter, bool bAlsoResetSubTypeList=true );
62
63 virtual void stateChanged() override;
64
65 void commitToModel( const ChartTypeParameter& rParameter );
66 void selectMainType();
67
68 DECL_LINK(SelectMainTypeHdl, weld::TreeView&, void);
69 DECL_LINK(SelectSubTypeHdl, ValueSet*, void );
70
71 std::unique_ptr<Dim3DLookResourceGroup> m_pDim3DLookResourceGroup;
72 std::unique_ptr<StackingResourceGroup> m_pStackingResourceGroup;
73 std::unique_ptr<SplineResourceGroup> m_pSplineResourceGroup;
74 std::unique_ptr<GeometryResourceGroup> m_pGeometryResourceGroup;
75 std::unique_ptr<SortByXValuesResourceGroup> m_pSortByXValuesResourceGroup;
76
78
79 std::vector< std::unique_ptr<ChartTypeDialogController> > m_aChartTypeDialogControllerList;
81
83
85
86 std::unique_ptr<weld::Label> m_xFT_ChooseType;
87 std::unique_ptr<weld::TreeView> m_xMainTypeList;
88 std::unique_ptr<ValueSet> m_xSubTypeList;
89 std::unique_ptr<weld::CustomWeld> m_xSubTypeListWin;
90};
91
92} //namespace chart
93
94/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< Dim3DLookResourceGroup > m_pDim3DLookResourceGroup
std::unique_ptr< GeometryResourceGroup > m_pGeometryResourceGroup
std::unique_ptr< weld::CustomWeld > m_xSubTypeListWin
virtual ~ChartTypeTabPage() override
rtl::Reference<::chart::ChartModel > m_xChartModel
void commitToModel(const ChartTypeParameter &rParameter)
void fillAllControls(const ChartTypeParameter &rParameter, bool bAlsoResetSubTypeList=true)
std::unique_ptr< SplineResourceGroup > m_pSplineResourceGroup
virtual void initializePage() override
std::unique_ptr< SortByXValuesResourceGroup > m_pSortByXValuesResourceGroup
std::unique_ptr< ValueSet > m_xSubTypeList
DECL_LINK(SelectSubTypeHdl, ValueSet *, void)
virtual void stateChanged() override
ChartTypeParameter getCurrentParamter() const
std::unique_ptr< weld::TreeView > m_xMainTypeList
virtual bool commitPage(::vcl::WizardTypes::CommitPageReason eReason) override
std::vector< std::unique_ptr< ChartTypeDialogController > > m_aChartTypeDialogControllerList
virtual rtl::Reference< ::chart::ChartTypeTemplate > getCurrentTemplate() const override
ChartTypeDialogController * m_pCurrentMainType
DECL_LINK(SelectMainTypeHdl, weld::TreeView &, void)
std::unique_ptr< StackingResourceGroup > m_pStackingResourceGroup
ChartTypeTabPage(weld::Container *pPage, weld::DialogController *pController, rtl::Reference<::chart::ChartModel > xChartModel, bool bShowDescription=true)
void showAllControls(ChartTypeDialogController &rTypeController)
TimerTriggeredControllerLock m_aTimerTriggeredControllerLock
ChartTypeDialogController * getSelectedMainType()
std::unique_ptr< weld::Label > m_xFT_ChooseType