Commit graph

21160 commits

Author SHA1 Message Date
codewithvk
2dcabfd3ca Condense common parameters in Makefile
Change-Id: Ic39a90bf263504bb45b0b933e06893629966e357
Signed-off-by: codewithvk <vivekpatel7202@gmail.com>
2023-06-29 11:39:18 +01:00
Paris Oplopoios
738de114d7 Make writer page background match document color
It used to be that scrolling in dark mode would show a white color while
the tiles were loading - now shows the document background color.

Signed-off-by: Paris Oplopoios <paris.oplopoios@collabora.com>
Change-Id: Id4c3881e728ae18496bf276e8c565a7abc1de7b5
2023-06-29 11:22:04 +01:00
luigiiucci
415f171036 Add new "download as" PDF option
PDF export was avaliable only with a modal "pdf options" window.
It seems a little complicated for some users who'd like to
simply press the button and receive pdf.
Added a new menu item to download pdf directly.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Signed-off-by: luigiiucci <luigi.iucci@collabora.com>
Change-Id: Id824179adeac3b516e58c85a9e2d01838f81c892
2023-06-29 11:22:24 +02:00
Pedro Pinto Silva
dd41f8e12b Mobile: Add "Read-only" label ONLY when it's not possible to edit
The new label added in a13f33b777b0ecc85752f832cd475736206f241e might
be a bit confusing and not necessary if the edit button (pencil) is
already present.

Better to:
* Have only the edit button (that should already be enough to signify
that the user is currently in a read-only transient mode)
* Add Read-only label for the cases were the user is opening a
read-only file (without permission to edit and thus the edit button is
absent)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I1fc5ca821bfd9feb75f411d2c3260a43d54e16cd
2023-06-29 11:14:48 +02:00
Caolán McNamara
46c2ee5e54 don't call scroll if there is no pos change
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Id3913626e62b241fdeae46fcde5b0a06f7c56ed8
2023-06-29 08:55:39 +01:00
Caolán McNamara
81067dc4ad in calc we end up drawing * 3 for each scroll event
a) The "RowHeader" Header._updateCanvas listens to "move" and redraws everything via CanvasSectionContainer.drawSections
b) the "ColHeader" Header._updateCanvas does the same
c) scrolling then causes a "viewrowcolumnheaders" to be emitted from _updateHeadersGridLines and CanvasTileLayer listens for that too and again redraws everything

pause/resume around scrolling

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ic2bc28df18a633544d26607d3024bdb4dc321ce2
2023-06-29 08:55:39 +01:00
Henry Castro
8803bfa9a4 cypress: fix failing unit test apply_paragraph_props_text_spec.js
The unit test fails by 1 pixel offset, add some tolerance

"'assert expected [ <tspan.TextPosition>, 1 more... ] to have attribute y with the value '7822', but the value was '7823'""
.

Change-Id: Ieb36eedf1a17aadd3ba4872e9c4f94a3b18d0a73
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-06-28 18:15:53 -04:00
Henry Castro
e38bc519ae cypress: fix possible random file duplicates
The failing unit test it is due to a duplicate file
that was modified with new properties.

Change-Id: I02824cfeaf8c496e84dc4e285975e95e79edb9df
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-06-28 18:15:53 -04:00
Henry Castro
91b83bd44d cypress: adjust values for '#copy-paste-container' elements
The element '#copy-paste-container' according to the documentation
it is only to prevent flickering, so check only if has children.

Change-Id: I11ecdf156c6fee8657e5cd42c2c7daf9f206410b
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-06-28 18:15:53 -04:00
Henry Castro
5a25308d42 cypress: no welcome if cypress test running
Change-Id: I1ee96f029baf0e1e80209342895115dedb8ebc7f
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-06-28 18:15:53 -04:00
Henry Castro
1e29c6cb61 browser: use 'reportValidity' to validate number
Prevent to send wrong data to server.

Change-Id: I9d1b584326dd36cfe0a469a1ac77c1afbc16fd73
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-06-28 18:15:53 -04:00
Henry Castro
4466e02d40 browser: use 'checkValidity' for spin field element
Prevent send data to server if not validated.

Change-Id: I3a60ef52c842eab18c1e94063eb1c5769e6929b9
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-06-28 18:15:53 -04:00
Henry Castro
241dbdd819 browser: add method 'setContainer' to JSDialog
In order to query input elements.

Change-Id: I2c4514a278a605edcfe93231417566568c7a87aa
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-06-28 18:15:53 -04:00
Marco Cecchetti
ef51ac31ab A11yTextInput: improve screen reader on unselecting text
When text is unselected by clicking somewhere, selected text innside
the editable area was unselected, selected again, unselected again.
That was causing the screen reader to report such a nonsense sequence.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: Ib9d6628f7ac30fe2cd40ee7823ac67eb6471d1f2
2023-06-28 22:19:28 +02:00
Szymon Kłos
2956201a3d jsdialog: get precision for validation also from value
when we open Writer -> Format -> Footnote field: Thickness
shows an alert about incorrect value. It's caused because
step is set to 1 but value is 0.5 as core uses step only for
increase/decrease but not for valudation. Fix this annoying
error by allowing to use 0.1 step.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I141194ebcd1f100ca9d3e7aeae086ddac2980da6
2023-06-28 16:12:07 +02:00
Rash419
f3166c37e1 show alias tags in contentcontrols
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib348e46af68ab00819a76f2e9cb1b26732034ad4
2023-06-28 15:17:49 +02:00
Andras Timar
a22a2cd0d6 Amend 'Copy all version information in English' on About Box
* reuse string from LibreOffice (and make it translatable)
* use an icon instead of button text, like in LibreOffice
* small amendments to text copied to clipboard

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic16d786fe467c1f8ff718b1f46364541bba8e6ab
2023-06-28 15:14:17 +02:00
Caolán McNamara
d859da11b0 rawDelta may not be sufficiently aligned for Uint32Array
in which case it fails, just use the Uint8ClampedArray view
to look back at previous input pixel after all.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I1ee5d7480bf9a11145ca6514ef7efb7882c183cb
2023-06-28 11:49:04 +01:00
Paris Oplopoios
2c02c9a93d Disable CalcHiddenColRow by default
Signed-off-by: Paris Oplopoios <paris.oplopoios@collabora.com>
Change-Id: I717ef1080fe3b9af39ed081eb79355d0e5bd6e4e
2023-06-28 11:31:30 +03:00
Parth Raiyani
135c8d0dba Added copy button in "Help > About" to copy version information to clipboard
Signed-off-by: Parth Raiyani <pmr642001@gmail.com>
Change-Id: I2ce4d5fe03ac3c38ff179cbd2466ba25961db92d
2023-06-27 19:44:54 +02:00
Caolán McNamara
52dbfd38be avoid calling getImageData if we can
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I02c27170b2aa96703fb6cb153cb2f7958fcdee21
2023-06-27 15:21:27 +01:00
Szymon Kłos
9102357ee5 color palette: send the theme data in compact mode
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib4d77cea3ec3759841fa9c9d5e70f1cfd852fc16
2023-06-27 15:12:56 +02:00
Tomaž Vajngerl
3c38d78a5e color palette: send the theme data through UNO (when present)
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Change-Id: I245d34e323681add3552e808eee471821bd72a0c
2023-06-27 15:12:56 +02:00
Szymon Kłos
713bd070eb color palette: trigger callback with theme data
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Icce3ca11e9224f2bd8920e5ce9ff92e6d5ef5536
2023-06-27 15:12:56 +02:00
Szymon Kłos
d26a78495a color palette: show selector only in Writer
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifdf07cac131d4a1afdf758fd31af3d49b28ba3a6
2023-06-27 15:12:56 +02:00
Szymon Kłos
3372ea093c color palette: add palette selector
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie09715afbdbc50d783d6e50ce27dac2e2a06596a
2023-06-27 15:12:56 +02:00
Szymon Kłos
b32e3f1c9c color palette: use always the latest data
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I4fee6c3fc9e7e91d3e737f8ab93350cca8a2ecd0
2023-06-27 15:12:56 +02:00
Szymon Kłos
a44e2b1a37 color palette: convert core format to w2ui
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id8980b0f7d34c011cc051f682299169952467b43
2023-06-27 15:12:56 +02:00
Szymon Kłos
e21925c65f color palette: move w2ui colors to docstate
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I037dd353ee143ecd5fd6182fa7aa3441588c0eb5
2023-06-27 15:12:56 +02:00
Tomaž Vajngerl
761c3c51fa color palette: store color palette data from the callback
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Change-Id: I8d0dec4afd91bcdf66799f3afba1fd77cbc223db
2023-06-27 15:12:56 +02:00
Caolán McNamara
4f4fb39e85 optimize unpremultiply a little
use a Uint32Array view when we want to look back at, or copy, a whole
pixel

and seems to be then marginally better to align the input/output views
to be able to use the same index into arrays

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Id3560cd1f40b5235d0115f82479b9091fcf798ad
2023-06-27 08:59:01 +01:00
Caolán McNamara
c7c2644b9b fix android ci
github_android_online_co-23.05/net/HttpRequest.hpp:1391:63: error: no matching function for call to 'min'
                      << Util::dumpHex(std::string(data.data(), std::min(data.size(), 256UL))));
                                                                ^~~~~~~~

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I5b81096c696565b9e4eb4f3ca39c16bc1e5b9182
2023-06-26 17:07:35 +01:00
Caolán McNamara
d900c3fc12 cid#318841 markup forcedExit as a fatal path
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I8825d8f2756c33d10efe9bc40129fbf4871e9de0
2023-06-26 07:08:46 -04:00
Caolán McNamara
08f28aa8af cid#318956 AUTO_CAUSES_COPY
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Id2902a510e61c9ecf00f416908aa2a66f76547c0
2023-06-26 07:08:46 -04:00
Andras Timar
970291c6bf Bump version to 23.05.1.2
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie6eb8f388d0724ef08a44e608d5c8c2265ce0f5e
2023-06-26 12:45:41 +02:00
Andras Timar
bdfeadf223
Update README.md (remove outdated build status links) 2023-06-26 10:28:13 +02:00
Milo Ivir
a4aad903c4 Translated using Weblate (Croatian)
Currently translated at 100.0% (503 of 503 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If36d4267db672e27eb87361dc7c1eb747e18e531
2023-06-26 09:25:26 +02:00
Gökay Şatır
3e40f3fbe4 Add functionality for notebookbar accessibility keys.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I97476d05559444fe895cd6bf4e040f43350a6706
2023-06-23 20:06:35 +03:00
Andras Timar
d0149b1426 Bump version to 23.05.1.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I39740fe9b1c30c0a56056435d58eabd3121698bf
2023-06-23 18:55:31 +02:00
Marc Rodrigues
5081fdf442 Translated using Weblate (German)
Currently translated at 99.7% (462 of 463 strings)

Co-authored-by: Marc Rodrigues <marc.rodrigues@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/de/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5a36292a5d131215d26352811a34b6ad1b243673
2023-06-23 18:24:53 +02:00
Alexander Gabilondo
8250826d6a Translated using Weblate (Basque)
Currently translated at 99.0% (498 of 503 strings)

Co-authored-by: Alexander Gabilondo <alexgabi@openmailbox.org>
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: I9cef297d041ced4a21f5d6c4c50d6638ce277106
2023-06-23 18:24:53 +02:00
Stanislav Horáček
866edb4eea Translated using Weblate (Czech)
Currently translated at 100.0% (503 of 503 strings)

Co-authored-by: Stanislav Horáček <stanislav.horacek@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8a3b688f2b2d6f7ac5a49e254e456053a270a597
2023-06-23 18:24:53 +02:00
Nathan
701dc6dc92 Translated using Weblate (French)
Currently translated at 98.9% (458 of 463 strings)

Translated using Weblate (French)

Currently translated at 100.0% (503 of 503 strings)

Co-authored-by: Nathan <bonnemainsnathan@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/fr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fr/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie12f8c7129ab20e18f508582bf7311e4b975c3ad
2023-06-23 18:24:53 +02:00
Ihor Hordiichuk
69bbf1f411 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (503 of 503 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/uk/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7ce63a3d16ceafb2bdfdd38c7f0c4c75ba94ca71
2023-06-23 18:24:53 +02:00
Sabri Ünal
273f72f435 Translated using Weblate (Turkish)
Currently translated at 100.0% (463 of 463 strings)

Co-authored-by: Sabri Ünal <libreajans@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/tr/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ibc50d88bfd078dd824718370b56e454727ca15ae
2023-06-23 18:24:53 +02:00
Jaume Pujantell
aceb8912fd Handle LOK_CALLBACK_DOCUMENT_PASSWORD_RESET
Signed-off-by: Jaume Pujantell <jaume.pujantell@collabora.com>
Change-Id: Ibc2be5bc7676b1b67b7494c200011e4622a5b294
2023-06-23 18:17:14 +02:00
Pranam Lashkari
08a7a5b206 jsdialog: fixed dialog content being cut off
i.e: theme dialog(format->theme)

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I9a09d52cd2c0d95cfae18ae12995761985d8111d
2023-06-23 18:16:26 +02:00
Ashod Nakashian
9efc81a51b wsd: random device mounting
We now warn when we fail to use mknod
to create the random devices and have
stricter requirements to mounting
character-devices. Specifically,
we explicitly only allow mounting
the random devices.

Change-Id: Ib0dc300dedc40942ea52426af2b267f6a81fbeb8
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-06-23 18:13:59 +02:00
Michael Meeks
455c377d29 wsd: double size of the delta cache.
Change-Id: I218c0fbdef6815a56bf8d4059bfcae186b32ebed
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-06-23 16:59:08 +01:00
Caolán McNamara
490b0c0d0d drop non-standard width=400 height=400 tile request in unit test
there since:

commit 232499f542
Date:   Thu Apr 21 12:34:30 2016 +0300

and

commit bf66f7a908
Date:   Mon Jun 13 20:31:14 2016 -0400

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I04745be0581a697bbc3b15ba1d8bb94207320a7a
2023-06-23 16:55:25 +01:00