diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-30 15:37:25 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-31 06:28:41 +0000 |
commit | 3d7325898547c94826cfddc6852d400e84e2dda1 (patch) | |
tree | 894e0f527f0dc42f478b10d34cf95c94e6d74e83 /sc | |
parent | fafb2cf4de2eb2de46afab0738b7fd95663c0164 (diff) |
loplugin:unusedmethods
Change-Id: Ifeb818227a960cab8fd2e8e7352468efbfe1232c
Reviewed-on: https://gerrit.libreoffice.org/25668
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 16 |
1 files changed, 2 insertions, 14 deletions
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 <svx/dataaccessdescriptor.hxx> #include <svx/drawitem.hxx> #include <svx/fmshell.hxx> -#include <svtools/xwindowitem.hxx> #include <sfx2/passwd.hxx> #include <sfx2/filedlghelper.hxx> #include <sfx2/dispatch.hxx> @@ -562,13 +561,6 @@ void ScDocShell::Execute( SfxRequest& rReq ) const SfxBoolItem* pItem = rReq.GetArg<SfxBoolItem>(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<const XWindowItem*>( 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<WarningBox> aBox( pParent ? pParent : GetActiveDialogParent(), + ScopedVclPtrInstance<WarningBox> 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<const XWindowItem*>( pParentItem )->GetWindowPtr(); - if ( ExecuteChangeProtectionDialog( pParent ) ) + if ( ExecuteChangeProtectionDialog( nullptr ) ) { rReq.Done(); SetDocumentModified(); |