LibreOffice Module svx (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SdrGluePoint Class Reference

#include <svdglue.hxx>

Collaboration diagram for SdrGluePoint:
[legend]

Public Member Functions

 SdrGluePoint ()
 
 SdrGluePoint (const Point &rNewPos)
 
const PointGetPos () const
 
void SetPos (const Point &rNewPos)
 
SdrEscapeDirection GetEscDir () const
 
void SetEscDir (SdrEscapeDirection nNewEsc)
 
sal_uInt16 GetId () const
 
void SetId (sal_uInt16 nNewId)
 
bool IsPercent () const
 
void SetPercent (bool bOn)
 
void SetReallyAbsolute (bool bOn, const SdrObject &rObj)
 
bool IsUserDefined () const
 
void SetUserDefined (bool bNew)
 
SdrAlign GetAlign () const
 
void SetAlign (SdrAlign nAlg)
 
SdrAlign GetHorzAlign () const
 
void SetHorzAlign (SdrAlign nAlg)
 
SdrAlign GetVertAlign () const
 
void SetVertAlign (SdrAlign nAlg)
 
bool IsHit (const Point &rPnt, const OutputDevice &rOut, const SdrObject *pObj) const
 
void Invalidate (vcl::Window &rWin, const SdrObject *pObj) const
 
Point GetAbsolutePos (const SdrObject &rObj) const
 
void SetAbsolutePos (const Point &rNewPos, const SdrObject &rObj)
 
Degree100 GetAlignAngle () const
 
void SetAlignAngle (Degree100 nAngle)
 
void Rotate (const Point &rRef, Degree100 nAngle, double sn, double cs, const SdrObject *pObj)
 
void Mirror (const Point &rRef1, const Point &rRef2, Degree100 nAngle, const SdrObject *pObj)
 
void Shear (const Point &rRef, double tn, bool bVShear, const SdrObject *pObj)
 

Static Public Member Functions

static Degree100 EscDirToAngle (SdrEscapeDirection nEsc)
 
static SdrEscapeDirection EscAngleToDir (Degree100 nAngle)
 

Private Attributes

Point aPos
 
SdrEscapeDirection nEscDir
 
sal_uInt16 nId
 
SdrAlign nAlign
 
bool bNoPercent:1
 
bool bReallyAbsolute:1
 
bool bUserDefined:1
 

Detailed Description

Definition at line 67 of file svdglue.hxx.

Constructor & Destructor Documentation

◆ SdrGluePoint() [1/2]

SdrGluePoint::SdrGluePoint ( )
inline

Definition at line 79 of file svdglue.hxx.

References nId, and NONE.

◆ SdrGluePoint() [2/2]

SdrGluePoint::SdrGluePoint ( const Point rNewPos)
inline

Definition at line 87 of file svdglue.hxx.

References nId, and NONE.

Member Function Documentation

◆ EscAngleToDir()

SdrEscapeDirection SdrGluePoint::EscAngleToDir ( Degree100  nAngle)
static

Definition at line 177 of file svdglue.cxx.

References BOTTOM, LEFT, NormAngle36000(), RIGHT, and TOP.

Referenced by Mirror(), and Rotate().

◆ EscDirToAngle()

Degree100 SdrGluePoint::EscDirToAngle ( SdrEscapeDirection  nEsc)
static

Definition at line 165 of file svdglue.cxx.

References BOTTOM, LEFT, RIGHT, and TOP.

Referenced by Mirror(), and Rotate().

◆ GetAbsolutePos()

Point SdrGluePoint::GetAbsolutePos ( const SdrObject rObj) const

◆ GetAlign()

SdrAlign SdrGluePoint::GetAlign ( ) const
inline

Definition at line 141 of file svdglue.hxx.

◆ GetAlignAngle()

Degree100 SdrGluePoint::GetAlignAngle ( ) const

Definition at line 129 of file svdglue.cxx.

References HORZ_CENTER, HORZ_LEFT, HORZ_RIGHT, nAlign, VERT_BOTTOM, VERT_CENTER, and VERT_TOP.

Referenced by Mirror(), and Rotate().

◆ GetEscDir()

SdrEscapeDirection SdrGluePoint::GetEscDir ( ) const
inline

Definition at line 104 of file svdglue.hxx.

Referenced by SdrEdgeObj::ImpCalcEdgeTrack(), ImpGetEscDir(), and ImpSetEscDir().

◆ GetHorzAlign()

SdrAlign SdrGluePoint::GetHorzAlign ( ) const
inline

Definition at line 149 of file svdglue.hxx.

Referenced by GetAbsolutePos(), ImpGetAlign(), and SetAbsolutePos().

◆ GetId()

sal_uInt16 SdrGluePoint::GetId ( ) const
inline

◆ GetPos()

const Point & SdrGluePoint::GetPos ( ) const
inline

◆ GetVertAlign()

SdrAlign SdrGluePoint::GetVertAlign ( ) const
inline

Definition at line 158 of file svdglue.hxx.

Referenced by GetAbsolutePos(), ImpGetAlign(), and SetAbsolutePos().

◆ Invalidate()

void SdrGluePoint::Invalidate ( vcl::Window rWin,
const SdrObject pObj 
) const

◆ IsHit()

bool SdrGluePoint::IsHit ( const Point rPnt,
const OutputDevice rOut,
const SdrObject pObj 
) const

◆ IsPercent()

bool SdrGluePoint::IsPercent ( ) const
inline

Definition at line 120 of file svdglue.hxx.

Referenced by ImpGetPercent().

◆ IsUserDefined()

bool SdrGluePoint::IsUserDefined ( ) const
inline

◆ Mirror()

void SdrGluePoint::Mirror ( const Point rRef1,
const Point rRef2,
Degree100  nAngle,
const SdrObject pObj 
)

◆ Rotate()

void SdrGluePoint::Rotate ( const Point rRef,
Degree100  nAngle,
double  sn,
double  cs,
const SdrObject pObj 
)

◆ SetAbsolutePos()

void SdrGluePoint::SetAbsolutePos ( const Point rNewPos,
const SdrObject rObj 
)

◆ SetAlign()

void SdrGluePoint::SetAlign ( SdrAlign  nAlg)
inline

Definition at line 145 of file svdglue.hxx.

Referenced by EnhancedCustomShape2d::ApplyGluePoints().

◆ SetAlignAngle()

void SdrGluePoint::SetAlignAngle ( Degree100  nAngle)

Definition at line 152 of file svdglue.cxx.

References HORZ_CENTER, HORZ_LEFT, HORZ_RIGHT, nAlign, NormAngle36000(), VERT_BOTTOM, VERT_CENTER, and VERT_TOP.

Referenced by Mirror(), and Rotate().

◆ SetEscDir()

void SdrGluePoint::SetEscDir ( SdrEscapeDirection  nNewEsc)
inline

Definition at line 108 of file svdglue.hxx.

Referenced by EnhancedCustomShape2d::ApplyGluePoints(), and ImpSetEscDir().

◆ SetHorzAlign()

void SdrGluePoint::SetHorzAlign ( SdrAlign  nAlg)
inline

Definition at line 153 of file svdglue.hxx.

References NONE.

Referenced by ImpSetAlign().

◆ SetId()

void SdrGluePoint::SetId ( sal_uInt16  nNewId)
inline

Definition at line 116 of file svdglue.hxx.

References nId.

Referenced by SdrGluePointList::Insert().

◆ SetPercent()

void SdrGluePoint::SetPercent ( bool  bOn)
inline

◆ SetPos()

void SdrGluePoint::SetPos ( const Point rNewPos)
inline

◆ SetReallyAbsolute()

void SdrGluePoint::SetReallyAbsolute ( bool  bOn,
const SdrObject rObj 
)

Definition at line 30 of file svdglue.cxx.

References aPos, bReallyAbsolute, GetAbsolutePos(), and SetAbsolutePos().

◆ SetUserDefined()

void SdrGluePoint::SetUserDefined ( bool  bNew)
inline

Definition at line 136 of file svdglue.hxx.

Referenced by SdrObjCustomShape::ImpCheckCustomGluePointsAreAdded().

◆ SetVertAlign()

void SdrGluePoint::SetVertAlign ( SdrAlign  nAlg)
inline

Definition at line 162 of file svdglue.hxx.

References NONE.

Referenced by ImpSetAlign().

◆ Shear()

void SdrGluePoint::Shear ( const Point rRef,
double  tn,
bool  bVShear,
const SdrObject pObj 
)

Definition at line 248 of file svdglue.cxx.

References GetAbsolutePos(), GetPos(), SetAbsolutePos(), SetPos(), and ShearPoint().

Member Data Documentation

◆ aPos

Point SdrGluePoint::aPos
private

Definition at line 71 of file svdglue.hxx.

Referenced by GetAbsolutePos(), SetAbsolutePos(), and SetReallyAbsolute().

◆ bNoPercent

bool SdrGluePoint::bNoPercent
private

Definition at line 75 of file svdglue.hxx.

Referenced by GetAbsolutePos(), and SetAbsolutePos().

◆ bReallyAbsolute

bool SdrGluePoint::bReallyAbsolute
private

Definition at line 76 of file svdglue.hxx.

Referenced by GetAbsolutePos(), SetAbsolutePos(), and SetReallyAbsolute().

◆ bUserDefined

bool SdrGluePoint::bUserDefined
private

Definition at line 77 of file svdglue.hxx.

◆ nAlign

SdrAlign SdrGluePoint::nAlign
private

Definition at line 74 of file svdglue.hxx.

Referenced by GetAlignAngle(), Mirror(), Rotate(), and SetAlignAngle().

◆ nEscDir

SdrEscapeDirection SdrGluePoint::nEscDir
private

Definition at line 72 of file svdglue.hxx.

Referenced by Mirror(), and Rotate().

◆ nId

sal_uInt16 SdrGluePoint::nId
private

Definition at line 73 of file svdglue.hxx.


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