Bump for 3.6-28
[LibreOffice.git] / chart2 / source / controller / main / DragMethod_RotateDiagram.hxx
blob0ef6a111d00ab8eb6de30f5aa959052c59f22f1c
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_DRAGMETHOD_ROTATEDIAGRAM_HXX
29 #define CHART2_DRAGMETHOD_ROTATEDIAGRAM_HXX
31 #include "DragMethod_Base.hxx"
33 // header for class ::basegfx::B3DPolyPolygon
34 #include <basegfx/polygon/b3dpolypolygon.hxx>
36 namespace chart
39 class DragMethod_RotateDiagram : public DragMethod_Base
41 public:
42 enum RotationDirection
44 ROTATIONDIRECTION_FREE,
45 ROTATIONDIRECTION_X,
46 ROTATIONDIRECTION_Y,
47 ROTATIONDIRECTION_Z
50 DragMethod_RotateDiagram( DrawViewWrapper& rDrawViewWrapper
51 , const rtl::OUString& rObjectCID
52 , const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xChartModel
53 , RotationDirection eRotationDirection
55 virtual ~DragMethod_RotateDiagram();
57 virtual void TakeSdrDragComment(String& rStr) const;
59 virtual bool BeginSdrDrag();
60 virtual void MoveSdrDrag(const Point& rPnt);
61 virtual bool EndSdrDrag(bool bCopy);
63 virtual void CreateOverlayGeometry(sdr::overlay::OverlayManager& rOverlayManager);
65 private:
66 E3dScene* m_pScene;
68 Rectangle m_aReferenceRect;
69 Point m_aStartPos;
70 basegfx::B3DPolyPolygon m_aWireframePolyPolygon;
72 double m_fInitialXAngleRad;
73 double m_fInitialYAngleRad;
74 double m_fInitialZAngleRad;
76 double m_fAdditionalXAngleRad;
77 double m_fAdditionalYAngleRad;
78 double m_fAdditionalZAngleRad;
80 sal_Int32 m_nInitialHorizontalAngleDegree;
81 sal_Int32 m_nInitialVerticalAngleDegree;
83 sal_Int32 m_nAdditionalHorizontalAngleDegree;
84 sal_Int32 m_nAdditionalVerticalAngleDegree;
86 RotationDirection m_eRotationDirection;
87 sal_Bool m_bRightAngledAxes;
90 } // namespace chart
92 // CHART2_DRAGMETHOD_ROTATEDIAGRAM_HXX
93 #endif
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */