You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2016/08/30 04:54:46 UTC

[Issue 123544] XFilePicker's setDisplayDirectory and setDefaultName do not work in Windows

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

Redfred Garett <ar...@mail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arisadam25@mail.com

--- Comment #29 from Redfred Garett <ar...@mail.com> ---
Uses Open or Save dialogs with different templates

After several tests with macros, here are my conclusions explaining the
variability of observations regarding the default directory displayed by the
system FilePicker (service SystemFilePicker).
The attached document contains macros that prove my point.

The FilePicker can use different templates, through initialization. For file
opening you can use:
FILEOPEN_SIMPLE
FILEOPEN_READONLY_VERSION
FILEOPEN_LINK_PREVIEW
FILEOPEN_PLAY
FILEOPEN_LINK_PREVIEW_IMAGE_TEMPLATE

Each of these templates "remembers" the last directory where a file was
selected.
Also, each file saving template "remembers" the last directory where a file is
to be stored.

The storage of these directory addresses is handled by Windows, not by Apache
OpenOffice.
With the macro, set a specific directory for a given template, then close
Apache OpenOffice. If you have LibreOffice on the same computer it will be used
as default directory when running the macro with the same template!

This problem of display directory did not appear on previous versions of
Windows and of OpenOffice, see Bug 110141.
I still use OpenOffice.org 1.1.5 that works perfectly well on Windows 7, but
displays an old-fashioned dialog box.
Since Windows Vista, the recommended open/save dialog has changed from Common
File dialog to Common Item Dialog. See Microsoft doc
https://msdn.microsoft.com/en-us/library/windows/desktop/bb776913%28v=vs.85%29.aspx
I suspect OpenOffice tried to follow Microsoft recommendation.
--
http://www.reviewopedia.com/redgage-com-reviews

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