diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-09-17 07:17:31 -0400 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2019-08-17 04:33:04 +0200 |
commit | 2eab5cea763d037ed7d11f0ba88b8299edc592ff (patch) | |
tree | 4bf9ca4458f9c7f28b450c832643e124393cf039 /wsd/ClientSession.cpp | |
parent | 8e118889cbabc279d7cf6746576330816f0e562c (diff) |
wsd: leaflet: support reordering of slides via drag-and-drop
Change-Id: I1b471ba07dd0a1016a0759de729171ae968262cb
Reviewed-on: https://gerrit.libreoffice.org/69635
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/71099
Diffstat (limited to 'wsd/ClientSession.cpp')
-rw-r--r-- | wsd/ClientSession.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/wsd/ClientSession.cpp b/wsd/ClientSession.cpp index f10f08724..5dbcaa7d0 100644 --- a/wsd/ClientSession.cpp +++ b/wsd/ClientSession.cpp @@ -402,6 +402,7 @@ bool ClientSession::_handleInput(const char *buffer, int length) tokens[0] != "selecttext" && tokens[0] != "setclientpart" && tokens[0] != "selectclientpart" && + tokens[0] != "moveselectedclientparts" && tokens[0] != "setpage" && tokens[0] != "status" && tokens[0] != "statusupdate" && @@ -580,6 +581,23 @@ bool ClientSession::_handleInput(const char *buffer, int length) } } } + else if (tokens[0] == "moveselectedclientparts") + { + if(!_isTextDocument) + { + int nPosition; + if (tokens.size() != 2 || + !getTokenInteger(tokens[1], "position", nPosition)) + { + sendTextFrame("error: cmd=moveselectedclientparts kind=syntax"); + return false; + } + else + { + return forwardToChild(std::string(buffer, length), docBroker); + } + } + } else if (tokens[0] == "clientzoom") { int tilePixelWidth, tilePixelHeight, tileTwipWidth, tileTwipHeight; |