1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _CHART2_DLG_VIEW3D_DIAGRAM_HXX
24 #define _CHART2_DLG_VIEW3D_DIAGRAM_HXX
25 
26 #include <com/sun/star/drawing/ShadeMode.hpp>
27 #include <com/sun/star/frame/XModel.hpp>
28 
29 // header for class TabDialog
30 #include <vcl/tabdlg.hxx>
31 // header for class TabControl
32 #include <vcl/tabctrl.hxx>
33 // header for class OKButton
34 #ifndef _SV_BUTTON_HXX
35 #include <vcl/button.hxx>
36 #endif
37 // header for class XColorList
38 #include <svx/xtable.hxx>
39 
40 #include "ControllerLockGuard.hxx"
41 
42 //.............................................................................
43 namespace chart
44 {
45 //.............................................................................
46 class ThreeD_SceneGeometry_TabPage;
47 class ThreeD_SceneAppearance_TabPage;
48 class ThreeD_SceneIllumination_TabPage;
49 
50 class View3DDialog : public TabDialog
51 {
52 public:
53     View3DDialog( Window* pWindow,
54                   const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > & xChartModel,
55                   XColorList* pColorTable=0 );
56 	~View3DDialog();
57 
58     // from Dialog (base of TabDialog)
59     virtual short Execute();
60 
61 private:
62     TabControl      m_aTabControl;
63     OKButton		m_aBtnOK;
64 	CancelButton	m_aBtnCancel;
65 	HelpButton		m_aBtnHelp;
66 
67     ThreeD_SceneGeometry_TabPage*       m_pGeometry;
68     ThreeD_SceneAppearance_TabPage*     m_pAppearance;
69     ThreeD_SceneIllumination_TabPage*   m_pIllumination;
70 
71     ControllerLockHelper                m_aControllerLocker;
72 
73     static sal_uInt16 m_nLastPageId;
74 };
75 
76 //.............................................................................
77 } //namespace chart
78 //.............................................................................
79 
80 #endif
81