diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2022-01-20 21:13:26 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-01-22 01:39:12 +0100 |
commit | 571438a34ad9aba0d496a89e8345851331740fbd (patch) | |
tree | 77ddb723006502569012e63fe93e6bf9fd926e2f /oovbaapi | |
parent | e27a41a362bf25e12487b36f625985b35fb891e3 (diff) |
tdf#118246 add support for Application.GetOpenFilename func.
Opens the file dialog and returns the selected filename.
Change-Id: I4eccd34a7fbb892c0950b2f7c34977cf2aad6f89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128721
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'oovbaapi')
-rw-r--r-- | oovbaapi/ooo/vba/excel/XApplication.idl | 10 | ||||
-rw-r--r-- | oovbaapi/ooo/vba/excel/XFileDialog.idl | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/oovbaapi/ooo/vba/excel/XApplication.idl b/oovbaapi/ooo/vba/excel/XApplication.idl index 89a19197116f..b1bcf46336be 100644 --- a/oovbaapi/ooo/vba/excel/XApplication.idl +++ b/oovbaapi/ooo/vba/excel/XApplication.idl @@ -65,6 +65,16 @@ interface XApplication string getDefaultFilePath() raises(com::sun::star::script::BasicErrorException); + // Opens the file dialog and returns the selected file + // Parameters: + // Title: title of the file dialog + // MultiSelect: true if multi selection is allowed (false by default) + // returns: + // false - if file dialog was canceled + // filename - if "MultiSelect" is false + // array of filename - if "MultiSelect" is true + any GetOpenFilename([in] any FileFilter, [in] any FilterIndex, [in] any Title, [in] any ButtonText, [in] any MultiSelect); + any International( [in] long Index ); any Workbooks( [in] any Index ); any Worksheets( [in] any Index ); diff --git a/oovbaapi/ooo/vba/excel/XFileDialog.idl b/oovbaapi/ooo/vba/excel/XFileDialog.idl index e73813e53807..bf9ff2391ee8 100644 --- a/oovbaapi/ooo/vba/excel/XFileDialog.idl +++ b/oovbaapi/ooo/vba/excel/XFileDialog.idl @@ -34,6 +34,8 @@ interface XFileDialog [attribute] any InitialFileName; [attribute] any Title; + [attribute] any AllowMultiSelect; + [attribute, readonly] XFileDialogSelectedItems SelectedItems; long Show(); |