LibreOffice Module chart2 (master) 1
tp_3D_SceneGeometry.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <vcl/timer.hxx>
22#include <vcl/weld.hxx>
23#include <rtl/ref.hxx>
24
25namespace com::sun::star::beans { class XPropertySet; }
26namespace chart { class ControllerLockHelper; }
27
28namespace chart
29{
30class Diagram;
31
33{
34public:
37 ControllerLockHelper & rControllerLockHelper);
39
40 // has to be called in case the dialog was closed with OK
42
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 );
47
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 );
54
55private:
56 void applyAnglesToModel();
58
60
63
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;
68
71
73
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;
83};
84
85} //namespace chart
86
87/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This helper class can be used to pass a locking mechanism to other objects without exposing the full ...
std::unique_ptr< weld::CheckButton > m_xCbxRightAngledAxes
DECL_LINK(AngleEdited, weld::MetricSpinButton &, void)
DECL_LINK(AngleChanged, Timer *, void)
std::unique_ptr< weld::MetricSpinButton > m_xMFPerspective
std::unique_ptr< weld::MetricSpinButton > m_xMFZRotation
DECL_LINK(PerspectiveChanged, Timer *, void)
std::unique_ptr< weld::CheckButton > m_xCbxPerspective
DECL_LINK(RightAngledAxesToggled, weld::Toggleable &, void)
rtl::Reference< ::chart::Diagram > m_xDiagram
std::unique_ptr< weld::Builder > m_xBuilder
DECL_LINK(PerspectiveEdited, weld::MetricSpinButton &, void)
ControllerLockHelper & m_rControllerLockHelper
std::unique_ptr< weld::Container > m_xContainer
std::unique_ptr< weld::Label > m_xFtZRotation
std::unique_ptr< weld::MetricSpinButton > m_xMFXRotation
ThreeD_SceneGeometry_TabPage(weld::Container *pWindow, rtl::Reference< ::chart::Diagram > xDiagram, ControllerLockHelper &rControllerLockHelper)
DECL_LINK(PerspectiveToggled, weld::Toggleable &, void)
std::unique_ptr< weld::MetricSpinButton > m_xMFYRotation
class SAL_NO_VTABLE XPropertySet