Commit Graph

4763 Commits (master)

Author SHA1 Message Date
lsy223622 43855e1fdc Translated using Weblate (Chinese (Simplified))
Currently translated at 97.6% (573 of 587 strings)

Co-authored-by: lsy223622 <lsy223622@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/zh_Hans/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Icd388f62c64b09e8e567a211b15986637b1b6495
2024-05-18 15:09:32 +02:00
Oğuz Ersen e4a62cf83b Translated using Weblate (Turkish)
Currently translated at 100.0% (587 of 587 strings)

Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
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: I3d8a97ab687d39d45786c86cb1f44977e73efae6
2024-05-18 15:09:32 +02:00
Ali a44d193712 Translated using Weblate (Arabic)
Currently translated at 74.8% (358 of 478 strings)

Translated using Weblate (Arabic)

Currently translated at 95.7% (562 of 587 strings)

Translated using Weblate (Arabic)

Currently translated at 61.8% (68 of 110 strings)

Co-authored-by: Ali <alimahwer@yahoo.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ar/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ar/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ar/
Translation: Collabora Online/Android app
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I11c192cf79e807554edcfdd03f7a45240569528b
2024-05-18 15:09:32 +02:00
Francisco Gabriel Chardin c7442b7a7b Translated using Weblate (Spanish)
Currently translated at 100.0% (587 of 587 strings)

Co-authored-by: Francisco Gabriel Chardin <fran@camba.coop>
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: I46f645bb20e021e4237b0153c4da2e321be9431d
2024-05-18 15:09:32 +02:00
Matthaiks f6799c32c6 Translated using Weblate (Polish)
Currently translated at 100.0% (587 of 587 strings)

Co-authored-by: Matthaiks <kitynska@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I04718dff5b2d798b00306fe9f43cfff0059ad86f
2024-05-18 15:09:32 +02:00
Andras Timar 66ccc3722b Translated using Weblate (Hungarian)
Currently translated at 100.0% (587 of 587 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hu/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5cd3bb159b5e90864bc3d1e31441db1044a87b77
2024-05-18 15:09:32 +02:00
Gökay Şatır 85812ddd9b Don't hide cell cursor when clearing the selections.
Scroll to cell cursor after a part change. Relax the conditions.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I8c1aad11a00145b67e11afc2d11f9ebca0aa6feb
2024-05-18 13:55:18 +02:00
Gökay Şatır 8848ad8385 Remove unused variables.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I9c8e12a876c203ea9adc0605bcf4ffe92930ec92
2024-05-18 13:55:18 +02:00
Hubert Figuière ae7c579910 Remove cool-api.html
It is obsolete

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: I788e62d13dc009031bf77932149555c1078d2e71
2024-05-18 11:02:50 +02:00
Ashod Nakashian e14b84c542 browser: display unauthorized error message
It seems there are two handler for this message.
Since we moved the authentication logic ahead
of the web-socket upgrade, the handler for
the unauthorized error doesn't display the
message. This fixes the it so now we correctly
display the unauthorized message.

Change-Id: Ic62476c74ce1583a2d7f33e1233e6fafd43d3bc4
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2024-05-17 08:47:46 -04:00
Rashesh Padia f7892edd86 js: show progress bar during background save
Signed-off-by: Rashesh Padia <rashesh.padia@collabora.com>
Change-Id: I3608bf597ab8d2c7660a1f884cf2c763c7652415
2024-05-17 13:18:37 +02:00
Pedro Pinto Silva ab04084cd9 Status bar: Fix MenuButtons being generated always with image
Before this commit menu buttons were always generated with img even if
it's not applicable. Example, the StateTableCellMenu (located in Calc
status bar that allows setting a state according to the function
chosen in the submenu): This text-only menu was generated with img
and thus throwing a 404 error in the console.

- Allow any unoToolButton to be set without image via option
- Add image: false option when setting StateTableCellMenu in the
statusbar

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I3fc3b5954f80229835526819b9b80d2a650bd922
2024-05-17 12:06:16 +01:00
Hubert Figuière b027c099cc postmessage: Fix show hide / button / command in Notebookbar
This is a regression from commit 9923e69595
This is because jQuery .child() is only for the direct descendants.
Use .find() instead which will search down the DOM tree.

This restore postmessage Hide_Command / Hide_Button and Show.

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: Ibe84c520c9786c6c0026d3507a27a8d3580b38a0
2024-05-16 13:05:09 -04:00
Jaume Pujantell 3853d9b7bc browser: fix print menu for Calc
Changed the menu entries to conform to the new format used by
JSDialog menu since 07da50a.

Signed-off-by: Jaume Pujantell <jaume.pujantell@collabora.com>
Change-Id: I69109675ec69d66eb25ae128a6bb102e4628c705
2024-05-16 16:05:41 +03:00
Gökay Şatır cd9875ec4f Fix to my silly mistake :)
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I3d368e683747f249a5f44171023bd7f5293aca63
2024-05-15 20:14:03 +03:00
Andras Timar acb7e90c13 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1d482ad2c1077b15d8086c02da275963555882c0
2024-05-15 14:14:18 +02:00
Poe Mon 2e54c2a424 Translated using Weblate (Japanese)
Currently translated at 100.0% (478 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I12cd6d8095160f8e14555292db40b4b965f06b74
2024-05-15 14:12:50 +02:00
Poe Mon da54f08b6e Translated using Weblate (Japanese)
Currently translated at 91.4% (437 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6101112d3010febd8b304016a32d40276b8f39da
2024-05-15 14:12:50 +02:00
Poe Mon e4312f9396 Translated using Weblate (Japanese)
Currently translated at 79.4% (380 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5db98d53a864ac7f35df8060e7c72c1ba23155c2
2024-05-15 14:12:50 +02:00
Poe Mon 1a0b4e2300 Translated using Weblate (Japanese)
Currently translated at 79.2% (379 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia2e1fc79d5d94824c2c2920d1b1f09810750ad8d
2024-05-15 14:12:50 +02:00
Poe Mon 7026255f4f Translated using Weblate (Japanese)
Currently translated at 79.0% (378 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I281056ba9d5876f1c4160e6576ee56bc264169e7
2024-05-15 14:12:50 +02:00
Poe Mon 2b720cdb60 Translated using Weblate (Japanese)
Currently translated at 78.8% (377 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6e12e744cecba35c57adfd34efbd28da20593f51
2024-05-15 14:12:50 +02:00
Poe Mon cc22892700 Translated using Weblate (Japanese)
Currently translated at 77.8% (372 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I71d4f6907890c8cc81ecb0fdf7a4d09ad0ef5047
2024-05-15 14:12:50 +02:00
Poe Mon 34a05e0db7 Translated using Weblate (Japanese)
Currently translated at 77.6% (371 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5024e9590c9c16f5fc24e13b1ee894e8a174d64f
2024-05-15 14:12:50 +02:00
Poe Mon 57204c1229 Translated using Weblate (Japanese)
Currently translated at 77.4% (370 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9fb4602e25228f38407b11169acefe47116b6e4c
2024-05-15 14:12:50 +02:00
Poe Mon 80ed6d9309 Translated using Weblate (Japanese)
Currently translated at 77.1% (369 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib5971b94aa46eb9e1d74a486332f14a9c6627e83
2024-05-15 14:12:50 +02:00
bittin1ddc447d824349b2 9ec4366a45 Translated using Weblate (Swedish)
Currently translated at 100.0% (585 of 585 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sv/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iceaa2eef77542854ca2fb9f770c25108462ae1c5
2024-05-15 14:12:50 +02:00
Poe Mon 00dde7a2ae Translated using Weblate (Japanese)
Currently translated at 70.2% (336 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If15d4f76a60b547d674691e8b00513f06ad8a850
2024-05-15 14:12:50 +02:00
Rob Pearson 08c9b9a2f9 Translated using Weblate (English (South Africa))
Currently translated at 100.0% (585 of 585 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_ZA/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id4654296efb61c47131a538f8ead82ed3f647f94
2024-05-15 14:12:50 +02:00
Rob Pearson a633b7f627 Translated using Weblate (English (New Zealand))
Currently translated at 100.0% (585 of 585 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_NZ/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8bbd9a7e9f757a66a8f81557235443d37939297c
2024-05-15 14:12:50 +02:00
Rob Pearson 55c8c0d058 Translated using Weblate (English (United Kingdom))
Currently translated at 100.0% (585 of 585 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0a8912f34f96cd6a70d5d41f171cce41f5a6168c
2024-05-15 14:12:49 +02:00
Rob Pearson 9db198849a Translated using Weblate (English (Australia))
Currently translated at 100.0% (585 of 585 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I15218d4f1e8a6334d70c1d96b58b338bfef94fce
2024-05-15 14:12:49 +02:00
Poe Mon 35c14d6fb0 Translated using Weblate (Japanese)
Currently translated at 65.6% (314 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie689e357df29b9e0a02e34ce708d2ebc523ec5ed
2024-05-15 14:12:49 +02:00
Poe Mon 2a37ef7862 Translated using Weblate (Japanese)
Currently translated at 63.3% (303 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I238a6f1ae68686c8ff3e5a0886e3ae3877ca4c5e
2024-05-15 14:12:49 +02:00
Shavazo f0a7f87a27 Translated using Weblate (Japanese)
Currently translated at 63.3% (303 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I238a6f1ae68686c8ff3e5a0886e3ae3877ca4c5e
2024-05-15 14:12:49 +02:00
Poe Mon 0c58cf5512 Translated using Weblate (Japanese)
Currently translated at 62.1% (297 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If4c7da24e2bcbc03f1b0ec26dd2a59d6c98ec76d
2024-05-15 14:12:49 +02:00
Shavazo 11f82d7894 Translated using Weblate (Japanese)
Currently translated at 62.1% (297 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If4c7da24e2bcbc03f1b0ec26dd2a59d6c98ec76d
2024-05-15 14:12:49 +02:00
Alexander Gabilondo c4e8380c04 Translated using Weblate (Basque)
Currently translated at 98.8% (578 of 585 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: I12cb7e29d9be8c39523f3d93973d96b55868e423
2024-05-15 14:12:49 +02:00
Poe Mon 43cd2cf467 Translated using Weblate (Japanese)
Currently translated at 60.2% (288 of 478 strings)

Translated using Weblate (Japanese)

Currently translated at 55.4% (265 of 478 strings)

Translated using Weblate (Japanese)

Currently translated at 55.2% (264 of 478 strings)

Translated using Weblate (Japanese)

Currently translated at 55.0% (263 of 478 strings)

Translated using Weblate (Japanese)

Currently translated at 53.7% (257 of 478 strings)

Translated using Weblate (Japanese)

Currently translated at 100.0% (585 of 585 strings)

Translated using Weblate (Japanese)

Currently translated at 88.0% (515 of 585 strings)

Translated using Weblate (Japanese)

Currently translated at 88.0% (515 of 585 strings)

Translated using Weblate (Japanese)

Currently translated at 100.0% (22 of 22 strings)

Translated using Weblate (Japanese)

Currently translated at 68.1% (75 of 110 strings)

Translated using Weblate (Japanese)

Currently translated at 86.3% (19 of 22 strings)

Co-authored-by: Poe Mon <p.poemon.awitd@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6155250baf0d3f7ff2e54330cc9622a163ed177b
2024-05-15 14:12:49 +02:00
Sebastiaan Veld cfb61a3d30 Translated using Weblate (Dutch)
Currently translated at 100.0% (585 of 585 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (585 of 585 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I26404dbeefe0d28b080eb4dd9c480ef1a60ab9ff
2024-05-15 14:12:49 +02:00
Shavazo 376cf3086f Translated using Weblate (Japanese)
Currently translated at 60.2% (288 of 478 strings)

Translated using Weblate (Japanese)

Currently translated at 55.2% (264 of 478 strings)

Translated using Weblate (Japanese)

Currently translated at 55.0% (263 of 478 strings)

Translated using Weblate (Japanese)

Currently translated at 53.7% (257 of 478 strings)

Translated using Weblate (Japanese)

Currently translated at 82.7% (484 of 585 strings)

Translated using Weblate (Japanese)

Currently translated at 38.0% (182 of 478 strings)

Translated using Weblate (Japanese)

Currently translated at 82.0% (480 of 585 strings)

Translated using Weblate (Japanese)

Currently translated at 78.9% (462 of 585 strings)

Co-authored-by: Shavazo <pleasure.7010@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I652016630fe632cb4815ce045596aabc4126b343
2024-05-15 14:12:49 +02:00
Milo Ivir 275a3e7445 Translated using Weblate (Croatian)
Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (Croatian)

Currently translated at 99.1% (580 of 585 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I91353f8cc83de2410f757ce2365e87471e14173b
2024-05-15 14:12:49 +02:00
SC 00e7d6c095 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (585 of 585 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (22 of 22 strings)

Co-authored-by: SC <lalocas@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/pt/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/pt/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt/
Translation: Collabora Online/Android lib
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic6d8df7646c9854d5f7ba7bfffc6d691889b920c
2024-05-15 14:12:49 +02:00
Henry Castro a4d316f2ff browser: preview: fix invalidate all parts
It is called when changes dark/light mode,
reset the fetch property to false.

Change-Id: Id8de5245d56405624ebe72b5655d37b52892f654
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-05-15 10:13:30 +01:00
Henry Castro aa9ee925f8 browser: preview: fire 'beforerequestpreview' on request preview
Change visual indicator before request a preview.

Change-Id: I3a050ebc2aa2216af9508e01f56a5bf46756f5e1
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-05-15 10:13:30 +01:00
Henry Castro 3efbfaeccd browser: preview: add initial preview smile
Change-Id: Iad438677637850f8e410e7ba652a30673bea234a
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-05-15 10:13:30 +01:00
Henry Castro 43f56b89f6 browser: preview: remove remaining unused code
Change-Id: I36efb34ea813fc110fdad3b1165c37f7f2b9d683
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-05-15 10:13:30 +01:00
Skyler Grey a8af953b9f Make headers move on pinch-zoom
While zooming, things like the cursor move along with the zoom. The
headers instead stayed fixed until the zoom is complete. This is
inconsistent with panning, and worsens your experience when zooming

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I100de8f1fd62b831c285c9acab456260dbb77ead
2024-05-15 09:08:30 +00:00
Skyler Grey d9168d447f fix(pan): Make screen edge offset document
Similarly to I1a2060d44d3b75935bf138056330a52d56a028ae, I have made
panning past the document edge create an offset too. This provides
similar benefits to the fluidity of scrolling at document edges.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I2eedf2449620c5c8fec9ebf71dbe23d5a643ad5c
2024-05-15 10:07:05 +02:00
Skyler Grey 9a73b20731 fix(zoom): Make screen edge offset document
Zooming always leads to same backwards and forwards, even when you have
hit the screen edge. At the edge of the screen, you can move no further,
which causes the illusion of it being "sticky" on the return journey.

By adding an offset when we reach the edge, we can avoid the stickiness.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I1a2060d44d3b75935bf138056330a52d56a028ae
2024-05-15 10:07:05 +02:00
Caolán McNamara 30e064907d explain the relationship of global and bundle 'onopen' handlers
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I5cba504273d4fd035a918839001ccb91976ccb16
2024-05-14 22:16:14 +02:00
Gökay Şatır 96e6eec12f Remove some unused lines.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I24686166eadfff8622e10bddaa4893ed821191eb
2024-05-14 22:12:57 +02:00
Gökay Şatır 571a066eca Convert cellSelectionArea into simpleRectangle.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ib3289dca84d02b7171db2e41f33dd18ba87c0cbf
2024-05-14 22:11:55 +02:00
Gökay Şatır d80689e551 Improve section definitions.
Remove createSection from CanvasSectionContainer.
Use extended classes.
Move some of the sections to their own files.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: If80e86f55920f80d9fb1fddef49ac451ed744b7c
2024-05-14 22:11:01 +02:00
Caolán McNamara d42798abc6 initial dark mode not always set
typically can be seen on a fast connection to a NextCloud instance

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ie3431d58cb2499464e1bfac95dcf3b981536a7a2
2024-05-14 20:27:44 +01:00
Henry Castro 3cc17d6583 browser: fix doclayer de-reference
Change-Id: Ibea3a7dc30f8e948044cb513ff4f54166a50d162
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-05-14 16:44:40 +01:00
Michael Meeks ff8dbe7fde cool#9045 - close clipboard race by waiting for completion.
To avoid the HTTP[S] request racing the websocket and sometimes
loosing we need to:

* get a notification from the Kit when the copy / cut is complete
* wait on a Promise for this, to allow the HTTP fetch to start
* re-work to do a single, rather than two fetches by sharing
  the download promise.

Change-Id: Ic23f7f817cc855ff08f25a2afefcd73d6fc3472b
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-05-14 13:19:52 +02:00
Gökay Şatır e06bc471ef Remove unused code and CSS rules.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ie5ba30b4080770e51c37e1266e1613c169e58cfa
2024-05-10 22:11:29 +03:00
Gökay Şatır 717e837211 Use simpleRectangle for docLayer._graphicSelection.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ibc84782abf8e7668d31360e106fc73522fcd4494
2024-05-10 22:11:09 +03:00
Henry Castro 15338e91c3 browser: preview: replace meta preview place holder
It is required to initial preview place holder,
otherwise, there are some cases that the server takes
time to serve preview_placeholder.svg and it may cause
an ugly effect.

Change-Id: I70ac46c8c464b64a09f091cdf5f8644d208a79d4
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-05-10 14:58:19 +01:00
Henry Castro 95e8ea0a95 browser: preview: remove unused code
Change-Id: I1ebf8611b898f52209fd6d4a6f20a749cbb05e07
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-05-10 14:58:19 +01:00
Henry Castro 511bd3b7c6 browser: preview: simplify _onScroll function
Change-Id: I4bf06c92299af5375f01a5be63bb95268257be1c
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-05-10 14:58:19 +01:00
Gökay Şatır 70ff910f20 Fix variable type error in "setDesktopCalcViewOnZoom" function.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Idcd7040271e26bad4d04921bcb19dfb0ed45169b
2024-05-09 18:24:47 +03:00
Gökay Şatır e0e5a6a418 Cypress updates.
Change the cell selection circle color in dark mode.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I23826bdf0a09fa7e8b1c25132842f98e37997034
2024-05-09 13:28:54 +03:00
Gökay Şatır 9b3038c70f Initialize CanvasSectionContainer as soon as the canvas HTML element is initialized.
Move section definitions under canvas initialization.
Use app.sectionContainer instead of painter_sectionContainer.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ie10bfa36fca30bd1dda42adab2bbf2a16c418717
2024-05-09 13:28:54 +03:00
Gökay Şatır f64521caa1 Fix indentation.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I9b5334ee7b8178503eef7c4790acb8a5ac1f8340
2024-05-09 13:28:54 +03:00
Gökay Şatır 5a28490394 Remove unused CSS class targets.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ibf93bf3f28b6ae06374bc992cc733f9ad9b0a419
2024-05-09 13:28:54 +03:00
Gökay Şatır 975385f0d2 Move canvas sections and section container into canvas folder.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I952e1770b5708381cef5cfbf1f02e6ec4b0502ad
2024-05-09 13:28:54 +03:00
Gökay Şatır a15e4e25e0 Use CellSelectionHandle sections on mobile view.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I4409981e8de2fca6211236590f3096b765456ed6
2024-05-09 13:28:54 +03:00
Gökay Şatır ecdcc369d6 Replace _textSelectionStart and _textSelectionEnd with SimpleRectangle(s).
Also move them into their sections.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I677a100c859ac8986f5609d9caa5187ef81818dd
2024-05-09 13:28:54 +03:00
Gökay Şatır b9e7d071a2 Add functions for sections' shown status.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ia480364c76b149177643971a0a29a2410c32475e
2024-05-09 13:28:54 +03:00
Gökay Şatır 932b99cf12 Finalize text selection handles.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I3d7a9a01903455c2b4c9303a27dd37702650cbb3
2024-05-09 13:28:54 +03:00
Gökay Şatır 8a0843764b Move DropDownSection into its own file.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I4cab2546f6828ab3c76ba8a4e06601904a06502e
2024-05-09 13:28:54 +03:00
Gökay Şatır 551b9cb104 Replace textselection markers with textselection handlers.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I2de0c4720250022d5547f3f657e277949721ba92
2024-05-09 13:28:54 +03:00
Méven Car 6fc6f07572 UI: improve combobox appearence
Since f7491e1f62 all combobox started
having a with and min-width of 100px, this wasn't meant to be.
Restrict this width setting to .jsDialog.

Add 5 px left padding to combobox, this looks better.

Set the font combobox width to 5em instead of 50px.

Signed-off-by: Méven Car <meven.car@collabora.com>
Change-Id: I0f0247471376e4633f3bbffab89285e16f78cde9
2024-05-09 11:24:44 +01:00
Bayram Çiçek 6300853c4d fix prettier error
Signed-off-by: Bayram Çiçek <bayram.cicek@collabora.com>
Change-Id: I666337388d570898720b1055145d7dfe3b4b80cf
2024-05-09 12:19:01 +02:00
Szymon Kłos fcbd08f98c Mention: share more code
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic9fd29a05cbc2e62abb9f3651cdb771ab1d9adf0
2024-05-09 12:19:01 +02:00
Bayram Çiçek e92d048926 add AutoCompletePopup.ts base class
Signed-off-by: Bayram Çiçek <bayram.cicek@collabora.com>
Change-Id: I60e69fcc7eda3c76cf6e3309cdbc6ab777a90292
2024-05-09 12:19:01 +02:00
Szymon Kłos 81722df0ab Add missing types in Mention.ts
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia3909dd8a1e55a4872e38d5b3d0e8493401d475b
2024-05-09 12:19:01 +02:00
Bayram Çiçek 368c2218ec more conversion of Control.Mention.js to ts
Signed-off-by: Bayram Çiçek <bayram.cicek@collabora.com>
Change-Id: Ida4be8f63b05aad9db80acd6eba7e8e403587ac7
2024-05-09 12:19:01 +02:00
Gülşah Köse a46147588f Convert Control.Mention.js to Control.Mention.ts
Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: I575d9e14562b1a77f30d355024a2106d7955fe6a
2024-05-09 12:19:01 +02:00
Méven Car dab5afac90 postMessage test page: Add messages from editor view
Add CloseSession button.
Also improve spacing of elements.

Signed-off-by: Méven Car <meven.car@collabora.com>
Change-Id: I9999654f9d53d44016eeb0ea587cf3f61b000471
2024-05-09 12:08:43 +02:00
Hubert Figuière dbd3bc1482 calc: Properly handle the disable state
Doesn't hide the grid when the Function wizard is open anymore
when disabling the ToggleSheetGrid button.

Depends on https://gerrit.libreoffice.org/c/core/+/167370

This is a follow up for issue #8066.

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: I79ba99716eb1103e7239fe5cc302c64827c9ef53
2024-05-09 05:46:49 -04:00
Caolán McNamara c1724983f7 cool#8744 ensureCanvas on preloading tiles
So we front load at time of request as much work as possible when we are
basically idle rather than do it when the tiles arrive.

https://github.com/CollaboraOnline/online/issues/8744

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ief643f1e98cf4a853d56a68d82b48ff092e5a963
2024-05-09 10:36:48 +02:00
Caolán McNamara cfae2097b1 ensureCanvas takes two arguments, the 2nd the lastRendered time
make the current uses that just pass the 1st argument explictly
set null for the 2nd arg and retain the orig lastRendered time
in that case.

This lastRendered gets overwritten by _tileReady after calling
_applyDelta.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I237d34e8d1fde94c95eb778c054e4ac5985c2a50
2024-05-09 10:36:48 +02:00
Skyler 3dd2087bae Stop page scrolling
Sometimes an input we are focusing on is considered out of the viewport
by the browser. This is not always the case, and, even when it is, it's
not trivial to move it back in.

Instead, this change detects scrolling and re-scrolls the view to 0, 0.

Doing so is not without consequence, as there is a slight jitter before
we can scroll back, however this is substantially better than having the
controls off-the-page.

Signed-off-by: Skyler <skyler.grey@collabora.com>
Change-Id: Ie5003f9244ce1c0e8a183de5fdbcf3a880b13a13
2024-05-09 10:06:56 +02:00
Szymon Kłos fcfb95638f jsdialog: css: use available aspace for ui-txtarea
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I824dd5addaa93a1ae779b0070de9d8971f7797ea
2024-05-09 08:47:39 +02:00
NickWingate 1bc78e8059 Expose object name and description dialogs
It can be used to apply name to an object so it will
be presented in the navigator as something unique

Signed-off-by: NickWingate <nick.wingate@collabora.com>
Change-Id: Ica06259dc3007d638a4998ccc2cce03ad1a5ca05
2024-05-09 08:47:39 +02:00
Caolán McNamara 399afd123f tile.canvas is always true after a successful _ensureContext(tile)
_applyDelta returns early if the initial "ensureContext" of the tile
fails.

i.e.

  var ctx = this._ensureContext(tile);
  if (!ctx) // out of canvas / texture memory.
    return;

and ensureContext already calls ensureCanvas, so tile.canvas is
always true in the remainder of this function.

The "defer constructing the image & applying these deltas until the tile
is rendered via ensureCanvas." implied a sort of deliberate optimization
to wait until render time to apply the delta which doesn't actually
exist.

Also move the stray "// 'Uint8Array' delta" comment back to where it
originally came from as documentation of the type of the param, as in

commit 4140bf8741
Date:   Sat Nov 6 11:11:13 2021 +0000

    Bring back the delta application JS from the 6.4 branch.

...

 _applyDelta: function(tile, delta) {
         // 'Uint8Array' delta

...

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: If15a897c3251f28639c9f1112687e543421e457d
2024-05-08 20:47:10 +01:00
Gökay Şatır 396d835f53 Container is rendered on the server side.
It should always be visible when the function is called.
Rename the function to _setPreviewContainerTop for readability.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ib90da34574b0a5a44c9a2e7a2b2d64cdd2d59938
2024-05-08 16:00:23 +03:00
Pedro Pinto Silva 45c51c42de Slide sorter: presentation toolbar: Remove ui break
There is no need to add a visual break/divider between "Fullscreen
presentation" and the "Insert Slide" buttons:
1. They are visually very well distinctive so there seems to be not a
need for a division
2. There is not so much white space so the more we can reduce visually
the better

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I27b84782e5af987d9aec3734f7557c746a03667c
2024-05-08 13:18:23 +01:00
Caolán McNamara 9b68218ffa _canonicalIdInitialized is a member of CanvasTileLayer not TilesPreFetcher
a problem since:

commit 04ac02b033
Date:   Sun Sep 3 17:37:49 2023 +0300

    Do not request tiles until we are sure a canonical id is set

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: If285a53c51b17a812a7387150f99f0f43486b9e3
2024-05-08 10:50:00 +02:00
Caolán McNamara 3e937ef83f check for _docLayer existence before deref of _docLayer
order is since:

commit 06e4722cc9
Date:   Fri Aug 7 18:37:11 2020 +0530

    loleaflet: rewrite tile-prefetcher for L.CanvasTileLayer...

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I69b7dd8974d2333cecbc38f94d4851bb0c5f44fc
2024-05-08 07:43:16 +02:00
Henry Castro 913f684e30 browser: preview: simplify 'isPreviewVisible'
.

Change-Id: Iee73f2eb77d1fc20aa266f66fda314770bc666d0
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-05-07 14:09:54 -04:00
Henry Castro 94b25bce1f browser: preview: fix time out resize event
Change-Id: I5e3b49909fdbd46134aee359e8aa015f4672892d
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-05-07 14:09:54 -04:00
Rashesh Padia c1f0fcf946 indirection_server: migrate document on shutdown
- when COOLWSD get SIGTERM admin sends a "shutdown_received" message to
indirection server
- indirection server sends back migration messages for each document to
migrate it other available COOL server
- there is timeout associated with migration message if COOLWSD doesn't
get message we move on and close the document
- added a new option in coolwsd.xml to change the migration timeout
default is 180s

Signed-off-by: Rashesh Padia <rashesh.padia@collabora.com>
Change-Id: Id7d5eea94d1b03ea5905ca67a9dd8f6ca15952f3
2024-05-07 20:26:46 +05:30
Rashesh Padia 438985ab31 admin: fix gaps between cards when server/card gets removed
Signed-off-by: Rashesh Padia <rashesh.padia@collabora.com>
Change-Id: If72d27b0b32a00e0105dce08292afa4c792d6cb5
2024-05-07 20:26:15 +05:30
Hubert Figuière 22e789a420 impress: restrict presentation in readonly mode
When export is disabled or watermarks are enabled, presentation in readonly mode
is disabled.
This is checked in the frontend by the WOPI property `DisablePresentation`
that is synthesized in the wsd. Also check when calling the presentation
command.
WOPIFileInfo::getWatermarkText() is stubbed on mobile.

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: I4f7aff9f670f7523dfcf396f6009a272df9d5af8
2024-05-07 13:21:04 +01:00
Michael Meeks bd524201d3 bgsave: use document name progress bar instead for saving.
Avoid the popup overlay and associated annoyance.

Also use a progress bar for loading in the normal overlay.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Icafdcc958d92f42cba44e3b213d6a0202566251a
2024-05-06 20:28:08 +01:00
Michael Meeks 90f387cdc5 bgsave: change statusindicator protocol message to 'progress' + JSON.
We need to get more helpful structure into this message, and add a
type=bg flag to handle background progress messages.

Add unit test for merging progress: setvalue commands.

Simplify ProtocolHandler sendTextMessage with a std::string wrapper.

Android code needs manual testing.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I54ce807e2fc5de80118905e68557a95e637fbd18
2024-05-06 20:28:08 +01:00
Pedro Pinto Silva 28cd22e792 Mobile: Formulabar: inherit more from desktop, remove negative value
- Inherit padding from #formulabar desktop, a single dimension instead
of placing different margins/padding across mobile
- Fix alignments
- Use css vars for buttons sizes

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I21110e43115576a212d29b1a55268fbeed6d52af
2024-05-06 15:39:59 +01:00
Pedro Pinto Silva d526ee1031 Formulabar input, cell address input, AutoSum: Fix sizes discrepancies
- Remove individual sizes
- Rely on the same single size digit that comes from the parent
  container
- AutomSum button should not inherit buttons height
- Fix jumping buttons: Cancelformula (close btn) should be placed
  exactly where equal ("=") was before

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I6c5a40709051ace3313195f4491798429eb5f6a0
2024-05-06 15:39:59 +01:00
Pedro Pinto Silva 7a83489abe Formulabar: Fix address input field not being targeted (css)
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ifdd449bcedb5049eae281b9b5e882b410290a7ee
2024-05-06 15:39:59 +01:00
Pedro Pinto Silva 30d3313342 Formulabar: Fix buttons jumping position
Before this commit the buttons would jump position between default
button group and cell edit mode button group (when acceptformula and
cancelformula buttons appear)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5411f145a9f4f4d2dd10a4278105447a52755815
2024-05-06 15:39:59 +01:00
Pedro Pinto Silva 23db285fa4 Formula bar: Fix alignment, avoid individual margin for each button
Better to rely on grid gap or somesuch

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I50e59d1b3464687a0bba76bf54a0ed2412dc3758
2024-05-06 15:39:59 +01:00
Pedro Pinto Silva 9e87e8ca70 Refactor: CSS: avoid generic formulabar rules
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Idfc850615026dcf06bb1f27c4adbe8f33b6f9bee
2024-05-06 15:39:59 +01:00
Szymon Kłos 05ed084481 Show run presentation icon in Impress slide sorter toolbar
This fixes regression from commit ae5e33b30c
remove-w2ui: convert presentation toolbar to JSDialogs

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2f7c34369f1d2683be481fb466656b972de50cd4
2024-05-06 14:16:41 +02:00
Szymon Kłos 58e5208027 Fix buttons visibility in formulabar on cancelformula
Make code more deterministic by removing old hacks with
timeout and cursor detection from:
- 6037d52
- b62320c

Bug was that on desktop when we were in formula edit mode
and we clicked cancel button - it was not showing again
the regular buttons but instead it was showing the
accept/cancel buttons.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1a51920e99f4902c1dbb62b0eab6e4f2edc932ce
2024-05-05 21:22:55 +02:00
Szymon Kłos c817690f8d jsdialog: hide unused linkbutton
this is shown after commit cf0a6f4
jsdialog: add "linkbutton" as an independent widget

it wasn't there before

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibdf8a9eb7f226740c11e8a34c16c7be4177576e6
2024-05-05 20:04:55 +02:00
Darshan-upadhyay1110 e88d9340a0 Fix toolbar up section after w2ui rework
To make consistent all toolbar element height with prev version where we were using w2Ui lib
- i have added height to table-row element same as we had in prev version
- remove fix height for toolbar-up which is not needed now
- this fix height will effect the bg-color in toolbar-up section

Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I7b307a6a72968ed81fe2eb8663c430f11e3b3ced
2024-05-02 13:55:25 +01:00
Pedro Pinto Silva caa132c386 Fix calc-mobile top toolbar and formula bar which are broken
Pedro :
This changes from flex to grid (so we can have multiple columns and 2 rows)

Darshan:
    - adding one more div and wrap all child of toolbar-wrapper execpt 'formulabr' will work here
    - i have tested the css grid approch it is breaking the mobile UI in Calc
    - here i have changed a bit in html and twiked css which covers all cases

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia50fda95e2bef57d707bb4be1dd34e2ec083bfc5
2024-05-02 13:55:25 +01:00
Pedro Pinto Silva f003bb3b8a Mobile: Hamburger and back btn: Fix height after table to div
With "Change table layout to CSS base table structure" and "Adjust
table elements for mobile view." changes we now have more divs instead
of table elements but with that the hamburger menu is now mislaigned
   - Fix height
   - To do: ideally we would make both hamburger menu and the button
   at its side rendered with the exact same structure which is not the
   case. And ultimately remove height and just have it flex stretch etc

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id9365df82f1caff132dde41760a06689ec1145d1
2024-05-02 13:55:25 +01:00
Pedro Pinto Silva 82f2e01175 Mobile: remove legacy hamburger (opened state) rules (css refactor)
No need to specifically set width and height for .menuwizard-opened
state. Best to set only one time those dimensions and just inherit
from #toolbar-hamburger no matter the additional css class

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I51eafc6c9b05b843d800b40a990aefd912e463f8
2024-05-02 13:55:25 +01:00
Darshan-upadhyay1110 872ac5ad29 Adjust table elements for mobile view.
- we changed table structure of `toolbar-wrapper` with `div`
- so we also need to consider mobile view
- made some neccessary changes for mobileview because of structure change in cool.html.m4 ('toolbar-wrapper')
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I91cd2c3ffbb0d625a78852398f6773136e9a7f6b
2024-05-02 13:55:25 +01:00
Darshan-upadhyay1110 dd3df946e1 Change table layout to CSS base table structure
- For the editor in the home view, a layout table is used, and it includes the use of IDs. This can
potentially lead to issues with the interpretation of content by assistive technologies
- Layout tables are
meant to structure the layout of a page and should not contain structural markup like th , caption ,
summary , headers , or id.

Solution:
- replace `td` and 'table' tag with `div`
- make some changes on css to be consistent with our prev design
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I136cd8d51b2e5035c6ef4292f759f49519e5bd61
2024-05-02 13:55:25 +01:00
Henry Castro 273e9c15a8 browser: preview: simplifiy _resize function
The _onScroll request the visible previews.

..

Change-Id: Ib5370f1790b489edb4626a22bf6c5bb1cd8d0f17
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-05-02 08:15:53 -04:00
Henry Castro 8da4031073 browser: preview: update 'createPreview' function
It only initialize the initial preview width and height,
the _onScroll function will request the visible previews.

Change-Id: I7e04ea93f85a9270d09b241dc14391be214080a4
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-05-02 08:15:53 -04:00
Henry Castro 3efeae0484 browser: preview: remove unused console logging
Change-Id: Iebe938767ec1c162fe1119f32ba1f7847f6226d5
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-05-02 08:15:53 -04:00
Tomaž Vajngerl cf0a6f4a2f jsdialog: add "linkbutton" as an independent widget
This depends on the core change, which separates the linkbutton
widget from fixedtext widget as it is already an independent widget
in "weld" and used in accessibility checker. Adds "clicked" event
that is triggered when the text is clicked and send to the core.

Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Change-Id: I4a999f3e57aaa7950482c55defa3012346351cb1
2024-05-02 10:38:21 +02:00
Tomaž Vajngerl eed0dadff3 Adds a11y checker sidebar
Enables the accessibility checker sidebar, changes the icons from
the old name to the new name (as it depends on the UNO name) and
adds the UNO command to enable the sidebar.

Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Change-Id: If9aeb375ec87ef27d4dead5f3148bc40f01db976
2024-05-02 10:38:21 +02:00
Darshan-upadhyay1110 a7a541ad14 initializ UI after server reconnection
- Non-edit mode does not intialized after server reconnection
- this patch will fix initializedUI after reconnection
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I43405067287dd3f7f134fc9dcabfdcae183724ce
2024-05-02 09:57:46 +02:00
Rashesh Padia fcc34f061a fix: can't reconnect and get to edit mode after full server shutdown
- regresssion from 464358ca70

Signed-off-by: Rashesh Padia <rashesh.padia@collabora.com>
Change-Id: If2b20c7960e3c242064fc04425b4f893612f6362
2024-05-01 16:23:02 +02:00
Pranam Lashkari 1f66dcf831 calc: fixed js console error
problem:
when try to edit any cell for the first time,
there was console error due to undefined variable

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I8a29ad6e0e6243cc55175be0173eceb80bfea877
2024-04-30 15:36:18 +01:00
Darshan-upadhyay1110 e45e31949d Remove '-input' string because we append that in _editControl & correct all getElementById which uses the Input element
- Because we have appended '-input' to add ui-edit-control in jsDialog builder filer
    - now we do not need any id/string which have '-input' at very end of that element

    - for some cases we need correct GetElement by ID in js files

Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Id9b4f53e8deaa2f26c6abc93dc80504895107bd0
2024-04-30 14:54:21 +02:00
Darshan-upadhyay1110 dd445ad4d1 Wrap input[type='edit'] with a parent div
- To unify editControl, added additional "parent" for edit's input
- this will be consistent with other input type controls
- and will help to establish link between lable and input[type='edit']
- changed parameter from input to it's input container which will help to pass correct ID to Core

Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: If5ab78bdf3d3ad61438898f5e4cacc19bd2ecb63
2024-04-30 14:54:21 +02:00
Szymon Kłos ec63d9c032 css: fix button-box alignment
in 24.04 more elements are grid now, it seems to be a
regression in button box:
1. enable macro execution in coolwsd.xml
2. open spreadsheet with macro
Result: you see the dialog with buttons in 2 rows
Expected: all buttons are in the same row

it seems to be missing grid placement for left and right sections

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic1a3479114e4f832e852b9bdf3d39d2669ae69bb
2024-04-29 21:54:14 +01:00
Julius Härtl b0b73d2794 fix(browser): Emit proper UI_PickLink post message
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Change-Id: I635780723b98887e6c35a397940cc2517a6a9025
2024-04-29 19:13:35 +02:00
Pranam Lashkari ae27e8291c macro: open document without macros enabled
problem:
when user selected disable macro in the opening dialog
document used to close and return to integrator
but now cancel button in csv import dialog is hidden,
so no need to distinguish there and we can continue to load without macros
In addition we still close the file if user clicks "X" button on title bar

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie0c7d77954e099cb3c8a72c400c688b3ae1343c7
2024-04-29 18:59:12 +02:00
Skyler Grey 1895938524 calc: zoom: Stop leaving blank areas with freezes
Previously when there was a frozen pane we calculated an incorrect
size on the unfrozen pane, leading to slight blank edges when you were
mid-zoom-out.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Id26f6ba815429addd0cdf3af37f5c54363a08b2b
2024-04-29 18:35:43 +02:00
Skyler Grey bb9be7abb8 Make freeze shadow appear/disappear mid-pinch-zoom
Previously when panning with zoom, the freeze shadow would stay in its
initial state (either hidden or shown) whether or not it should actually
be shown at the current position.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ic0d05c1204b1e15abbb6d8ad34235206fdc7740c
2024-04-29 18:35:43 +02:00
Skyler Grey 227bf6de6b Make freeze shadow move with a pinch-zoom
Previously the freeze shadow would stay where it was, creating a hard
edge and confusion about where was frozen. With this change, the freeze
shadow moves with the zoom.

This change needs a followup to show/hide the shadow when we reach/move
away from the document edge.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I8bec41be6ce5eff3c1bfd3ac0234b6d53833614b
2024-04-29 18:35:43 +02:00
Pedro Pinto Silva f50d5a1303 Custom properties dialog: fix grid and misalignments
- Fix alignment between rows by:
  - Setting some of the columns' width
  - Removing margin from all buttons & set width. Add column gap
- Fix vertical alignment
- Fix header alignment (Name, Type, Value) so it aligns to the content
- Make "Add property" occupy full width (ideally this button would be
  part of the inner grid "last row" but for now this is already an
  improvement)
- Remove lengthly css targets and the use of nth-child

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I85d9bdbcc365c735757ee086f6e4912d694a011c
2024-04-29 15:21:06 +01:00
Hubert Figuière 978dc59ce1 calc: Implement hiding the grid lines
Fixes #8066

Requires https://gerrit.libreoffice.org/c/core/+/166647

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: I2196e1a8e654a8afd20519b18f00cefafa048f2c
2024-04-29 14:42:18 +01:00
Henry Castro 91b082fb44 browser: preview: fix invalidate previews when resize
Change-Id: Ic4f4a2cc9e98134564e0a9015b0d4c99bad66e08
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-29 07:39:52 -04:00
Henry Castro 53d702b717 browser: preview: remove unused code '_isPreviewVisible'
Change-Id: Ie7c4a8d4909837888db31952dee8a190a0d332c5
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-29 07:39:52 -04:00
Henry Castro c2f4c999ae browser: preview: remove accessor hack
Change-Id: Id936503eade75aba9d9a4772a9dcdd3e5ed4742f
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-29 07:39:52 -04:00
Henry Castro df0ec74f9c browser: preview: replace missing 'preview_placeholder.svg'
.

Change-Id: Ic12df42d1b7bdc79377c9cb5f52f819f0d5083f1
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-29 07:39:52 -04:00
Henry Castro a1c976f913 browser: preview: simplify 'updateAllPreviews'
Change-Id: I0d7c3877924544064bafc3ca93c887329b04a245
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-29 07:39:52 -04:00
Rashesh Padia 7a75153290 fix: zotero options not visible when viewId is zero
- regression from 9202365fc6

Signed-off-by: Rashesh Padia <rashesh.padia@collabora.com>
Change-Id: I4554a5fcc9b0c5dce48c8b35ea32142ff1c323f3
2024-04-29 10:28:54 +02:00
Gökay Şatır 1a1835bd90 Remove "updateResolvedState" function.
It sets a reply's status to "resolved" only if its parent is resolved.

I can't remember why we implemented this like this before.

But now, we don't need to.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ia31dab0237d3b89e5d391cf87394514d18b595f7
2024-04-29 11:09:36 +03:00
Gökay Şatır e43d988084 Fix typo. Causes JS error.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: If2ffdf4d561d34f3febc6c976e7427621c5cdf79
2024-04-29 11:06:01 +03:00
Miklos Vajna c559e2fc5e cool#8806 clipboard: fix paste special of images in Firefox
Copy an image to the clipboard, click Paste -> Paste special on the
notebookbar in Firefox: the image is pasted, but the paste special
dialog doesn't close.

What happens here is that Firefox lacks navigator.clipboard.read(), so
the relevant code is Clipboard.js dataTransferToDocumentFallback(), not
the new _navigatorClipboardGetTypeCallback(). Here e.g. copy from
desktop Writer (html+text) would lead to a _doInternalPaste(), which
would call _checkAndDisablePasteSpecial() for us, but the image case
returns early, so the closing doesn't happen.

Fix the problem by explicitly calling _checkAndDisablePasteSpecial()
before returning early.  In contrast with the other uses of
_checkAndDisablePasteSpecial(), we don't need to call the paste or paste
special uno command (since _asyncReadPasteImage() takes care of pasting
with a websocket comment), so it's fine to ignore the return value.

No testcase, our cypress tests run on Chrome, and this happens only with
Firefox.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I751d234edfdf9e8fb37f2bf2d6b3f3d8e65a27f4
2024-04-29 08:52:53 +01:00
Aron Budea d471d93c1e browser: Add correct class to Share / See History buttons in Impress
...as in other tabbed bar JS files.

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I29c43d9dc0ce4fa929e049e70171e0b8ab029088
2024-04-27 02:00:44 +02:00
Szymon Kłos d1a58af640 css: fix insert shape popup
insert shape now shows all the items in one column.
fix it so we have rows

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I371f7fa233e46a62dbb6637d934bc5ceb5cdecb0
2024-04-26 15:26:48 +02:00
Pranam Lashkari 1a287fd96d annotation: avoid resizing editing comment
problem:
when you try to reply to long comment, it would be resized
and subsequntly reply box will take space and other comments
will not make enough space for it

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I4d81904721e5bb196947598d0dca211ee9d480a6
2024-04-25 20:27:25 +01:00
Pranam Lashkari fe9b582275 annotation: fixed comments could not expand
problem:
when comment was on the edge of the document/screen(vertically)
resize was called which ultimately collapsed the comments in small screen
which could not be expanded unless scrolled further from edge.
It was more problematic for the threads,
if entire thread could not fit in the screen it was always failing to expand

regression from bac4161

it nullifies the effect from 81b00e7
now if comment is added at the end of the document and it goes beyond doc boundry
doc will not scroll automatically to make entire comment visible

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I198b4887ae19ca0c17ba1453960cd36a66beb04d
2024-04-25 20:27:25 +01:00
Pranam Lashkari 0c2247213e annotation: fixed thread scrolling to root comment on action
problem:
when long thread did not fit on screen and actions were performed
on last comments of thread which put root comment out of view,
it will cause scroll back to root comment (i.e: reply)

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I23d699425dc2dff1cfeddf6ab9be7131f80c3a31
2024-04-25 20:27:25 +01:00
Pranam Lashkari 38efd68c14 annotation: avoid explicit unselect before select
select function now can take care of reselection and layout update

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I2a061643ec190d5b2d005b940923a28131ed6cb0
2024-04-25 20:27:25 +01:00
Pranam Lashkari e443f940d1 annotation: make comment section scrollable with mouse
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ib6a2fee7ace81ffbc82ec4545e6f613f79c6734f
2024-04-25 20:27:25 +01:00
Gökay Şatır e0a0646ce1 Use app.file.textCursor.rectangle instead of map._docLayer._visibleCursor.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I9108d5b3281cf6d2c904d227880e451b608d8d37
2024-04-25 15:42:35 +03:00