summaryrefslogtreecommitdiff
path: root/writerperfect/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-06-21 12:30:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-06-21 15:29:59 +0200
commita8f97e5fca148804056295db2e3910aaa5c68ce8 (patch)
tree594c079c6552ccf49e833158f07be2892e2d8622 /writerperfect/source
parentefacb4bc357761f5d849a4905eff981aa14eb366 (diff)
bundle the FolderPicker instantiations behind a single call
in prep to add parent support Change-Id: I2aa4b9343f895ae866f600dd3260b7fdc4e1efec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117579 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'writerperfect/source')
-rw-r--r--writerperfect/source/writer/EPUBExportDialog.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/writerperfect/source/writer/EPUBExportDialog.cxx b/writerperfect/source/writer/EPUBExportDialog.cxx
index c26516d6310c..ed86df8f3683 100644
--- a/writerperfect/source/writer/EPUBExportDialog.cxx
+++ b/writerperfect/source/writer/EPUBExportDialog.cxx
@@ -11,10 +11,11 @@
#include <libepubgen/libepubgen.h>
+#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp>
#include <com/sun/star/ui/dialogs/FolderPicker.hpp>
-#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <comphelper/sequenceashashmap.hxx>
+#include <sfx2/filedlghelper.hxx>
#include <sfx2/opengrf.hxx>
#include <sax/tools/converter.hxx>
#include <i18nlangtag/languagetag.hxx>
@@ -186,7 +187,7 @@ IMPL_LINK_NOARG(EPUBExportDialog, CoverClickHdl, weld::Button&, void)
IMPL_LINK_NOARG(EPUBExportDialog, MediaClickHdl, weld::Button&, void)
{
uno::Reference<ui::dialogs::XFolderPicker2> xFolderPicker
- = ui::dialogs::FolderPicker::create(m_xContext);
+ = sfx2::createFolderPicker(m_xContext, m_xDialog.get());
if (xFolderPicker->execute() != ui::dialogs::ExecutableDialogResults::OK)
return;