Bug 104125 - Get the document type with Get_Export_Formats_Resp
Summary: Get the document type with Get_Export_Formats_Resp
Status: NEW
Alias: None
Product: LibreOffice Online
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-23 13:08 UTC by Aleksander Machniak
Modified: 2016-11-25 14:52 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksander Machniak 2016-11-23 13:08:17 UTC
I propose to extend Get_Export_Formats_Resp response with possibility to get the current document "native" type.

E.g. we implemented a Download button with submenu for export format selection. However, we also alow the user to hit the button without selecting the format. Which means we'd like to pre-select the format according to opened document.

So, now we have:
[
    {"Label":"PDF Document (.pdf)","Format":"pdf"},
    {"Label":"ODF presentation (.odp)","Format":"odp"},
    ...
]

I propose:

[
    {"Label":"PDF Document (.pdf)","Format":"pdf"},
    {"Label":"ODF presentation (.odp)","Format":"odp", Default: true},
    ...
]