LibreOffice Module chart2 (master) 1
tp_3D_SceneIllumination.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
23#include <vcl/weld.hxx>
24#include <svx/dlgctl3d.hxx>
25#include <svx/float3d.hxx>
26
28{
29class XPropertySet;
30}
31
32class ColorListBox;
33
34namespace chart
35{
36struct LightSourceInfo;
37class ChartModel;
38
40{
41public:
43 css::uno::Reference<css::beans::XPropertySet> xSceneProperties,
44 const rtl::Reference<::chart::ChartModel>& xChartModel);
46
47private:
48 DECL_LINK(ClickLightSourceButtonHdl, weld::Button&, void);
49 DECL_LINK(SelectColorHdl, ColorListBox&, void);
50 DECL_LINK(ColorDialogHdl, weld::Button&, void);
51 DECL_LINK(PreviewChangeHdl, SvxLightCtl3D*, void);
52 DECL_LINK(PreviewSelectHdl, SvxLightCtl3D*, void);
53
54 void updatePreview();
55
56private:
57 DECL_LINK(fillControlsFromModel, void*, void);
58
59 void applyLightSourceToModel(sal_uInt32 nLightNumber);
61
62 std::unique_ptr<LightSourceInfo[]> m_pLightSourceInfoList;
63
64 css::uno::Reference<css::beans::XPropertySet> m_xSceneProperties;
65
67
69
72
74 std::unique_ptr<weld::Builder> m_xBuilder;
75 std::unique_ptr<weld::Container> m_xContainer;
84 std::unique_ptr<ColorListBox> m_xLB_LightSource;
85 std::unique_ptr<weld::Button> m_xBtn_LightSource_Color;
86 std::unique_ptr<ColorListBox> m_xLB_AmbientLight;
87 std::unique_ptr<weld::Button> m_xBtn_AmbientLight_Color;
88 std::unique_ptr<weld::Scale> m_xHoriScale;
89 std::unique_ptr<weld::Scale> m_xVertScale;
90 std::unique_ptr<weld::Button> m_xBtn_Corner;
91 std::unique_ptr<Svx3DLightControl> m_xPreview;
92 std::unique_ptr<weld::CustomWeld> m_xPreviewWnd;
93 std::unique_ptr<SvxLightCtl3D> m_xCtl_Preview;
94};
95
96} //namespace chart
97
98/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void applyLightSourceToModel(sal_uInt32 nLightNumber)
rtl::Reference<::chart::ChartModel > m_xChartModel
css::uno::Reference< css::beans::XPropertySet > m_xSceneProperties
DECL_LINK(SelectColorHdl, ColorListBox &, void)
std::unique_ptr< weld::Builder > m_xBuilder
ThreeD_SceneIllumination_TabPage(weld::Container *pParent, weld::Window *pTopLevel, css::uno::Reference< css::beans::XPropertySet > xSceneProperties, const rtl::Reference<::chart::ChartModel > &xChartModel)
std::unique_ptr< Svx3DLightControl > m_xPreview
DECL_LINK(ColorDialogHdl, weld::Button &, void)
TimerTriggeredControllerLock m_aTimerTriggeredControllerLock
std::unique_ptr< LightSourceInfo[]> m_pLightSourceInfoList
std::unique_ptr< weld::Container > m_xContainer
DECL_LINK(ClickLightSourceButtonHdl, weld::Button &, void)
std::unique_ptr< ColorListBox > m_xLB_AmbientLight
std::unique_ptr< SvxLightCtl3D > m_xCtl_Preview
DECL_LINK(fillControlsFromModel, void *, void)
std::unique_ptr< weld::Button > m_xBtn_LightSource_Color
std::unique_ptr< ColorListBox > m_xLB_LightSource
DECL_LINK(PreviewChangeHdl, SvxLightCtl3D *, void)
std::unique_ptr< weld::Button > m_xBtn_AmbientLight_Color
DECL_LINK(PreviewSelectHdl, SvxLightCtl3D *, void)
std::unique_ptr< weld::Button > m_xBtn_Corner
std::unique_ptr< weld::CustomWeld > m_xPreviewWnd
class SAL_NO_VTABLE XPropertySet