Commit graph

17677 commits

Author SHA1 Message Date
Mert Tumer
03cd38dc5e notebookbar: Send statusbarchanged event after the visibility changed
Adding or removing class selected looks incorrect even though it
works this way because of sending the event before we change its visibility
but the correct way should be sending it after we change its visibilty

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ibe7b48d6c4b421bd914f833883e866894366f022
2022-02-11 10:35:35 +01:00
Mert Tumer
bcef4fb807 notebookbar: fix toggle ruler state on change
We must send additional ruler state when we read
the ui defaults also class selected must be added or removed the other
way around. The rulerchanged event was sent before the correct
place and that was why it was made the opposite now it is sent
after we change the visibility.

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I8e59003fef433e6692f02e144223c4e0ee833330
2022-02-11 10:35:35 +01:00
andreas kainz
c0cab4b398 Sidebar Calc Number Format
Alignment the spinfields and the dropdown menues

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I2a9cd9e2032391d7b22034568137ffe33f069225
2022-02-11 09:20:51 +01:00
andreas kainz
a94674a17e Sidebar Calc Cell Appearance smaler height usage
The cell Appearance in calc sidebar show the following commands:
- background color
- border arrange with border width
- border color

in master there is a lot of vertical space used
without additional feature
so the height was shrinked to one row only

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I0831995ccfc18bc6625304d8faeb65fae0fea9f2
2022-02-11 00:53:19 +01:00
andreas kainz
db2f0afdce Sidebar Writer Table Edit Panel
In the writer Sidebar at the Table Panel
the items from the second row will be left
aligned so no flex-end is needed.

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I315115d4776d8431cf6df2112970651f9f36bbd3
2022-02-10 21:48:31 +01:00
andreas kainz
9e2690d198 Sidebar alignment fixes
move #table-indentfieldbox for better alignment

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I5238c6efda7d58d8eb7612eb91329ac9b45d11db
2022-02-10 21:46:57 +01:00
Andras Timar
5c62b71aa0 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I09a84b34f0919f845c9b8b1934b3119bc07cbe33
2022-02-10 10:34:13 +01:00
Weblate
33b44156c4 Added translation using Weblate (Breton)
Added translation using Weblate (Breton)

Added translation using Weblate (Breton)

Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie1a576fe5ff490422472103579b3b7a1a40222f5
2022-02-10 10:27:26 +01:00
Linda 'linigrhf' Ayasing
6805a7ea60 Translated using Weblate (Breton)
Currently translated at 11.7% (52 of 443 strings)

Added translation using Weblate (Breton)

Co-authored-by: Linda 'linigrhf' Ayasing <linigrhf@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/br/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Icb0c771e909d86af41b950621c88d0a58b7523a5
2022-02-10 10:27:26 +01:00
bruh
af69582c4b Translated using Weblate (Vietnamese)
Currently translated at 100.0% (443 of 443 strings)

Co-authored-by: bruh <quangtrung02hn16@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/vi/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6a5020f765bb4ce3a30460e8412ac28fef6d87f3
2022-02-10 10:27:26 +01:00
Rob Pearson
b5792379a8 Translated using Weblate (English (South Africa))
Currently translated at 100.0% (443 of 443 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (443 of 443 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (443 of 443 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (443 of 443 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: I311868beba3ac97ad3652958813d7766c527fff3
2022-02-10 10:27:26 +01:00
Simon T
40503588fa Translated using Weblate (Danish)
Currently translated at 81.7% (362 of 443 strings)

Co-authored-by: Simon T <simonpmt@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/da/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If725530fe9fdc8f8c52c668bad50d9488d991afc
2022-02-10 10:27:25 +01:00
Sebastiaan Veld
0d3923d549 Translated using Weblate (Dutch)
Currently translated at 67.3% (308 of 457 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (443 of 443 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Co-authored-by: sebastiaanveld <sebastiaan.veld@gmail.com>
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/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iae776b508106a7a947015b11fd09e3fdb8ad6d90
2022-02-10 10:27:25 +01:00
Adolfo Jayme Barrientos
bf77113bef Translated using Weblate (Spanish)
Currently translated at 100.0% (443 of 443 strings)

Translated using Weblate (Catalan)

Currently translated at 96.6% (428 of 443 strings)

Translated using Weblate (Asturian)

Currently translated at 42.8% (190 of 443 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ast/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/es/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2cbd6b7f7ee5d7075d9d3e06d09f806bf4807cb9
2022-02-10 10:27:25 +01:00
Andras Timar
a12f5a85e0 Translated using Weblate (Arabic)
Currently translated at 100.0% (443 of 443 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ar/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I04f80acca4a2d29602492076845f9361528cb814
2022-02-10 10:27:25 +01:00
Riyadh Talal
d45b01abf5 Translated using Weblate (Arabic)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Arabic)

Currently translated at 100.0% (22 of 22 strings)

Translated using Weblate (Arabic)

Currently translated at 29.0% (32 of 110 strings)

Co-authored-by: Riyadh Talal <riyadhtalal@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ar/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/ar/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/ar/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2e875b2393ebc278ef4897b86222b8af28349a7e
2022-02-10 10:27:25 +01:00
Rizal Muttaqin
ea410dfe0e Translated using Weblate (Indonesian)
Currently translated at 61.9% (283 of 457 strings)

Translated using Weblate (Indonesian)

Currently translated at 60.3% (276 of 457 strings)

Translated using Weblate (Indonesian)

Currently translated at 99.7% (442 of 443 strings)

Translated using Weblate (Indonesian)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Indonesian)

Currently translated at 100.0% (22 of 22 strings)

Translated using Weblate (Indonesian)

Currently translated at 100.0% (110 of 110 strings)

Co-authored-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/id/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/id/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/id/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/id/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/id/
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: Icec67624c6708940bf0766ead1b52560e1c4df42
2022-02-10 10:27:25 +01:00
Andras Timar
3464b2f932 Bump package version to 21.11.2.0 (debian/changelog)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I25bd500f433e9bf44f0be2e191a3378439d828fa
2022-02-10 10:26:39 +01:00
Andras Timar
6602c7b407 Bump package version to 21.11.2.0
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I66a6f03fea76c49596dddfef4ad621229ff82858
2022-02-10 10:12:59 +01:00
Andras Timar
384d29cba0 disable LanguageStatus dropdown in readonly mode, because readonly user can't change Language
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I46ee87c89f5e0271aae1649794f674d038242b7a
2022-02-10 10:12:03 +01:00
Rash419
cd34d9b531 cypress: temporarily disable few NB tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Iae5ea1f891a149e49aea0cdea3fcd25317877c06
2022-02-10 14:12:28 +05:30
Ashod Nakashian
af77b68d97 wsd: limit store failure when unloading
When saving and/or uploading fails, we have
to give up after a certain number of retries.

A new config entry, per_document.limit_store_failures,
controls the number of consecutive failures
before giving up. This prevents locking-up
documents while uploading.

Includes a new unit-test.

Change-Id: I1296df1691fcaa982df9e861d34cb946a2eda860
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-09 19:35:19 -05:00
Ashod Nakashian
6c2fe26e3f wsd: count save and upload failures
Change-Id: Ifaae1fb1f28e7c25b359fff313b570c9ed8cf224
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-09 19:35:19 -05:00
Ashod Nakashian
30c0ec88cf gitingore: .clangd and .cache
Change-Id: I59f978ae46d25ed131f2731cb1c6580cb1606ac4
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-09 19:35:19 -05:00
Ashod Nakashian
203a58f6d8 wsd: test: add SaveOnExit test
Refactor UnitWOPIDocumentConflict.cpp into
WOPIUploadConflictCommon.hpp and reuse for both
DocumentConflict and SaveOnExit tests.

Change-Id: I54ec1e37e5e9c6298b12a2b2e596363683fb2e34
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Ashod Nakashian
251df512ec wsd: test: add discarding after closing test to DocumentConflict
Change-Id: I9b2d100c4fcbeaa0def99332b71d8b22c51812f3
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Ashod Nakashian
4476818b86 wsd: test: rework and extend UnitWOPIDocumentConflict
Now we have multiple document conflict scenarios
that exercise different states of DocBroker and
verify correct behavior in all cases.

Change-Id: Ia1a65be686a0899776799c82c1ebfd405c92dcab
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Ashod Nakashian
2f19b8bdef wsd: merge unloading logic and centralize
Change-Id: Idfae52b5f76ef26795a57af646eef7c4a0e44b0b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Ashod Nakashian
ee7679ad8e wsd: reuse autoSaveAndStop for consistentcy
Change-Id: Ia58b490e0c580c8684c75baa9122fb3fa45562c5
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Ashod Nakashian
d8c2578ec4 wsd: detect storage conflict with no clients
When the last client connection is closed,
there is UI (or user) to provide input
on the document conflict dialog. In this
case, we detect that the situation is final
and unresolvable and we simply give up.

We log a warning and dump the document state
before terminating.

Change-Id: I111a446b8743a0d16b7ed8b39751a419036c927f
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Ashod Nakashian
2d7e4da181 wsd: do not force uploading when in conflict
When the document has been changed in storage,
we should be extra careful not to inadvertently
clobber it because we needed to force the
upload for some unrelated reason.

When in conflict, only a user can force clobbering.

Change-Id: I498a6d1c86242b059ac722d3e48c31a04a79591b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Ashod Nakashian
26b6cd4463 wsd: improved removeSession
Since we track active sessions in removeSession,
it's possible that the last session is not active.
In that case, we should set the unload flag while
saving. If we've removed it, we should mark to
destroy. And finally, we should only assert
that mark to destroy is set with active session,
not when we are left with disconnected ones.

Change-Id: I275aeafe67875fa75e0fad5438928f2f77b79a9a
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Ashod Nakashian
d9a3a42137 wsd: wait for the modified flag before giving up
By waiting at most 2 seconds, we improve the chances
of getting the ModifiedStatus=false before we termiante
the document. This minimizes the noise of warning
of potentially lost data on exit and similarly reduces
the test failures, which test for clear termination.

Change-Id: I284693d1cdd91b1224581fdc29e6e5438ab4c0b2
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 20:46:01 -05:00
Pranam Lashkari
35b3b87704 Fixed broken freeBSD CI
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I39630d59f432ddd0712063ded0629ab0f4953839
2022-02-08 20:39:55 +03:00
Ashod Nakashian
9702cce25f wsd: preserve the original modified time as string
We no store the origina modified time of the document
as we receive from the storage server in string
form and send it back as-is. This avoids any
potential issues with the roundtrip of conversion
to and from a timestamp.

Change-Id: I524bea8f36c3ce62dcd00c4fe6a1e7e083287ed1
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-08 08:05:39 -05:00
Rash419
4f0c84f70d cypress: removed explicit wait from row_column_operation_spec.js tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib3a869cd65c80a6dffa2992284cbf46aa3fc30bf
2022-02-08 15:00:41 +05:30
Gökay Şatır
3002449b59 Set formula bar length.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I6acbba5a6ebe930935a5425a3f5c52ed99992f91
2022-02-08 11:29:04 +03:00
Andreas Kainz
7a186cca18 Sidebar: Add missing padding to Table style
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Iee62a80513d62b7577e62381ec1634455ab8079a
2022-02-07 21:41:00 +01:00
Andreas Kainz
017cc0f74a Sidebar fix Style and Character dropdown dialog width
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I6df2656c215d85fe31907fa73e063b45ef8522f5
2022-02-07 21:41:00 +01:00
Tor Lillqvist
6e47989d67 Make some shortcuts on Mac clients match expectations better
The expected shortcuts are documented in
https://support.apple.com/en-us/HT201236 . This patch handles a small
subset of those:

Command–Up Arrow: Move the insertion point to the beginning of the
document.

Command–Down Arrow: Move the insertion point to the end of the
document.

Command–Left Arrow: Move the insertion point to the beginning of the
current line.

Command–Right Arrow: Move the insertion point to the end of the
current line.

Option–Left Arrow: Move the insertion point to the beginning of the
previous word.

Option–Right Arrow: This should move the insertion point to the end of
the next word. But I don't think LO has such a shortcut so we move to
the beginning of the next word instead.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I6b0d36b0842388f0d49adf9b75fa9480df79c805
2022-02-07 21:11:16 +02:00
Mert Tumer
924e22635a new mobile-back button cypress modifications
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I3e67bdc84d190edf2819b88dfe7d7630c7b89aba
2022-02-07 18:18:29 +03:00
Mert Tumer
ad1d046803 mobile: show go back btn before docload
on ios case, there is no device back button available
so it is impossible to go back before the document load

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ifce5e4777b8dd014cbdc527fb65f0d0be21f2cd2
2022-02-07 18:18:29 +03:00
Pedro Pinto Silva
03558ae701 GitHub: Add Easy Project Template
So it's easy to create ideas for GSoC projects

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I465f7b8876a4f43262fae52cf88ceacd89248517
2022-02-07 12:37:19 +01:00
Szymon Kłos
e64ff372fc Image operations: update existing preview in new arrives
There was a bug:
1. insert very big image
2. rotate and quickly after that rotate again but hold
   mouse click so you will still see the preview
result: before patch preview was disappearing
        after patch preview is updated

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ieb343a371816fe14e4c65f862abf1e55bf36de1b
2022-02-04 17:23:13 +01:00
Szymon Kłos
c1a08b4027 Image operations: avoid error when cannot get map
Uncaught TypeError: Cannot read properties of null (reading 'getMaxZoom')
    at NewClass._transformPoints (Path.Transform.js:577:18)
    at NewClass._transformGeometries (Path.Transform.js:513:9)
    at NewClass._apply (Path.Transform.js:419:8)
    at NewClass._onRotateEnd (Path.Transform.js:1145:8)
    at NewClass.fire (Events.js:152:22)
    at NewClass._propagateEvent (Events.js:215:27)
    at NewClass.fire (Events.js:158:9)
    at NewClass._fireDOMEvent (Map.js:1719:10)
    at NewClass._handleDOMEvent (Map.js:1689:8)
    at HTMLDivElement.handler (DomEvent.js:51:14)

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic6f0c808c744636f7b8b4b6a683307b74824d2fa
2022-02-04 17:23:13 +01:00
Ashod Nakashian
5757c17b6b wsd: clang-tidy fixes
Also, reduce public function surface-area.

Change-Id: Ia922e19c49a731a83bbd3d1dc645355926ddba3c
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-04 10:26:49 -05:00
Ashod Nakashian
00cc176af3 wsd: improved DocBroker logging
Change-Id: I2432bcdf06c9fa6335a872aa7354e1f3ddd761f4
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-04 10:26:49 -05:00
Ashod Nakashian
7757989795 wsd: save -> upload
Probably the last remaining incorrectly labelled
helper that checks for in-progress uploads, but
had retained the old and misleading label of 'save'.

Change-Id: I693275b1559f3dae4e9e3ab2408d997f56ff86e3
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-04 10:26:49 -05:00
Ashod Nakashian
4b8d08bdd6 wsd: test: reduce UnitWOPISlow document size
Change-Id: Idf872404048918844704aa95f33fde299e64c409
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-04 10:26:49 -05:00
Ashod Nakashian
2444e28059 wsd: reduce noisy logs
This reduces some logs from debug to trace,
especially in Socket where the amount of
activity is high, but the logs in question
don't add value in debug level.

Also supressed an error when superfluous.

This makes debug-level logs much more readable
and relevant to the main events.

Change-Id: Ie2698b56f320d15a09060cf2877477d9da0e1582
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-04 10:26:49 -05:00