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

Jan-Marek Glogowski <glo...@fbihome.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Depends on|                            |92517
         Resolution|---                         |NOTABUG

--- Comment #22 from Jan-Marek Glogowski <glo...@fbihome.de> ---
This is handled in VCL by the FILESAVE_AUTOEXTENSION control.

I've done my tests on LO 5.0. You can test it on Linux by starting with env set
to SAL_USE_VCLPLUGIN=gen/gtk/kde4, if the backend is installed / compiled.

Test case is to open a file and the select "save as":

- gen: has a "Automatic file name extension" checkbox (LO native)
- gtk: has *no* checkbox
- kde4: has a checkbox

AFAIK gtk handles FILESAVE_AUTOEXTENSION - I didn't check, what is wrong here.
There definitely is code:

vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx:1673:        case
FILESAVE_AUTOEXTENSION:

Now KDE4 is special in an other way, as it has a native handling of extensions
in the save dialog, which also was broken for some time. There is no way to
disable it!

>From the KDE4 backend source:

    if (CHECKBOX_AUTOEXTENSION == controlId)
        // We ignore this one and rely on KFileDialog to provide the function.
        // Always return false, to pretend we do not support this, otherwise
        // LO core would try to be smart and cut the extension in some places,
        // interfering with KFileDialog's handling of it. KFileDialog also
        // saves the value of the setting, so LO core is not needed for that
either.
        return uno::Any( false );

So for KDE4 the LO feature becomes native, the config is handled in KDE4 and
this is the reason why the checkbox looks misplaced in the dialog in the lower
left corner.

BTW bug 92517 is somewhat related and is fixed in 5.0 too.

And FWIW: the extension handling feature in the KDE4 file save dialog wasn't
present in earlier KDE4 releases - not sure when it was added.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to