https://bugs.documentfoundation.org/show_bug.cgi?id=153330

            Bug ID: 153330
           Summary: The XFilePickerControlAccess.setLabel method does not
                    change the name of the "Open" button (when LO
                    Open/Save dialogs are not used).
           Product: LibreOffice
           Version: 7.4.2.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: UI
          Assignee: [email protected]
          Reporter: [email protected]

1. Menu / Option / LibreOffice / General, uncheck "Use LibreOffice dialogs".
2. Run the next macro:

Sub TestGetFileOpen()
  Dim oFilePicker
  oFilePicker = createUnoService("com.sun.star.ui.dialogs.FilePicker")
 
oFilePicker.initialize(Array(com.sun.star.ui.dialogs.TemplateDescription.FILEOPEN_SIMPLE))
  With oFilePicker
    .setLabel com.sun.star.ui.dialogs.CommonFilePickerElementIds.PUSHBUTTON_OK,
"Select"
    If .execute() = 1 Then
       Msgbox "Selected file: " &
ConvertFromUrl(oFilePicker.getSelectedFiles()(0))
    End If
  End With   
End Sub

Result: the name of the "Open" button has not changed, but should have changed.

Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 6; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL

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

Reply via email to