Commit graph

18620 commits

Author SHA1 Message Date
Gontzal Manuel Pujana Onaindia
40027c1dbd Translated using Weblate (Basque)
Currently translated at 100.0% (462 of 462 strings)

Co-authored-by: Gontzal Manuel Pujana Onaindia <thadahdenyse@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/eu/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1f2bdc4851b471dd01fe772cd4d0e8674ac8ad91
2022-07-26 10:48:56 +02:00
Ayhan Yalçınsoy
5ae7087fe0 Translated using Weblate (Turkish)
Currently translated at 100.0% (462 of 462 strings)

Co-authored-by: Ayhan Yalçınsoy <ayhanyalcinsoy@pisilinux.org>
Co-authored-by: PhD. Ayhan YALÇINSOY <ayhanyalcinsoy@pisilinux.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/tr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2d7934340871ee92175b5bab78eaf169b4c30bba
2022-07-26 10:48:56 +02:00
SC
2dcce409b3 Translated using Weblate (Portuguese)
Currently translated at 100.0% (462 of 462 strings)

Co-authored-by: SC <lalocas@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8b5c0c7e4cb6e86ac222294321bf2110bb7e76a1
2022-07-26 10:48:56 +02:00
Sveinn í Felli
4ffb1903ea Translated using Weblate (Icelandic)
Currently translated at 100.0% (462 of 462 strings)

Co-authored-by: Sveinn í Felli <sv1@fellsnet.is>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/is/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1f04aa6737a60b86a211ee7874ead864984f7572
2022-07-26 10:48:56 +02:00
Ashod Nakashian
dd6c5b1d81 wsd: correctly stop DocBroker from interactive mode
When in interactive mode, the user has a dialog
to interact with. The issue is that the user may
dismiss said dialog, the Kit process may stop,
crash, or otherwise exit. This basically leaves
DocBroker in a deadlocked state, expecting
input from the interactive document, which
will never materialize.

Here, we rely on the machinery already in place
for flagging such a DocBroker that has no Kit.
We check for said flag and stop DocBroker if
such a case is detected, exiting clearly.

Change-Id: Iecb91c49226da08567cdd2c5d050d458e2f0fc9b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 10:45:23 -04:00
Ashod Nakashian
a871ab9714 docs: add note on Control-C and --cleanup
Change-Id: I705db2cbdeef05a8467f4d1a04a197019ad185eb
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:04:13 +01:00
Ashod Nakashian
e4bdd10b11 wsd: minor log improvements
Change-Id: Id75de0548383cc0f6e983a7b226dff6c7ade56eb
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:04:13 +01:00
Ashod Nakashian
c735429571 wsd: fix signedness warning/error
Change-Id: Ifb35c034b8e2cbf6f6031821b5ede2e2317a2c60
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:04:13 +01:00
Ashod Nakashian
3b04b606eb wsd: test: modernize UnitWOPISaveAS
Change-Id: I56fffb5908dbefea73a10ccded1aa46d321cfcf3
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
176c37eaa6 wsd: test: killpoco for UnitSession
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: Ib835b8efb7b65fee11e0a2aebf34cc4ee86dbab7
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
cd9490a3ae wsd: test: killpoco for UnitRenderingOptions
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: I4a21902d2ef1472ac8d7a73f6881b059c683de93
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
9368b14c77 wsd: test: killpoco for UnitPasswordProtected
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: I814eece097823959c70954cc53a755392135965e
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
64ee298bab wsd: test: killpoco for TileCacheTests
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: I422c31d85e3422541a0ab367007876c3a33fa124
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
ed6565502c wsd: test: killpoco for UnitCalc
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: I2ed85129b9a58d49f19bea0b2e4f8f09b7b36f5f
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
9130f12d75 wsd: test: killpoco for UnitBadDocLoad
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: Ia24ef764219f31b0610d85b63ee6000df62b8c8c
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
4d76d7349a wsd: test: killpoco for UnitTyping
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: Ib9142f7751ddf6a17a9a17e09898a96f5071e9a6
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
6a0709b71b wsd: test: killpoco for UnitUNOCommand
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: I70887502320cf1a86cd24525dcdb5af98ac6e67c
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
c3b2fe9956 wsd: test: killpoco for UnitTiffLoad
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: Ief648126bf45376737c281dd3b9637e33339b414
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
acbf32aef5 wsd: test: killpoco for UnitRenderShape
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: Ied70aff99ecd61571c13974d0cfb63e6ab5bda47
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
93cf880337 wsd: test: killpoco for UnitRenderSearchResult
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: If1a83eb4a78102c9090699934767a759c8923542
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
74b49f41ca wsd: test: killpoco for UnitPaste
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: I8e51c000cea0fd323c6babd9e12d81c8c8c9eeaa
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
4e9acddc42 wsd: test: killpoco for UnitLoad
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: I30a4dc1b762caba1ecfad8f5784871b2bba583f6
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
c4c05aa20d wsd: test: killpoco for UnitLoad
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: I3035ea1d335b05d6ced677a91f32f0233380a5a8
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
fe629da48f wsd: test: killpoco for UnitLargePaste
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: If6c33a53d7a01a83db718407d4f78464e07ed204
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
d3cb191fd1 wsd: test: killpoco for UnitInsertDelete
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: Id7b63d25e497377c37f487a704c015dd7babfc32
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
7896351a28 wsd: test: killpoco for UnitInsertDelete
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: Ie787fb518c9e1528155d96fbe549f16678111095
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
569203284f wsd: test: killpoco for UnitCursor
We now use our http::Socket and SocketPoll
instead of Poco.

