From 5bbff06137a87e97260a188f6745cf2a227f15cf Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Wed, 15 Jul 2015 13:24:07 +0200 Subject: [API CHANGE] XFilePicker2/3 changes for multiselection In order to use GetSelectedFiles (in XFilePicker2) instead of GetFiles (in XFilePicker), here are some api changes before: XFilePicker3 inherits from XFilePicker XFilePicker2 is not a published interface after: XFilePicker3 inherits from XFilePicker2 XFilePicker2 is a published interface + adapt Uno Implementations Change-Id: If44afaa7236f08bc2b814f91eda5bfad333dd799 Reviewed-on: https://gerrit.libreoffice.org/17068 Reviewed-by: Stephan Bergmann Tested-by: Stephan Bergmann --- offapi/com/sun/star/ui/dialogs/XFilePicker2.idl | 2 +- offapi/com/sun/star/ui/dialogs/XFilePicker3.idl | 4 ++-- offapi/type_reference/offapi.idl | 6 +++++- 3 files changed, 8 insertions(+), 4 deletions(-) (limited to 'offapi') diff --git a/offapi/com/sun/star/ui/dialogs/XFilePicker2.idl b/offapi/com/sun/star/ui/dialogs/XFilePicker2.idl index 91189a6f9f15..b04517f517f7 100644 --- a/offapi/com/sun/star/ui/dialogs/XFilePicker2.idl +++ b/offapi/com/sun/star/ui/dialogs/XFilePicker2.idl @@ -27,7 +27,7 @@ module com { module sun { module star { module ui { module dialogs { /** extends file picker interface to workaround some design problems. */ -interface XFilePicker2 : ::com::sun::star::ui::dialogs::XFilePicker +published interface XFilePicker2 : ::com::sun::star::ui::dialogs::XFilePicker { /** Returns a sequence of the selected files including path information in URL format, conforming to Rfc1738. diff --git a/offapi/com/sun/star/ui/dialogs/XFilePicker3.idl b/offapi/com/sun/star/ui/dialogs/XFilePicker3.idl index c33e8eb4cdbd..d2ee0e2d72f6 100644 --- a/offapi/com/sun/star/ui/dialogs/XFilePicker3.idl +++ b/offapi/com/sun/star/ui/dialogs/XFilePicker3.idl @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include #include @@ -40,7 +40,7 @@ module com { module sun { module star { module ui { module dialogs { */ published interface XFilePicker3 { - interface XFilePicker; + interface XFilePicker2; /** Provides the ability to request notifications about changes. */ diff --git a/offapi/type_reference/offapi.idl b/offapi/type_reference/offapi.idl index f95e6b7f1844..c4bd5c4b1322 100644 --- a/offapi/type_reference/offapi.idl +++ b/offapi/type_reference/offapi.idl @@ -16956,8 +16956,12 @@ module com { void setCurrentFilter([in] string aTitle) raises (::com::sun::star::lang::IllegalArgumentException); string getCurrentFilter(); }; - published interface XFilePicker3 { + published interface XFilePicker2 { interface ::com::sun::star::ui::dialogs::XFilePicker; + sequence< string > getSelectedFiles(); + }; + published interface XFilePicker3 { + interface ::com::sun::star::ui::dialogs::XFilePicker2; interface ::com::sun::star::ui::dialogs::XFilePickerNotifier; interface ::com::sun::star::ui::dialogs::XFilterManager; interface ::com::sun::star::ui::dialogs::XFilterGroupManager; -- cgit