merge the formfield patch from ooo-build
[ooovba.git] / chart2 / source / controller / dialogs / tp_3D_SceneAppearance.hxx
blobcc39cf0378e3fe16b5b498d0303d87c76981f651
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: tp_3D_SceneAppearance.hxx,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _CHART2_TP_3D_SCENE_APPEARANCE_HXX
31 #define _CHART2_TP_3D_SCENE_APPEARANCE_HXX
33 // header for class TabPage
34 #include <vcl/tabpage.hxx>
35 // header for class FixedLine
36 #include <vcl/fixed.hxx>
37 // header for class MetricField
38 #include <vcl/field.hxx>
39 // header for class CheckBox
40 #ifndef _SV_BUTTON_HXX
41 #include <vcl/button.hxx>
42 #endif
43 // header for class ListBox
44 #include <vcl/lstbox.hxx>
45 #include <com/sun/star/drawing/ShadeMode.hpp>
46 #include <com/sun/star/frame/XModel.hpp>
48 #include "ControllerLockGuard.hxx"
50 //.............................................................................
51 namespace chart
53 //.............................................................................
55 class ThreeD_SceneAppearance_TabPage : public TabPage
57 public:
58 ThreeD_SceneAppearance_TabPage(
59 Window* pWindow,
60 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > & xChartModel,
61 ControllerLockHelper & rControllerLockHelper );
62 virtual ~ThreeD_SceneAppearance_TabPage();
64 // has to be called in case the dialog was closed with OK
65 void commitPendingChanges();
67 virtual void ActivatePage();
69 private:
70 DECL_LINK( SelectSchemeHdl, void* );
71 DECL_LINK( SelectShading, void* );
72 DECL_LINK( SelectRoundedEdgeOrObjectLines, CheckBox* );
74 void initControlsFromModel();
75 void applyShadeModeToModel();
76 void applyRoundedEdgeAndObjectLinesToModel();
77 void updateScheme();
79 private:
80 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >
81 m_xChartModel;
83 FixedText m_aFT_Scheme;
84 ListBox m_aLB_Scheme;
86 FixedLine m_aFL_Seperator;
88 CheckBox m_aCB_RoundedEdge;
89 CheckBox m_aCB_Shading;
90 CheckBox m_aCB_ObjectLines;
92 bool m_bUpdateOtherControls;
93 bool m_bCommitToModel;
95 ControllerLockHelper & m_rControllerLockHelper;
98 //.............................................................................
99 } //namespace chart
100 //.............................................................................
102 #endif