diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-01 11:06:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-01 22:11:39 +0200 |
commit | 4cf89526e6eb76097ccfa0f710507b87da2a0aa0 (patch) | |
tree | 25a02c2ea331ef5c508a759aa4a383e1c5f9771d /basctl | |
parent | 52ec6ab3e31c16329f5c177ac47943dd93ab3a04 (diff) |
move to FileDialogHelper
Change-Id: I90579f0994f573743327999da2382351a5eb0d3e
Reviewed-on: https://gerrit.libreoffice.org/41793
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 'basctl')
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index 55391863174d..2f25c8c0b7d9 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -30,6 +30,7 @@ #include <rtl/uri.hxx> #include <sfx2/dinfdlg.hxx> #include <sfx2/dispatch.hxx> +#include <sfx2/filedlghelper.hxx> #include <sfx2/request.hxx> #include <tools/urlobj.hxx> #include <tools/diagnose_ex.h> @@ -1174,12 +1175,13 @@ Reference< XProgressHandler > OLibCommandEnvironment::getProgressHandler() void LibPage::ExportAsPackage( const OUString& aLibName ) { // file open dialog + sfx2::FileDialogHelper aDlg(ui::dialogs::TemplateDescription::FILESAVE_SIMPLE); + Reference <XFilePicker3> xFP = aDlg.GetFilePicker(); + Reference< uno::XComponentContext > xContext( ::comphelper::getProcessComponentContext() ); Reference< task::XInteractionHandler2 > xHandler( task::InteractionHandler::createWithParent(xContext, nullptr) ); Reference< XSimpleFileAccess3 > xSFA = SimpleFileAccess::create(xContext); - Reference < XFilePicker3 > xFP = FilePicker::createWithMode(xContext, TemplateDescription::FILESAVE_SIMPLE); - xFP->setTitle(IDEResId(RID_STR_EXPORTPACKAGE)); // filter |