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 .
19 #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_3D_SCENEILLUMINATION_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_3D_SCENEILLUMINATION_HXX
22 #include <TimerTriggeredControllerLock.hxx>
24 #include <com/sun/star/beans/XPropertySet.hpp>
26 #include <vcl/tabpage.hxx>
27 #include <vcl/fixed.hxx>
28 #include <vcl/button.hxx>
29 #include <svx/dlgctrl.hxx>
30 #include <svx/dlgctl3d.hxx>
32 class SvxColorListBox
;
37 class LightButton
: public ImageButton
40 explicit LightButton( vcl::Window
* pParent
);
42 void switchLightOn(bool bOn
);
43 bool isLightOn() const { return m_bLightOn
;}
49 struct LightSourceInfo
;
51 class ThreeD_SceneIllumination_TabPage
: public TabPage
54 ThreeD_SceneIllumination_TabPage(
56 const css::uno::Reference
< css::beans::XPropertySet
> & xSceneProperties
,
57 const css::uno::Reference
< css::frame::XModel
>& xChartModel
);
58 virtual ~ThreeD_SceneIllumination_TabPage() override
;
59 virtual void dispose() override
;
62 DECL_LINK( ClickLightSourceButtonHdl
, Button
*, void );
63 DECL_LINK( SelectColorHdl
, SvxColorListBox
&, void );
64 DECL_LINK( ColorDialogHdl
, Button
*, void );
65 DECL_LINK( PreviewChangeHdl
, SvxLightCtl3D
*, void );
66 DECL_LINK( PreviewSelectHdl
, SvxLightCtl3D
*, void );
71 DECL_LINK(fillControlsFromModel
, void *, void);
73 void applyLightSourceToModel( sal_uInt32 nLightNumber
);
74 void applyLightSourcesToModel();
76 VclPtr
<LightButton
> m_pBtn_Light1
;
77 VclPtr
<LightButton
> m_pBtn_Light2
;
78 VclPtr
<LightButton
> m_pBtn_Light3
;
79 VclPtr
<LightButton
> m_pBtn_Light4
;
80 VclPtr
<LightButton
> m_pBtn_Light5
;
81 VclPtr
<LightButton
> m_pBtn_Light6
;
82 VclPtr
<LightButton
> m_pBtn_Light7
;
83 VclPtr
<LightButton
> m_pBtn_Light8
;
85 VclPtr
<SvxColorListBox
> m_pLB_LightSource
;
86 VclPtr
<PushButton
> m_pBtn_LightSource_Color
;
88 VclPtr
<SvxColorListBox
> m_pLB_AmbientLight
;
89 VclPtr
<PushButton
> m_pBtn_AmbientLight_Color
;
91 VclPtr
<SvxLightCtl3D
> m_pCtl_Preview
;
93 LightSourceInfo
* m_pLightSourceInfoList
;
95 css::uno::Reference
< css::beans::XPropertySet
> m_xSceneProperties
;
97 TimerTriggeredControllerLock m_aTimerTriggeredControllerLock
;
99 bool m_bInCommitToModel
;
101 css::uno::Reference
< css::frame::XModel
> m_xChartModel
;
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */