diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-06 12:25:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-07 21:18:42 +0100 |
commit | 82925b574209d3971c05b9bd98a317683dd583a5 (patch) | |
tree | 7fedf333686a3c25942debf82328978e97d7a437 /sd/source/ui/dlg/sdpreslt.cxx | |
parent | 64117f700ba3bd8c4b42488f582fa5e5c53487e6 (diff) |
weld SfxNewFileDialog
Change-Id: I28b1aff90407bce7d04f10eed6a227c0970f9c0a
Reviewed-on: https://gerrit.libreoffice.org/50878
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source/ui/dlg/sdpreslt.cxx')
-rw-r--r-- | sd/source/ui/dlg/sdpreslt.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sd/source/ui/dlg/sdpreslt.cxx b/sd/source/ui/dlg/sdpreslt.cxx index 28c06f6e4982..7853e84c501e 100644 --- a/sd/source/ui/dlg/sdpreslt.cxx +++ b/sd/source/ui/dlg/sdpreslt.cxx @@ -179,13 +179,13 @@ IMPL_LINK_NOARG(SdPresLayoutDlg, ClickLayoutHdl, ValueSet*, void) */ IMPL_LINK_NOARG(SdPresLayoutDlg, ClickLoadHdl, Button*, void) { - VclPtrInstance< SfxNewFileDialog > pDlg(this, SfxNewFileDialogMode::Preview); - pDlg->SetText(SdResId(STR_LOAD_PRESENTATION_LAYOUT)); + SfxNewFileDialog aDlg(GetFrameWeld(), SfxNewFileDialogMode::Preview); + aDlg.set_title(SdResId(STR_LOAD_PRESENTATION_LAYOUT)); if(!IsReallyVisible()) return; - sal_uInt16 nResult = pDlg->Execute(); + sal_uInt16 nResult = aDlg.run(); // Inserted update to force repaint Update(); @@ -195,9 +195,9 @@ IMPL_LINK_NOARG(SdPresLayoutDlg, ClickLoadHdl, Button*, void) { case RET_OK: { - if (pDlg->IsTemplate()) + if (aDlg.IsTemplate()) { - maName = pDlg->GetTemplateFileName(); + maName = aDlg.GetTemplateFileName(); } else { @@ -210,7 +210,6 @@ IMPL_LINK_NOARG(SdPresLayoutDlg, ClickLoadHdl, Button*, void) default: bCancel = true; } - pDlg.reset(); if( !bCancel ) { |