diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-06-21 12:30:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-06-21 15:29:59 +0200 |
commit | a8f97e5fca148804056295db2e3910aaa5c68ce8 (patch) | |
tree | 594c079c6552ccf49e833158f07be2892e2d8622 /include/sfx2 | |
parent | efacb4bc357761f5d849a4905eff981aa14eb366 (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 'include/sfx2')
-rw-r--r-- | include/sfx2/filedlghelper.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sfx2/filedlghelper.hxx b/include/sfx2/filedlghelper.hxx index 4700d9c8173d..356beb49c4ff 100644 --- a/include/sfx2/filedlghelper.hxx +++ b/include/sfx2/filedlghelper.hxx @@ -23,6 +23,7 @@ #include <sfx2/dllapi.h> #include <sal/types.h> #include <com/sun/star/uno/Sequence.hxx> + #include <rtl/ref.hxx> #include <rtl/ustring.hxx> #include <comphelper/documentconstants.hxx> @@ -36,11 +37,13 @@ namespace com::sun::star::ui::dialogs { class XFilePicker3; + class XFolderPicker2; struct FilePickerEvent; struct DialogClosedEvent; } namespace com::sun::star::awt { class XWindow; } namespace com::sun::star::uno { template <typename > class Reference; } +namespace com::sun::star::uno { class XComponentContext; } namespace weld { class Window; } class Graphic; @@ -242,6 +245,7 @@ ErrCode FileOpenDialog_Impl( weld::Window* pParent, const OUString& rStandardDir, const css::uno::Sequence< OUString >& rDenyList = css::uno::Sequence< OUString >()); +css::uno::Reference<css::ui::dialogs::XFolderPicker2> SFX2_DLLPUBLIC createFolderPicker(const css::uno::Reference<css::uno::XComponentContext>& rContext, weld::Window* pPreferredParent); ErrCode RequestPassword(const std::shared_ptr<const SfxFilter>& pCurrentFilter, OUString const & aURL, SfxItemSet* pSet, const css::uno::Reference<css::awt::XWindow>& rParent); } |