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)
 
long GetDX () const
 
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
 

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
 

Detailed Description

Definition at line 46 of file svddrag.hxx.

Constructor & Destructor Documentation

SdrDragStat::SdrDragStat ( )
inline

Definition at line 83 of file svddrag.hxx.

References Reset.

SdrDragStat::~SdrDragStat ( )

Definition at line 25 of file svddrag.cxx.

Member Function Documentation

bool SdrDragStat::CheckMinMoved ( const Point rPnt)
void SdrDragStat::Clear ( )
private

Definition at line 29 of file svddrag.cxx.

References mpUserData, and mvPnts.

Referenced by Reset().

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

Definition at line 156 of file svddrag.hxx.

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

SdrDragMethod* SdrDragStat::GetDragMethod ( ) const
inline

Definition at line 153 of file svddrag.hxx.

Referenced by SdrObjCustomShape::applySpecialDrag().

long SdrDragStat::GetDX ( ) const
inline
long SdrDragStat::GetDY ( ) const
inline
const SdrHdl* SdrDragStat::GetHdl ( ) const
inline
const Point& SdrDragStat::GetNow ( ) const
inline

Definition at line 95 of file svddrag.hxx.

Referenced by SdrRectObj::applySpecialDrag(), SdrCaptionObj::applySpecialDrag(), SdrCircObj::applySpecialDrag(), SdrObjCustomShape::applySpecialDrag(), SdrEdgeObj::applySpecialDrag(), ImpPathForDragAndCreate::BckCreate(), SdrMeasureObj::BegCreate(), SdrCaptionObj::BegCreate(), SdrCircObj::BegCreate(), E3dScene::BegCreate(), sdr::table::SdrTableObj::BegCreate(), SdrEdgeObj::BegCreate(), SdrTextObj::BegCreate(), ImpPathForDragAndCreate::BegCreate(), SdrObject::BegCreate(), SdrObjCustomShape::DragCreateObject(), SdrCaptionObj::EndCreate(), ImpPathForDragAndCreate::EndCreate(), SdrSnapView::EndDragHelpLine(), SdrDragView::EndDragObj(), SdrDragView::EndInsObjPoint(), SdrMarkView::EndMarkGluePoints(), SdrMarkView::EndMarkObj(), SdrMarkView::EndMarkPoints(), SdrDragMovHdl::EndSdrDrag(), SdrSnapView::EndSetPageOrg(), SdrRectObj::getSpecialDragComment(), ImpPathForDragAndCreate::getSpecialDragComment(), ImpPathForDragAndCreate::getSpecialDragPoly(), SdrTextObj::ImpDragCalcRect(), SdrObject::ImpDragCalcRect(), SdrMeasureObj::ImpEvalDrag(), SdrMeasureObj::MovCreate(), SdrCaptionObj::MovCreate(), SdrEdgeObj::MovCreate(), ImpPathForDragAndCreate::MovCreate(), SdrCreateView::MovCreateObj(), SdrSnapView::MovDragHelpLine(), ImpPathForDragAndCreate::movePathDrag(), SdrDragResize::MoveSdrDrag(), SdrSnapView::MovSetPageOrg(), SdrDragView::TakeActionRect(), SdrCreateView::TakeActionRect(), SdrSnapView::TakeActionRect(), and SdrMarkView::TakeActionRect().

SdrPageView* SdrDragStat::GetPageView ( ) const
inline
const Point& SdrDragStat::GetPoint ( sal_Int32  nNum) const
inline

Definition at line 90 of file svddrag.hxx.

Referenced by SdrCreateView::EndCreateObj(), and ImpCircUser::SetCreateParams().

sal_Int32 SdrDragStat::GetPointCount ( ) const
inline
const Point& SdrDragStat::GetPos0 ( ) const
inline

Definition at line 94 of file svddrag.hxx.

Referenced by ImpPathForDragAndCreate::MovCreate().

const Point& SdrDragStat::GetPrev ( ) const
inline
sal_Int32 SdrDragStat::GetPrevPos ( ) const
inlineprivate

Definition at line 80 of file svddrag.hxx.

