Commit graph

3397 commits

Author SHA1 Message Date
Tor Lillqvist
86afada76e Update bundled LibreOfficeKit include files from LO core master 2016-08-29 17:54:28 +03:00
Tor Lillqvist
7d4ab644f8 Add REDLINE_TABLE_ENTRY_MODIFIED 2016-08-29 17:22:35 +03:00
Tor Lillqvist
4409ccd222 Don't crash if there is no "rendering" in the options JSON of the load message 2016-08-29 17:22:35 +03:00
Tor Lillqvist
ccdac2f767 Adapt the GET after 8cc367638f
The thing to GET is now lool/ws/ + the actual document URL.
2016-08-29 17:22:35 +03:00
Pranav Kant
f8ebb54af0 loolwsd: Receive WOPI userid, username
Change-Id: I0bd5e5a155b8f8486fbeffb1c1413d5e9c177fc3
2016-08-29 19:39:50 +05:30
Pranav Kant
c67c85793b loolwsd: Inform opening view about existing views
Change-Id: I84de6f78ffa21f3018e987e9e0bfeafd0cfb2b52
2016-08-29 18:37:57 +05:30
Pranav Kant
f6217133f4 loolwsd: view ids - unsigned -> int
Change-Id: I4bc2aa109143dd4cfd88a49c1988b66ae134d647
2016-08-29 17:57:23 +05:30
Miklos Vajna
7e3225dceb LOOLKit: avoid unnecessary copy-initialization
Change-Id: I14a4bb7803676173ac164ff8bd7e9eeaa6031f75
2016-08-29 09:23:15 +02:00
Andras Timar
7535d95d44 loolwsd: fix xml tag mismatch 2016-08-29 09:02:56 +02:00
Pranav Kant
06b869bb63 loolwsd: -Werror,-Wpointer-bool-conversion
isSSLTermination() was added in b0619d387b

Change-Id: I63a702023b6a096154b510653bed885331e8e22d
2016-08-29 10:53:56 +05:30
Ashod Nakashian
f3ca27e512 loleaflet: double-click on repair entry to jump to state
Change-Id: I19dc530df0e36b83b6e19922a1a32d495324c3a8
Reviewed-on: https://gerrit.libreoffice.org/28443
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-28 22:37:27 +00:00
Andras Timar
274d68644d loolwsd: handle HTTP HEAD request for / 2016-08-28 23:06:30 +02:00
Andras Timar
1403a7999a loolwsd: add loolstress to rpm 2016-08-28 23:06:30 +02:00
Andras Timar
05a7101789 loolwsd: add missing headers to dist 2016-08-28 23:06:30 +02:00
Andras Timar
b0619d387b loolwsd: add support of SSL termination 2016-08-28 23:06:30 +02:00
Ashod Nakashian
03921a0769 loolwsd: unittest cleanups
Change-Id: Ic383915012ac1c254960d976cc89d3f7c1a2cb02
Reviewed-on: https://gerrit.libreoffice.org/28440
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-28 18:50:11 +00:00
Henry Castro
f87edc7367 loleaflet: update menu repair 2016-08-28 10:06:00 -04:00
Henry Castro
ab780acd0a loleaflet: add document repair toolbar item 2016-08-28 09:08:18 -04:00
Henry Castro
fa2a99459f loolwsd: add fake .uno:DocumentRepair
Avoid double round trip requesting command value pair
.uno.Redo, .uno:Undo
2016-08-28 09:03:45 -04:00
Henry Castro
d36ff0afda loolwsd: avoid exception, commandName empty 2016-08-28 09:00:04 -04:00
Henry Castro
fa96352881 loleaflet: add L.Control.DocumentRepair 2016-08-28 08:57:27 -04:00
Ashod Nakashian
78d4c7706d loleaflet: Repair command and dialog handler
Change-Id: I68853b2d4ec269c7f3d275f6bb7c192bd8ea41d7
Reviewed-on: https://gerrit.libreoffice.org/28408
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-26 12:47:44 +00:00
Ashod Nakashian
960e0521bc Formatting
Change-Id: Iad77e0f69cdb186da35cf3b2d1c0e9020df31870
Reviewed-on: https://gerrit.libreoffice.org/28407
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-26 12:46:51 +00:00
Andras Timar
a5aa138774 loolwsd: response to HTTP GET / (e.g. for checking if server is alive) 2016-08-26 13:40:20 +02:00
Andras Timar
619ddb4c2f loolwsd: add favicon 2016-08-26 12:57:33 +02:00
Oliver Specht
5902700922 Add footnote and text wrap functions 2016-08-26 10:36:04 +02:00
Pranav Kant
178808f989 loolwsd: Notify other views when new view is added
... but no need to notify the one which is just added.

Earlier behavior was notifying only the one which is just added,
which is redundant as same is accomplished by 'status' message.

