From 96d44c9b077a6cc8068067a795dc63248ab90fea Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 22 Jul 2015 10:20:03 +0200 Subject: loplugin:unusedmethods sc Change-Id: I7bdb1889a942d63370731764a58f4ab524dedd8a Reviewed-on: https://gerrit.libreoffice.org/17287 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/drawfunc/fudraw.cxx | 7 ------ sc/source/ui/drawfunc/futext.cxx | 52 ---------------------------------------- 2 files changed, 59 deletions(-) (limited to 'sc/source/ui/drawfunc') diff --git a/sc/source/ui/drawfunc/fudraw.cxx b/sc/source/ui/drawfunc/fudraw.cxx index 2817e527b8e5..caa5102c2599 100644 --- a/sc/source/ui/drawfunc/fudraw.cxx +++ b/sc/source/ui/drawfunc/fudraw.cxx @@ -669,13 +669,6 @@ bool FuDraw::KeyInput(const KeyEvent& rKEvt) return bReturn; } -// II -void FuDraw::SelectionHasChanged() -{ - const SdrHdlList& rHdlList = pView->GetHdlList(); - ((SdrHdlList&)rHdlList).ResetFocusHdl(); -} - /************************************************************************* |* |* enable function diff --git a/sc/source/ui/drawfunc/futext.cxx b/sc/source/ui/drawfunc/futext.cxx index ce7cf5c03b5d..2cd2f5f0038d 100644 --- a/sc/source/ui/drawfunc/futext.cxx +++ b/sc/source/ui/drawfunc/futext.cxx @@ -617,58 +617,6 @@ void FuText::Deactivate() StopEditMode(); } -/************************************************************************* -|* -|* Selektion hat sich geaendert -|* -\************************************************************************/ - -void FuText::SelectionHasChanged() -{ - pView->SetDragMode(SDRDRAG_MOVE); - SfxBindings& rBindings = pViewShell->GetViewFrame()->GetBindings(); - rBindings.Invalidate( SID_OBJECT_ROTATE ); - rBindings.Invalidate( SID_OBJECT_MIRROR ); - - pTextObj = NULL; - - if ( pView->AreObjectsMarked() ) - { - const SdrMarkList& rMarkList = pView->GetMarkedObjectList(); - - if (rMarkList.GetMarkCount() == 1) - { - SdrMark* pMark = rMarkList.GetMark(0); - SdrObject* pObj = pMark->GetMarkedSdrObj(); - - sal_uInt16 nSdrObjKind = pObj->GetObjIdentifier(); - - if (nSdrObjKind == OBJ_TEXT || - nSdrObjKind == OBJ_TITLETEXT || - nSdrObjKind == OBJ_OUTLINETEXT /* || - pObj->ISA(SdrTextObj) */ ) - { - pTextObj = static_cast(pObj); - } - } - } - - if (!pTextObj) - { - /********************************************************************** - * Kein Textobjekt im EditMode, daher CreateMode setzen - **********************************************************************/ - sal_uInt16 nObj = OBJ_TEXT; - sal_uInt16 nIdent; - sal_uInt32 nInvent; - pView->TakeCurrentObj(nIdent, nInvent); - - pView->SetCurrentObj(nObj); - - pView->SetCreateMode(); - } -} - /************************************************************************* |* |* Objekt in Edit-Mode setzen -- cgit