[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-4-0' - wsd/reference.md

Jan Holesovsky (via logerrit) logerrit at kemper.freedesktop.org
Fri Nov 15 10:07:49 UTC 2019


 wsd/reference.md |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

New commits:
commit a79a2f83a9da768aa1287060a51e1fda12754073
Author:     Jan Holesovsky <kendy at collabora.com>
AuthorDate: Fri Nov 8 12:06:41 2019 +0100
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Fri Nov 15 11:07:32 2019 +0100

    Deprecate TemplateSaveAs and document TemplateSource.
    
    Change-Id: Ic9c7bed3ebcf2356470323804bca957acafcbf23
    Reviewed-on: https://gerrit.libreoffice.org/82284
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>
    (cherry picked from commit 9d535ca76d652734c138fea3eae40190211e5f71)
    Reviewed-on: https://gerrit.libreoffice.org/82711
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>

diff --git a/wsd/reference.md b/wsd/reference.md
index 78165b836..f7d1db720 100644
--- a/wsd/reference.md
+++ b/wsd/reference.md
@@ -59,10 +59,12 @@ A string for the domain the host page sends/receives PostMessages from, we only
 ### Size
 Size of the file in bytes (64bit)
 
-### TemplateSaveAs
-In case this file should be treated as a template, the file name (potentially including a suitable path - that the WOPI host has to interpret) will be used as the real name under which the resulting file will be stored.
+### TemplateSource
+The ID of file (like the wopi/files/ID) can be a non-existing file.  In that case, the file will be created from a template when the template (eg. an OTT file) is specifiend as "TemplateSource" in the CheckFileInfo response.
 
-Storing the file resulting from a template uses the normal PutRelativeFile workflow, which means a new CheckFileInfo will have to be sent upon load of the resulting file.
+The TemplateSource is supposed to be an URL like https://somewhere/accessible/file.ott that is accessible by the Online.
+
+For the actual saving of the content, normal PutFile mechanism will be used.
 
 ### UserCanWrite
 A boolean flag, indicating whether the user has permission to edit and/or over-write the file. If not set PutFile will fail.


More information about the Libreoffice-commits mailing list