Problem description: When a file picker is created using the following code, the directory and filename are not set when the file picker is shown. This happens only in Windows; in Ubuntu 12.10 (using LibreOffice 3.6 from APT) it works as expected. Steps to reproduce: 1. Create a new extension which shows a file picker using the code mentioned above. 2. Install the extension in LibreOffice in Windows. 2. Run LibreOffice in Windows. 3. Open an LibreOffice-compatible document. 4. Run the extension. Current behavior: The file picker doesn't start where the opened document is saved nor the filename of the document is set as default filename. Expected behavior: The default directory and filename of the file picker is the same as the opened document. Operating System: Windows 7 Version: Inherited From OOo
The code in Java is as follows. Here, "originalUrl" is the URL taken from the currently open document; "Environment" is just a helper class to retrieve some information about the opened document. Object oFilePicker = component_factory.createInstanceWithContext("com.sun.star.ui.dialogs.FilePicker", Environment.getContext()); XFilePicker xFilePicker = (XFilePicker) UnoRuntime.queryInterface(XFilePicker.class, oFilePicker); xFilePicker.setMultiSelectionMode(false); if (originalUrl == null) { xFilePicker.setDisplayDirectory(Environment.getHomeDir()); xFilePicker.setDefaultName(""); } else { int idx = originalUrl.lastIndexOf('/'); if (idx >= 0) { xFilePicker.setDisplayDirectory(originalUrl.substring(0, idx)); xFilePicker.setDefaultName(originalUrl.substring(idx+1)); } }
According to https://issues.apache.org/ooo/show_bug.cgi?id=123544, it's a problem with system dialogs. A solution can be found in the link provided above.
(In reply to comment #2) > According to https://issues.apache.org/ooo/show_bug.cgi?id=123544, it's a > problem with system dialogs. A solution can be found in the link provided > above. Comments in the AOO bug confirm this issue. Status set to NEW. There is also a possible solution posted: https://issues.apache.org/ooo/show_bug.cgi?id=123544#c18 If this can be confirmed to work we may be able to RESOLVE this bug.
I just happen to work with 4.4.5.1 on Ubuntu 32 bits. LibreOffice internal dialog does not display the name that is set. The system dialog does. The dialog is initialized, as suggested here https://bz.apache.org/ooo/show_bug.cgi?id=123544#c18 I've seen it working in other versions.. Hmm
Likely same as bug #43021.
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.1.6 or 5.2.3 https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug-20170103
*** Bug 95722 has been marked as a duplicate of this bug. ***
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Let's assume this is bug 43021 *** This bug has been marked as a duplicate of bug 43021 ***