summaryrefslogtreecommitdiff
path: root/oovbaapi
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2022-01-20 21:13:26 +0900
committerAndras Timar <andras.timar@collabora.com>2022-02-14 12:09:32 +0100
commitb900907fde6d4507cff7844c5bcd6cc2f7b3821f (patch)
tree2868712f083d1aaed721218ca38250a355c1d181 /oovbaapi
parent3b351cdad5f13a43f826ebeece4377f4f225d02d (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.idl10
-rw-r--r--oovbaapi/ooo/vba/excel/XFileDialog.idl2
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();