Commit graph

10936 commits

Author SHA1 Message Date
Jan Holesovsky
ebcd7816b4 mobile: More menu-related stuff moved to device-mobile.css.
Change-Id: I33df7cbfe4835caf2d9757e8f357f456b9d1e777
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91474
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-02 09:03:54 +02:00
Samuel Mehrbrodt
f4c76b9f87 Fix log message in docker build script
Change-Id: Ifdd931b5ae75137669126ee544d0c9eae9fe7777
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91403
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2020-04-02 08:49:45 +02:00
gokaysatir
a486bad79b tdf#130568 - Add server os pretty name to help->about
Change-Id: Id6de533dfb8e34a05d348f8ae701bf3c524c9b95
2020-04-01 20:45:32 +01:00
Michael Meeks
3e67e434e4 Avoid de-referencing non-existing marker.
This screws up cursors across views in some circumstances,
when there is no marker in one of the views.

Regression from 3b0478baab

Change-Id: Ia1294d83801d656a919f97206b7b573a1b74b77f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91489
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-01 18:10:23 +02:00
Tamás Zolnai
3f358cbb80 cypress: mobile: try harder to remove selection in calc spellchecking tests.
It's a known issue that text selection is persistent,
which made these tests unstable. So use a different method
to remove the text selection.

Change-Id: I46b0ba268a39bae9e79ce62686b2d1e0eab1adda
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91486
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-01 15:04:58 +02:00
Tamás Zolnai
d90aed7cf0 cypress: mobile: make impress spellchecking test more stable.
Change-Id: I3fe512eb5da0bcdab905f023f51ce03af7e503f5
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91487
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-04-01 15:04:49 +02:00
Tor Lillqvist
59fc10bcd6 Add some (ifdeffed-out) experimentation with file service providers
Kept in #if 0 in case some similar experimentation needed in the
future.

It might be interesting to be able to tweak behaviour based on knowing
on what kind of storage the doument is located, but alas, that seems
not possible.

Change-Id: I877c96fcea3a350faa58a934485714d15b01141d
2020-04-01 13:42:54 +03:00
Jan Holesovsky
af8669b9d4 mobile: Kill most of the menu styling.
I believe this is not relevant any more, since we are using the
mobile-wizard for menus on the phones these days.

Change-Id: Ia6b16fcde1b1e4278a8d40c58968c44492248b69
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91443
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-01 08:53:22 +02:00
Jan Holesovsky
5c95448308 mobile: Position the hamburger icon at the right place already during load.
Change-Id: I93096a3239feccfe5268799b3fbd5544928e5372
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91442
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-01 08:52:52 +02:00
Jan Holesovsky
a17c651d6d mobile: Move the hamburger menu.
Change-Id: I33da508dc9e8c6a58e85bcca197b6cc39273619d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91441
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-04-01 08:51:12 +02:00
Andras Timar
7946f593d8 loleaflet: update pot files
Change-Id: I256b724f454ad5cbfdd10759f1b7150cd16564dd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91439
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-01 07:16:51 +02:00
Weblate
3b9447dedf update translations
LibreOffice Online/android-app (Welsh)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I56d19eaaa4d3fd12a4afeb6723b52135ab703f26

update translations

LibreOffice Online/android-app (Hungarian)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I43799c9be31c03ec6a512840f4fc9a97aeb6f7ae

update translations

LibreOffice Online/loleaflet-ui (Polish)
Currently translated at 100.0% (290 of 290 strings)

Change-Id: I60a64e29101867ace68d2e8aa22e3828626ecbae

update translations

LibreOffice Online/android-app (Slovenian)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I6041cd7a735bb7cdea036b684044470f69ba82f6

update translations

LibreOffice Online/android-app (Ukrainian)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: Iea44d2dadcc265aefd8e8d5fe1f2ee33f84a569e

update translations

LibreOffice Online/loleaflet-help (Ukrainian)
Currently translated at 60.6% (252 of 416 strings)

Change-Id: I262795efbaa30be7ef288d8af7f9ba4dc0235b4c

update translations

LibreOffice Online/loleaflet-help (Slovenian)
Currently translated at 95.9% (399 of 416 strings)

Change-Id: Ie705e945482045597f1677cc54aa937601a79dc5

update translations

LibreOffice Online/loleaflet-help (German)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: Ibdc258e2e23db38fe9766a0d07b1fcf8167ec6bf

update translations

LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 81.5% (339 of 416 strings)

Change-Id: Iafb77036828741f641182df60296dd37ac2f6907

update translations

LibreOffice Online/android-app (Czech)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I09df6904fb21373c6e92d294fcea8acf47231578

update translations

LibreOffice Online/android-app (Basque)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I621d8f94440445bff805a4a27600f3fb69e46d2c

update translations

LibreOffice Online/android-app (Indonesian)
Currently translated at 95.1% (97 of 102 strings)

Change-Id: I2f926525980e8c6f533672c2975ea126fe5b2b3b

update translations

LibreOffice Online/android-app (Polish)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I31df5c7a51d1e8c05480d84f8fe025d6a8c125c4

update translations

LibreOffice Online/android-lib (Indonesian)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I30268db36a3b94fd4c50d626e75566a685164714

update translations

LibreOffice Online/android-app (German)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: Ic8f0ae07605d102d1602303741827db9bdc3926d

update translations

LibreOffice Online/android-app (Catalan)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I7b7b5c8f92a9151299123ea99a3be039ee39017c

update translations

LibreOffice Online/android-app (Spanish)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: Ie63712564e077fe36b2362918f3ffeec503c4a6d

update translations

LibreOffice Online/loleaflet-help (Ukrainian)
Currently translated at 58.2% (242 of 416 strings)

Change-Id: I4d2e6c3af655e57ba48bdc04a9d722b4cdb26434

update translations

LibreOffice Online/loleaflet-help (Indonesian)
Currently translated at 53.8% (224 of 416 strings)

Change-Id: Ib328379d276919f08de868ba3d6b3c0bafee7cf6

update translations

LibreOffice Online/loleaflet-help (German)
Currently translated at 94.7% (394 of 416 strings)

Change-Id: I684be99f921bd9b310e1bfaa41c2ab64d98416a4

update translations

LibreOffice Online/loleaflet-help (Czech)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: I4187617a323a63b120630c6a8294119186a9d176

update translations

LibreOffice Online/loleaflet-ui (Indonesian)
Currently translated at 99.3% (288 of 290 strings)

Change-Id: Ibf104e855fad450112954dfabfdfd878ebafadb8

update translations

LibreOffice Online/android-app (Lower Sorbian)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: Ic4bbb2134810f2a3c4ac8f95ad79fa76152e2259

update translations

LibreOffice Online/android-app (French)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I27463897e79f33828039268aeabc77b8623ddf7d

update translations

LibreOffice Online/android-app (Upper Sorbian)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I4d9164df894067f70d63fa9c625a1a4e50528597

update translations

LibreOffice Online/android-lib (Lower Sorbian)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I4b52e39ed42cbeb8629ef0440b4dccb50b265b8e

update translations

LibreOffice Online/android-lib (French)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: Ic95ebba8c252d75838e9c469357f27de83ccae33

update translations

LibreOffice Online/android-lib (Upper Sorbian)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: Ibf70bf072835568baf8b89755d4135296bf0c624

update translations

LibreOffice Online/loleaflet-help (French)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: I82d4a1825e92887684a7c2694f830cc17d1f006e

update translations

LibreOffice Online/loleaflet-ui (French)
Currently translated at 100.0% (290 of 290 strings)

Change-Id: I6a29c7d4c9eef8e36e80e39b87d60b9523bd1470

update translations

LibreOffice Online/android-app (Portuguese)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: I1133caa7cc6cd226a99d6d10443ecee5ffb7e524

update translations

LibreOffice Online/android-lib (Portuguese)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I96590a23426dc7d80c7ec0ebb80fe177ea871ca2

update translations

LibreOffice Online/loleaflet-help (Slovenian)
Currently translated at 84.6% (352 of 416 strings)

Change-Id: Iab0bbd8a14b114942c62b95e1cffbd3d0b6dfaef

update translations

LibreOffice Online/loleaflet-help (German)
Currently translated at 69.2% (288 of 416 strings)

