Apache OpenOffice (AOO) Bugzilla – Issue 38687
com.sun.star.ui.dialogs.FilePicker does not work in macro with openoffice.org-kde
Last modified: 2019-10-08 18:44:36 UTC
The com.sun.star.ui.dialogs.FilePicker no longer works in Basic macros in versions of Openoffice.org that have openoffice.org-kde integration installed. The code example is as follows: '-------------------------------------------------------- oFilePicker = CreateUnoService( "com.sun.star.ui.dialogs.FilePicker" ) If oFilePicker.execute() Then sFiles = oFilePicker.getFiles() sFileURL = sFiles(0) sFileDir = mid( sFileURL,8) sURL = oFilePicker.getDisplayDirectory sPath = mid( sURL,8) MsgBox( sPath ) End If oFilePicker.Dispose() '----------------------------------------------- I tried replacing com.sun.star.ui.dialogs.FilePicker with com.sun.star.ui.dialogs.KDEFilePicker, but that did not work. The error I get is: "Type: com.sun.star.uno.RuntimeException Message: the external file picker does not run". The version of Openoffice.org that I am using is 1.1.3 on Debian unstable with openoffice.org-kde installed using apt-get.
cn->aaronforjesus I could not found any documentation about KDEFilePicker. Can you please provide some. AFAIK the KDE integration means only the file association with *.sxw, *.sxc... in konqueror and the OpenOffice menu in the KDE start menu. With the com.sun.star.ui.dialogs.FilePicker I have no problems. It opens a FilePicker in my Office version without any erros.
openoffice.org-kde was created by the KDE subproject kde.openoffice.org led by Jan Holesovsky <kendy@suse.cz>. It uses QT to draw widgets so that dropdown lists and buttons look like the ones in KDE. It also replaces the Openoffice.org FilePicker with one based on the KDE filepicker "KDEFilePicker". I found out the name of the filepicker by reading the code I found at http://ooo.ximian.com/patches/src680/fpicker-kde-service.diff and looking at the Debian package contents. I'm wondering, should the bug should be directed to ooo.ximian.com instead or to Jan directly?
Reopening to reassign.
The KDE fpicker code is not up-stream yet due to various reasons, that's why you did not find it in the documentation or in the sources. Reassigning to myself to have a look.
cyb->kendy: What is the current state?
@aaronforjesus Do you still see this problem with current OOo, LINUX and KDE version? What LINUX version do you use now?
It looks like openoffice.org-kde now uses the native Openoffice.org filepicker instead of the KDE one, so now the problem no longer shows up. Ich am changing the issue to FIXED.
no objection ...
I still did not test this, reopening...
No action for neyrby 2 years. @kendy: You reopened this issue, what are your plans?
Anybody to test with last AOO build and recent KDE environment? Feel free to reopen if necessary.