diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-16 09:49:37 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-16 12:18:39 +0000 |
commit | 1d852b32d7ad89b2317c04958060f366f8922ca4 (patch) | |
tree | 69720512c5675dfad89d00e1134b46faff5eb7b6 /svx/source/svdraw/svdpoev.cxx | |
parent | 383b75f4f516d6a5d256ffc08bc0e7836520447b (diff) |
loplugin:unusedmethods svx
Change-Id: I92158457b3ffaaf7c84c6f4c87708d766c8c9f61
Reviewed-on: https://gerrit.libreoffice.org/17117
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/svdraw/svdpoev.cxx')
-rw-r--r-- | svx/source/svdraw/svdpoev.cxx | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/svx/source/svdraw/svdpoev.cxx b/svx/source/svdraw/svdpoev.cxx index a4fa289e73ea..36bc0c163abe 100644 --- a/svx/source/svdraw/svdpoev.cxx +++ b/svx/source/svdraw/svdpoev.cxx @@ -381,7 +381,7 @@ void SdrPolyEditView::RipUpAtMarkedPoints() if(pNeuObj) { - SdrInsertReason aReason(SDRREASON_VIEWCALL, pObj); + SdrInsertReason aReason(SDRREASON_VIEWCALL); pM->GetPageView()->GetObjList()->InsertObject(pNeuObj, pObj->GetOrdNum() + 1, &aReason); if( bUndo ) AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoNewObject(*pNeuObj)); @@ -538,46 +538,6 @@ SdrObjClosedKind SdrPolyEditView::GetMarkedObjectsClosedState() const } } -void SdrPolyEditView::CloseMarkedObjects(bool bToggle, bool bOpen) -{ - if (AreObjectsMarked()) - { - const bool bUndo = IsUndoEnabled(); - if( bUndo ) - BegUndo(ImpGetResStr(STR_EditShut),GetDescriptionOfMarkedPoints()); - - bool bChg=false; - const size_t nMarkCount=GetMarkedObjectCount(); - for (size_t nm=0; nm<nMarkCount; ++nm) - { - SdrMark* pM=GetSdrMarkByIndex(nm); - SdrObject* pO=pM->GetMarkedSdrObj(); - bool bClosed=pO->IsClosedObj(); - if ((pO->IsPolyObj() && (bClosed==bOpen)) || bToggle) - { - if( bUndo ) - AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoGeoObject(*pO)); - - SdrPathObj* pPathObj = dynamic_cast< SdrPathObj* >( pO ); - if(pPathObj) - pPathObj->ToggleClosed(); - bChg=true; - } - } - - if( bUndo ) - EndUndo(); - - if (bChg) - { - UnmarkAllPoints(); - MarkListHasChanged(); - } - } -} - - - void SdrPolyEditView::ImpTransformMarkedPoints(PPolyTrFunc pTrFunc, const void* p1, const void* p2, const void* p3, const void* p4, const void* p5) { const bool bUndo = IsUndoEnabled(); |