Debian Codegraph @

chart2/source/controller/dialogs/tp_3D_SceneAppearance.hxx

raw
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
21 #include <vcl/weld.hxx>
22
23 namespace chart { class ControllerLockHelper; }
24
25 namespace chart
26 {
27 class ChartModel;
28
29 class ThreeD_SceneAppearance_TabPage
30 {
31 public:
32 ThreeD_SceneAppearance_TabPage(
33 weld::Container* pParent,
34 rtl::Reference<::chart::ChartModel> xChartModel,
35 ControllerLockHelper & rControllerLockHelper );
36 void ActivatePage();
37 ~ThreeD_SceneAppearance_TabPage();
38
39 private:
40 DECL_LINK( SelectSchemeHdl, weld::ComboBox&, void );
41 DECL_LINK( SelectShading, weld::Toggleable&, void );
42 DECL_LINK( SelectRoundedEdgeOrObjectLines, weld::Toggleable&, void );
43
44 void initControlsFromModel();
45 void applyShadeModeToModel();
46 void applyRoundedEdgeAndObjectLinesToModel();
47 void updateScheme();
48
49 private:
50 rtl::Reference<::chart::ChartModel> m_xChartModel;
51
52 bool m_bUpdateOtherControls;
53 bool m_bCommitToModel;
54 OUString m_aCustom;
55
56 ControllerLockHelper& m_rControllerLockHelper;
57
58 std::unique_ptr<weld::Builder> m_xBuilder;
59 std::unique_ptr<weld::Container> m_xContainer;
60 std::unique_ptr<weld::ComboBox> m_xLB_Scheme;
61 std::unique_ptr<weld::CheckButton> m_xCB_Shading;
62 std::unique_ptr<weld::CheckButton> m_xCB_ObjectLines;
63 std::unique_ptr<weld::CheckButton> m_xCB_RoundedEdge;
64 };
65
66 } //namespace chart
67
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */