mirror of
https://github.com/LibreOffice/online.git
synced 2025-08-13 13:17:07 +00:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user