diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-05-29 12:54:48 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-05-29 17:07:09 +0200 |
commit | e73c7982b7c374b1b28535883bd8898edad25e50 (patch) | |
tree | ddc316f37043760d8d2712d0568df2417c05baf4 /svx | |
parent | ab659f2020d5320c3b2655b2909a1bd808f388b7 (diff) |
svx: GetDescriptionOfMarkedPoints() -> ...
... GetMarkedObjectList().GetPointMarkDescription()
In order to reduce number of calls to GetMarkedObjectList() later on
Change-Id: I5886fd20ffd9df115e12947f4dc7293c98b50bbf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168215
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdmrkv.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdpoev.cxx | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx index 669f114163a0..76b20ef5bc8f 100644 --- a/svx/source/svdraw/svdmrkv.cxx +++ b/svx/source/svdraw/svdmrkv.cxx @@ -2727,7 +2727,7 @@ OUString SdrMarkView::ImpGetDescriptionString(TranslateId pStrCacheID, ImpGetDes { if(nOpt == ImpGetDescriptionOptions::POINTS) { - sStr = sStr.replaceAt(nPos, 2, GetDescriptionOfMarkedPoints()); + sStr = sStr.replaceAt(nPos, 2, GetMarkedObjectList().GetPointMarkDescription()); } else if(nOpt == ImpGetDescriptionOptions::GLUEPOINTS) { diff --git a/svx/source/svdraw/svdpoev.cxx b/svx/source/svdraw/svdpoev.cxx index 8cd84dfb4df0..7185e0bc81ba 100644 --- a/svx/source/svdraw/svdpoev.cxx +++ b/svx/source/svdraw/svdpoev.cxx @@ -196,7 +196,7 @@ void SdrPolyEditView::SetMarkedPointsSmooth(SdrPathSmoothKind eKind) const bool bUndo = IsUndoEnabled(); if( bUndo ) - BegUndo(SvxResId(STR_EditSetPointsSmooth), GetDescriptionOfMarkedPoints()); + BegUndo(SvxResId(STR_EditSetPointsSmooth), GetMarkedObjectList().GetPointMarkDescription()); const size_t nMarkCount(GetMarkedObjectList().GetMarkCount()); for(size_t nMarkNum(nMarkCount); nMarkNum > 0;) @@ -230,7 +230,7 @@ void SdrPolyEditView::SetMarkedSegmentsKind(SdrPathSegmentKind eKind) const bool bUndo = IsUndoEnabled(); if( bUndo ) - BegUndo(SvxResId(STR_EditSetSegmentsKind), GetDescriptionOfMarkedPoints()); + BegUndo(SvxResId(STR_EditSetSegmentsKind), GetMarkedObjectList().GetPointMarkDescription()); const size_t nMarkCount(GetMarkedObjectList().GetMarkCount()); for(size_t nMarkNum=nMarkCount; nMarkNum > 0;) @@ -296,7 +296,7 @@ void SdrPolyEditView::DeleteMarkedPoints() if( bUndo ) { // Description - BegUndo(SvxResId(STR_EditDelete),GetDescriptionOfMarkedPoints(),SdrRepeatFunc::Delete); + BegUndo(SvxResId(STR_EditDelete),GetMarkedObjectList().GetPointMarkDescription(),SdrRepeatFunc::Delete); } for (size_t nMarkNum=nMarkCount; nMarkNum>0;) @@ -342,7 +342,7 @@ void SdrPolyEditView::RipUpAtMarkedPoints() const bool bUndo = IsUndoEnabled(); if( bUndo ) - BegUndo(SvxResId(STR_EditRipUp), GetDescriptionOfMarkedPoints()); + BegUndo(SvxResId(STR_EditRipUp), GetMarkedObjectList().GetPointMarkDescription()); for(size_t nMarkNum = nMarkCount; nMarkNum > 0;) { @@ -605,7 +605,7 @@ void SdrPolyEditView::MoveMarkedPoints(const Size& rSiz) { ForceUndirtyMrkPnt(); OUString aStr(SvxResId(STR_EditMove)); - BegUndo(aStr,GetDescriptionOfMarkedPoints(),SdrRepeatFunc::Move); + BegUndo(aStr,GetMarkedObjectList().GetPointMarkDescription(),SdrRepeatFunc::Move); ImpTransformMarkedPoints(ImpMove,&rSiz); EndUndo(); AdjustMarkHdl(); @@ -622,7 +622,7 @@ void SdrPolyEditView::ResizeMarkedPoints(const Point& rRef, const Fraction& xFac { ForceUndirtyMrkPnt(); OUString aStr(SvxResId(STR_EditResize)); - BegUndo(aStr,GetDescriptionOfMarkedPoints(),SdrRepeatFunc::Resize); + BegUndo(aStr,GetMarkedObjectList().GetPointMarkDescription(),SdrRepeatFunc::Resize); ImpTransformMarkedPoints(ImpResize,&rRef,&xFact,&yFact); EndUndo(); AdjustMarkHdl(); @@ -639,7 +639,7 @@ void SdrPolyEditView::RotateMarkedPoints(const Point& rRef, Degree100 nAngle) { ForceUndirtyMrkPnt(); OUString aStr(SvxResId(STR_EditResize)); - BegUndo(aStr,GetDescriptionOfMarkedPoints(),SdrRepeatFunc::Rotate); + BegUndo(aStr,GetMarkedObjectList().GetPointMarkDescription(),SdrRepeatFunc::Rotate); double nSin = sin(toRadians(nAngle)); double nCos = cos(toRadians(nAngle)); ImpTransformMarkedPoints(ImpRotate,&rRef,&nAngle,&nSin,&nCos); |