const Point& SdrDragStat::GetRef1 ( ) const
inline

Definition at line 97 of file svddrag.hxx.

const Point& SdrDragStat::GetRef2 ( ) const
inline

Definition at line 99 of file svddrag.hxx.

const Point& SdrDragStat::GetStart ( ) const
inline
SdrDragStatUserData* SdrDragStat::GetUser ( ) const
inline
SdrView* SdrDragStat::GetView ( ) const
inline
Fraction SdrDragStat::GetXFact ( ) const

Definition at line 97 of file svddrag.cxx.

References aRef1, bHorFixed, Fraction, GetPrev(), mvPnts, and Point::X().

Fraction SdrDragStat::GetYFact ( ) const

Definition at line 106 of file svddrag.cxx.

References aRef1, bVerFixed, Fraction, GetPrev(), mvPnts, and Point::Y().

bool SdrDragStat::IsEndDragChangesAttributes ( ) const
inline

Definition at line 132 of file svddrag.hxx.

Referenced by SdrDragObjOwn::EndSdrDrag().

bool SdrDragStat::IsEndDragChangesGeoAndAttributes ( ) const
inline

Definition at line 134 of file svddrag.hxx.

bool SdrDragStat::IsEndDragChangesLayout ( ) const
inline

Definition at line 136 of file svddrag.hxx.

bool SdrDragStat::IsHorFixed ( ) const
inline

Definition at line 113 of file svddrag.hxx.

bool SdrDragStat::IsMinMoved ( ) const
inline
bool SdrDragStat::IsMouseDown ( ) const
inline
bool SdrDragStat::IsNoSnap ( ) const
inline

Definition at line 120 of file svddrag.hxx.

Referenced by SdrCreateView::MovCreateObj(), and SdrDragMovHdl::MoveSdrDrag().

bool SdrDragStat::IsOrtho4Possible ( ) const
inline

Definition at line 125 of file svddrag.hxx.

Referenced by SdrCreateView::MovCreateObj().

bool SdrDragStat::IsOrtho8Possible ( ) const
inline

Definition at line 128 of file svddrag.hxx.

Referenced by SdrCreateView::MovCreateObj().

bool SdrDragStat::IsShown ( ) const
inline
bool SdrDragStat::IsVerFixed ( ) const
inline

Definition at line 115 of file svddrag.hxx.

Referenced by SdrDragResize::MoveSdrDrag().

void SdrDragStat::NextMove ( const Point rPnt)
void SdrDragStat::NextPoint ( )
void SdrDragStat::PrevPoint ( )

Definition at line 78 of file svddrag.cxx.

References aRealNow, and mvPnts.

Referenced by SdrCreateView::BckCreateObj().

void SdrDragStat::Reset ( void  )
void SdrDragStat::Reset ( const Point rPnt)

Definition at line 58 of file svddrag.cxx.

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

void SdrDragStat::ResetMinMoved ( )
inline

Definition at line 110 of file svddrag.hxx.

Referenced by SdrCreateView::EndCreateObj().

void SdrDragStat::SetActionRect ( const tools::Rectangle rR)
inline
void SdrDragStat::SetDragMethod ( SdrDragMethod pMth)
inline

Definition at line 154 of file svddrag.hxx.

Referenced by SdrDragView::BegDragObj().

void SdrDragStat::SetEndDragChangesAttributes ( bool  bOn)
inline
void SdrDragStat::SetEndDragChangesGeoAndAttributes ( bool  bOn)
inline
void SdrDragStat::SetEndDragChangesLayout ( bool  bOn)
inline

Definition at line 137 of file svddrag.hxx.

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

void SdrDragStat::SetHdl ( SdrHdl pH)
inline

Definition at line 102 of file svddrag.hxx.

Referenced by SdrDragView::BegDragObj().

void SdrDragStat::SetHorFixed ( bool  bOn)
inline

Definition at line 114 of file svddrag.hxx.

Referenced by SdrDragResize::BeginSdrDrag().

void SdrDragStat::SetMinMove ( sal_uInt16  nDist)
inline
void SdrDragStat::SetMinMoved ( )
inline

Definition at line 109 of file svddrag.hxx.

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

