LibreOffice Module svx (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SdrDragStat Class Referencefinal

#include <svddrag.hxx>

Collaboration diagram for SdrDragStat:
[legend]

Public Member Functions

 SdrDragStat ()
 
 ~SdrDragStat ()
 
void Reset ()
 
SdrViewGetView () const
 
void SetView (SdrView *pV)
 
SdrPageViewGetPageView () const
 
void SetPageView (SdrPageView *pPV)
 
const PointGetPoint (sal_Int32 nNum) const
 
sal_Int32 GetPointCount () const
 
const PointGetStart () const
 
const PointGetPrev () const
 
const PointGetPos0 () const
 
const PointGetNow () const
 
void SetNow (Point const &pt)
 
const PointGetRef1 () const
 
void SetRef1 (const Point &pt)
 
const PointGetRef2 () const
 
void SetRef2 (const Point &pt)
 
const SdrHdlGetHdl () const
 
void SetHdl (SdrHdl *pH)
 
SdrDragStatUserDataGetUser () const
 
void SetUser (std::unique_ptr< SdrDragStatUserData > pU)
 
bool IsShown () const
 
void SetShown (bool bOn)
 
bool IsMinMoved () const
 
void SetMinMoved ()
 
void ResetMinMoved ()
 
void SetMinMove (sal_uInt16 nDist)
 
bool IsHorFixed () const
 
void SetHorFixed (bool bOn)
 
bool IsVerFixed () const
 
void SetVerFixed (bool bOn)
 
bool IsNoSnap () const
 
void SetNoSnap (bool bOn=true)
 
bool IsOrtho4Possible () const
 
void SetOrtho4Possible (bool bOn=true)
 
bool IsOrtho8Possible () const
 
void SetOrtho8Possible (bool bOn=true)
 
bool IsEndDragChangesAttributes () const
 
void SetEndDragChangesAttributes (bool bOn)
 
bool IsEndDragChangesGeoAndAttributes () const
 
void SetEndDragChangesGeoAndAttributes (bool bOn)
 
bool IsEndDragChangesLayout () const
 
void SetEndDragChangesLayout (bool bOn)
 
bool IsMouseDown () const
 
void SetMouseDown (bool bDown)
 
void Reset (const Point &rPnt)
 
void NextMove (const Point &rPnt)
 
void NextPoint ()
 
void PrevPoint ()
 
bool CheckMinMoved (const Point &rPnt)
 
tools::Long GetDX () const
 
tools::Long GetDY () const
 
Fraction GetXFact () const
 
Fraction GetYFact () const
 
SdrDragMethodGetDragMethod () const
 
void SetDragMethod (SdrDragMethod *pMth)
 
const tools::RectangleGetActionRect () const
 
void SetActionRect (const tools::Rectangle &rR)
 
void TakeCreateRect (tools::Rectangle &rRect) const
 
auto & GetGlueOptions ()
 

Private Member Functions

void Clear ()
 
sal_Int32 GetPrevPos () const
 

Private Attributes

SdrHdlpHdl
 
SdrViewpView
 
SdrPageViewpPageView
 
std::vector< PointmvPnts
 
Point aRef1
 
Point aRef2
 
Point aPos0
 
Point aRealNow
 
tools::Rectangle aActionRect
 
bool bEndDragChangesAttributes
 
bool bEndDragChangesGeoAndAttributes
 
bool mbEndDragChangesLayout
 Table row drag: table will re-layout itself later. More...
 
bool bMouseIsUp
 
bool bShown
 
sal_uInt16 nMinMov
 
bool bMinMoved
 
bool bHorFixed
 
bool bVerFixed
 
bool bWantNoSnap
 
bool bOrtho4
 
bool bOrtho8
 
SdrDragMethodpDragMethod
 
std::unique_ptr< SdrDragStatUserDatampUserData
 
struct {
   sal_Int32   objectOrdNum = -1
 
mGlueOptions
 

Detailed Description

Definition at line 46 of file svddrag.hxx.

Constructor & Destructor Documentation

◆ SdrDragStat()

SdrDragStat::SdrDragStat ( )
inline

Definition at line 93 of file svddrag.hxx.

References Reset.

◆ ~SdrDragStat()

SdrDragStat::~SdrDragStat ( )

Definition at line 25 of file svddrag.cxx.

Member Function Documentation

◆ CheckMinMoved()

bool SdrDragStat::CheckMinMoved ( const Point rPnt)

◆ Clear()

void SdrDragStat::Clear ( )
private

Definition at line 29 of file svddrag.cxx.

References mpUserData, and mvPnts.

Referenced by Reset().

◆ GetActionRect()

const tools::Rectangle & SdrDragStat::GetActionRect ( ) const
inline

Definition at line 166 of file svddrag.hxx.

Referenced by SdrCreateView::TakeActionRect(), and SdrDragView::TakeActionRect().

◆ GetDragMethod()

SdrDragMethod * SdrDragStat::GetDragMethod ( ) const
inline

Definition at line 163 of file svddrag.hxx.

Referenced by SdrObjCustomShape::applySpecialDrag().

◆ GetDX()

tools::Long SdrDragStat::GetDX ( ) const
inline

◆ GetDY()

tools::Long SdrDragStat::GetDY ( ) const
inline

◆ GetGlueOptions()

auto & SdrDragStat::GetGlueOptions ( )
inline

Definition at line 172 of file svddrag.hxx.

Referenced by SdrEdgeObj::ImpFindConnector(), and SdrView::MoveShapeHandle().

◆ GetHdl()

const SdrHdl * SdrDragStat::GetHdl ( ) const
inline

◆ GetNow()

const Point & SdrDragStat::GetNow ( ) const
inline

◆ GetPageView()

SdrPageView * SdrDragStat::GetPageView ( ) const
inline

◆ GetPoint()

const Point & SdrDragStat::GetPoint ( sal_Int32  nNum) const
inline

Definition at line 100 of file svddrag.hxx.

References Point.

Referenced by SdrCreateView::EndCreateObj().

◆ GetPointCount()

sal_Int32 SdrDragStat::GetPointCount ( ) const
inline

◆ GetPos0()

const Point & SdrDragStat::GetPos0 ( ) const
inline

Definition at line 104 of file svddrag.hxx.

References Point.

Referenced by ImpPathForDragAndCreate::MovCreate().

◆ GetPrev()

const Point & SdrDragStat::GetPrev ( ) const
inline

◆ GetPrevPos()

sal_Int32 SdrDragStat::GetPrevPos ( ) const
inlineprivate

Definition at line 80 of file svddrag.hxx.

◆ GetRef1()

const Point & SdrDragStat::GetRef1 ( ) const
inline

Definition at line 107 of file svddrag.hxx.

References Point.

◆ GetRef2()

const Point & SdrDragStat::GetRef2 ( ) const
inline

Definition at line 109 of file svddrag.hxx.

References Point.

◆ GetStart()

const Point & SdrDragStat::GetStart ( ) const
inline

◆ GetUser()

SdrDragStatUserData * SdrDragStat::GetUser ( ) const
inline

◆ GetView()

SdrView * SdrDragStat::GetView ( ) const
inline

◆ GetXFact()

Fraction SdrDragStat::GetXFact ( ) const

Definition at line 97 of file svddrag.cxx.

References aRef1, bHorFixed, Fraction, GetPrev(), and mvPnts.

◆ GetYFact()

Fraction SdrDragStat::GetYFact ( ) const

Definition at line 106 of file svddrag.cxx.

References aRef1, bVerFixed, Fraction, GetPrev(), and mvPnts.

◆ IsEndDragChangesAttributes()

bool SdrDragStat::IsEndDragChangesAttributes ( ) const
inline

Definition at line 142 of file svddrag.hxx.

◆ IsEndDragChangesGeoAndAttributes()

bool SdrDragStat::IsEndDragChangesGeoAndAttributes ( ) const
inline

Definition at line 144 of file svddrag.hxx.

◆ IsEndDragChangesLayout()

bool SdrDragStat::IsEndDragChangesLayout ( ) const
inline

Definition at line 146 of file svddrag.hxx.

◆ IsHorFixed()

bool SdrDragStat::IsHorFixed ( ) const
inline

Definition at line 123 of file svddrag.hxx.

◆ IsMinMoved()

bool SdrDragStat::IsMinMoved ( ) const
inline

◆ IsMouseDown()

bool SdrDragStat::IsMouseDown ( ) const
inline

◆ IsNoSnap()

bool SdrDragStat::IsNoSnap ( ) const
inline

◆ IsOrtho4Possible()

bool SdrDragStat::IsOrtho4Possible ( ) const
inline

Definition at line 135 of file svddrag.hxx.

Referenced by SdrCreateView::MovCreateObj().

◆ IsOrtho8Possible()

bool SdrDragStat::IsOrtho8Possible ( ) const
inline

Definition at line 138 of file svddrag.hxx.

Referenced by SdrCreateView::MovCreateObj().

◆ IsShown()

bool SdrDragStat::IsShown ( ) const
inline

◆ IsVerFixed()

bool SdrDragStat::IsVerFixed ( ) const
inline

Definition at line 125 of file svddrag.hxx.

◆ NextMove()

void SdrDragStat::NextMove ( const Point rPnt)

◆ NextPoint()

void SdrDragStat::NextPoint ( )

◆ PrevPoint()

void SdrDragStat::PrevPoint ( )

Definition at line 78 of file svddrag.cxx.

References aRealNow, and mvPnts.

Referenced by SdrCreateView::BckCreateObj().

◆ Reset() [1/2]

void SdrDragStat::Reset ( void  )

◆ Reset() [2/2]

void SdrDragStat::Reset ( const Point rPnt)

Definition at line 58 of file svddrag.cxx.

References aPos0, aRealNow, mvPnts, and Reset().

◆ ResetMinMoved()

void SdrDragStat::ResetMinMoved ( )
inline

Definition at line 120 of file svddrag.hxx.

Referenced by SdrCreateView::EndCreateObj().

◆ SetActionRect()

void SdrDragStat::SetActionRect ( const tools::Rectangle rR)
inline

◆ SetDragMethod()

void SdrDragStat::SetDragMethod ( SdrDragMethod pMth)
inline

Definition at line 164 of file svddrag.hxx.

Referenced by SdrDragView::BegDragObj().

◆ SetEndDragChangesAttributes()

void SdrDragStat::SetEndDragChangesAttributes ( bool  bOn)
inline

◆ SetEndDragChangesGeoAndAttributes()

void SdrDragStat::SetEndDragChangesGeoAndAttributes ( bool  bOn)
inline

◆ SetEndDragChangesLayout()

void SdrDragStat::SetEndDragChangesLayout ( bool  bOn)
inline

Definition at line 147 of file svddrag.hxx.

Referenced by sdr::table::SdrTableObj::applySpecialDrag().

◆ SetHdl()

void SdrDragStat::SetHdl ( SdrHdl pH)
inline

Definition at line 112 of file svddrag.hxx.

Referenced by SdrDragView::BegDragObj().

◆ SetHorFixed()

void SdrDragStat::SetHorFixed ( bool  bOn)
inline

Definition at line 124 of file svddrag.hxx.

Referenced by SdrDragResize::BeginSdrDrag().

◆ SetMinMove()

void SdrDragStat::SetMinMove ( sal_uInt16  nDist)
inline

◆ SetMinMoved()

void SdrDragStat::SetMinMoved ( )
inline

Definition at line 119 of file svddrag.hxx.

Referenced by SdrDragView::BegInsGluePoint(), and SdrDragView::ImpBegInsObjPoint().

◆ SetMouseDown()

void SdrDragStat::SetMouseDown ( bool  bDown)
inline

◆ SetNoSnap()

void SdrDragStat::SetNoSnap ( bool  bOn = true)
inline

◆ SetNow()

void SdrDragStat::SetNow ( Point const &  pt)
inline

Definition at line 106 of file svddrag.hxx.

References pt.

Referenced by ImpPathForDragAndCreate::movePathDrag().

◆ SetOrtho4Possible()

void SdrDragStat::SetOrtho4Possible ( bool  bOn = true)
inline

◆ SetOrtho8Possible()

void SdrDragStat::SetOrtho8Possible ( bool  bOn = true)
inline

◆ SetPageView()

void SdrDragStat::SetPageView ( SdrPageView pPV)
inline

Definition at line 99 of file svddrag.hxx.

Referenced by SdrDragView::BegDragObj(), and SdrCreateView::ImpBegCreateObj().

◆ SetRef1()

void SdrDragStat::SetRef1 ( const Point pt)
inline

◆ SetRef2()

void SdrDragStat::SetRef2 ( const Point pt)
inline

Definition at line 110 of file svddrag.hxx.

References pt.

Referenced by SdrDragMirror::BeginSdrDrag(), and SdrDragGradient::BeginSdrDrag().

◆ SetShown()

void SdrDragStat::SetShown ( bool  bOn)
inline

◆ SetUser()

void SdrDragStat::SetUser ( std::unique_ptr< SdrDragStatUserData pU)
inline

◆ SetVerFixed()

void SdrDragStat::SetVerFixed ( bool  bOn)
inline

Definition at line 126 of file svddrag.hxx.

Referenced by SdrDragResize::BeginSdrDrag().

◆ SetView()

void SdrDragStat::SetView ( SdrView pV)
inline

Definition at line 97 of file svddrag.hxx.

Referenced by SdrDragView::BegDragObj(), and SdrCreateView::ImpBegCreateObj().

◆ TakeCreateRect()

void SdrDragStat::TakeCreateRect ( tools::Rectangle rRect) const

Member Data Documentation

◆ aActionRect

tools::Rectangle SdrDragStat::aActionRect
private

Definition at line 56 of file svddrag.hxx.

Referenced by Reset().

◆ aPos0

Point SdrDragStat::aPos0
private

Definition at line 54 of file svddrag.hxx.

Referenced by NextMove(), and Reset().

◆ aRealNow

Point SdrDragStat::aRealNow
private

Definition at line 55 of file svddrag.hxx.

Referenced by NextMove(), NextPoint(), PrevPoint(), and Reset().

◆ aRef1

Point SdrDragStat::aRef1
private

Definition at line 52 of file svddrag.hxx.

Referenced by GetXFact(), and GetYFact().

◆ aRef2

Point SdrDragStat::aRef2
private

Definition at line 53 of file svddrag.hxx.

◆ bEndDragChangesAttributes

bool SdrDragStat::bEndDragChangesAttributes
private

Definition at line 58 of file svddrag.hxx.

Referenced by Reset().

◆ bEndDragChangesGeoAndAttributes

bool SdrDragStat::bEndDragChangesGeoAndAttributes
private

Definition at line 59 of file svddrag.hxx.

Referenced by Reset().

◆ bHorFixed

bool SdrDragStat::bHorFixed
private

Definition at line 68 of file svddrag.hxx.

Referenced by GetXFact(), and Reset().

◆ bMinMoved

bool SdrDragStat::bMinMoved
private

Definition at line 66 of file svddrag.hxx.

Referenced by CheckMinMoved(), and Reset().

◆ bMouseIsUp

bool SdrDragStat::bMouseIsUp
private

Definition at line 62 of file svddrag.hxx.

Referenced by Reset().

◆ bOrtho4

bool SdrDragStat::bOrtho4
private

Definition at line 72 of file svddrag.hxx.

Referenced by Reset().

◆ bOrtho8

bool SdrDragStat::bOrtho8
private

Definition at line 73 of file svddrag.hxx.

Referenced by Reset().

◆ bShown

bool SdrDragStat::bShown
private

Definition at line 64 of file svddrag.hxx.

Referenced by Reset().

◆ bVerFixed

bool SdrDragStat::bVerFixed
private

Definition at line 69 of file svddrag.hxx.

Referenced by GetYFact(), and Reset().

◆ bWantNoSnap

bool SdrDragStat::bWantNoSnap
private

Definition at line 70 of file svddrag.hxx.

Referenced by Reset().

◆ mbEndDragChangesLayout

bool SdrDragStat::mbEndDragChangesLayout
private

Table row drag: table will re-layout itself later.

Definition at line 61 of file svddrag.hxx.

Referenced by Reset().

◆ 

struct { ... } SdrDragStat::mGlueOptions

◆ mpUserData

std::unique_ptr<SdrDragStatUserData> SdrDragStat::mpUserData
private

Definition at line 76 of file svddrag.hxx.

Referenced by Clear().

◆ mvPnts

std::vector<Point> SdrDragStat::mvPnts
private

Definition at line 51 of file svddrag.hxx.

Referenced by Clear(), GetXFact(), GetYFact(), NextMove(), NextPoint(), PrevPoint(), Reset(), and TakeCreateRect().

◆ nMinMov

sal_uInt16 SdrDragStat::nMinMov
private

Definition at line 65 of file svddrag.hxx.

Referenced by CheckMinMoved(), and Reset().

◆ objectOrdNum

sal_Int32 SdrDragStat::objectOrdNum = -1

Definition at line 89 of file svddrag.hxx.

◆ pDragMethod

SdrDragMethod* SdrDragStat::pDragMethod
private

Definition at line 75 of file svddrag.hxx.

Referenced by Reset().

◆ pHdl

SdrHdl* SdrDragStat::pHdl
private

Definition at line 48 of file svddrag.hxx.

Referenced by Reset().

◆ pPageView

SdrPageView* SdrDragStat::pPageView
private

Definition at line 50 of file svddrag.hxx.

Referenced by Reset().

◆ pView

SdrView* SdrDragStat::pView
private

Definition at line 49 of file svddrag.hxx.

Referenced by Reset(), and TakeCreateRect().


The documentation for this class was generated from the following files: