From 3d7325898547c94826cfddc6852d400e84e2dda1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 30 May 2016 15:37:25 +0200 Subject: loplugin:unusedmethods Change-Id: Ifeb818227a960cab8fd2e8e7352468efbfe1232c Reviewed-on: https://gerrit.libreoffice.org/25668 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/docshell/docsh4.cxx | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'sc/source/ui') diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index bdf1c5260151..6f6d690c2352 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -42,7 +42,6 @@ using namespace ::com::sun::star; #include #include #include -#include #include #include #include @@ -562,13 +561,6 @@ void ScDocShell::Execute( SfxRequest& rReq ) const SfxBoolItem* pItem = rReq.GetArg(FID_CHG_RECORD); bool bDo = true; - // xmlsec05/06: - // getting real parent window when called from Security-Options TP - vcl::Window* pParent = nullptr; - const SfxPoolItem* pParentItem; - if( pReqArgs && SfxItemState::SET == pReqArgs->GetItemState( SID_ATTR_XWINDOW, false, &pParentItem ) ) - pParent = static_cast( pParentItem )->GetWindowPtr(); - // desired state ScChangeTrack* pChangeTrack = rDoc.GetChangeTrack(); bool bActivateTracking = (pChangeTrack == nullptr); // toggle @@ -580,7 +572,7 @@ void ScDocShell::Execute( SfxRequest& rReq ) if ( !pItem ) { // no dialog on playing the macro - ScopedVclPtrInstance aBox( pParent ? pParent : GetActiveDialogParent(), + ScopedVclPtrInstance aBox( GetActiveDialogParent(), WinBits(WB_YES_NO | WB_DEF_NO), ScGlobal::GetRscString( STR_END_REDLINING ) ); bDo = ( aBox->Execute() == RET_YES ); @@ -626,11 +618,7 @@ void ScDocShell::Execute( SfxRequest& rReq ) case SID_CHG_PROTECT : { - vcl::Window* pParent = nullptr; - const SfxPoolItem* pParentItem; - if( pReqArgs && SfxItemState::SET == pReqArgs->GetItemState( SID_ATTR_XWINDOW, false, &pParentItem ) ) - pParent = static_cast( pParentItem )->GetWindowPtr(); - if ( ExecuteChangeProtectionDialog( pParent ) ) + if ( ExecuteChangeProtectionDialog( nullptr ) ) { rReq.Done(); SetDocumentModified(); -- cgit