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