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)
 
long GetAlignAngle () const
 
void SetAlignAngle (long nAngle)
 
void Rotate (const Point &rRef, long nAngle, double sn, double cs, const SdrObject *pObj)
 
void Mirror (const Point &rRef1, const Point &rRef2, long nAngle, const SdrObject *pObj)
 
void Shear (const Point &rRef, double tn, bool bVShear, const SdrObject *pObj)
 

Static Public Member Functions

static long EscDirToAngle (SdrEscapeDirection nEsc)
 
static SdrEscapeDirection EscAngleToDir (long 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 68 of file svdglue.hxx.

Constructor & Destructor Documentation

SdrGluePoint::SdrGluePoint ( )
inline

Definition at line 80 of file svdglue.hxx.

References NONE.

SdrGluePoint::SdrGluePoint ( const Point rNewPos)
inline

Definition at line 81 of file svdglue.hxx.

References NONE.

Member Function Documentation

SdrEscapeDirection SdrGluePoint::EscAngleToDir ( long  nAngle)
static

Definition at line 176 of file svdglue.cxx.

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

Referenced by Mirror(), and Rotate().

long SdrGluePoint::EscDirToAngle ( SdrEscapeDirection  nEsc)
static

Definition at line 164 of file svdglue.cxx.

References BOTTOM, LEFT, RIGHT, and TOP.

Referenced by Mirror(), and Rotate().

Point SdrGluePoint::GetAbsolutePos ( const SdrObject rObj) const
SdrAlign SdrGluePoint::GetAlign ( ) const
inline

Definition at line 97 of file svdglue.hxx.

long SdrGluePoint::GetAlignAngle ( ) const

Definition at line 128 of file svdglue.cxx.

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

Referenced by Mirror(), and Rotate().

SdrEscapeDirection SdrGluePoint::GetEscDir ( ) const
inline

Definition at line 84 of file svdglue.hxx.

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

SdrAlign SdrGluePoint::GetHorzAlign ( ) const
inline

Definition at line 99 of file svdglue.hxx.

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

sal_uInt16 SdrGluePoint::GetId ( ) const
inline
const Point& SdrGluePoint::GetPos ( ) const
inline
SdrAlign SdrGluePoint::GetVertAlign ( ) const
inline

Definition at line 101 of file svdglue.hxx.

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

void SdrGluePoint::Invalidate ( vcl::Window rWin,
const SdrObject pObj 
) const
bool SdrGluePoint::IsHit ( const Point rPnt,
const OutputDevice rOut,
const SdrObject pObj 
) const
bool SdrGluePoint::IsPercent ( ) const
inline

Definition at line 88 of file svdglue.hxx.

Referenced by ImpGetPercent().

bool SdrGluePoint::IsUserDefined ( ) const
inline
void SdrGluePoint::Mirror ( const Point rRef1,
const Point rRef2,
long  nAngle,
const SdrObject pObj 
)
void SdrGluePoint::Rotate ( const Point rRef,
long  nAngle,
double  sn,
double  cs,
const SdrObject pObj 
)
void SdrGluePoint::SetAbsolutePos ( const Point rNewPos,
const SdrObject rObj 
)
void SdrGluePoint::SetAlign ( SdrAlign  nAlg)
inline

Definition at line 98 of file svdglue.hxx.

Referenced by EnhancedCustomShape2d::ApplyGluePoints().

void SdrGluePoint::SetAlignAngle ( long  nAngle)

Definition at line 151 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().

void SdrGluePoint::SetEscDir ( SdrEscapeDirection  nNewEsc)
inline

Definition at line 85 of file svdglue.hxx.

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

void SdrGluePoint::SetHorzAlign ( SdrAlign  nAlg)
inline

Definition at line 100 of file svdglue.hxx.

References NONE.

Referenced by ImpSetAlign().

void SdrGluePoint::SetId ( sal_uInt16  nNewId)
inline

Definition at line 87 of file svdglue.hxx.

Referenced by SdrGluePointList::Insert().

void SdrGluePoint::SetPercent ( bool  bOn)
inline
void SdrGluePoint::SetPos ( const Point rNewPos)
inline
void SdrGluePoint::SetReallyAbsolute ( bool  bOn,
const SdrObject rObj 
)

Definition at line 29 of file svdglue.cxx.

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

void SdrGluePoint::SetUserDefined ( bool  bNew)
inline

Definition at line 95 of file svdglue.hxx.

Referenced by SdrObjCustomShape::ImpCheckCustomGluePointsAreAdded().

void SdrGluePoint::SetVertAlign ( SdrAlign  nAlg)
inline

Definition at line 102 of file svdglue.hxx.

References NONE.

Referenced by ImpSetAlign().

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

Definition at line 247 of file svdglue.cxx.

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

Member Data Documentation

Point SdrGluePoint::aPos
private

Definition at line 72 of file svdglue.hxx.

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

bool SdrGluePoint::bNoPercent
private

Definition at line 76 of file svdglue.hxx.

Referenced by GetAbsolutePos(), and SetAbsolutePos().

bool SdrGluePoint::bReallyAbsolute
private

Definition at line 77 of file svdglue.hxx.

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

bool SdrGluePoint::bUserDefined
private

Definition at line 78 of file svdglue.hxx.

SdrAlign SdrGluePoint::nAlign
private

Definition at line 75 of file svdglue.hxx.

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

SdrEscapeDirection SdrGluePoint::nEscDir
private

Definition at line 73 of file svdglue.hxx.

Referenced by Mirror(), and Rotate().

sal_uInt16 SdrGluePoint::nId
private

Definition at line 74 of file svdglue.hxx.


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