void SdrDragStat::SetMouseDown ( bool  bDown)
inline
void SdrDragStat::SetNoSnap ( bool  bOn = true)
inline
void SdrDragStat::SetNow ( Point const &  pt)
inline

Definition at line 96 of file svddrag.hxx.

Referenced by ImpPathForDragAndCreate::movePathDrag().

void SdrDragStat::SetOrtho4Possible ( bool  bOn = true)
inline
void SdrDragStat::SetOrtho8Possible ( bool  bOn = true)
inline
void SdrDragStat::SetPageView ( SdrPageView pPV)
inline

Definition at line 89 of file svddrag.hxx.

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

void SdrDragStat::SetRef1 ( const Point pt)
inline
void SdrDragStat::SetRef2 ( const Point pt)
inline

Definition at line 100 of file svddrag.hxx.

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

void SdrDragStat::SetShown ( bool  bOn)
inline
void SdrDragStat::SetUser ( std::unique_ptr< SdrDragStatUserData pU)
inline
void SdrDragStat::SetVerFixed ( bool  bOn)
inline

Definition at line 116 of file svddrag.hxx.

Referenced by SdrDragResize::BeginSdrDrag().

void SdrDragStat::SetView ( SdrView pV)
inline

Definition at line 87 of file svddrag.hxx.

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

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

Member Data Documentation

tools::Rectangle SdrDragStat::aActionRect
private

Definition at line 56 of file svddrag.hxx.

Referenced by Reset().

Point SdrDragStat::aPos0
private

Definition at line 54 of file svddrag.hxx.

Referenced by NextMove(), and Reset().

Point SdrDragStat::aRealNow
private

Definition at line 55 of file svddrag.hxx.

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

Point SdrDragStat::aRef1
private

Definition at line 52 of file svddrag.hxx.

Referenced by GetXFact(), and GetYFact().

Point SdrDragStat::aRef2
private

Definition at line 53 of file svddrag.hxx.

bool SdrDragStat::bEndDragChangesAttributes
private

Definition at line 58 of file svddrag.hxx.

Referenced by Reset().

bool SdrDragStat::bEndDragChangesGeoAndAttributes
private

Definition at line 59 of file svddrag.hxx.

Referenced by Reset().

bool SdrDragStat::bHorFixed
private

Definition at line 68 of file svddrag.hxx.

Referenced by GetXFact(), and Reset().

bool SdrDragStat::bMinMoved
private

Definition at line 66 of file svddrag.hxx.

Referenced by CheckMinMoved(), and Reset().

bool SdrDragStat::bMouseIsUp
private

Definition at line 62 of file svddrag.hxx.

Referenced by Reset().

bool SdrDragStat::bOrtho4
private

Definition at line 72 of file svddrag.hxx.

Referenced by Reset().

bool SdrDragStat::bOrtho8
private

Definition at line 73 of file svddrag.hxx.

Referenced by Reset().

bool SdrDragStat::bShown
private

Definition at line 64 of file svddrag.hxx.

Referenced by Reset().

bool SdrDragStat::bVerFixed
private

Definition at line 69 of file svddrag.hxx.

Referenced by GetYFact(), and Reset().

bool SdrDragStat::bWantNoSnap
private

Definition at line 70 of file svddrag.hxx.

Referenced by Reset().

bool SdrDragStat::mbEndDragChangesLayout
private

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

Definition at line 61 of file svddrag.hxx.

Referenced by Reset().

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

Definition at line 76 of file svddrag.hxx.

Referenced by Clear().

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().

sal_uInt16 SdrDragStat::nMinMov
private

Definition at line 65 of file svddrag.hxx.

Referenced by CheckMinMoved(), and Reset().

SdrDragMethod* SdrDragStat::pDragMethod
private

Definition at line 75 of file svddrag.hxx.

Referenced by Reset().

SdrHdl* SdrDragStat::pHdl
private

Definition at line 48 of file svddrag.hxx.

Referenced by Reset().

SdrPageView* SdrDragStat::pPageView
private

Definition at line 50 of file svddrag.hxx.

Referenced by Reset().

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: