[Libreoffice-commits] online.git: wsd/LOOLWSD.cpp
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Dec 17 12:05:32 UTC 2018
wsd/LOOLWSD.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 6c08d7e3c818c4a876052c454c91633c17da0cad
Author: Jan Holesovsky <kendy at collabora.com>
AuthorDate: Mon Dec 17 12:46:34 2018 +0100
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Mon Dec 17 13:05:14 2018 +0100
capabilities: Add 'version' and 'hasTemplateSaveAs'.
hasTemplateSaveAs is not supported yet.
Change-Id: Ic4af44a38ce6a36fd0bbd63f5d94a860280283cd
Reviewed-on: https://gerrit.libreoffice.org/65260
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp
index 87cbd070c..7907fbf3d 100644
--- a/wsd/LOOLWSD.cpp
+++ b/wsd/LOOLWSD.cpp
@@ -2777,10 +2777,15 @@ private:
Poco::Dynamic::Var available = allowConvertTo(socket->clientAddress(), request);
convert_to->set("available", available);
- // Compose the content of http://server/hosting/capabilities
Poco::JSON::Object::Ptr capabilities = new Poco::JSON::Object;
capabilities->set("convert-to", convert_to);
+ // Supports the TemplateSaveAs in CheckFileInfo?
+ capabilities->set("hasTemplateSaveAs", false);
+
+ // Version
+ capabilities->set("version", LOOLWSD_VERSION);
+
std::ostringstream ostrJSON;
capabilities->stringify(ostrJSON);
return ostrJSON.str();
More information about the Libreoffice-commits
mailing list