Apache OpenOffice (AOO) Bugzilla – Issue 121857
Presentation Minimizer: optimized presentation is saved with wrong extension
Last modified: 2022-10-28 12:54:25 UTC
Run the presentation minimizer on a presentation. Select to apply the changes on a new presentation. You'll be prompted for a location and file name to save the new presentation: - select a folder where you already have ODP files - choose ODP as filter - first bug: the file picker does not show other ODP files in the same folder - press OK to save the new presentation - the new presentation is created with a wrong extension: * if you selected ODP, the file is named <file_name>.p * if you selected PPT, the file is named <file_name>.t The first two letters of the file extension are missing.
The bug is due to the way filters are added to the file picker: css::ui::dialogs::XFilterManager::appendFilter( UI Name, filter) The presentation minimizer adds only the extension (odp, ppt, etc.) in the filter, but the filter must be in the form "*.<etension>". Thus, if filter is only "odp", the file picker implementation removes two chars, corresponding to "*.", it removes "od" and leaves "p". This bug has to be fixed in the file picker implementation (do not assume that the two first chars of the filter are "*.") and in the Presentation Minimizer (append the filter in the form "*.<extension>".
Another bug while setting the filter: the filter type in the file picker displays only the UI Name, while in the office the implementation shows "UIName (.<extension)". For example: - OpenOffice file picker: "ODF Presentation (.odp)" - Presentation Minimizer: "ODF Presentation" The presentation minimizer should use the same schema when forming the filter title.
"arielch" committed SVN revision 1453321 into trunk: i121857 - Presentation Minimizer: fix filter naming
Fixed on trunk
Hello. I was checking this bug but I can't see it. I followed the steps, the files saved with the extension ODP or PPT are conserving the same format. Revised in W7 64 BITS AOO 3.4.1
(In reply to comment #5) > Hello. > I was checking this bug but I can't see it. I followed the steps, the files > saved with the extension ODP or PPT are conserving the same format. > Revised in W7 64 BITS AOO 3.4.1 Check "Tools" - "Options..." - "OpenOffice.org" - "General" - "Open/Save dialogs" - "User OpenOffice.org dialogs"