Change-Id: Ib09424d186c49527b7b9c36fdabf90c31518ee04
Reviewed-on: https://gerrit.libreoffice.org/28395
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-25 18:26:31 +00:00
Pranav Kant
ec6ddf91ba loolwsd: Send viewId to clients, not sessionId 2016-08-25 21:10:47 +05:30
Pranav Kant
620b322bd2 loleaflet: Give hats the names
Put a placeholder for now; replace with real names when we have
them from loolwsd.
2016-08-25 19:17:45 +05:30
Pranav Kant
79aa4d5e06 loleaflet: Hide the hat after 1.5s of inactivity in cursor 2016-08-25 19:17:45 +05:30
Pranav Kant
3ff170a194 loleaflet: Adjust the hat a bit; don't make it change cursor pos 2016-08-25 19:17:45 +05:30
Pranav Kant
73f7e48c90 loleaflet: A hat for colored cursors 2016-08-25 19:17:45 +05:30
Andras Timar
679ee2df27 loolwsd: set LOK_VIEW_CALLBACK by default 2016-08-24 14:19:34 +02:00
Jan Iversen
4af3b8546d update of pootle strings
This is a manual update, as a prelude to the automatic
pootle update.
2016-08-24 11:07:24 +00:00
Tor Lillqvist
e10175aed6 Nah, it's better to use the Storage thing to get the user name
instead of accepting it in the load message

Let's not just bother documenting random examples of what might be in
the JSON, this is not the right place for it.
2016-08-24 10:32:00 +03:00
Tor Lillqvist
4e8fd90bea Document the .uno:Author attribute in the options parameter of the load message
... as I understand it, that is. Not sure whether it makes sense to
document stuff like this here, or in the LibreOfficeKit headers.
2016-08-23 19:38:42 +03:00
Andras Timar
ff3c15fd40 loleaflet: expose Wrap and Anchor context menus for images 2016-08-23 15:36:59 +02:00
Tor Lillqvist
0a18d513a1 Mention that the options parameter of the load message must be JSON 2016-08-22 16:01:19 +03:00
Tor Lillqvist
300cc0e947 There is no 'loadtest' program since a while 2016-08-22 15:45:42 +03:00
Ashod Nakashian
5656f84401 loolstress: benchmark statistics are calculated and reported
Statistics include:
Total latency from input to tile.
Tile rendering time.
Tile-cache response time.

The lowest latency for each is reported and the
95th percentile as well.

The rendering and cache-serving power is
calculated as Mega-Pixels per second.

Change-Id: Ib1baede818444c92f553eaf3e6b17dc617c51b0f
Reviewed-on: https://gerrit.libreoffice.org/28310
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-22 06:00:43 +00:00
Ashod Nakashian
8506c31a43 loolstress: latency and tile-rendering benchmark tests
Document modify round-trip benchmark and tile-rendering
round-trip benchmarks added to loolstress.

Change-Id: If3b6932f3a64008b1dbeb23da8a5e98ecedd66c8
Reviewed-on: https://gerrit.libreoffice.org/28309
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-22 05:59:21 +00:00
Ashod Nakashian
a46d9a55b3 loolwsd: refactor getTileMessage
Move CppUnit assertions into assertTileMessage
to allow for reusing getTileMessage without
dependency on CppUnit.

Change-Id: I35592d440910854dc207db533292efd6f1520c0b
Reviewed-on: https://gerrit.libreoffice.org/28308
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-22 05:52:30 +00:00
Ashod Nakashian
baef50055f loolstress: support for benchmarking
Change-Id: I100ee5ced96f876047598e42bd83257f8dd9581a
Reviewed-on: https://gerrit.libreoffice.org/28307
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-22 05:50:56 +00:00
Ashod Nakashian
0d395f18b5 loolwsd: cleanup of ChildSession
Change-Id: I63bd6ff24a54b0ba3e0361ea385bf866f98faf76
Reviewed-on: https://gerrit.libreoffice.org/28306
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-22 05:49:45 +00:00
Ashod Nakashian
76ad9b3451 loolwsd: cleanup of LOOLSession
Change-Id: Ib65e65c44b258c7ae4d4fbe68555f664900d21c9
Reviewed-on: https://gerrit.libreoffice.org/28305
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-22 05:48:00 +00:00
Ashod Nakashian
4b28a9a4fc loolwsd: forward redline table update notification event to the UI
Change-Id: I45df2a1aaf826301a113f8cf0a8c609d46b794a7
Reviewed-on: https://gerrit.libreoffice.org/28304
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-22 05:46:37 +00:00
Ashod Nakashian
169fb52a4b loleaflet: remove view selection when closed
Change-Id: Ia822a00bab13be12e327aee936ed9fb0d3d211b0
Reviewed-on: https://gerrit.libreoffice.org/28303
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-22 05:45:24 +00:00
Ashod Nakashian
a28b832309 loolwsd: proper ChildSession cleanup
ChildSession cleanup is tricky because it needs
to be cleaned up when the connection is dropped.
The ChildSession itself needs to initiate this
cleanup from Document.

A new approach simplifies the design and correctly
broadcasts remview to all other connections so
they would be able to cleanup visual elements.

Change-Id: I78fd01fb42b801913534c858324c16dd7ad6451d
Reviewed-on: https://gerrit.libreoffice.org/28302
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-22 05:44:24 +00:00
Ashod Nakashian
98db6b8518 loolwsd: logging and comments
Change-Id: If58cfd8ac60b95119bef752ff4ebae295fc564cc
Reviewed-on: https://gerrit.libreoffice.org/28301
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-22 05:31:52 +00:00
Ashod Nakashian
c98af7c5a0 loolwsd: Poco HTTPRequest and co are not thread-safe
Change-Id: I5b7a290651a51f117da1dd972f4c24bdebd2b3b2
Reviewed-on: https://gerrit.libreoffice.org/28300
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-08-22 05:30:40 +00:00