Change-Id: Ib4898fce7925346e69ce62ae2c209ce208cf3a0c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91190
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-04-01 07:16:27 +02:00
Michael Meeks
d2f6af52c0 phone: include border style setting with custom control.
Change-Id: I763b31fc1021f03d3229b6162d4e182ba0383d8a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90746
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-04-01 07:15:38 +02:00
Jan Holesovsky
9978752258 mobile detection: Create a separate device-*.css for the phone/tablet/desktop.
The problem is that the @media-based detection often disagrees with the
JS-based detection which then leads to many problems - most notably that
part of the UI behaves as if it was a tablet, and the other part as if
was a mobile phone, leading to a terrible user experience.

This commit changes it so that there is only one way how to detect if
we are on mobile phone, tablet or desktop: using the JavaScript, and we
will load the appropriate css accordingly.

Only one @media-based rule is converted as an example, the rest will
follow.

Change-Id: Id7bfb58ca12264904b3329db1542ae6b54893f11
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91416
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-31 20:31:49 +02:00
Jan Holesovsky
47d6d9eae6 mobile detection: Load the bundle.css dynamically.
So that the browser can cache the large css, instead of loading it anew
each time we are loading loleaflet.html.

Change-Id: I322bf9d62e4c899dbeffbca52aca83b6cd427ce4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91415
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-31 20:31:15 +02:00
Jan Holesovsky
117dddea3c mobile detection: Simplify the macro to write down the css files.
Shouldn't affect functionality.

Change-Id: Iff2292403297a1ed88d781d3eb8ebe44c46f32fe
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91414
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-31 20:30:03 +02:00
Jan Holesovsky
120000347e Log every error we send to the JS.
So that it is easy to find it in the log.

Change-Id: I1b367db9e97d7215c46e824998e99048531acb07
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91413
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-03-31 20:15:25 +02:00
Tor Lillqvist
b0c09e14da Add a (commented-out) way to see the initial visualViewport scale and size
Ideally it should update as the device is rotated or the document
window is resized by Split View. We should have some field somehwere
where all kinds of debugging information, including this
visualViewport information, would be displayed by simply un-commenting
a single line.

Change-Id: I7d3960440272c03040e0f4ad5dd65f49d5a98780
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91437
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-31 19:35:51 +02:00
Tor Lillqvist
7e992e4d4f Hopefully better fix for the missing w2ui-scroll-right in iOS app on iPad
Revert more of b62dcc0255, and also
revert 418181411f.

Now I seem to get a visualViewport with scale 1 and width 768
consistently, which is a relief.

Change-Id: Ia619a51047dd2a05ba32d6a203c3095198d3b4d5
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91436
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-31 19:35:20 +02:00
mert
4dad970c01 mobilewizard: style clear direct formatting button
Change-Id: If34aad5035270d542b49d07c3aa7fe100184ce19
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91418
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-03-31 17:51:39 +02:00
Tamás Zolnai
304f3e3d7c cypress: mobile: this focus test is still unreliable.
Change-Id: I10556880dfa87bc4afea0f5b76b719a5ffa658d0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91433
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-03-31 17:47:05 +02:00
Tamás Zolnai
112882a3f7 update cypress: 4.1.0 -> 4.3.0
Change-Id: Ib8d642e0ba7b02a20207c53e1134d08dc92b2840
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91427
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-03-31 17:05:05 +02:00
Tamás Zolnai
c73956e78e cypress: mobile: enable this focus related tests.
Change-Id: I1a9dd2967c4238c123c150bca04ca1e8909aeacb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91426
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-03-31 16:33:51 +02:00
Tamás Zolnai
9add51eaaf cypress: mobile: disable some number formatting tests broken on core/master.
Two issues here:
* Select All does nothing if one column is already selected.
* Three number formatting item is missing from the mobile wizard.

Change-Id: I1f3976ba01c7cf53a58e08d37a5f55f14c3f154f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91417
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-03-31 14:35:27 +02:00
Tamás Zolnai
ab10cc1c83 cypress: mobile: number formatting tests in Calc.
Change-Id: I07b919f4bc06f5f368c23b5fed014cb5011c8e68
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91411
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-03-31 13:30:04 +02:00
Tor Lillqvist
418181411f Add maximum-scale=1.0, minimum-scale=1.0 to the viewport meta tag
This seems to make the w2ui-scroll-right button appear every time, as
expected, on my 9.7" iPad Pro running the latest iPadOS. I don't fully
understand why and how, though... (It used to appear only maybe a
third of the times when one opened a text document.)

