Commit graph

5980 commits

Author SHA1 Message Date
Jan Holesovsky
8a0b47b3dc Set these rlimits to unlimited by default.
Change-Id: Id7e9f8db5422dc59b88cacf63a25e72b57826a57
2017-10-05 12:03:14 +02:00
Andras Timar
4ef7da3733 loleaflet: updated sl translation
Change-Id: I890f3fe7232a8b5b1708d555344ca65ad6fa188c
Reviewed-on: https://gerrit.libreoffice.org/43155
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2017-10-05 08:32:46 +02:00
Andras Timar
a9b635a5d0 loleaflet: add language name translations from core (langtab.src)
Change-Id: I7e425cefe68aa4ebb8ba0e6416e4f0bdead37dfd
Reviewed-on: https://gerrit.libreoffice.org/43144
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2017-10-04 22:58:21 +02:00
Henry Castro
30fd4d2f11 loleaflet: fix statusbar items when refreshed
when the statusbar is refreshed the items are restored to according to
html property

Change-Id: I79f77c5ab4932c10d10dd9780cbd6e6a9b132a38
2017-10-04 09:45:59 -04:00
Andras Timar
cb2de58108 loleaflet: enable l10n of language names
Change-Id: Idd8b1b0bb081d718cf8d36c60ce6e293bd818fc6
Reviewed-on: https://gerrit.libreoffice.org/43130
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2017-10-04 13:33:26 +02:00
Andras Timar
7bc407c452 loleaflet: update UI pot
Change-Id: Ib1c02dbfb91c7b52830923324666bc6b006adce1
Reviewed-on: https://gerrit.libreoffice.org/43129
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2017-10-04 13:31:59 +02:00
Aron Budea
dfa9b44e93 Status bar function: first make it work properly
The way the parameter was interpreted changed with this
core commit: 7bc97db5b972f27693161beb9182f8a5850f5551

For now let's make single function work again.

Change-Id: I6e8ebb4cc7a272c53aa3e44066df7a62ab89d8ab
Reviewed-on: https://gerrit.libreoffice.org/43110
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-10-04 12:12:13 +02:00
Henry Castro
9edf7f0712 loleaflet: add more menus for the Writer spell checking
Change-Id: I3ef19021f0cb44aa2c34c84af08f2af2d11b25a2
2017-10-03 20:09:54 -04:00
Henry Castro
9677b1eae0 loleaflet: change position of the language status bar item
Change-Id: If5f7ad59e3ef4694313c086ad473af0cc377ea9c
2017-10-03 19:57:00 -04:00
Michael Meeks
79053911fc Support key logic and verification.
Change-Id: Ie55150b99df3e80239236571af185502196ad3e9
Reviewed-on: https://gerrit.libreoffice.org/43097
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 56385cb8ac2a57af4eb70bc8bc7313a9299533c3)
Reviewed-on: https://gerrit.libreoffice.org/43099
2017-10-03 21:52:45 +02:00
Henry Castro
60d72b9e5a Revert "wsd:config: languages listed will be supported"
This reverts commit 6f81880e1b.
2017-10-03 14:29:09 -04:00
Pranav Kant
6a73c19d16 Show save-as option based on CheckFileInfo params
If UserCanNotWriteRelative is mentioned in the CheckFileInfo response.

Change-Id: I33d2e21159b3e18ae88fd72f404f2d1d1d9b64e5
2017-10-03 20:58:36 +05:30
Jan Holesovsky
7f49b1eba6 PutFile ext: X-LOOL-WOPI-IsAutosave header to indicate autosave + unit test.
Change-Id: I65ed711dae5100467fe6ed9902bd7bad8c7f8d68
Reviewed-on: https://gerrit.libreoffice.org/43074
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-10-03 12:04:18 +02:00
Pranav Kant
c52cc45f08 Catch unknown exceptions and log it
... before lokit thread magically dissappears because some function in
LO core threw an 'Exception'

Change-Id: I8357b18d95674af8ec4d2f57ad41087f7b7dfcff
2017-10-03 14:16:59 +05:30
Pranav Kant
3008342c57 Don't kill the process when debugging
Assume that when SLEEPFORDEBUGGER or SLEEPKITFORDEBUGGER is mentioned,
loolwsd is being debugged. In that case, don't set any timeout to exit
before first child is forked.

