Commit graph

21073 commits

Author SHA1 Message Date
Rash419
932f2ad67f admin: don't send the routing_rmdoc if doc is migrating
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ic1391dd509027e794ed005bcf78014afca31ede5
2023-06-29 18:21:33 +02:00
Rash419
164d1d2826 show message that document is migrating
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Id0908f31b578a6f0ff012c212f4ca4468a76038c
2023-06-29 18:21:33 +02:00
Rash419
b717be603e implement document migration
- updated protocol.txt

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I67a0515580979e15223ea084c835f5ed801ceb5e
2023-06-29 18:21:33 +02:00
Rash419
ca5517cc24 indirecton:request again if we get 202 status
- also send 'App_LoadingStatus' postMessage with 'Loading_Progress'
  Status to notify integrator

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ie754955c53d4d361d8dfaf083f7734382954d3f9
2023-06-29 18:21:33 +02:00
Darshan-upadhyay1110
4f779b25e2 Update page state inn statusbar for readonly mode.
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Icb4f9116deb9a79fec3b6fe708625619a80ddb9c
2023-06-29 17:14:53 +02:00
Caolán McNamara
2081d49bcc cid#318937 Array compared against 0
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I8e0e270b0a08e9fe343b591095a001530bc88c02
2023-06-29 08:03:00 -04:00
Caolán McNamara
b30ccb0392 cid#318852 COPY_INSTEAD_OF_MOVE
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I8e5f1f7f837c7d52922f05c8a65b1af583b864b9
2023-06-29 08:03:00 -04:00
Caolán McNamara
52338a50f1 cid#318841 String not null terminated
help coverity see that this is not true

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ie2b72e7c0bcc649509310edc5498ec7adc7ebe72
2023-06-29 08:03:00 -04:00
Caolán McNamara
4730458b97 cid#318835 COPY_INSTEAD_OF_MOVE
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I964fc80c2bb7bddb8391e631ce179bf947fce55e
2023-06-29 08:03:00 -04:00
Marco Cecchetti
226a758594 cypress tests when editing with a11y disabled
Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I54ae4515ba1b59711cfbd719db777d02f4735d7a
2023-06-29 13:43:13 +02:00
Marco Cecchetti
2cf2a1e891 cypress: expectTextForClipboard helper function never fails
expectTextForClipboard(expectedText) never fails for any passed
expectedText string
The value returned by the function passed to `then` cypress construct
must not be regarded as an implicit assertion.

I don't see anymore the '\n TEXT" case. It seems that comparing for
equality against the selected plain content is enough.

Fixed some cypress test that was failing after modifying
expectTextForClipboard.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I64ce31fa2127efcc70bbc3da3ac45fe456e66803
2023-06-29 13:43:13 +02:00
Marco Cecchetti
ef02d909a2 a cypress env var for enable/disable a11y on testing + a a11y tags
Now you can use CYPRESS_A11Y for enable/disable accessibility state on
testing.
Moreover you can use the taga11yenabled tag for tests that should be
run only when accessibility is enabled, and the taga11ydisabled tag
for test that should be run only when accessibility is disabled

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I4c44e78e5394477b64cc17ac6b815d9d70b059f5
2023-06-29 13:43:13 +02:00
Pedro Pinto Silva
261e8cac30 Scripts: Add parser used in forum for monthly leaderboard
Used for translators leader-board in the forum

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I04a557c3beaa109b0ab010ca32ec749b585d07cc
2023-06-29 12:55:35 +02:00
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