My naïve expectation would have been that having maximum-scale=1.0,
minimum-scale=1.0 in the viewport meta tag would have caused the
visualViewport object's scale attribute to be 1, and its width x height
to be 768 x 1024, i.e. exactly the same as the CSS pixel size,
screen.width x screen.height. Or at least that visualViewport.width
would have been 768. But no. visualViewport.scale is now *either*
0.9481481313705444 or 0.9733840227127075, with width x height being
correspondingly either 810 x 1059 or 789 x 1031.

Note that scale * width in both cases *does* equal the CSS pixel
width, 768. Presumably in the height direction it excludes the status
bar (the one with time, date, mobile data, WiFi, and battery state).

This change fixes the problem only in the iOS app on iPad, though, not
in Safari on iPad, against a "make run". (No idea whether the issue
with the missing w2ui-scroll-right button is even reproducible in the
Android app or in an Android browser on an Android tablet.)

Change-Id: I0735d0a79bdfe31775f694e11b3215e784ebd798
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91410
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-31 13:11:02 +02:00
Pranam Lashkari
4a05263ff8 leaflet: solved Slide previews being cut off in vertical orientation
Change-Id: Id288529d03301e5a13479fa27b96cf3c1a6f1ec1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91187
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-31 10:56:21 +02:00
mert
c4f9e4bda7 mobile: fix hyperlink on selected text
Insert hyperlink dialog does not have the selected text in the Text field.
So when you select something and want to make it a hyperlink,
you have to type the text again.
Also fixed tapping on hyperlink popup changes cursor position making editing
the link unable to edit

Change-Id: I0d00c4cf001de0f297cc2ed7e5b0f8576e1dab01
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91349
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-30 21:51:48 +02:00
Tamás Zolnai
f57fb8a91d mobile: add special icon names for spelling context menu items.
Change-Id: I9f5388a57f3f2079a0accbd8f43fc884a618af1f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91276
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-03-30 15:56:57 +02:00
Tor Lillqvist
799fee972b Clarify meaning of the mobile and tablet properties in the toolItems elements
In particular, also here "mobile" actually means "mobile phone" and
not a mobile devie in general.

Change-Id: If3bdf0ae9fa2da43364413ab08387053d67121b2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91351
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-30 12:12:41 +02:00
mert
272715a96d Fix url popups can't be clicked on browsers
Change-Id: I3c2008e06370b4b48a93b68e58ad1e45a4f75d27
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91230
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-27 18:01:27 +01:00
Tor Lillqvist
c8d15408e9 Add another "pseudo assertion"
Like in 09821236ef.

Change-Id: I10509b2ad4819a9b7f3d9c59c87ecd3bc7432d7e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91224
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-27 16:20:07 +01:00
Tor Lillqvist
60a3070b67 Avoid 'TypeError: undefined is not an object' in the iOS (and Android?) app
There is no map._clip in the mobile apps as they don't use the
internal clipboard implementation in loleaflet.

Not sure why L.Clipboard.filterExecCopyPaste() needs a check for
window.ThisIsAMobileApp as no L.Clipboard object is ever created in
the mobile apps. (See L.Map.initialize() where this._clip is not
assinged any value in the iOS or Android app cases.)

Change-Id: Ib27ec10463667091e65fd813ceb554e83c0952fb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91221
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-03-27 15:40:40 +01:00
mert
c07f4fb974 android: added context menu for the files
Change-Id: Iab18379797917ce2e8ab25ed428f6a806f5f4e7e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90944
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-03-27 15:32:59 +01:00
Jan Holesovsky
75b6178d33 user list: Centralize the check whether it should be visible or not.
This fixes the initial blink of the dropdown with '0' in there and
considerably simplifies the code.

Change-Id: Id2ca81ba4c06f417ae102f1ce60cae767e1c62cf
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91206
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-27 15:02:19 +01:00
Jan Holesovsky
592b4c2316 user list: Make sure the events are set.
The avoidance of the busy loop also avoided setting the events; so the
list of users was always showing 0 because it never got the add/remove
events.

Change-Id: I397f30ceb6f0ab305fc01b9ef1183925f30d529d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91154
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-27 13:25:16 +01:00
Jan Holesovsky
73c8b3dd53 user list: Make sure it shows in the non-wopi case.
When the WOPI does not contain the HideUserList, or when there is no
WOPI involved, we should show the list.

Makes the condititon slightly more readable too I hope.

Change-Id: I801df07e6bcae9362c36182ac88e503fbcd29513
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91153
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-03-27 11:27:24 +01:00
Pranam Lashkari
0b4c7fd66c leaflet-css: follow up for making sheet tab taller
"+" button for adding sheets aligned
sheets name aligned to center

Change-Id: Ie180ba668172ed4853bc43e49a1c143c56ef80ad
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89607
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-03-27 09:58:45 +01:00
Michael Meeks
32288ab908 Store command values for colors immediately on set.
Avoids needing to wait for a notification - if it ever comes.

Change-Id: I3d7118fa4682ebfe908dee11cdd123aafc68bd89
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91150
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-03-26 19:36:07 +01:00
Michael Meeks
5766ed7706 Re-factor JSON node searching into LOUtil.
Change-Id: Ib6e42371441b15999cad35262c07aa1e9b38c429
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91099
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-03-26 19:35:37 +01:00
Michael Meeks
877e4fd587 Allow optional color to be passed into setBorders.
Change-Id: I8a5cc57bda07d1c0671262c22b93d012f2018eb0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91098
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-03-26 19:35:24 +01:00
Michael Meeks
fa14102b3b Restore Javascript protocol logging.
If you don't want protocol logging by default in debugging builds
then either poke loolwsd.xml:

<protocol type="bool" descr="Enable minimal client-site JS protocol logging from the start">false</protocol>

Or - configure with --disable-debug and --disable-debug-protocol.

Also remove redundant and unused co-ordinate parameters to the
message queue, and logging.

Change-Id: I489e32ef4758a6f0ef35c8d8d322a402a3e268e6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91096
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-03-26 19:35:04 +01:00
Tamás Zolnai
952a7acd7e cypress: mobile: remove accidentally pushed only().
Change-Id: I78bcf632cc135a785296ece9a7e1c07070cd71ca
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91092
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-03-26 17:11:31 +01:00
Michael Meeks
795fac61dc test: run unit-copy-paste on its own to make it happier.
Change-Id: Ib6aa1f40ba346381937210e600636e8d904a4713
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91104
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-03-26 16:15:34 +01:00
Tamás Zolnai
732a69e69b cypress: use hardcoded value as WSD hash.
cypress test framework has a problem with some
specific hashes (for example: 769e98018) and it
do not pass these values to the test code, which
make all test fail with 404 error.

Change-Id: I385b1621de25fdf90e6169bdff25eaf3c18cf81e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91101
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-03-26 15:58:22 +01:00
Corentin Noël
dbaf32c627 autotools: Add support for atomic helper library
On some platforms like Raspbian Buster, loolwsd need to be linked to the atomic helper library.

Change-Id: I0a8b921d85d499040b2e65d480116cbcb14b5089
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91102
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-03-26 15:32:30 +01:00
Aron Budea
5bb2840854 loleaflet: Wrong previews after reordering slides
While the original this.options was undefined, replacing it causes
a regression.

This commit partially reverts e82878d45b.

Change-Id: I92a4338ca3bb04ed1e36664b2eaed4b7a23c7183
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91097
Tested-by: Aron Budea <aron.budea@collabora.com>
Reviewed-by: Aron Budea <aron.budea@collabora.com>
2020-03-26 12:57:26 +01:00
Tamás Zolnai
30161c9b4e mobile: don't show a dummy mobile wizard before sidebar content arrives.
If we show the mobilw wizard instantly after the mobile
wizard toolbar button is pushed, then mobile wizard will
be an empty bottom panel with an undefined content. It's
better to show the content, only after we get the
sidebar content from core.
For example, if the hamburger menu was displayed in the
bottom panel previously then we will see a white screen
first when we push the mobile wizard toolbar button. This
white screen is the background layout of the mobile wizard.

It looks wierd and also makes testing hard since we have
some wierd dummy HTML structures.

Change-Id: I852bce1ca1460b2210229bec294a249a47523099
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91062
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-03-26 12:45:35 +01:00
Michael Meeks
a73590d81f wsd: minimize wait when DocBroker terminates
Add checking up the stack to detect when we have clean queues
and buffers so we can exit fast.

Change-Id: I82c3843f816bbe869094c21f070774e6d034ac65
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90358
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-03-26 12:03:06 +01:00
Weblate
9c2f6382d2 update translations
LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 81.2% (338 of 416 strings)

Change-Id: I8b49030c370d554db036a0e186d6332a9263d0d0

update translations

LibreOffice Online/android-lib (Slovenian)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I70effac3f9908b12815c430931a2292bf5dbed5b

update translations

LibreOffice Online/android-app (Slovenian)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: Ie1fd88e1eae85134679f9f7285ab3c1420bf15ad

update translations

LibreOffice Online/loleaflet-help (Slovenian)
Currently translated at 83.9% (349 of 416 strings)

Change-Id: I53b08543ba97e157fc0e505bd98d69e1c70237a7

update translations

LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 80.0% (333 of 416 strings)

Change-Id: Ib6cedbdedcbf1c14204aae5c6a26964b99a09867

update translations

LibreOffice Online/loleaflet-ui (Slovenian)
Currently translated at 100.0% (290 of 290 strings)

Change-Id: I41024ff5c600da3f26471c00a5c06c0380b6c1ec

update translations

LibreOffice Online/android-lib (Turkish)
Currently translated at 83.3% (10 of 12 strings)

Change-Id: Ibc0f532df8170198be67b2699a8b3c265bffde23

update translations

LibreOffice Online/android-app (Turkish)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: I3ea29557fe41bc46faa7313875c095e5e45185fe

update translations

LibreOffice Online/loleaflet-ui (Turkish)
Currently translated at 99.7% (289 of 290 strings)

Change-Id: Idbe17cd7b879bd1333a6fa5554309a5a437d82a8

update translations

LibreOffice Online/android-app (Italian)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: I39c6d1dca5c9acfb51ad46dea4fa549b38b9a220

update translations

LibreOffice Online/android-lib (Italian)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I715122ed869741ae66f65efc8425b76fb024e0a8

update translations

LibreOffice Online/loleaflet-help (Italian)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: Ide96c3d2ff684e67d1121c2d9bd3268353366f54

update translations

LibreOffice Online/loleaflet-ui (Italian)
Currently translated at 100.0% (290 of 290 strings)

Change-Id: Iab76b9dfc1a8835fe8fb226e4003d73b5057782c

update translations

LibreOffice Online/loleaflet-help (German)
Currently translated at 64.7% (269 of 416 strings)

Change-Id: I121156a5f5e9832237aa4eb7ed3bd88af3d2b14c

update translations

LibreOffice Online/loleaflet-ui (Hebrew)
Currently translated at 99.3% (288 of 290 strings)

Change-Id: I39c7a2d9bbc0dc4f3fa95e406561f9b313ec9e03

update translations

LibreOffice Online/android-app (Hebrew)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: Ib11902d876161296d1694b0e456c302355523424

update translations

LibreOffice Online/android-lib (Bulgarian)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I9229d448dc8832226981faba1ccbc7a821edc396

update translations

LibreOffice Online/android-app (German)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: I9596247c4d194c758759f2e9183626e4e569f548

update translations

LibreOffice Online/android-lib (German)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I76299ef7b35754ae2ca9e7975950ad5b4ecf0424

update translations

LibreOffice Online/loleaflet-ui (Hebrew)
Currently translated at 99.3% (288 of 290 strings)

Change-Id: I7500a2968f0b2d5a108058df434632a4543e476c

update translations

LibreOffice Online/loleaflet-ui (German)
Currently translated at 100.0% (290 of 290 strings)

Change-Id: I80d34bc21e0b40f4e01d4458be57064cd7ae0013

update translations

LibreOffice Online/android-app (Swedish)
Currently translated at 14.0% (14 of 100 strings)

Change-Id: I4705a3cd09a3de1b7ee4d183980b6f1fe85f4d3f

update translations

LibreOffice Online/android-lib (English (United Kingdom))
Currently translated at 100.0% (12 of 12 strings)

Change-Id: Ice3d527ec2672769988ba26f55d20e29d5ace51f

update translations

LibreOffice Online/android-lib (Hebrew)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: Id9f4b645ce296ec177d5653397b8135f532b44e2

update translations

LibreOffice Online/loleaflet-help (Spanish)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: I954a911766bc78bd2501bcdf1dde405ed5ea20c7

update translations

LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 76.7% (319 of 416 strings)

Change-Id: I71e722ad3cd5d6602b069ef71329860c4cd8d6b9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90866
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-26 12:00:37 +01:00