20 #ifndef INCLUDED_SVX_SVDDRAG_HXX
21 #define INCLUDED_SVX_SVDDRAG_HXX
80 sal_Int32
GetPrevPos()
const {
return mvPnts.size()-(mvPnts.size()>1 ? 2 : 1); }
104 void SetUser(std::unique_ptr<SdrDragStatUserData> pU) { mpUserData = std::move(pU); }
111 void SetMinMove(sal_uInt16 nDist) { nMinMov=nDist;
if (nMinMov<1) nMinMov=1; }
144 void NextMove(
const Point& rPnt);
147 bool CheckMinMoved(
const Point& rPnt);
148 long GetDX()
const {
return GetNow().X()-GetPrev().X(); }
149 long GetDY()
const {
return GetNow().Y()-GetPrev().Y(); }
163 #endif // INCLUDED_SVX_SVDDRAG_HXX
void SetMinMove(sal_uInt16 nDist)
tools::Rectangle aActionRect
SdrPageView * GetPageView() const
void SetVerFixed(bool bOn)
sal_Int32 GetPrevPos() const
const Point & GetStart() const
void SetDragMethod(SdrDragMethod *pMth)
bool IsEndDragChangesGeoAndAttributes() const
const Point & GetPoint(sal_Int32 nNum) const
bool bEndDragChangesGeoAndAttributes
void SetMouseDown(bool bDown)
bool IsOrtho8Possible() const
void SetOrtho8Possible(bool bOn=true)
const SdrHdl * GetHdl() const
void SetHorFixed(bool bOn)
void SetOrtho4Possible(bool bOn=true)
const Point & GetPos0() const
bool bEndDragChangesAttributes
void SetEndDragChangesLayout(bool bOn)
std::vector< Point > mvPnts
void SetRef2(const Point &pt)
void SetNoSnap(bool bOn=true)
void SetEndDragChangesGeoAndAttributes(bool bOn)
void SetRef1(const Point &pt)
const tools::Rectangle & GetActionRect() const
std::unique_ptr< SdrDragStatUserData > mpUserData
sal_Int32 GetPointCount() const
bool mbEndDragChangesLayout
Table row drag: table will re-layout itself later.
SdrView * GetView() const
SdrDragMethod * pDragMethod
bool IsEndDragChangesLayout() const
void SetEndDragChangesAttributes(bool bOn)
virtual ~SdrDragStatUserData()=0
const Point & GetRef1() const
SdrDragMethod * GetDragMethod() const
const Point & GetPrev() const
void SetActionRect(const tools::Rectangle &rR)
void SetUser(std::unique_ptr< SdrDragStatUserData > pU)
bool IsOrtho4Possible() const
void SetNow(Point const &pt)
const Point & GetNow() const
void SetView(SdrView *pV)
void SetPageView(SdrPageView *pPV)
SdrDragStatUserData * GetUser() const
const Point & GetRef2() const
bool IsEndDragChangesAttributes() const