Commit graph

18634 commits

Author SHA1 Message Date
Pedro Pinto Silva
530a8992a4 Do not use classes in iconURLAliases
With changes from 4e07514
Some elements without id were being listed (using their CSS classes)
and their corresponding SVG files were removed

This reverts those lines making sure that icons within insert shapes
menu or fontwork are not missing anymore.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4d1ad6a0f2124867ea47c8ca5c0c636aa5646143
2022-08-01 15:23:42 +02:00
Pedro Pinto Silva
34ab177244 Fix iconURLAliases ids
With changes from 4e075146b9
4 problems were introduced, this fixes it:

- Writer > Form controls > insert date form control
  - We were trying to alias with an already inexistent SVG
- Impress > layout tab > Master slides sidebar
  - Typo: missing s in slides (masterslidespanel)
- Impress > top toolbar > Master slide sidebar
  - Same as the previous one
- Calc > style apply (next to conditional)
  - Typo: lc_ and .svg was being used

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I794dd0bbcb0593909a950e31413823a30f79bfad
2022-08-01 15:23:42 +02:00
Andras Timar
a149398e97 Bump version to 22.05.5.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9813fc25355b766c82fc5723b906828bd98fe404
2022-08-01 09:03:28 +02:00
Mert Tumer
2cf9f7bc1b android: fix closing the document on interactive dialogs
We get stuck on exitting the app progressbar on mobile
with the interactive dialogs such as csv import or macro security
dialog, we have a different use case for killing the document
as in the normal case. We are not running a separate process
but a thread and we dont trigger regular killing use case.

This piece is not relevant for android because we always have
one connection through fakesocket until the main thread is killed
and it is waiting on the mutex to finish before we finally exit the
document activity.

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I99bd333152d40a04f95d4747705a721112317bb2
2022-07-30 10:52:16 -04:00
Ashod Nakashian
2044625122 wsd: improve logging when kit disconnects
Change-Id: I65d18aea265e5e68ee823676028266fa543e0667
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-07-29 13:59:28 -04:00
Pedro Pinto Silva
f0f58a2075 Mobile: Make sure all unotoolbutton share padding and margin
and remove unnecessary CSS verbose

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I209ea7d05e7027df8127ff2e49457a9e1d55cd7e
2022-07-29 11:24:51 +02:00
Pedro Pinto Silva
7122440572 Fix non-used automatically generated spans on mobileWizard
This fix the follow issue
https://archive.org/download/mobile-wizard-generating-spans/mobile-wizard-generating-spans.png

but it also removes unnecessary css block related to all those span
elements associated with unotoolbutton. Better to avoid creating
the HTML element instead of creating and then hiding it.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4e9ea01456370f1f7f877de00cf1a57e15337f45
2022-07-29 11:24:51 +02:00
Michael Meeks
04ee3b9fae Add the ability to dump internal LOK core state / details.
Requires an updated core.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Ie000e86851d7dfbc1e70a3f1631d427a3d18188f
2022-07-29 01:43:03 +03:00
Michael Meeks
8ca42a5d5a delta: fix delta cache sizing.
Change-Id: Ia6ed98534f87006ba5ffcffc8b928f16cfc892cd
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-07-28 15:22:58 +01:00
Skyler Grey
4e075146b9 Alias and remove duplicate SVG files
- This commit fixes #5052
- Files which were directly in `/browser/images` were the only ones I
  considered in-scope for this (not files in `/browser/images/dark` as I
  did not want any aliasing there to influence light theme)
- Files which weren't named `lc_*.svg` were not considered for this, as
  the function with the alias list transformed the names into that
  format
- Dupes were found with `find . ! -empty -type f -exec md5sum {} + | sort | uniq -w32 -d --all-repeated=separate`
  It is possible (although unlikely) that there was a hash collision and
  I incorrectly aliased an image. The names I was aliasing seemed sane
  though, so I doubt this was the case.
- I changed the behavior of the aliases object such that it is *after*
  the lowercasing of the name and not before; this was so that I didn't
  have to worry about if capitals were used (as there were some SVGs
  with different combinations of underscores etc. and I didn't want to
  assume they all always needed to be in CamelCase)

Signed-off-by: Skyler Grey <skyler3665@gmail.com>
Change-Id: I4d7972900195edeaa8f5f8941d18ab556319a7f7
2022-07-28 14:08:52 +02:00
Szymon Kłos
cab0492e41 calc: scroll when we reached end of view on AutoFill
- allow to use auto scrolling feature by event propagation
- it required to create new modified event which will
  contain coordinates of the autofill marker

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic7fe236833f5e1747d0d72e9560d3c9ecdccde51
2022-07-28 12:38:04 +03:00
Skyler Grey
b1f3c4b56b Fix the close button on windows without a title
- Previously going into Help > About > View widgets would show a window
  where the close button was rendered slightly out of the top of the
  window
- This was because without the title taking up a line, the title bar
  shrunk to be too small to contain the close button
- This commit makes sure that the title can never take up less than a
  line in height

Signed-off-by: Skyler Grey <skyler3665@gmail.com>
Change-Id: I9ead59711e3db3cde6af485ebcccf0b8a3ea57a5
2022-07-27 14:18:41 +02:00
Skyler Grey
08e5265f16 Fix typo in CONTRIBUTING.md
Signed-off-by: Skyler Grey <skyler3665@gmail.com>
Change-Id: I916882ac1c1a83c54fa4e583f4353c00211b3606
2022-07-27 09:59:31 +02:00
Andras Timar
f4510db850 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iecf2f95395a6d9c58faa365373443987e0cbaa9c
2022-07-26 10:51:48 +02:00
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