Bug 128510 - Opening a template file should be possible using the iOS app
Summary: Opening a template file should be possible using the iOS app
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: iOS Editor (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other iOS
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-31 15:10 UTC by Nicolas Christener
Modified: 2020-06-23 15:23 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Attempted (not working) patch. (9.76 KB, patch)
2020-04-14 17:36 UTC, How can I remove my account?
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Christener 2019-10-31 15:10:11 UTC
Description:
Template files like *.ott, *.dotx, *.xltx, etc. can not be opened using the iOS app.

Discussing this topic with others revealed that it's not trivial to figure out what the right thing to do is.

MS Word on iOS does the following: it opens a file and shows a banner that says, that the file is read only and it offers a "save a copy" button. After saving the document Word will go into "edit" mode.

We have plenty of users with template files and can't put them all into the template manager the iOS app offers - we therefore look for a simple solution to male those templates usable. Any good idea how to handle them?

Steps to Reproduce:
1. Try to open a template file such as an *.ott or *.dotx using the iOS app

Actual Results:
It's not possible to open them.

Expected Results:
It should be possible to open them and create a writable copy of the initial file but the initial (template) file should not be changed.


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 How can I remove my account? 2020-04-14 17:36:33 UTC
Created attachment 159561 [details]
Attempted (not working) patch.

Notes to self: I spent half a day today looking at this. My attempt was to add template types to the Info.plist, and then handle the template types specially in -[UIDocumentBrowserViewController documentBrowser:didPickDocumentsAtURLs:], loading the template into core LO, saving as the corresponding document type, and then loading that for editing. But that did not work, sandboxing prevents opening a file outside the sandbox at that stage. Documents chosen by the user have to be opened through the UIDocument machinery, as happens for normal documents.