Change-Id: I76a7d4c7640abfcf54a181c5080ae2a027c73874
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
f15c6cd8b5 wsd: test: killpoco for UnitEachView
We now use our http::Socket and SocketPoll
instead of Poco.

UnitEachView now finishes ~3x faster.
It's also much more consistent in its
runtime.

More importantly, the CPU utilization
went from ~20% to ~90%. Poco was spending
most of its time polling (and often timing
out). It has corner-cases that make it
miss events completely, for some reason.

Change-Id: Ibcc8fbd638e5ec950a34b418414521accdd443f8
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Ashod Nakashian
1d96fe827a wsd: test: remove default testname arg from helpers
Change-Id: Iecbc2c1fa2a7568aedeaa0b089c3ca0a584488f5
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-25 14:02:00 +01:00
Szymon Kłos
8bb881bda2 calc: correctly detect complete row was selected
After commit:
change default Calc number of columns to 16384 (tdf#50916)
https://cgit.freedesktop.org/libreoffice/core/commit/?id=4c5f8ccf0a2320432b8fe91add1dcadf54d9fd58

Last column code is 'XFD'

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3414ca2fefe1a3bda17595610ac2aab3a7a41d8e
2022-07-25 09:54:40 +02:00
Aron Budea
81e1e0a51e wsd: slightly improve logging in case of version mismatch
Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I586da3390487727f0d4b743d4d285cce59f7d55b
2022-07-25 06:23:19 +02:00
Szymon Kłos
1c7a051044 calc: handle DoubleClick on AutoFillMarker
This will allow to fill column with formula when data
are present in neighborhood

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3f341b57b0d40251cb10a4f7b628c5c8f438e986
2022-07-22 14:56:58 +03:00
Szymon Kłos
963b7bda4f jsdialog: formulabar: reset shift key state after focus is lost
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I03d080fbe0d99cb5e2f825ac8fb66417b4b0b130
2022-07-21 11:12:00 +02:00
Szymon Kłos
3fe3655c6c formulabar: mobile: reuse TextInput for mobile IME
Fixes typing on Android using GBoard in Chrome
before this patch we didn't get any input due to
lack of keyCode, we need to use 'input' events
which are already handled in TextInput.js

This patch does that only for mobile case, later
we can try to unify it with desktop so we remove
our custom formulabar input even there.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I318840dee78ddf0f803af74236a6c880c3f09329
2022-07-21 10:23:45 +02:00
Szymon Kłos
bda3a2961d mobile: fix TypeError, missing Intl API
this error was shown on socket disconnect on mobile Chrome in older
phone

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I927880ce1848fd1d48776202679ee14a8858e065
2022-07-21 10:23:45 +02:00
Pedro Pinto Silva
9dfedf0003 Tablet: Fix Save icon floating when in presence of changes
The dot above the save icon was not scrolling together
with its parent:
     - Make sure the little dot is always under a parent with
       position set to relative
     - Adjust top position due to that ^ change
     - It also fixes for narrow window on desktop

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5844400cd1a15fe5693bb2b0be880460d974eec1
2022-07-21 09:18:17 +02:00
Pedro Pinto Silva
160467ac96 Don't use automatic generated ids (incremental digit) for save btn
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Idaae02ce7c0ea9dab69056654df0bf15c847af3e
2022-07-21 09:18:17 +02:00
Pedro Pinto Silva
ea55505346 Add log directory (typescript) to gitignore
Automatically generated .log folder relate to typescript
was not being ignored

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0fa8bcbe9e3a9eeae8f1549d6d073865d06eb41d
2022-07-20 17:14:40 +03:00
Rash419
c91b8b01b4 wsd: new config entry to add unlock_link for feature lock dialog per alias_group
- also added unlock_link option in dynamic configuration

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I075a4aed4f82059714412def965a8ed4d3581b2f
2022-07-20 17:41:19 +05:30
Rash419
9bb0b6fabd introduce new options to customize featurelock dialog
- adds two new options
1. localize the dialog
2. change upsell image shown in dialog using proxy handler
- provides all the settings using dynamic configuration

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I7e21c1b31c806c88bf54f891de40f02fa342168f
2022-07-20 17:41:19 +05:30
Pedro Pinto Silva
b00961f06a Make view menu entries behave similar across types
- Follow the same order, for generic menu entries:
  - Toggle UI Mode; Show Ruler; Show Status Bar; Sidebar
- Make sure Reset Zoom and all UI toggles are present in all apps
(doc type) when using tablet

Note:
This commit does not change the following because I do agree with
remarks stated in 70f4f8b92e
- Zoom in and Zoom out entries are not needed in tablet
- Zoom also misbehaves, so better to have it out when on a tablet

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I06f1c025dba27ae65229c38406d646da75a59aa6
2022-07-20 13:24:25 +05:30
Pedro Pinto Silva
4901779bf3 Remove unnecessary separator from view menu entries (type: text)
No need to have one item (Resolved Annotations toggle) surrounded by
separators.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ie5e560122054fc5904e3b24f984aa682c758d373
2022-07-20 13:24:25 +05:30
Pedro Pinto Silva
898f5181bd Add UI toggles to view menu (compact view) on tablets (type: text)
Building upon 70f4f8b92e
, it makes sense but let's add back in the Reset zoom
and let's make sure all the other UI toggles are available
when using tablet ( otherwise user is not able to
toggle UI mode, ruler or status bar).

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I972a3f6f17306484a266dc3cfa2103540ca4761d
2022-07-20 13:24:25 +05:30
Andras Timar
c2ec7a3468 docker: add CODE branding (optionally) to image built from source
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ibf21760668b77c8734316bf5219509ed899aba62
2022-07-19 21:54:51 +02:00
Michael Meeks
b2788bf702 tracing: re-work code, improve thread safety.
We shouldn't write to the socket outside the main thread ever or
we'll get memory corruption; cf. a number of suspicious traces
around this code.

Change-Id: Ibeb36fffbecce960012a55b3ab4fd40c9996ae68
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-07-19 20:01:08 +01:00
Michael Meeks
80079f708c perf-test: cleanup un-expanded variables.
Change-Id: If2c7c055558a96c401e2be2ce031cd288bbc747e
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-07-19 20:01:08 +01:00
Tor Lillqvist
ba80acc836 On iOS the tile messages arrive with e.data as a string
Now the tiles show up correctly in the iOS app again.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I2b1741ed9f5fc4e4df30cb67addfa45eb0d20b92
2022-07-19 19:25:42 +01:00
Ashod Nakashian
ed3b1902b7 wsd: invoke handlePoll on all sockets
Before ed5569da30
we invoked handlePoll on all sockets in
each poll. But that's not true anymore.

Since i = _pollStartIndex; (line 432),
when we assigned previ = i; (line 451)
we made previ == _pollStartIndex, which
immediately broke the loop
while (previ != _pollStartIndex)
at line 438, causing handlePoll to be
called on one socket at a time (and
likely *not* the socket that had an event).

It's inefficient to poll and ignore the
result.

Now we do handle revents on multiple
sockets correctly and efficiently for
each ppoll() by going through all sockets
and handling based on whatever revents
gave us. We need to invoke the handler
of each socket to handle timeouts (i.e.
if we don't call the handler until
the socket gets an revent, we wouldn't
be able to support timeouts properly).

Notice that we still start at
a different socket each time (although
it's not entirely clear what advantage
that has, it's maintained all the same)
as the aforementioned patch does.

Change-Id: I9c0a482792aee7df5d44f4b63f173e574db36f97
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-19 18:31:50 +03:00
Andras Timar
70b99be0e8 docker: strip core binaries, otherwise the docker image would be huge
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id1b8eab2b722b22a63593a2b8b85b21ebe670271
2022-07-19 14:21:14 +02:00
Tor Lillqvist
2b84a35fe8 Also binary data is now pased through send2JS
We store each byte as one character, i.e. UTF-16 unit, in the string.
Yes, this is inefficient.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I75cc211d7a8da98a4e0e5b5b3d000e7ed66c271e
2022-07-18 16:57:10 +01:00