Commit graph

4189 commits

Author SHA1 Message Date
Ashod Nakashian
cd238ca7b7 loolwsd: MessageQueue logs updated
Change-Id: I4adbedce7ad0b284d899333d1ad2d04e0d45c83f
Reviewed-on: https://gerrit.libreoffice.org/30995
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-20 00:19:23 +00:00
Henry Castro
8876be85bc loleaflet: modify special character dialog 2016-11-19 17:17:25 -04:00
Henry Castro
b592fa923c loleaflet: add more constants for Unicode blocks 2016-11-19 17:17:25 -04:00
Henry Castro
647fe679e9 loleaflet: fix 0-based index 2016-11-19 17:17:24 -04:00
Miklos Vajna
68c18783b7 Fix -Werror,-Winconsistent-missing-override
Change-Id: I50c3a06c55a5d76971d3cac9d20db708f10e4c26
2016-11-18 15:20:02 +01:00
Miklos Vajna
eb199ba3c8 MessageQueue: clean up redundant member init
Change-Id: I1ebdc460740fa5b3fb36f1c59b55112b71737627
2016-11-18 15:17:24 +01:00
Pranav Kant
373e68d42c Set reconnection flag when reconnecting
'status' message can well be sent after document has already been
loaded. Eg: when the doc size is changed. We don't want this code
to execute in all such cases.

Change-Id: Ia69ab70edddda1a4e27618101eaff35bd0e5eb65
2016-11-18 17:20:19 +05:30
Pranav Kant
bad071760d Supercede a hack with a better solution + flush tiles on reconn.
This also introduced a regression where upon reconnection of the
document, tiles were not updated. This was because calling
setView leads to calling 'canceltiles' down the line which would
cancel the the 'tilecombine' request for fetching all tiles
leading to stale tiles in the UI

Change-Id: Ib0f583c92802195384ea10f328c0ba2eafc82ffd
2016-11-18 17:18:14 +05:30
Andras Timar
36950c2c50 loolwsd: Math documents are not supported yet (related: tdf#97006) 2016-11-18 11:49:38 +01:00
Pranav Kant
c511cf1d76 loolwsd: New test to check if request uris are valid
The current test tests if the embedded doc url recieved in websocket
URI endpoint is encoded or not.

Change-Id: I1e5d6639d6791be4e1e56701a9e444e33fc89aa2
2016-11-17 23:04:52 +05:30
Pranav Kant
1618f6be4d loolwsd: Decode the encoded access_token before CheckFileInfo
Change-Id: Ia4511803ca5570ad5675e00c99108fd32360734d
2016-11-17 17:22:09 +05:30
Pranav Kant
8a1ac91fa6 loolwsd: Prevent double decoding
Change-Id: I5927e0113505ffcc167e16700db7c2f6408ed3b7
2016-11-17 17:22:09 +05:30
Miklos Vajna
6d1c82d7ce Admin: clean up redundant '_modelMutex' initializer
Change-Id: I85a1b640b58e0956b2ac9fbee43e7c5e57c9e08c
2016-11-17 11:52:52 +01:00
Henry Castro
30531f88f1 loleaflet: update new and last valid slide thumbnails 2016-11-16 10:50:43 -04:00
Pranav Kant
4d28338a10 More WOPI documentation
Change-Id: I0c04d2105ff6227f9f7b6eaa73a7efe6a94faecd
2016-11-16 19:56:33 +05:30
Ashod Nakashian
d82e767172 loolwsd: use own killChild instead of Poco wrapper
Change-Id: Ic0e09076535d58bbf7ec86962878f534825dfc65
Reviewed-on: https://gerrit.libreoffice.org/30893
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:43:55 +00:00
Ashod Nakashian
cf2f4ed712 loolwsd: improve interrupted pipe-reading handling in forkit
Change-Id: Iabaadee064bb1178cc6b1bd3482608a758d65506
Reviewed-on: https://gerrit.libreoffice.org/30892
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:43:17 +00:00
Ashod Nakashian
4c9a2e821d loolwsd: don't set TerminationFlag unnecessarily
Change-Id: I993e1c5bfdb5b4a5d9a421bc61fa90fdfd1ba00b
Reviewed-on: https://gerrit.libreoffice.org/30891
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:42:58 +00:00
Ashod Nakashian
0662e35a6d loolwsd: log test exit and timeout
Change-Id: I7563abe200bb42b90fcd4478d10c9d4184c188e5
Reviewed-on: https://gerrit.libreoffice.org/30890
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:42:35 +00:00
Ashod Nakashian
33b7a89947 loolwsd: close forkit write pipe fd before spawning new forkit
Change-Id: Ib3438359f581ded460a4dcd1514c351d20f7e947
Reviewed-on: https://gerrit.libreoffice.org/30889
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:42:19 +00:00
Ashod Nakashian
b47550e566 loolwsd: log pipe reading errors
Change-Id: I58b78454c74874687fbc216c2dd704b3677ccea1
Reviewed-on: https://gerrit.libreoffice.org/30888
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:42:00 +00:00
Ashod Nakashian
0f9bd80ca2 loolwsd: set ShutdownFlag only with SIGINT
The logic is to use ShutdownFlag only in WSD to
initiate graceful shut down while saving documents.

When CTRL+C is hit WSD, forkit, and kits get SIGINT,
but only WSD should handle ShutdownFlag. Others are
signaled internally by WSD to terminate using SIGTERM.

The second CTRL+C on WSD will flag TerminationFlag
for more aggressive shutdown. This is logged on every
subsequent signal and not just the first.

Furthermore, any other signal to WSD should terminate
more aggressively, so no reason to set ShutdownFlag
in those cases.

Change-Id: I10fa38fe85925da1020983f897cc6cdbbd2623f8
Reviewed-on: https://gerrit.libreoffice.org/30887
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:41:37 +00:00
Ashod Nakashian
f7b6ece593 loolwsd: LOOLForKit logs updated
Change-Id: I4a248b5c9b6c5c68ddec1041c9bba0f0d6142946
Reviewed-on: https://gerrit.libreoffice.org/30886
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:41:23 +00:00
Ashod Nakashian
78be068a7f loolwsd: test: retry connection failures
Change-Id: Iff2cf05bf755ba0df08304af9f2cc6c488e18428
Reviewed-on: https://gerrit.libreoffice.org/30885
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:40:24 +00:00
Ashod Nakashian
0cc57c643d loolwsd: test: log at trace level
Change-Id: Icf498dd15875b355abfe022de67b947d51ad7275
Reviewed-on: https://gerrit.libreoffice.org/30884
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-16 04:35:21 +00:00
Andras Timar
a65f7d34d1 loleaflet: add missing ui-bg_highlight-soft_100_eeeeee_1x100.png to dist 2016-11-15 20:38:46 +01:00
Michael Meeks
04a4db4951 More work on rename script - compiles after rename + patch. 2016-11-15 20:05:07 +01:00
Pranav Kant
09b33d357d loolwsd: Escape access token safely, don't be too defensive
Change-Id: I43cb71f418904c0b925722f4d2fe3ac1b0a351f6
2016-11-15 20:21:02 +05:30
Pranav Kant
26adebfcb0 tdf#103641: Fix save button visible for presentation
Additionally, change the variable name for presentation-toolbar
to avoid any future confusion.

Also, put the code hiding the save button in onRefresh event so that
save button doesn't show up in the UI as soon as we get the wopi
properties object from the server.

Change-Id: Ib168010c509f55a69aae9752e11321d319f59e99
2016-11-15 18:23:42 +05:30
Pranav Kant
d8a202bf1c tdf#103641: Split App_LoadedStatus - Frame_Ready, Document_Loaded
Post App_LoadingStatus with 'Status' field as Frame_Ready when
we are ready to show the UI.

Post Document_Loaded when document is completely loaded after
which loleaflet is ready to respond to more document specific
queries through post message API.

Change-Id: I60a4e9b75e115c748fcee8d449bc8c2d4ffa34a9
2016-11-15 18:23:40 +05:30
Jan Holesovsky
72a5f35f30 LibreOfficeKit.hpp changed meaning of getPart(), update accordingly.
Change-Id: Ia346f4f838856040fa9aea26b3ac9c0b596b9218
2016-11-15 13:06:42 +01:00
Jan Holesovsky
2069650ba6 Get rid of LibreOfficeKit.hpp, it's mostly a copy of LibreOfficeKit.hxx.
Change-Id: I55f9c28a3ac1ef2a36c18c29cc16209bedd48770
2016-11-15 13:06:34 +01:00
Andras Timar
d02f4bf753 loleaflet: Translation of Special Characters dialog from LibreOffice core 2016-11-15 10:27:45 +01:00
Andras Timar
cb21e68691 loleaflet: Translations of Unicode subsets from LibreOffice core 2016-11-15 10:03:58 +01:00
Henry Castro
c40b79df9e loleaflet: enable font character preview 2016-11-15 00:07:21 -04:00
Henry Castro
4ea95ff330 loolwsd: add parameter char to render font 2016-11-15 00:07:21 -04:00
Henry Castro
b7d3ea63ff loolwsd: update bundled headers 2016-11-15 00:07:21 -04:00
Ashod Nakashian
8072576424 loolwsd: move signal and process code to SigUtil files
Change-Id: I91c001ef54858d942f8e3fe56d8a6b02cb2bf37e
Reviewed-on: https://gerrit.libreoffice.org/30846
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 21:20:21 +00:00
Ashod Nakashian
b5dd13c57f loolwsd: wait for kit processes only when killing them
Change-Id: I89ec8c728b53ff1acdf9e8d12137ffc7c13f6ba5
Reviewed-on: https://gerrit.libreoffice.org/30845
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 21:19:00 +00:00
Aleksander Machniak
fc3a059e75 Fix setting DontTerminateEdit/DontSaveIfUnmodified arguments in Action_Save postMessage
Change-Id: I61a2064104b1748571036891ff7696c1a1e6a3d2
Reviewed-on: https://gerrit.libreoffice.org/30842
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2016-11-14 18:08:58 +00:00
Pranav Kant
efe6863f17 loleaflet: 'Click to resume editing' label' when inactive doc
Change-Id: I9013158fc6f064dc76398aec044c5b4aa83aa9b7
2016-11-14 23:28:22 +05:30
Pranav Kant
7b332782da loleaflet: Mention sheet name in delete sheet confirm dialog
Change-Id: Ifac13c8fb2f4ec792f1e62541cb92b63edecad56
2016-11-14 20:38:33 +05:30
Pranav Kant
383e8a13a5 loleaflet: Focus after inserting or deleting a sheet
Change-Id: I2807cbeaa0fb5b7ec20002a3f5758ce47bb7d421
2016-11-14 20:38:33 +05:30
Ashod Nakashian
01a6274d7c loolwsd: support forced termination in kits as well
Change-Id: I301cf2f36888b7095f8565bc0badcfc5a927518c
Reviewed-on: https://gerrit.libreoffice.org/30844
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 14:00:15 +00:00
Andras Timar
b35ac4cbbf loleaflet: Control.Menubar.js indentation fixes 2016-11-14 14:23:22 +01:00
Michael Meeks
fb39c0e919 Prototype renaming script and patch for before branching. 2016-11-14 12:05:48 +00:00
Andras Timar
40009af7aa loleaflet: add Insert - Special character... to menu 2016-11-14 11:41:03 +01:00
Andras Timar
0e5cf0e07f loleaflet: disable Insert Special Character button in view-only mode 2016-11-14 11:38:12 +01:00
Ashod Nakashian
303d173ae1 loolwsd: gracefully shutdown on first CTRL+C then force termination on second
Change-Id: I1c84663d10de8ece715a296eec284b74cdda69df
Reviewed-on: https://gerrit.libreoffice.org/30834
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 05:37:06 +00:00
Ashod Nakashian
d36306e347 loolwsd: broadcast that the server is shutting down
Change-Id: Ib94eb991763094cd6fe0ab36636f48f9844586c5
Reviewed-on: https://gerrit.libreoffice.org/30833
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-11-14 05:35:37 +00:00