Change-Id: I2527f02187d8452ef6bebb70e1d750b5e796c4b6
2017-10-03 13:47:39 +05:30
Henry Castro
d5b76b5d5c loleaflet: use commandvalues to request the list available languages
Change-Id: Ibc312bf4d464dd7446715d7bf51ed208d41e8e6f
2017-10-02 22:57:44 -04:00
Michael Meeks
1c164427ba Pre-select search text if present on a new ctrl-f.
Change-Id: Idec7c3e3a419bb26f951872932c8c2c7de69b68f
2017-10-02 20:58:41 +01:00
Pranav Kant
55de8e6c1b lokdialog: Add dialog related callbacks
Change-Id: I5dc54c4bdbaf066b3b089a00fbc89b943e73caae
2017-10-02 15:40:23 +05:30
Marco Cecchetti
e015c83957 fixed wrong logging text
Change-Id: Ife3bdf05e15a9f11227c37eec6af0719cd8b2e5a
Reviewed-on: https://gerrit.libreoffice.org/43033
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
(cherry picked from commit 8f9cff124763285e0bb7cc98d96770b98367eafb)
Reviewed-on: https://gerrit.libreoffice.org/43034
2017-10-02 10:55:27 +02:00
Andras Timar
3eadb79cf3 loleaflet: updated UI pot file
Change-Id: I074f2cc268ea06e5693d21d249bb35367a3b9b0d
2017-10-02 10:04:56 +02:00
Henry Castro
22b7bee742 loleaflet: add tools -> language menu items
Change-Id: Ie79a03b53bdbb248788e444115cf7d7e159bb964
2017-10-01 10:58:11 -04:00
Henry Castro
e02ca0603a loleaflet: add language status bar item
Change-Id: I6615373a27b1a32561f3c5fba2f9c7765dbf9bef
2017-10-01 10:53:36 -04:00
Henry Castro
6f81880e1b wsd:config: languages listed will be supported
Change-Id: I11b9aae4e4992af4626d258cbc51b1fbdd290ea3
2017-10-01 10:41:25 -04:00
Andras Timar
7224a062e9 typo: documen->document
Change-Id: I5d51dada113e3f1b3db5104d6d1f3b70a9fe99e6
2017-09-28 13:06:37 +02:00
Jan Holesovsky
f2ef8d02fa Speed-up the WOPI tests.
Change-Id: Ib61c5b90703e4266dbad935cd632b8be50a4ac44
Reviewed-on: https://gerrit.libreoffice.org/42880
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-09-27 23:53:40 +02:00
Jan Holesovsky
043528f839 WopiTestServer: Share more code.
Change-Id: Ied539169f96608adb7095682bd8f0b7a70d28491
Reviewed-on: https://gerrit.libreoffice.org/42879
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-09-27 23:53:20 +02:00
Andras Timar
67ebb9a48e add test/WopiTestServer.hpp to Makefile.am
Change-Id: I9a4b10f0d1f12ed85d31f3dbbc1deb747ff35a2d
2017-09-27 16:37:30 +02:00
Jan Holesovsky
3141cfc99b PutFile ext: X-LOOL-WOPI-IsModifiedByUser unit test.
Change-Id: I0b1ffc74dbbc771f0dcb68f87d46af3ba469ae9e
Reviewed-on: https://gerrit.libreoffice.org/42855
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2017-09-27 16:37:16 +02:00
Jan Holesovsky
a711d5b60c Separate the fake wopi server to an own class.
Change-Id: Ibb1b06c491be0065aa12a05a43959165d6c86398
Reviewed-on: https://gerrit.libreoffice.org/42853
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2017-09-27 16:36:21 +02:00
Jan Holesovsky
f658067eaa Don't crash when the parameters are missing.
Change-Id: I96ace7ad7757e7e0c74dd9f361c78ecff6171a96
Reviewed-on: https://gerrit.libreoffice.org/42854
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2017-09-27 16:36:13 +02:00
Jan Holesovsky
5c604e9f78 PutFile ext: X-LOOL-WOPI-IsModifiedByUser header to indicate modifications.
Change-Id: I5d69903211045969d678df695717eae7452e7f04
Reviewed-on: https://gerrit.libreoffice.org/42852
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2017-09-27 16:36:02 +02:00
Marco Cecchetti
ee6e64528d wsd: support for FSIZE and NOFILE system limits
The routine for handling the configuration for the max file size
limit, was wrongly using NOFILE. Now we handle both limits correctly.

Change-Id: Ie8b63617286f66af6d4eb1b35b9e4f4b28f3c2a6
Reviewed-on: https://gerrit.libreoffice.org/42803
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/42811
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2017-09-26 17:40:31 +02:00
Marco Cecchetti
9f99e40d5e Adapt bundled include to core include
Change-Id: I3066a58545f85724fe07bf344d37ca6261312280
2017-09-26 14:30:55 +02:00
Aron Budea
a71c13a718 Adapt to lok API CHANGE in core
Introduced in commit 5bcc79e825d542c40c9ee0f48d1d72ea9aa53c54.

