Bump for 3.6-28
[LibreOffice.git] / chart2 / source / controller / dialogs / tp_3D_SceneGeometry.hxx
blob57e96cd02cdcbc79be1062a1b226a8a646cab8ef
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef _CHART2_TP_3D_SCENE_GEOMETRY_HXX
29 #define _CHART2_TP_3D_SCENE_GEOMETRY_HXX
31 #include <com/sun/star/beans/XPropertySet.hpp>
32 #include <basegfx/matrix/b3dhommatrix.hxx>
34 // header for class TabPage
35 #include <vcl/tabpage.hxx>
36 // header for class FixedLine
37 #include <vcl/fixed.hxx>
38 // header for class MetricField
39 #include <vcl/field.hxx>
40 // header for class OKButton
41 #include <vcl/button.hxx>
43 #include "ControllerLockGuard.hxx"
45 //.............................................................................
46 namespace chart
48 //.............................................................................
50 class ThreeD_SceneGeometry_TabPage : public TabPage
52 public:
53 ThreeD_SceneGeometry_TabPage( Window* pWindow,
54 const ::com::sun::star::uno::Reference<
55 ::com::sun::star::beans::XPropertySet > & xSceneProperties,
56 ControllerLockHelper & rControllerLockHelper );
57 virtual ~ThreeD_SceneGeometry_TabPage();
59 // has to be called in case the dialog was closed with OK
60 void commitPendingChanges();
62 // is called by timer to apply changes to model
63 DECL_LINK( AngleChanged, void* );
64 // is called immediately when a field changes
65 DECL_LINK( AngleEdited, void* );
67 // is called by timer to apply changes to model
68 DECL_LINK( PerspectiveChanged, void* );
69 // is called immediately when a field changes
70 DECL_LINK( PerspectiveEdited, void* );
71 DECL_LINK( PerspectiveToggled, void* );
72 DECL_LINK( RightAngledAxesToggled, void* );
74 private:
75 void fillDialogAnglesFromModel() const;
76 void applyAnglesToModel();
77 void applyPerspectiveToModel();
79 ::com::sun::star::uno::Reference<
80 ::com::sun::star::beans::XPropertySet > m_xSceneProperties;
82 CheckBox m_aCbxRightAngledAxes;
84 FixedText m_aFtXRotation;
85 MetricField m_aMFXRotation;
87 FixedText m_aFtYRotation;
88 MetricField m_aMFYRotation;
90 FixedText m_aFtZRotation;
91 MetricField m_aMFZRotation;
93 CheckBox m_aCbxPerspective;
94 MetricField m_aMFPerspective;
96 //to keep old values when switching to right angled axes
97 sal_Int64 m_nXRotation;
98 sal_Int64 m_nYRotation;
99 sal_Int64 m_nZRotation;
101 bool m_bAngleChangePending;
102 bool m_bPerspectiveChangePending;
104 ControllerLockHelper & m_rControllerLockHelper;
107 //.............................................................................
108 } //namespace chart
109 //.............................................................................
111 #endif
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */