update dev300-m58
[ooovba.git] / chart2 / source / controller / dialogs / tp_3D_SceneGeometry.hxx
blobf097b70d853e8857d8383799944cb9d6bd6e172d
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_SceneGeometry.hxx,v $
10 * $Revision: 1.4 $
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_GEOMETRY_HXX
31 #define _CHART2_TP_3D_SCENE_GEOMETRY_HXX
33 #include <com/sun/star/beans/XPropertySet.hpp>
34 #include <basegfx/matrix/b3dhommatrix.hxx>
36 // header for class TabPage
37 #include <vcl/tabpage.hxx>
38 // header for class FixedLine
39 #include <vcl/fixed.hxx>
40 // header for class MetricField
41 #include <vcl/field.hxx>
42 // header for class OKButton
43 #ifndef _SV_BUTTON_HXX
44 #include <vcl/button.hxx>
45 #endif
47 #include "ControllerLockGuard.hxx"
49 //.............................................................................
50 namespace chart
52 //.............................................................................
54 class ThreeD_SceneGeometry_TabPage : public TabPage
56 public:
57 ThreeD_SceneGeometry_TabPage( Window* pWindow,
58 const ::com::sun::star::uno::Reference<
59 ::com::sun::star::beans::XPropertySet > & xSceneProperties,
60 ControllerLockHelper & rControllerLockHelper );
61 virtual ~ThreeD_SceneGeometry_TabPage();
63 // has to be called in case the dialog was closed with OK
64 void commitPendingChanges();
66 // is called by timer to apply changes to model
67 DECL_LINK( AngleChanged, void* );
68 // is called immediately when a field changes
69 DECL_LINK( AngleEdited, void* );
71 // is called by timer to apply changes to model
72 DECL_LINK( PerspectiveChanged, void* );
73 // is called immediately when a field changes
74 DECL_LINK( PerspectiveEdited, void* );
75 DECL_LINK( PerspectiveToggled, void* );
76 DECL_LINK( RightAngledAxesToggled, void* );
78 private:
79 void fillDialogAnglesFromModel() const;
80 void applyAnglesToModel();
81 void applyPerspectiveToModel();
83 ::com::sun::star::uno::Reference<
84 ::com::sun::star::beans::XPropertySet > m_xSceneProperties;
86 CheckBox m_aCbxRightAngledAxes;
88 FixedText m_aFtXRotation;
89 MetricField m_aMFXRotation;
91 FixedText m_aFtYRotation;
92 MetricField m_aMFYRotation;
94 FixedText m_aFtZRotation;
95 MetricField m_aMFZRotation;
97 CheckBox m_aCbxPerspective;
98 MetricField m_aMFPerspective;
100 //to keep old values when switching to right angled axes
101 sal_Int64 m_nXRotation;
102 sal_Int64 m_nYRotation;
103 sal_Int64 m_nZRotation;
105 bool m_bAngleChangePending;
106 bool m_bPerspectiveChangePending;
108 ControllerLockHelper & m_rControllerLockHelper;
111 //.............................................................................
112 } //namespace chart
113 //.............................................................................
115 #endif