25#include <svx/strings.hrc>
45 for (
size_t nm=0; nm<nMarkCount; ++nm) {
63 for(sal_uInt16 nPtId : rPts)
69 (*pDoFunc)(rGP,pObj,p1,p2,p3,p4);
80 if (!bConst && nMarkCount!=0)
91 bool& bFirst=*
const_cast<bool *
>(
static_cast<bool const *
>(pbFirst));
112 if (*
static_cast<bool const *
>(pbOn))
133 bool& bFirst=*
const_cast<bool *
>(
static_cast<bool const *
>(pbFirst));
155 rGP.
SetPercent(*
static_cast<bool const *
>(pbOn));
171 bool& bDontCare=*
const_cast<bool *
>(
static_cast<bool const *
>(pbDontCare));
172 bool bVert=*
static_cast<bool const *
>(pbVert);
182 bool& bFirst=*
const_cast<bool *
>(
static_cast<bool const *
>(pbFirst));
183 if (bFirst) { nRet=nAlg; bFirst=
false; }
184 else if (nRet!=nAlg) {
198 bool bDontCare=
false;
207 if (*
static_cast<bool const *
>(pbVert)) {
232 for (
size_t nm=0; nm<nMarkCount; ++nm)
245 for(sal_uInt16 nPtId : rPts)
274 for (
size_t nm=0; nm<nMarkCount; ++nm)
280 if (!rPts.
empty() && pGPL!=
nullptr)
287 for(sal_uInt16 nPtId : rPts)
293 sal_uInt16 nNewIdx=pGPL->
Insert(aNewGP);
294 sal_uInt16 nNewId=(*pGPL)[nNewIdx].GetId();
295 aIdsToErase.
insert(nPtId);
296 aIdsToInsert.
insert(nNewId);
299 for(
const auto& rId : aIdsToErase)
301 rPts.insert(aIdsToInsert);
315 for (
size_t nm=0; nm<nMarkCount; ++nm) {
326 for(sal_uInt16 nPtId : rPts)
332 (*pTrFunc)(aPos,p1,p2,p3,p4);
346static void ImpMove(
Point& rPt,
const void* p1,
const void* ,
const void* ,
const void* )
365static void ImpResize(
Point& rPt,
const void* p1,
const void* p2,
const void* p3,
const void* )
383static void ImpRotate(
Point& rPt,
const void* p1,
const void* ,
const void* p3,
const void* p4)
385 RotatePoint(rPt,*
static_cast<const Point*
>(p1),*
static_cast<const double*
>(p3),*
static_cast<const double*
>(p4));
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
bool IsUndoEnabled() const
void AddUndo(std::unique_ptr< SdrUndoAction > pUndo)
void SetMarkedGluePointsEscDir(SdrEscapeDirection nThisEsc, bool bOn)
void SetMarkedGluePointsPercent(bool bOn)
SdrAlign GetMarkedGluePointsAlign(bool bVert) const
void ImpCopyMarkedGluePoints()
void MoveMarkedGluePoints(const Size &rSiz, bool bCopy)
void SetMarkedGluePointsAlign(bool bVert, SdrAlign nAlign)
void ResizeMarkedGluePoints(const Point &rRef, const Fraction &xFact, const Fraction &yFact, bool bCopy)
void ImpTransformMarkedGluePoints(PGlueTrFunc pTrFunc, const void *p1, const void *p2=nullptr, const void *p3=nullptr, const void *p4=nullptr)
TriState IsMarkedGluePointsPercent() const
virtual ~SdrGlueEditView() override
void DeleteMarkedGluePoints()
TriState IsMarkedGluePointsEscDir(SdrEscapeDirection nThisEsc) const
SdrGlueEditView(SdrModel &rSdrModel, OutputDevice *pOut)
void ImpDoMarkedGluePoints(PGlueDoFunc pDoFunc, bool bConst, const void *p1, const void *p2=nullptr, const void *p3=nullptr, const void *p4=nullptr)
void RotateMarkedGluePoints(const Point &rRef, Degree100 nAngle, bool bCopy)
sal_uInt16 Insert(const SdrGluePoint &rGP)
sal_uInt16 FindGluePoint(sal_uInt16 nId) const
void Delete(sal_uInt16 nPos)
void SetPercent(bool bOn)
Point GetAbsolutePos(const SdrObject &rObj) const
void SetEscDir(SdrEscapeDirection nNewEsc)
void SetVertAlign(SdrAlign nAlg)
SdrEscapeDirection GetEscDir() const
void SetHorzAlign(SdrAlign nAlg)
SdrAlign GetVertAlign() const
SdrAlign GetHorzAlign() const
void SetAbsolutePos(const Point &rNewPos, const SdrObject &rObj)
size_t GetMarkedObjectCount() const
void ForceUndirtyMrkPnt() const
SdrMark * GetSdrMarkByIndex(size_t nNum) const
virtual void BrkAction() override
bool UnmarkAllGluePoints()
void AdjustMarkHdl(SfxViewShell *pOtherShell=nullptr)
OUString const & GetDescriptionOfMarkedGluePoints() const
Everything a View needs to know about a selected object.
SdrObject * GetMarkedSdrObj() const
const SdrUShortCont & GetMarkedGluePoints() const
virtual void SetChanged(bool bFlg=true)
SdrUndoFactory & GetSdrUndoFactory() const
returns the models undo factory.
virtual SdrGluePointList * ForceGluePointList()
void BroadcastObjectChange() const
virtual void SetChanged()
virtual const SdrGluePointList * GetGluePointList() const
SdrModel & GetModel() const
virtual std::unique_ptr< SdrUndoAction > CreateUndoGeoObject(SdrObject &rObject)
std::pair< const_iterator, bool > insert(Value &&x)
OUString SvxResId(TranslateId aId)
static void ImpSetPercent(SdrGluePoint &rGP, const SdrObject *pObj, const void *pbOn, const void *, const void *, const void *)
static void ImpGetAlign(SdrGluePoint &rGP, const SdrObject *, const void *pbFirst, const void *pbDontCare, const void *pbVert, const void *pnRet)
static void ImpSetAlign(SdrGluePoint &rGP, const SdrObject *pObj, const void *pbVert, const void *pnAlign, const void *, const void *)
static void ImpRotate(Point &rPt, const void *p1, const void *, const void *p3, const void *p4)
static void ImpGetEscDir(SdrGluePoint &rGP, const SdrObject *, const void *pbFirst, const void *pnThisEsc, const void *pnRet, const void *)
static void ImpResize(Point &rPt, const void *p1, const void *p2, const void *p3, const void *)
static void ImpGetPercent(SdrGluePoint &rGP, const SdrObject *, const void *pbFirst, const void *pnRet, const void *, const void *)
static void ImpSetEscDir(SdrGluePoint &rGP, const SdrObject *, const void *pnThisEsc, const void *pbOn, const void *, const void *)
static void ImpMove(Point &rPt, const void *p1, const void *, const void *, const void *)
#define SDRGLUEPOINT_NOTFOUND
void RotatePoint(Point &rPnt, const Point &rRef, double sn, double cs)
void ResizePoint(Point &rPnt, const Point &rRef, const Fraction &xFract, const Fraction &yFract)