1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: DragMethod_PieSegment.hxx,v $
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_PIESEGMENT_HXX
31 #define CHART2_DRAGMETHOD_PIESEGMENT_HXX
33 #include "DragMethod_Base.hxx"
34 #include <basegfx/vector/b2dvector.hxx>
39 class DragMethod_PieSegment
: public DragMethod_Base
42 DragMethod_PieSegment( DrawViewWrapper
& rDrawViewWrapper
, const rtl::OUString
& rObjectCID
43 , const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
>& xChartModel
);
44 virtual ~DragMethod_PieSegment();
46 virtual void TakeSdrDragComment(String
& rStr
) const;
47 virtual bool BeginSdrDrag();
48 virtual void MoveSdrDrag(const Point
& rPnt
);
49 virtual bool EndSdrDrag(bool bCopy
);
51 virtual basegfx::B2DHomMatrix
getCurrentTransformation();
54 virtual void createSdrDragEntries();
57 ::basegfx::B2DVector m_aStartVector
;
58 double m_fInitialOffset
;
59 double m_fAdditionalOffset
;
60 ::basegfx::B2DVector m_aDragDirection
;
66 // CHART2_DRAGMETHOD_PIESEGMENT_HXX