diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-04-29 13:13:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-05-01 15:55:55 +0200 |
commit | f82356d9a1ce1457593a5f42728e2962561328cf (patch) | |
tree | ddac3224cc714d92cf80b5b285277c6a0a0e5e08 /sc/source/ui/view/tabvwshc.cxx | |
parent | d822953cbc1d8814ac9f9eac2107177d37103542 (diff) |
weld ScPivotLayoutDialog
Change-Id: I821ee682bf5b65774a609227811365b94ae2063e
Reviewed-on: https://gerrit.libreoffice.org/71547
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/view/tabvwshc.cxx')
-rw-r--r-- | sc/source/ui/view/tabvwshc.cxx | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/sc/source/ui/view/tabvwshc.cxx b/sc/source/ui/view/tabvwshc.cxx index 9c7691a1464a..a5a04d91b63b 100644 --- a/sc/source/ui/view/tabvwshc.cxx +++ b/sc/source/ui/view/tabvwshc.cxx @@ -140,25 +140,8 @@ VclPtr<SfxModelessDialog> ScTabViewShell::CreateRefDialog( if(pCW) pCW->SetHideNotDelete(true); - ScDocument* pDoc = GetViewData().GetDocument(); - switch( nSlotId ) { - case SID_OPENDLG_PIVOTTABLE: - { - // all settings must be in pDialogDPObject - - if( pDialogDPObject ) - { - // Check for an existing datapilot output. - ScViewData& rViewData = GetViewData(); - rViewData.SetRefTabNo( rViewData.GetTabNo() ); - ScDPObject* pObj = pDoc->GetDPAtCursor(rViewData.GetCurX(), rViewData.GetCurY(), rViewData.GetTabNo()); - pResult = VclPtr<ScPivotLayoutDialog>::Create(pB, pCW, pParent, &rViewData, pDialogDPObject.get(), pObj == nullptr); - } - } - break; - case SID_OPENDLG_FUNCTION: { // dialog checks, what is in the cell @@ -477,6 +460,21 @@ std::unique_ptr<SfxModelessDialogController> ScTabViewShell::CreateRefDialogCont xResult.reset(new ScXMLSourceDlg(pB, pCW, pParent, pDoc)); break; } + case SID_OPENDLG_PIVOTTABLE: + { + // all settings must be in pDialogDPObject + + if( pDialogDPObject ) + { + // Check for an existing datapilot output. + ScViewData& rViewData = GetViewData(); + rViewData.SetRefTabNo( rViewData.GetTabNo() ); + ScDPObject* pObj = pDoc->GetDPAtCursor(rViewData.GetCurX(), rViewData.GetCurY(), rViewData.GetTabNo()); + xResult.reset(new ScPivotLayoutDialog(pB, pCW, pParent, &rViewData, pDialogDPObject.get(), pObj == nullptr)); + } + + break; + } } if (xResult) |