26#include <com/sun/star/beans/XPropertySet.hpp>
27#include <com/sun/star/awt/Point.hpp>
35using ::com::sun::star::uno::Reference;
36using ::basegfx::B2DVector;
39 ,
const OUString& rObjectCID
42 , m_aStartVector(100.0,100.0)
43 , m_fInitialOffset(0.0)
44 , m_fAdditionalOffset(0.0)
45 , m_aDragDirection(1000.0,1000.0)
50 sal_Int32 nOffsetPercent(0);
51 awt::Point aMinimumPosition(0,0);
52 awt::Point aMaximumPosition(0,0);
55 aParameter, nOffsetPercent, aMinimumPosition, aMaximumPosition );
62 B2DVector aMinVector( aMinimumPosition.X, aMinimumPosition.Y );
63 B2DVector aMaxVector( aMaximumPosition.X, aMaximumPosition.Y );
74 OUString
aStr =
SchResId(STR_STATUS_PIE_SEGMENT_EXPLODED);
87 if( !
DragStat().CheckMinMoved(rPnt) )
101 if( aNewPos !=
DragStat().GetNow() )
115 if( xChartModel.is() )
119 if( xPointProperties.is() )
123 catch(
const uno::Exception & )
constexpr tools::Long Y() const
constexpr tools::Long X() const
void addSdrDragEntry(std::unique_ptr< SdrDragEntry > pNew)
void NextMove(const Point &rPnt)
virtual basegfx::B2DPolyPolygon TakeXorPoly() const
void translate(double fX, double fY)
double scalar(const B2DVector &rVec) const
DrawViewWrapper & m_rDrawViewWrapper
rtl::Reference<::chart::ChartModel > getChartModel() const
virtual OUString GetSdrDragComment() const override
double m_fAdditionalOffset
virtual void MoveSdrDrag(const Point &rPnt) override
::basegfx::B2DVector m_aDragDirection
virtual basegfx::B2DHomMatrix getCurrentTransformation() const override
DragMethod_PieSegment(DrawViewWrapper &rDrawViewWrapper, const OUString &rObjectCID, const rtl::Reference<::chart::ChartModel > &xChartModel)
virtual bool EndSdrDrag(bool bCopy) override
::basegfx::B2DVector m_aStartVector
virtual ~DragMethod_PieSegment() override
virtual bool BeginSdrDrag() override
virtual void createSdrDragEntries() override
SdrPageView * GetPageView() const
SdrObject * getSelectedObject() const
static css::uno::Reference< css::beans::XPropertySet > getObjectPropertySet(std::u16string_view rObjectCID, const rtl::Reference< ::chart::ChartModel > &xChartDocument)
static std::u16string_view getDragParameterString(std::u16string_view rCID)
static bool parsePieSegmentDragParameterString(std::u16string_view rDragParameterString, sal_Int32 &rOffsetPercent, css::awt::Point &rMinimumPosition, css::awt::Point &rMaximumPosition)
#define DBG_UNHANDLED_EXCEPTION(...)
OUString OOO_DLLPUBLIC_CHARTTOOLS SchResId(TranslateId aId)