Commit graph

13106 commits

Author SHA1 Message Date
Tamás Zolnai
9fdfefe3a8 cypress: extract selectFromListbox() method.
Change-Id: I58da02f2a082e3683da62022c3bf9cb656621cb5
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-18 12:04:22 +01:00
Tamás Zolnai
d38360ff74 cypress: extract selectColorFromPalette() method.
Change-Id: I6ce70b2ee51dde2c6449236d911519776f75f892
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-18 12:04:22 +01:00
Tamás Zolnai
3b9e202213 cypress: selectAllMobile() -> selectEntireSheet().
It was a mobile only helper method originally
and I forgot to update the name when moved in
into a bigger scope.

Change-Id: I818cbebadba4152afb8e0261015734a232b0e211
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-18 12:04:22 +01:00
Tamás Zolnai
c91ca12d71 cypress: this wait() is not needed anymore.
Calc helper methods were improved in the
meantime.

Change-Id: I9c464cd9d23ce4a70fa63d376619458f38cc1389
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-18 12:04:22 +01:00
Ezinne Nnamani
342f95f490 Created a cypress test for Apply horizontal borders, Apply all inner and outer borders in Desktop Calc
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: I0298ed82345ea4e8541645b91d23167e64077cd4
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-11-18 11:38:30 +01:00
Gleb Popov
12cd5affc1 Reuse __linux__ code path in __FreeBSD__ case too.
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Change-Id: I153e4e9cce881d356376c143503933642e61c32a
2020-11-18 10:21:39 +00:00
mert
26c5868c88 Use only ThisIsAMobileApp control
Change-Id: I663fb4a1a108d78eec7bc4d3bc0c07eba294173c
Signed-off-by: mert <mert.tumer@collabora.com>
2020-11-17 21:03:17 +03:00
mert
31add21290 Android: Fix Cut/Copy/Paste keyboard shortcuts not working
This patch will apply for Chromebook cases and also
other keyboard connected android devices as well.

Change-Id: I4d88a65ec49935640be6513498b87718b50977f5
Signed-off-by: mert <mert.tumer@collabora.com>
2020-11-17 20:18:08 +03:00
mert
740f6e6220 Android: Pass userInterfaceMode
This will enable notebookbar for tables
smaller devices will continue on classic mode

Change-Id: Ib74b8a0ad161d83300d807fff1fd8b3ffba11399
Signed-off-by: mert <mert.tumer@collabora.com>
2020-11-17 19:51:06 +03:00
Tamás Zolnai
7dfe079903 cypress: update this formulabar test.
To make it more stable.

Change-Id: Ib9c8878bdf266733ec03eb3ba018035b115c7f7d
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-17 17:37:14 +01:00
mert
66d1dcc87a Android: detect large screen devices for tablets
There's no built in detection for tablets and
the suggested way to to it by adding resource values
for large screen and checking it.

Change-Id: Ic4a949033e04d244dbb6d441df516203639d5c48
Signed-off-by: mert <mert.tumer@collabora.com>
2020-11-17 19:24:21 +03:00
mert
99d6ea7df5 Adjust Sidebar Button offset next to X button for tablets
Change-Id: I97d05a9d831e4e8d30c0257ca6f1cf66ecf6c742
Signed-off-by: mert <mert.tumer@collabora.com>
2020-11-17 19:23:19 +03:00
mert
259600625a Sidebar should be closed when entering readonly mode
Change-Id: I2eb4cbcd209c367a7f9a384a4745e244e8c64f30
Signed-off-by: mert <mert.tumer@collabora.com>
2020-11-17 19:23:04 +03:00
mert
32ffadf75e Show/hide tabs on permission change for Tablets on Notebookbar
Change-Id: I387d19a33c5682eef890cc9a9fb0283238ecbde9
Signed-off-by: mert <mert.tumer@collabora.com>
(cherry picked from commit 1bda946b1c48608026ed07848a05ced664cc61e8)
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2020-11-17 19:22:46 +03:00
mert
bbb3f02d71 Create OptionsSection for all tablets on Notebookbar
Change-Id: I2447d2662c4c092ae938794c3bbfff134df02710
Signed-off-by: mert <mert.tumer@collabora.com>
(cherry picked from commit cc163ee0ce252459ed7244c6b27b28d4cea259f1)
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2020-11-17 19:22:30 +03:00
mert
6ac5608231 Don't initialize Menubar button for tablets on Notebookbar
Normally when waited enough before pressing the blue edit button
it will be removed but tapping on the button early before the
notebookbar initialization it stays visible.

Change-Id: If3536702319f029232ebd53315796f1618f56241
Signed-off-by: mert <mert.tumer@collabora.com>
(cherry picked from commit 1fc42dc390cada852bcafb74c9aab7cf7763f69e)
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2020-11-17 19:21:55 +03:00
mert
bd28aedcaf Android: create new document labels are tappable now
Change-Id: Ie24817ac0770516b50256da04a362c87fca3b0d4
Signed-off-by: mert <mert.tumer@collabora.com>
2020-11-17 19:21:26 +03:00
mert
820021f2bd Trackpad scrolling on Chromebook
Change-Id: Iaccda3e98cca17dbd9a2099293ccbc15e434d8f1
Signed-off-by: mert <mert.tumer@collabora.com>
2020-11-17 19:21:02 +03:00
Thais Vieira
bbf7b33ca6 cypress_test/impress: Add test for underline
text shape.

Signed-off-by: Thais Vieira <thais.vieira@collabora.com>
Change-Id: Ia71b891d78bf621aec24d90e105fed1b32152528
2020-11-17 14:57:20 +01:00
Ihor Hordiichuk
91a0c06883 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (17 of 17 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (107 of 107 strings)

Translated using Weblate (Ukrainian)

Currently translated at 65.4% (273 of 417 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (356 of 356 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/uk/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/uk/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/uk/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/uk/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/uk/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/CODE welcome text
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5f95d91ad73f9e16883e430cf6c2d95c3e4d7954
2020-11-17 14:22:09 +01:00
Matthaiks
05b33bb36e Translated using Weblate (Polish)
Currently translated at 100.0% (356 of 356 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (356 of 356 strings)

Co-authored-by: Matthaiks <kitynska@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1feeb18916d0486c746bbd306f50f17eeb8007cb
2020-11-17 14:21:00 +01:00
Allan Nordhøy
a110ff6258 Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (356 of 356 strings)

Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nb_NO/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia7eab132ad6957df0f30afdae33fdb63ff959e6b
2020-11-17 14:21:00 +01:00
Rob Pearson
3f015e62f1 Translated using Weblate (English (New Zealand))
Currently translated at 100.0% (356 of 356 strings)

Translated using Weblate (English (South Africa))

Currently translated at 100.0% (356 of 356 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (356 of 356 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (356 of 356 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_ZA/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib6ce73b0353c1d81de7eabbe927a470752dff19b
2020-11-17 14:21:00 +01:00
mert
410c8caf3a fix auto-hiding shelf can obscure the FAB on ChromeOS
1) FAB button size has been increased to 70dp (56dp default)
2) Given 24dp margin from bottom
3) Its now placed in the bottom-center of the screen

This way it is now visible clearly with auto-hiding shelf
and ChromeOS notifications

Change-Id: Ia53c6621f2758366d04a79fe19f5cb89aaa80de5
Signed-off-by: mert <mert.tumer@collabora.com>
2020-11-17 16:17:09 +03:00
mert
b949c8bc14 Chromebook: fix unable to re-gain textarea focus
This is a regression started after:
b5bd8e1e0ef0d6f8b7c32b106e7eb611977a291d
!isChromebook() control added here accidentally

Change-Id: I0d774fdeadb30960413aa1b975145ed78ec7b20d
Signed-off-by: mert <mert.tumer@collabora.com>
2020-11-17 16:16:48 +03:00
mert
fb8f867625 ChromeOS: Fix loosing textarea focus when using arrow keys
Change-Id: Ieec5779cfbb6c864279ad4f725ed10a1860ce7a5
Signed-off-by: mert <mert.tumer@collabora.com>
2020-11-17 16:16:20 +03:00
Jan Holesovsky
94e9caffff android: Fix paste of plain text.
Without this, this scenario:

* in the browser's input line, tap, and use the "copy" icon
* open Collabora Office, long-tap, "paste"

lead to paste like ??#h#t#t#p#:#/#/#t#h#e#.#u#r#l

The actual fix is the usage of UTF-8; but at the time it is safer to
iterate over the mime types, so do that when I'm touching this code.

Change-Id: I62b7958f7fbc07acac4245465bc489fc86f202c3
Signed-off-by: Jan Holesovsky <kendy@collabora.com>
2020-11-17 15:11:46 +03:00
mert
74fe525f94 Fix Chromebook text input focus issues
This fixes various of focus problems related to
writing. We have a hack for mobile devices for
hiding onscreen keyboard and to do that, we blur the
TextInput. But it is not relevant for Chromebooks despite
being a mobile app.

Also fixes calc text input problem, now theres no need to
double tap on a cell to write.

Change-Id: I674a3d553e130c34211c04ad0ebcb6401b462412
Signed-off-by: mert <mert.tumer@collabora.com>
2020-11-17 15:07:00 +03:00
mert
5418b4b19b Make AutoSpellChecking option state remembered on first start
Change-Id: I25823025e35ba6f580b03834979fb0bea616bcc1
Signed-off-by: mert <mert.tumer@collabora.com>
2020-11-17 14:55:31 +03:00
mert
b0a7532b08 Turn off broadcast on presentation preview tiles
We don't need to broadcast for all users since
when there is a change, invalidation is sent for update
to each user. This causes a re-render for all the users
unnecessarily.

Change-Id: I071573bf0c85d16b36aeb94398cc6a5c2fcbd8ca
Signed-off-by: mert <mert.tumer@collabora.com>
2020-11-17 14:48:55 +03:00
Thais Vieira
062f43dfa7 impress/top_toolbar: Add Cypress test for italic attribute on desktop.
Change-Id: I7cf9e31beba87cd12d562b0e899b83c895ba68d7
Signed-off-by: Thais Vieira <thais.vieira@collabora.com>
2020-11-17 12:29:40 +01:00
Ezinne Nnamani
e350557c94 Created a cypress test for Apply top and bottom border and Apply border for all sides in Desktop Calc
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: Ic24f19c298cd2577f18c961b6a0a596034756445
2020-11-17 12:14:11 +01:00
Gleb Popov
f7faaad790 Replace all __linux in CPP conditions with __linux__.
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Change-Id: If3e213b1cf1f3c4ab960276fc6edfb71f9416420
2020-11-17 09:21:45 +00:00
mert
4a1191003f Rotate watermark pixels by 45 degree
Change-Id: I8fac121f94c127518aadd10a6eac4c9f0e496242
Signed-off-by: mert <mert.tumer@collabora.com>
2020-11-17 08:25:15 +03:00
Ashod Nakashian
b47148ec16 wsd: log the socket id on websrv_poll
Otherwise, there is no way to know which connection
a given log belongs to, when websrv_poll handles
multiple simultaneous connections.

Also removed a duplicate log entry.

Change-Id: Id74e6e7b66062daf15a716b9fea8e7995fd75af0
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-11-16 23:46:08 -05:00
Tamás Zolnai
cc85a51eeb cypress: workaround an issue of afterEach() hook.
For some reason, assertions do not work properly
in afterEach hook after a test failure. So in case
of test failure we don't check the admin page,
whether the test file was actually closed, but we
just wait a constant time.

Change-Id: If2eb927b0383816639689ec67eef7e3cd1142366
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-16 17:50:15 +01:00
Tamás Zolnai
3f4468a497 cypress: merge some selection helper methods.
To reuse as much code as we can. We can use the same
method on mobile and on desktop.

Change-Id: I15b1038313145db6cb6ea07489c0d30a0fc2ce64
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-16 17:50:15 +01:00
Ezinne Nnamani
8bcde166cd Created a Cypress test for Left and Right border, Top border, Bottom border
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: I3c1d920c9d05b44dda5172ec67226072675ba892
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2020-11-16 17:29:31 +01:00
Gleb Popov
78904302da Do not call non-standard std:🧵:id constructor.
Change-Id: I916f7ba28bc9a52fa3c601fd695ff8146c1712a1
Signed-off-by: Gleb Popov <6yearold@gmail.com>
2020-11-16 14:02:23 +00:00
Gleb Popov
3ee1ee0b50 AdminModel.cpp: Fix build with libc++.
Change-Id: I46a5d8a44c9d329d52ef355f228be63b8af06947
Signed-off-by: Gleb Popov <6yearold@gmail.com>
2020-11-16 14:02:23 +00:00
Gleb Popov
92c0d375eb Port mount.cpp to FreeBSD.
Change-Id: I1fbce01d3c69c0eeab20a66e1d608a87b316f9f5
Signed-off-by: Gleb Popov <6yearold@gmail.com>
2020-11-16 14:02:23 +00:00
Gleb Popov
7f0b19baa7 map.cpp: Add an implementation of glibc-specific error() function.
Change-Id: Ib7b87ed27a27b050d38b9c51c0c8d7a7fca32973
Signed-off-by: Gleb Popov <6yearold@gmail.com>
2020-11-16 14:02:23 +00:00
Gleb Popov
8c6cbedd58 Socket.cpp: Use LOCAL_PEERCRED flag on FreeBSD instead of SO_PEERCRED.
Change-Id: I3e53f3af102b11f0dd51b8c8d97c3367d83fd09e
Signed-off-by: Gleb Popov <6yearold@gmail.com>
2020-11-16 14:02:23 +00:00
Gleb Popov
57eab254ca On FreeBSD, link to libexecinfo and libz from base. Require 3rd-party libiconv.
Change-Id: Id8ca0524d3a557e284897665d0e48de933d131d3
Signed-off-by: Gleb Popov <6yearold@gmail.com>
2020-11-16 14:02:23 +00:00
Gleb Popov
55ed321a1c Implement SslContext::id() for FreeBSD systems by calling pthread_getthreadid_np().
Change-Id: I9d92837dd35c5386222c2644ece9693d7bbb1535
Signed-off-by: Gleb Popov <6yearold@gmail.com>
2020-11-16 14:02:23 +00:00
Gleb Popov
aa97476f07 Util.cpp: Do not call setpriority for thread handles on non-Linux systems.
Change-Id: I50cdc429cd606e261c70219e51587a54a269b082
Signed-off-by: Gleb Popov <6yearold@gmail.com>
2020-11-16 14:02:23 +00:00
Gleb Popov
3930ea86a3 FileUtil.cpp: Fix building on FreeBSD.
Change-Id: Ifed1e69284724c702b53c5fbf6940c821421cdbb
Signed-off-by: Gleb Popov <6yearold@gmail.com>
2020-11-16 14:02:23 +00:00
Gleb Popov
414dd5de58 Seccomp.cpp: Fix building on FreeBSD.
Change-Id: Ie492e1f184bf1a2255a7ab03a9d61ecdca116560
Signed-off-by: Gleb Popov <6yearold@gmail.com>
2020-11-16 14:02:23 +00:00
Gleb Popov
a90bbc9223 Log.cpp: Extend #ifdef conditional to FreeBSD case.
Change-Id: I8aa4a7da9e43a606e1555a1751dd5d710d290ce8
Signed-off-by: Gleb Popov <6yearold@gmail.com>
2020-11-16 14:02:23 +00:00
Gleb Popov
333a70c05e Kit.cpp: Fix build on FreeBSD and use cap_enter() to constrain the process rights.
Change-Id: I9dbf143a11fcea9c59fb5294db74208619defa0c
Signed-off-by: Gleb Popov <6yearold@gmail.com>
2020-11-16 14:02:23 +00:00