1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 <vcl/timer.hxx>
23 #include <vcl/weld.hxx>
25 namespace com
{ namespace sun
{ namespace star
{ namespace beans
{ class XPropertySet
; } } } }
26 namespace chart
{ class ControllerLockHelper
; }
31 class ThreeD_SceneGeometry_TabPage
34 ThreeD_SceneGeometry_TabPage(weld::Container
* pWindow
,
35 const css::uno::Reference
< css::beans::XPropertySet
> & xSceneProperties
,
36 ControllerLockHelper
& rControllerLockHelper
);
37 ~ThreeD_SceneGeometry_TabPage();
39 // has to be called in case the dialog was closed with OK
40 void commitPendingChanges();
42 // is called by timer to apply changes to model
43 DECL_LINK( AngleChanged
, Timer
*, void);
44 // is called immediately when a field changes
45 DECL_LINK( AngleEdited
, weld::MetricSpinButton
&, void );
47 // is called by timer to apply changes to model
48 DECL_LINK( PerspectiveChanged
, Timer
*, void);
49 // is called immediately when a field changes
50 DECL_LINK( PerspectiveEdited
, weld::MetricSpinButton
&, void );
51 DECL_LINK( PerspectiveToggled
, weld::ToggleButton
&, void );
52 DECL_LINK( RightAngledAxesToggled
, weld::ToggleButton
&, void );
55 void applyAnglesToModel();
56 void applyPerspectiveToModel();
58 css::uno::Reference
< css::beans::XPropertySet
> m_xSceneProperties
;
61 Timer m_aPerspectiveTimer
;
63 //to keep old values when switching to right angled axes
64 sal_Int64 m_nXRotation
;
65 sal_Int64 m_nYRotation
;
66 sal_Int64 m_nZRotation
;
68 bool m_bAngleChangePending
;
69 bool m_bPerspectiveChangePending
;
71 ControllerLockHelper
& m_rControllerLockHelper
;
73 std::unique_ptr
<weld::Builder
> m_xBuilder
;
74 std::unique_ptr
<weld::Container
> m_xContainer
;
75 std::unique_ptr
<weld::CheckButton
> m_xCbxRightAngledAxes
;
76 std::unique_ptr
<weld::MetricSpinButton
> m_xMFXRotation
;
77 std::unique_ptr
<weld::MetricSpinButton
> m_xMFYRotation
;
78 std::unique_ptr
<weld::Label
> m_xFtZRotation
;
79 std::unique_ptr
<weld::MetricSpinButton
> m_xMFZRotation
;
80 std::unique_ptr
<weld::CheckButton
> m_xCbxPerspective
;
81 std::unique_ptr
<weld::MetricSpinButton
> m_xMFPerspective
;
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */