https://bz.apache.org/ooo/show_bug.cgi?id=126376

          Issue ID: 126376
        Issue Type: DEFECT
           Summary: SystemFilePicker getFiles() returns an incorrect list
                    of files
           Product: App Dev
           Version: 4.1.1
          Hardware: PC
                OS: Windows 7
            Status: CONFIRMED
          Severity: normal
          Priority: P5
         Component: api
          Assignee: [email protected]
          Reporter: [email protected]

Described default already exists on AOO 3.4.1.

The problem appears with multi-selection of files, using one of the templates
FILEOPEN_xxx.

Tools > Options > OpenOffice > General : uncheck Use OpenOffice dialogs
Run Macro2 in attached document, select several files.
The MsgBox shows that getFiles() returns an array of n strings, each string is
the complete path to a file.

This is incorrect. The IDL description says :
Multiselection is enabled: 
If only one file is selected, the first entry of the sequence contains the
complete path/filename in URL format. 
If multiple files are selected, the first entry of the sequence contains the
path in URL format, and the other entries contains the names of the selected
files without path information.

Tools > Options > OpenOffice > General : check Use OpenOffice dialogs
Run Macro2, select several files.
MsgBox shows that the OpenOffice dialog returns an array in conformance with
the API.

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to