Extending WOPI implementaion to introduce 'Save As' feature

Change-Id: Ic4c80f4c4b54944143682c25a5878c1336787b27
Reviewed-on: https://gerrit.libreoffice.org/40946
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
This commit is contained in:
Aditya Dewan
2017-08-10 04:32:03 +05:30
committed by pranavk
parent 10bfd18e97
commit c3711a4375
12 changed files with 177 additions and 9 deletions

View File

@ -214,6 +214,13 @@ bool ClientSession::_handleInput(const char *buffer, int length)
{
return sendCombinedTiles(buffer, length, tokens, docBroker);
}
else if (tokens[0] == "saveas")
{
std::string newFileName, path;
getTokenString(tokens[1], "fileName", newFileName);
getTokenString(tokens[2], "path", path);
docBroker->saveFileAs(getId(), newFileName, path);
}
else if (tokens[0] == "save")
{
int dontTerminateEdit = 1;