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 .
21 #include <vcl/timer.hxx>
22 #include <vcl/weld.hxx>
23 #include <rtl/ref.hxx>
25 namespace com::sun::star::beans
{ class XPropertySet
; }
26 namespace chart
{ class ControllerLockHelper
; }
32 class ThreeD_SceneGeometry_TabPage
35 ThreeD_SceneGeometry_TabPage(weld::Container
* pWindow
,
36 rtl::Reference
< ::chart::Diagram
> xDiagram
,
37 ControllerLockHelper
& rControllerLockHelper
);
38 ~ThreeD_SceneGeometry_TabPage();
40 // has to be called in case the dialog was closed with OK
41 void commitPendingChanges();
43 // is called by timer to apply changes to model
44 DECL_LINK( AngleChanged
, Timer
*, void);
45 // is called immediately when a field changes
46 DECL_LINK( AngleEdited
, weld::MetricSpinButton
&, void );
48 // is called by timer to apply changes to model
49 DECL_LINK( PerspectiveChanged
, Timer
*, void);
50 // is called immediately when a field changes
51 DECL_LINK( PerspectiveEdited
, weld::MetricSpinButton
&, void );
52 DECL_LINK( PerspectiveToggled
, weld::Toggleable
&, void );
53 DECL_LINK( RightAngledAxesToggled
, weld::Toggleable
&, void );
56 void applyAnglesToModel();
57 void applyPerspectiveToModel();
59 rtl::Reference
< ::chart::Diagram
> m_xDiagram
;
62 Timer m_aPerspectiveTimer
;
64 //to keep old values when switching to right angled axes
65 sal_Int64 m_nXRotation
;
66 sal_Int64 m_nYRotation
;
67 sal_Int64 m_nZRotation
;
69 bool m_bAngleChangePending
;
70 bool m_bPerspectiveChangePending
;
72 ControllerLockHelper
& m_rControllerLockHelper
;
74 std::unique_ptr
<weld::Builder
> m_xBuilder
;
75 std::unique_ptr
<weld::Container
> m_xContainer
;
76 std::unique_ptr
<weld::CheckButton
> m_xCbxRightAngledAxes
;
77 std::unique_ptr
<weld::MetricSpinButton
> m_xMFXRotation
;
78 std::unique_ptr
<weld::MetricSpinButton
> m_xMFYRotation
;
79 std::unique_ptr
<weld::Label
> m_xFtZRotation
;
80 std::unique_ptr
<weld::MetricSpinButton
> m_xMFZRotation
;
81 std::unique_ptr
<weld::CheckButton
> m_xCbxPerspective
;
82 std::unique_ptr
<weld::MetricSpinButton
> m_xMFPerspective
;
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */