fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / controller / dialogs / tp_3D_SceneGeometry.hxx
blobcfd16ff23bd643c43e6836396d7247f586578015
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_3D_SCENEGEOMETRY_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_3D_SCENEGEOMETRY_HXX
22 #include <com/sun/star/beans/XPropertySet.hpp>
23 #include <basegfx/matrix/b3dhommatrix.hxx>
25 #include <vcl/tabpage.hxx>
26 #include <vcl/fixed.hxx>
27 #include <vcl/field.hxx>
28 #include <vcl/button.hxx>
30 #include "ControllerLockGuard.hxx"
32 namespace chart
35 class ThreeD_SceneGeometry_TabPage : public TabPage
37 public:
38 ThreeD_SceneGeometry_TabPage( vcl::Window* pWindow,
39 const ::com::sun::star::uno::Reference<
40 ::com::sun::star::beans::XPropertySet > & xSceneProperties,
41 ControllerLockHelper & rControllerLockHelper );
42 virtual ~ThreeD_SceneGeometry_TabPage();
43 virtual void dispose() SAL_OVERRIDE;
45 // has to be called in case the dialog was closed with OK
46 void commitPendingChanges();
48 // is called by timer to apply changes to model
49 DECL_LINK( AngleChanged, void* );
50 // is called immediately when a field changes
51 DECL_LINK( AngleEdited, void* );
53 // is called by timer to apply changes to model
54 DECL_LINK( PerspectiveChanged, void* );
55 // is called immediately when a field changes
56 DECL_LINK( PerspectiveEdited, void* );
57 DECL_LINK( PerspectiveToggled, void* );
58 DECL_LINK( RightAngledAxesToggled, void* );
60 private:
61 void fillDialogAnglesFromModel() const;
62 void applyAnglesToModel();
63 void applyPerspectiveToModel();
65 ::com::sun::star::uno::Reference<
66 ::com::sun::star::beans::XPropertySet > m_xSceneProperties;
68 VclPtr<CheckBox> m_pCbxRightAngledAxes;
70 VclPtr<MetricField> m_pMFXRotation;
72 VclPtr<MetricField> m_pMFYRotation;
74 VclPtr<FixedText> m_pFtZRotation;
75 VclPtr<MetricField> m_pMFZRotation;
77 VclPtr<CheckBox> m_pCbxPerspective;
78 VclPtr<MetricField> m_pMFPerspective;
80 //to keep old values when switching to right angled axes
81 sal_Int64 m_nXRotation;
82 sal_Int64 m_nYRotation;
83 sal_Int64 m_nZRotation;
85 bool m_bAngleChangePending;
86 bool m_bPerspectiveChangePending;
88 ControllerLockHelper & m_rControllerLockHelper;
91 } //namespace chart
93 #endif
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */