Commit graph

13308 commits

Author SHA1 Message Date
Pedro Silva
9adb5095c7 Toolbar-down: fix Selectors inconsistencies, make arrows react (flip)
Signed-off-by: Pedro Silva <pedro.silva@collabora.com>
Change-Id: Ie42c11a4a63d4e9f467b65ee71a9178f695d4479
2020-11-24 11:21:23 +01:00
Ashod Nakashian
d4857b603b wsd: cleanup temp incoming directories after use
The temporary directories created for convert-to
and insertfile are used only once and should be
cleaned up to avoid clutter.

We also de-poco the temp directory creation as
it doesn't add value and do a bit of cleanup.

Change-Id: Ie1fd5b4749788ff4407f2cc886d405258f65f97a
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-11-23 21:29:34 -05:00
Ashod Nakashian
fad4222a2a wsd: move convert-to docs into the jail
We now download the convert-to files into the
child-root/tmp directory and then move it into
the jail that will convert it. This way ownership
and cleanup become contained within our child-root
and jail subsystems. This reduces the chances of
leaking convert-to files and simplifies the design.

In addition, we avoid an extra file copy and improve
the security of the convert-to API.

Change-Id: I450c24d0d0dc0da447c8072b0701c3b48d07c81b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-11-23 21:29:34 -05:00
Thais Vieira
51649f3699 impress/cypress-test: added test for font color.
Signed-off-by: Thais Vieira <thais.vieira@collabora.com>
Change-Id: Iea532287eec0f55ba09d45298f2f904753088ba6
2020-11-23 15:44:16 +01:00
Andras Timar
75947daccc docker: RHEL8: Install cpio (missing dependency needed by loolwsd-systemplate-setup)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0224e3bcabf84fb44e5ec9937bd0e765f5a64324
2020-11-23 15:22:28 +01:00
Szymon Kłos
476038d4ea Make notebookbar tabs pannable on tablets
Change-Id: I319c4bc613adcf7d00a8c51e51cfa55ede25c7ec
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-11-23 14:42:29 +01:00
Szymon Kłos
8bacb93ed6 Reload annotations after idle/reconnect
Change-Id: If124eced58e012720f26030dd27b8f432a9b9081
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-11-23 14:42:29 +01:00
Szymon Kłos
30904ec859 clipboard: use input fields if active
Change-Id: Ic6c84681d79af936c3f2e9d0ca983ecbb100e6fb
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-11-23 14:42:29 +01:00
Szymon Kłos
dedcde3217 Prevent flickering on annotation switch use
When scroll down button was used the view was jumping
on every use what caused flickering.

Change-Id: I16de0e9d01c9d025977edc6affc16de4bd098b49
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-11-23 14:42:29 +01:00
Szymon Kłos
86c16392b8 Accept changes tracking entries in context menu
Change-Id: Ic7700f32ab93e0150ad2242dd178a767c9e1d109
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-11-23 14:42:29 +01:00
Szymon Kłos
c6515621a9 notebookbar: add conditional formatting submenu
Change-Id: Ife366608c5605f96995e95a12352e4e70d4b04bb
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-11-23 14:42:29 +01:00
Ashod Nakashian
f60753a951 wsd: misc cleanup
Change-Id: Ief6cbc40ef2f7d98b0b76477109332676dab45b2
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-11-22 22:26:36 -05:00
Ashod Nakashian
f665816812 wsd: getTempFilePath -> getTempFileCopyPath
These helpers are for testing only. They should
ideally be moved to the test helpers, but because
of dependency on the FileDeleter in FileUtil they
remain in FileUtil.

Change-Id: I93c7e08823edec8f6a53419f0a6596f3255f23f9
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-11-22 22:26:36 -05:00
Ashod Nakashian
3724ab4e35 wsd: centralize temporary directory helpers in FileUtil
Change-Id: I9b55d0b8d4c55a68af4baa7e638627de6c73b64d
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-11-22 22:26:36 -05:00
Andras Timar
93870d7e08 typo in docker/README
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I134187c8f88aa115796d850be2c6d9b0e29bc8a1
2020-11-22 22:41:42 +01:00
Andras Timar
06623247f0 typo in docker/README
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib9305de89421540f6341d96318f639dde100b69b
2020-11-22 22:40:02 +01:00
Andras Timar
34b8ff08f6 Docker bits
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4b4d8f9d6ccb8648d5d75e6abff751d1b37e8773
2020-11-22 22:19:34 +01:00
Ashod Nakashian
054ab5f61f wsd: specialize thread ID serialization
On non-Linux systems we should default to std:🧵:id
which needs to be serialized using ostream interface.

While Util::getThreadId does specialize for Linux, the
code using it doesn't always handle the different return
types.

While std:🧵:id is the standard interface to the
thread ID, using such abstraction has proven to be costly
when converting the thread ID on each and every log via
ostringstream (due to the cost of memory allocation).
In practice Linux is the primary and so far only platform,
so the getThreadId is optimized for it. Other systems
can either use the default std:🧵:id, or can also
specialize as necessary.

Change-Id: I91cf279a8fdff12636a534957db5069dee51bd65
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-11-21 19:49:46 -05:00
Gleb Popov
854065200c Do not try to convert std:🧵:id to integer value.
This is not allowed by the standard and libc++ is more stricter than libstdc++ on that matter.

Luckily, the conversion is used to turn it into a string, so just use stringstream to convert the thread::id directly.

Signed-off-by: Gleb Popov <6yearold@gmail.com>
Change-Id: Iea1a844a086b7fe7ed4703fd06e1d538d5d0bc43
2020-11-21 19:49:46 -05:00
Andras Timar
3f81bfd987 Add /var/log (default log path) to ReadWritePaths of loolwsd.service (fixes GH #739)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I47e8a0983fd74656739498bf02bad117e821cfbf
2020-11-20 20:19:43 +01:00
Tor Lillqvist
82287c2ad2 Ignore pan gestures while selection handle is being dragged
Fixes https://github.com/CollaboraOnline/online/issues/398 .

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I7ce26a45f2487ad18351ff382283b5c5167985c6
2020-11-20 18:21:28 +02:00
Tor Lillqvist
0407b86a17 Avoid on-screen keyboard never returning if dismissed explicitly
Fixes https://github.com/CollaboraOnline/online/issues/505 .

Change-Id: I4f42d716ad3e7455f5117f8031924536c6100bb3
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2020-11-20 18:21:28 +02:00
Pedro Pinto Silva
c804625b52 StatusBar: InsertMode: differentiate between insert and overwrite mode
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I602b78823d45e8ce13f641515669a70016c8c88f
2020-11-20 16:44:45 +01:00
Andras Timar
4b29a54803 loolmount requires cap_sys_admin
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic7df285bacc684af4167c8f2301118341e859d0f
2020-11-20 09:20:16 +01:00
Tamás Zolnai
01813eceec cyperss: php-proxy: Undo / Repair test passes now.
Change-Id: I17293ecc2f1490855cc1a217776b8c853c8c974c
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 13:47:24 +01:00
Tamás Zolnai
db1584c664 cypress: avoid unintentional resizing.
We use simple cy.click() on mobile, we might
get a better result to use a different way for
tap on document in the future.

Change-Id: I4b0c6989aaf105ae79be930ffc54898414efb92a
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 13:47:24 +01:00
Tamás Zolnai
50df517e65 cypress: NC: these log configs are not necessary anymore.
Change-Id: Iafa7f6f415d336b8b281bd7df528ec4baf2ec2a4
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 13:47:24 +01:00
Ashod Nakashian
1f24489db6 wsd: retry jail cleanup if it fails
It is possible for the jail directory cleanup
to fail, if there are still references to at
least one file in the jail. In those cases we
keep the jail path around so we can retry the
next time we cleanup a jail. This reduces
the chance of leaking jails until restarting
the service.

Change-Id: If6116ef598afc91063de71c66870bd6426a971ba
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-11-19 10:12:38 +00:00
Ashod Nakashian
3382dad05c wsd: const correctness and string ctor instead of literal
Change-Id: Id6b9ca28b09d11344d47099a2244e189afe14841
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-11-19 10:12:38 +00:00
Tamás Zolnai
9c98f326fe cypress: multi-user: improve interfering prototype a bit more.
Instead of hard coded test file, we use the admin
console to find out which test document we should
open with the interfering user.

Change-Id: Iedaea07eb558ca6335d8768ab23799bf02d7f4a7
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 11:02:29 +01:00
Tamás Zolnai
e085455ddf cypress: multi-user: improve interfering prototype a bit.
Use comment as syncronization point.

Change-Id: I5a959b3c89f445a150ddb970241d1188366cb00b
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 11:02:29 +01:00
Tamás Zolnai
f399beaf65 cypress: multi-user: avoid running more tests in parallel.
We have more users running already for one test, better
to avoid side-ffects coming from running more multi-user
test in parallel (they are using the same loolwsd).

Change-Id: I1cbed36a3ffe2825c384b525da361c4cfe781b38
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 11:02:29 +01:00
Tamás Zolnai
0f5042f76f cypress: multi-user: move retries config to a shared place.
Change-Id: I7939395b88c7a74a1e0016ec78c95ef46a5a31ec
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 11:02:29 +01:00
Tamás Zolnai
9ff0f3e9fe cypress: multi-user: move this document opening gap to the make file.
Change-Id: Ib37d8d29e8965712975e27a4577a4f1b6a0e35a0
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 11:02:29 +01:00
Tamás Zolnai
e066d047ea cypress: NC: improve iframe handling a bit.
Create an alias for the iframes, so we don't need
to find them every time, but we can use the
reference to them. It make the log more clear
and also makes things faster.

Change-Id: I6ca21f951568e46cec3d6a574ce1798b522067ea
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 10:07:20 +01:00
Tamás Zolnai
a67bf6198f cypress: NC: remove this check.
It does not work correctly in NC environment.

Change-Id: I1358f0f80aa05ddb118fc1cfd4237a5fac875fcc
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-19 10:07:20 +01:00
Szymon Kłos
3df31945b3 notebookbar: retry to initialize
Change-Id: I978a3c5c5338fcb96798a220400e020ef2dfec26
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-11-19 09:03:33 +01:00
Szymon Kłos
5067b6c5f2 notebookbar: provide default style previews
Change-Id: I41748e5792ba9a451d4a9e49ee9d56806ab296c8
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-11-19 09:03:33 +01:00
Szymon Kłos
dfa6443bfd Use correct position for sidebar tooltips
Remove leftovers after old tooltips

Change-Id: I935285150ed35c922fbcddbe7ff3af9a7c07fd34
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103682
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-11-19 09:03:33 +01:00
Cor Nouws
791fb14164 Translated using Weblate (Dutch)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (17 of 17 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (107 of 107 strings)

Translated using Weblate (Dutch)

Currently translated at 62.8% (262 of 417 strings)

Translated using Weblate (Dutch)

Currently translated at 88.7% (316 of 356 strings)

Co-authored-by: Cor Nouws <cno@nouenoff.nl>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
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: I0dd3ffd91480a2c25ab87be1785bb0fdc4c4c806
2020-11-19 08:44:58 +01:00
Weblate
e2b744a434 Added translation using Weblate (Czech)
Added translation using Weblate (Croatian)

Added translation using Weblate (Dutch)

Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5a00860c775611ee90ede5f0f22c56762af0b7ec
2020-11-19 08:44:23 +01:00
Milo Ivir
bac717c400 Translated using Weblate (Croatian)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Croatian)

Currently translated at 100.0% (17 of 17 strings)

Translated using Weblate (Croatian)

Currently translated at 100.0% (107 of 107 strings)

Translated using Weblate (Croatian)

Currently translated at 67.6% (282 of 417 strings)

Translated using Weblate (Croatian)

Currently translated at 100.0% (356 of 356 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7a9155c22b448bf6ddda1b6790c88a2f76720a41
2020-11-19 08:44:02 +01:00
Pedro Pinto Silva
8f1d71902b Mobile-wizard: Fix disabled btn contrast and re-use vars
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic90464d225aa40f464159a22c4cd7c62884a5592
2020-11-18 18:04:15 +01:00
Pedro Pinto Silva
3b9748bc80 Mobile: toolbar-down: Remove unnecessary down-sizing of active icons
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib12420fc5e2807e1e3f49abfe6d829f781fe381c
2020-11-18 18:04:04 +01:00
Aron Budea
b59fa6b753 Sync loolwsd.service between '/' and 'debian/'
One is used in Debian-based installs, other is used in the rest.

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: If21c5d70cb8bb738931c3cd05bd4c5c732f394f7
2020-11-18 16:14:17 +01:00
Pedro Pinto Silva
d5c0e17f08 Toolbar: differentiate close btn as a top action from the sidebar toggles..
- Fix redundant values and declarations
- while keeping the style the same across different platforms (desktop, tablet)
- while account for different parent's background (notebookbar)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I501cb0137282682980864d980571429ded8cf6c1
2020-11-18 14:51:55 +01:00
Tamás Zolnai
797139ed0f cypress: extract selectListBoxItem2() method.
Change-Id: I3be28686d19c5bc174b1a2f83fe9a849239756b2
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-18 14:05:12 +01:00
Tamás Zolnai
eea13adc99 cypress: extract checkDialogAndClose() method.
Change-Id: Ib5f2d7c7304390e660ec36878fe060e4f39a9312
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-18 14:05:12 +01:00
Tamás Zolnai
8f9f044865 cypress: extract selectListBoxItem() method.
Change-Id: I4dcc1d77f20955ee9bd425d447a3fb77f1a423f5
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-18 14:05:12 +01:00
Tamás Zolnai
c8166c3a04 cypress: simplify these border tests.
Change-Id: I43ba769f9952c8286a0c190342d382359d23c703
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-18 14:05:12 +01:00