1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
21 #include <ModifyListenerCallBack.hxx>
22 #include <TimerTriggeredControllerLock.hxx>
23 #include <vcl/weld.hxx>
24 #include <svx/dlgctl3d.hxx>
25 #include <svx/float3d.hxx>
27 namespace com::sun::star::beans
36 struct LightSourceInfo
;
39 class ThreeD_SceneIllumination_TabPage
42 ThreeD_SceneIllumination_TabPage(weld::Container
* pParent
, weld::Window
* pTopLevel
,
43 css::uno::Reference
<css::beans::XPropertySet
> xSceneProperties
,
44 const rtl::Reference
<::chart::ChartModel
>& xChartModel
);
45 ~ThreeD_SceneIllumination_TabPage();
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);
57 DECL_LINK(fillControlsFromModel
, void*, void);
59 void applyLightSourceToModel(sal_uInt32 nLightNumber
);
60 void applyLightSourcesToModel();
62 std::unique_ptr
<LightSourceInfo
[]> m_pLightSourceInfoList
;
64 css::uno::Reference
<css::beans::XPropertySet
> m_xSceneProperties
;
66 TimerTriggeredControllerLock m_aTimerTriggeredControllerLock
;
68 bool m_bInCommitToModel
;
70 ModifyListenerCallBack m_aModelChangeListener
;
71 rtl::Reference
<::chart::ChartModel
> m_xChartModel
;
73 weld::Window
* m_pTopLevel
;
74 std::unique_ptr
<weld::Builder
> m_xBuilder
;
75 std::unique_ptr
<weld::Container
> m_xContainer
;
76 LightButton m_aBtn_Light1
;
77 LightButton m_aBtn_Light2
;
78 LightButton m_aBtn_Light3
;
79 LightButton m_aBtn_Light4
;
80 LightButton m_aBtn_Light5
;
81 LightButton m_aBtn_Light6
;
82 LightButton m_aBtn_Light7
;
83 LightButton m_aBtn_Light8
;
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
;
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */