From 8ed2fb306ffa8c7fef336b858fc5074c309c3c9f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 4 Apr 2018 14:33:16 +0100 Subject: weld linkeditdialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit which enables changing FileDialogHelper over to welded Change-Id: I988342a6574cb7ed09b2724929e8c7117474a56c Reviewed-on: https://gerrit.libreoffice.org/52388 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/ui/fldui/changedb.cxx | 2 +- sw/source/ui/fldui/flddb.cxx | 2 +- sw/source/ui/fldui/javaedit.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sw/source/ui/fldui') diff --git a/sw/source/ui/fldui/changedb.cxx b/sw/source/ui/fldui/changedb.cxx index fb86ec11d24e..d6eefe4b4cd6 100644 --- a/sw/source/ui/fldui/changedb.cxx +++ b/sw/source/ui/fldui/changedb.cxx @@ -256,7 +256,7 @@ void SwChangeDBDlg::ShowDBName(const SwDBData& rDBData) IMPL_LINK_NOARG(SwChangeDBDlg, AddDBHdl, Button*, void) { - const OUString sNewDB = SwDBManager::LoadAndRegisterDataSource(this); + const OUString sNewDB = SwDBManager::LoadAndRegisterDataSource(GetFrameWeld()); if (!sNewDB.isEmpty()) m_pAvailDBTLB->AddDataSource(sNewDB); } diff --git a/sw/source/ui/fldui/flddb.cxx b/sw/source/ui/fldui/flddb.cxx index fe699d92475a..681e6b800086 100644 --- a/sw/source/ui/fldui/flddb.cxx +++ b/sw/source/ui/fldui/flddb.cxx @@ -477,7 +477,7 @@ IMPL_LINK( SwFieldDBPage, TreeSelectHdl, SvTreeListBox *, pBox, void ) IMPL_LINK_NOARG(SwFieldDBPage, AddDBHdl, Button*, void) { - OUString sNewDB = SwDBManager::LoadAndRegisterDataSource(this); + OUString sNewDB = SwDBManager::LoadAndRegisterDataSource(GetFrameWeld()); if(!sNewDB.isEmpty()) { m_pDatabaseTLB->AddDataSource(sNewDB); diff --git a/sw/source/ui/fldui/javaedit.cxx b/sw/source/ui/fldui/javaedit.cxx index fc5df961b9be..847e1217ee92 100644 --- a/sw/source/ui/fldui/javaedit.cxx +++ b/sw/source/ui/fldui/javaedit.cxx @@ -254,7 +254,7 @@ IMPL_LINK_NOARG( SwJavaEditDialog, InsertFileHdl, Button *, void ) { pFileDlg = new ::sfx2::FileDialogHelper( ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, - FileDialogFlags::Insert, "swriter", SfxFilterFlags::NONE, SfxFilterFlags::NONE, this); + FileDialogFlags::Insert, "swriter", SfxFilterFlags::NONE, SfxFilterFlags::NONE, GetFrameWeld()); } pFileDlg->StartExecuteModal( LINK( this, SwJavaEditDialog, DlgClosedHdl ) ); -- cgit