Change-Id: I1f2bf27f45f7e62f96fc5059e02386b1c884b3e6
Reviewed-on: https://gerrit.libreoffice.org/42713
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-09-25 10:38:04 +02:00
Andras Timar
017f82a84d no error if systemplate dir is existing
Change-Id: I10aba648688ba92150efa41449190a3ba425f03c
Reviewed-on: https://gerrit.libreoffice.org/42663
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2017-09-22 17:10:26 +02:00
Henry Castro
e45d05f847 loleaflet: resolves: no row header in revision history
_onUpdateScrollOffset is triggered when the client window is resized or
when it is loading a new document. However, there are some cases when
the offset is 0, it means to update row and columns.

Change-Id: If4c4bb4f50335c642004ceb7723c8b5eb949cada
2017-09-21 11:31:19 -04:00
Aron Budea
61acc4ae7d loleaflet: enable horizontal scrolling via Shift + mousewheel
Change-Id: I3cac65248628042e0150e9f393c89e4fbefb8ed6
Reviewed-on: https://gerrit.libreoffice.org/41088
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2017-09-21 15:46:28 +02:00
Jan Holesovsky
b57e38766a Document the 'access_header' WOPI extension.
Change-Id: Ie77501144344fc0503faf100b614e181cf722685
2017-09-20 14:17:33 +02:00
Andras Timar
b8a50e6750 loleaflet: updated UI pot file
Change-Id: I4de681eded5a1839928935be4b3d94dfa90a0efe
2017-09-20 12:12:49 +02:00
Christian Glombek
702bbdd5d8 Add Support for OpenSSL 1.1.0
Change-Id: I0aa58b893e8577bba94fa45c0c4c81449b12e4e2
Reviewed-on: https://gerrit.libreoffice.org/42356
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-09-20 03:48:08 +02:00
Henry Castro
0d870d444c loleaflet: fix background color of the top level menu items
Change-Id: I548c700a16664e8acfc6010c1be549e6176f2383
2017-09-19 21:46:09 -04:00
Michael Meeks
2c1508c309 Implement more reliable in-process short-cuts.
Change-Id: Icdfa71affad147c29df175ae687cbecc3f1f171b
2017-09-19 21:17:13 +01:00
Michael Meeks
def0350379 Re-factor pid hunting code into test.cpp where we can do better.
Prepare the ground for using WSD hooks for this.

Change-Id: I5c3e32396b335ad189472ab3a51044372ee304b2
2017-09-19 21:16:44 +01:00
Michael Meeks
be228a160d Allow unit tests to avoid handleInput.
Change-Id: Ib4accd6bbfdc1fc55c45365df275edfa8a68bc59
2017-09-19 21:13:58 +01:00
Pranav Kant
fcffb01725 Don't forget reconnecting the socket in these cases
This regressed with 7c1e1120c6

Calling .initialize() on socket object is not enough anymore after above
mentioned commit; it doesn't re-establish the socket connection as
was the intent earlier in following cases.

Change-Id: Icd0a87a875eb275ed3c914474cdc502b460e2d16
Reviewed-on: https://gerrit.libreoffice.org/42431
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2017-09-18 20:17:50 +02:00
Pranav Kant
7b4f734b32 Broadcast closing documents in same thread
... instead of handing it over the Document broker polling thread which
can lead to race conditions, and hence not giving desired behavior when
document is changed externally.

Change-Id: Ib0821d4ae931c357bc4d4c526865eefc090ddc23
2017-09-18 23:02:07 +05:30
Miklos Vajna
f375a9d5de Socket: mark setNoDelay() as non-virtual
No derived classes override it, and if they would, that would be a
problem, as setNoDelay() is called from init(), which is called from the
Socket ctor. Calling virtual functions from the base class ctor is not a
good idea, since the object is not fully constructed yet.

Change-Id: I4993e26d09f5d3429c7e2afae7688b84c0061c9d
2017-09-18 10:15:59 +02:00
Henry Castro
1a493880a4 loleaflet: show error when the document is disconnected
Change-Id: I43f8d48002ccb2fc3b6ac9807b72ba6b618d72d2
2017-09-17 11:09:02 -04:00
Henry Castro
0cdf361510 loleaflet: clean up the socket connection
Change-Id: I29861d74ba5e0aa789eec41fb353aca1dad6cce4
2017-09-17 10:45:59 -04:00
Henry Castro
bccdd8d4d7 wsd: notify when the document is disconnected
Change-Id: I36e6df3c576ff0f02d3b059c2f1db4226d527b49
2017-09-17 10:37:48 -04:00