Kaydet (Commit) 6716100f authored tarafından Caolán McNamara's avatar Caolán McNamara

set parent for insert ole object file dialog

Change-Id: Iffa30802f65c950290d74a79c66d679b0ff9d5ea
Reviewed-on: https://gerrit.libreoffice.org/41814Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 9938799d
......@@ -48,6 +48,7 @@
#include <vcl/lstbox.hxx>
#include <vcl/svapp.hxx>
#include <comphelper/classids.hxx>
#include <sfx2/filedlghelper.hxx>
#include <sfx2/frmdescr.hxx>
#include <sfx2/viewsh.hxx>
#include <sfx2/filedlghelper.hxx>
......@@ -95,9 +96,8 @@ IMPL_LINK_NOARG(SvInsertOleDlg, DoubleClickHdl, ListBox&, void)
IMPL_LINK_NOARG(SvInsertOleDlg, BrowseHdl, Button*, void)
{
Reference< XComponentContext > xContext( ::comphelper::getProcessComponentContext() );
Reference< XFilePicker3 > xFilePicker = FilePicker::createWithMode(xContext, TemplateDescription::FILEOPEN_SIMPLE);
sfx2::FileDialogHelper aHelper(ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, FileDialogFlags::NONE, this);
Reference< XFilePicker3 > xFilePicker = aHelper.GetFilePicker();
// add filter
try
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment