Update ooo320-m1
[ooovba.git] / chart2 / source / controller / main / DragMethod_RotateDiagram.hxx
blob788a6a7bccb4a8349ea4d365cdd91fa5bd6a4450
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: DragMethod_RotateDiagram.hxx,v $
10 * $Revision: 1.5.60.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef CHART2_DRAGMETHOD_ROTATEDIAGRAM_HXX
31 #define CHART2_DRAGMETHOD_ROTATEDIAGRAM_HXX
33 #include "DragMethod_Base.hxx"
35 // header for class ::basegfx::B3DPolyPolygon
36 #include <basegfx/polygon/b3dpolypolygon.hxx>
38 namespace chart
41 class DragMethod_RotateDiagram : public DragMethod_Base
43 public:
44 enum RotationDirection
46 ROTATIONDIRECTION_FREE,
47 ROTATIONDIRECTION_X,
48 ROTATIONDIRECTION_Y,
49 ROTATIONDIRECTION_Z
52 DragMethod_RotateDiagram( DrawViewWrapper& rDrawViewWrapper
53 , const rtl::OUString& rObjectCID
54 , const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xChartModel
55 , RotationDirection eRotationDirection
57 virtual ~DragMethod_RotateDiagram();
59 virtual void TakeSdrDragComment(String& rStr) const;
61 virtual bool BeginSdrDrag();
62 virtual void MoveSdrDrag(const Point& rPnt);
63 virtual bool EndSdrDrag(bool bCopy);
65 virtual void CreateOverlayGeometry(sdr::overlay::OverlayManager& rOverlayManager);
67 private:
68 E3dScene* m_pScene;
70 Rectangle m_aReferenceRect;
71 Point m_aStartPos;
72 basegfx::B3DPolyPolygon m_aWireframePolyPolygon;
74 double m_fInitialXAngleRad;
75 double m_fInitialYAngleRad;
76 double m_fInitialZAngleRad;
78 double m_fAdditionalXAngleRad;
79 double m_fAdditionalYAngleRad;
80 double m_fAdditionalZAngleRad;
82 sal_Int32 m_nInitialHorizontalAngleDegree;
83 sal_Int32 m_nInitialVerticalAngleDegree;
85 sal_Int32 m_nAdditionalHorizontalAngleDegree;
86 sal_Int32 m_nAdditionalVerticalAngleDegree;
88 RotationDirection m_eRotationDirection;
89 sal_Bool m_bRightAngledAxes;
92 } // namespace chart
94 // CHART2_DRAGMETHOD_ROTATEDIAGRAM_HXX
95 #endif