Issue 38687 - com.sun.star.ui.dialogs.FilePicker does not work in macro with openoffice.org-kde
Summary: com.sun.star.ui.dialogs.FilePicker does not work in macro with openoffice.org...
Status: CLOSED OBSOLETE
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All Linux, all
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2004-12-08 21:43 UTC by aaronforjesus
Modified: 2019-10-08 18:44 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description aaronforjesus 2004-12-08 21:43:40 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.
Comment 1 chne 2004-12-09 09:44:29 UTC
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.
Comment 2 aaronforjesus 2004-12-09 18:12:33 UTC
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?
Comment 3 kendy 2004-12-14 18:05:59 UTC
Reopening to reassign. 
Comment 4 kendy 2004-12-14 18:09:24 UTC
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. 
Comment 5 christianjunker 2005-07-08 20:20:54 UTC
cyb->kendy: What is the current state?
Comment 6 Rainer Bielefeld 2006-08-08 13:53:39 UTC
@aaronforjesus 
Do you still see this problem with current OOo, LINUX and KDE version?
What LINUX version do you use now?
Comment 7 aaronforjesus 2006-08-09 18:38:26 UTC
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.
Comment 8 Rainer Bielefeld 2006-09-03 11:56:59 UTC
no objection ...
Comment 9 kendy 2006-09-14 15:51:21 UTC
I still did not test this, reopening...
Comment 10 Rainer Bielefeld 2008-05-26 19:11:27 UTC
No action for neyrby 2 years.

@kendy:
You reopened this issue, what are your plans?
Comment 11 oooforum (fr) 2019-10-08 11:06:28 UTC
Anybody to test with last AOO build and recent KDE environment?

Feel free to reopen if necessary.