Commit graph

1200 commits

Author SHA1 Message Date
Pedro Pinto da Silva
4a62ae6e06 Formulabar: Fix unotoolbutton juggling
Add expand toggle class to parent and use it to align unotoolbuttons

Before, there was no way to know if the input was expanded or not by just looking at container
or any parent. thus, no way to fix alignments per MultiLine status

Signed-off-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Change-Id: Idddefc32812a3aab29ddb72c4d09bacd43b03287
2022-05-30 10:27:35 +01:00
Pedro Pinto da Silva
a892412d42 Formulabar: don't force img parent to be a certain size
some unotoolbutton was being set with the same same size as it's img child
 - There is not need to do this only for :not(.has-dropdown)
 - Make sure img has correct size, let parent element to adapt, no need to
 single out this case

Signed-off-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Change-Id: I1c3734a81cb01a0d15604a2b88148a0f883a59d1
2022-05-30 10:27:35 +01:00
Dekota Nelson
ac587371af Removed unused CSS related to old formulabar. Signed-off-by: Dekota Nelson nelson.dekota@gmail.com
Signed-off-by: Dekota Nelson <nelson.dekota@gmail.com>
Change-Id: I8de68b8c09410026716860ba7a097ce76dc6ae3d
2022-05-30 09:47:28 +01:00
Pedro Pinto da Silva
c3130ecc96 Formulabar: fix sc_input_window height (when collapsed)
Formula input window (textarea) had different height from address input
- Set it at the same height as seen in toolbar.css:211

Signed-off-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Change-Id: Id0fc3dfb0335183050eedc00036b85dbafe2d0b4
2022-05-30 08:21:53 +01:00
Pedro Pinto da Silva
d2f28a03be Fix formulabar width, use flex property
Avoid using percentages when we can already use the grow property
(it avoids different results across browsers)

Signed-off-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Change-Id: I262cfdf5d72313296620e3e522bfa97ab2b00ca5
2022-05-30 08:21:53 +01:00
Henry Castro
e91168fc9c welcome: modify to listen view list changes
In order to get the list users and identify if it
is a guest user to not show the welcome dialog.

Change-Id: I439f46dcfd3ea5b307059952f98f49a387158e24
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-27 15:36:48 +03:00
Pranam Lashkari
f196b45046 fix: typing after idle
Reset document info on idle

resetting document info will force to use new status of the document

problem:
reconnecting after idle, user could not type anything in document,
this was due to some properties were to set assuming they existed from last session (i.e: clientzoom)
resetting document info will force to use new status message and set all the properties again correctly

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ibcf395eee3a4e0b99413de0178331d42a1354253
2022-05-27 13:25:53 +03:00
Szymon Kłos
cada83a778 Fixes exception introduced in:
commit 04187501c1
Unify ui switcher naming

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic1ed669b270297fe200c3c92e38ea8f081bb1b4c
2022-05-27 13:25:53 +03:00
Pedro Pinto da Silva
74f39eb1b2 Fix Insertcontentcontrols strings on tabbed view
Don't use strings coming from uno commands as they include
"Insert":
1. There is no need to say that these actions will "Insert", they
are already in the Insert tab
2. All other actions do not have Insert so it would be not consistent
3. On top of that with Insert in each icon the labels look quite long

Signed-off-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Change-Id: I286e95187d5df08cdf2d71bd99f3b77a17ef12ad
2022-05-26 11:38:05 +01:00
andreas kainz
6810f57dab btns var color name fixes
btns use var names that didn't exist

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I13f2acbdd91cf05391da81adc721156d125f3de7
2022-05-26 11:20:38 +01:00
Michael Meeks
d3f5ba64c1 deltas: avoid interpreting a keyframe as a delta.
Just apply it and move on.

Change-Id: Ib15d4438f3c3e5c0d6996784a6cd64b061b20e1c
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-25 21:24:20 +01:00
Michael Meeks
6483e1500a Enable deltas by default.
Cleanup some debugging, distinguish wsd/viewport delta fetches from
client-side tilecombines.

Update tests for deltas where they are expected.

Change-Id: I3dca09e4ceb094abf03db2aed2618f19351f3e28
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-25 20:31:06 +01:00
Michael Meeks
ae3ac0e4cd De-compress back-to-back streams using pako.
We concatenate several deflated streams back to back, and need to
decompress and apply each one by one.

Change-Id: Ic31f0eae27906f7817a877c98f4cd1e5ca4ee7f3
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-25 20:31:06 +01:00
Michael Meeks
c130231379 deltas: track, transmit and cache deltas (disabled for now)
Squashed from feature/deltas-expanded.

TileCache changes:
    + add montonic sequence (wid) numbers to TileData
    + account for sizes of TileData with multiple blobs
    + simplify saving and notifying of tiles

Sends updates (via appendChanges) based on the sequence the
right mix of keyframes and/or deltas required as a single
message, and parse and apply those on the JS side.

We continue to use PNG for slide previews and dialogs,
but remove PngCache - used by document tiles only.

Annotates delta: properly as a binary package for the websocket.

Distinguishes between deltas and keyframes we get from
the Kit based on an initial un-compressed prefix
character which we then discard.

kit can be forced to render a keyframe by oldWid=0

Track invalidity on tiles themselves - to keep the keyframe around.

    We need to be able to track that a tile is invalid, and so subscribe
    to the updated version as/when it is ready - but we also want to
    store the keyframe underneath any deltas.

force rendering of a keyframe for an empty slot in the TileCache.

force tile sequence to be zero for combinedtiles - so the client can
always request standalone tiles with explicit combinedtiles, or tile
requests.

move Blob to Common.hpp

use zero size for un-changed tiles.

remove obsolete render-id, and color deltas in debug mode.

cleanup unit tests for non-png tile results.

Change-Id: I987f84ac4e58004758a243c233b19a6f0d60f8c2
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-24 22:16:58 +01:00
Ashod Nakashian
c11fab5b78 wsd: browser: handle 413 Entity Too Large from storage
It seems at least some storage hosts report disk-full
errors via 413. This logic of handling 413 error as
disk-full was introduced in
f8e0b8c11e.

Here we handle 413 as it is defined, as Entity Too Large.

Change-Id: I61297c2fab9de663643336a6eba47949f82d1737
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-05-24 22:48:37 +03:00
Szymon Kłos
50f2dec7bc formulabar: added expand/collapse button
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I41625adc4d421a4ef0fa9c8ac88cf7f44a0f4787
2022-05-24 12:01:05 +01:00
andreas kainz
0b494b6db9 add icons lc_insertcontentcontrol and lc_insertcheckboxcontentcontrol
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I3b9ffedcbd393c612d4763433736ef6b038e3b97
2022-05-23 11:44:02 +01:00
Gökay Şatır
c009faa205 Remove unused functions.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ifc5a4a5899e3e4ff26530e9b2f1794824e70f660
2022-05-23 11:37:14 +03:00
Gökay Şatır
835b6b10a3 Remove _moved function.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ica771fb38ea6523906d28b10fdc4842ac1d0e33e
2022-05-20 14:49:04 +03:00
Gökay Şatır
c56f73a915 Remove unused ObjectFocusDarkOverlay.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I430d0c4600ee74518e9442099530c754017fe3bb
2022-05-20 14:49:04 +03:00
Dennis Francis
a9b904c2f6 printranges: indicate them with dashed lines in grid
Read the print ranges for the current sheet from
LOK_CALLBACK_PRINT_RANGES message and draw dashed grid lines for the
rows/columns bordering the range.

Caveats:

* Desktop calc does not draw print ranges on document load if there are
print ranges set previously on save. Cool also has the same behaviour.

* If there are multiple print ranges in the same sheet desktop calc does
not show any dashed lines indicating the ranges. Cool also adopts this
behaviour for now.

* Styling of the dashed lines was not investigated much for writing this
patch hence it uses the same drawing style as normal grids.

Signed-off-by: Dennis Francis <dennisfrancis.in@gmail.com>
Change-Id: I318b679a232f2a6834d6e23278b24a9a96b70194
(cherry picked from commit eb94d9a864a37499e21dbd064e78e40fc20b2415)
2022-05-20 13:00:39 +03:00
Andras Timar
5ee19590f3 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I09271e641fb67c28fe50046d20a67d521151a6f0
2022-05-18 12:30:48 +02:00
Diggaj Upadhyay
08311b4e80 Translated using Weblate (Nepali)
Currently translated at 1.8% (2 of 110 strings)

Translated using Weblate (Nepali)

Currently translated at 44.8% (205 of 457 strings)

Added translation using Weblate (Nepali)

Co-authored-by: Diggaj Upadhyay <dcozupadhyay@duck.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ne/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ne/
Translation: Collabora Online/Android app
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I20cfee897e603d4701b2a495823989bfbf4ae888
2022-05-18 12:25:18 +02:00
Mikhail Pershin
fc17bd110e Translated using Weblate (Russian)
Currently translated at 59.9% (274 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 59.7% (273 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 58.8% (269 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 58.2% (266 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 57.9% (265 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 57.7% (264 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 57.3% (262 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 57.1% (261 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 57.1% (261 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 56.8% (260 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 100.0% (444 of 444 strings)

Co-authored-by: Mikhail Pershin <mikhail@frcdr.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ru/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ru/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I301ef881c66e494d98bfc113af731797bb824bf0
2022-05-18 12:25:18 +02:00
Alexander Gabilondo
7af62ac67e Translated using Weblate (Basque)
Currently translated at 96.9% (443 of 457 strings)

Translated using Weblate (Basque)

Currently translated at 93.2% (426 of 457 strings)

Co-authored-by: Alexander Gabilondo <alexgabi@openmailbox.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/eu/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If3e9602bbdcd5e5a6c82f7770b77f99bfab7ccf5
2022-05-18 12:25:18 +02:00
Leif-Jöran Olsson
f155148e00 Translated using Weblate (Swedish)
Currently translated at 100.0% (444 of 444 strings)

Co-authored-by: Leif-Jöran Olsson <info@friprogramvarusyndikatet.se>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sv/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If5be1127996813e07f1efcfeb588e227cc868104
2022-05-18 12:25:17 +02:00
Adolfo Jayme Barrientos
e07387539f Translated using Weblate (Vietnamese)
Currently translated at 95.7% (425 of 444 strings)

Translated using Weblate (Uzbek)

Currently translated at 22.2% (99 of 444 strings)

Translated using Weblate (Russian)

Currently translated at 98.6% (438 of 444 strings)

Translated using Weblate (Romanian)

Currently translated at 20.7% (92 of 444 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (444 of 444 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (444 of 444 strings)

Translated using Weblate (Indonesian)

Currently translated at 98.1% (436 of 444 strings)

Translated using Weblate (Galician)

Currently translated at 73.1% (325 of 444 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (444 of 444 strings)

Translated using Weblate (Asturian)

Currently translated at 15.0% (69 of 457 strings)

Translated using Weblate (Greek)

Currently translated at 97.7% (434 of 444 strings)

Translated using Weblate (Catalan)

Currently translated at 99.7% (443 of 444 strings)

Translated using Weblate (Bulgarian)

Currently translated at 73.4% (326 of 444 strings)

Translated using Weblate (Belarusian)

Currently translated at 0.4% (2 of 444 strings)

Translated using Weblate (Asturian)

Currently translated at 49.7% (221 of 444 strings)

Translated using Weblate (Afrikaans)

Currently translated at 29.2% (130 of 444 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ast/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/af/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ast/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/be/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/bg/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/el/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/es/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/gl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/id/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ro/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ru/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/uz/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/vi/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5fd5bb78227077cc6763ed4329670e66a454c11f
2022-05-18 12:25:17 +02:00
Nathan
c0eab14c06 Translated using Weblate (French)
Currently translated at 100.0% (444 of 444 strings)

Co-authored-by: Nathan <bonnemainsnathan@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia13d2e61d3e55a29c7c27a7a53732b6e59bafde8
2022-05-18 12:25:17 +02:00
Gökay Şatır
a4885396bb Remove unused divOverlay parts.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I98ea380037e1653cc4635f895d472825df413c73
2022-05-16 21:52:09 +03:00
Gökay Şatır
04a049922a Remove unused boxzoom related parts.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I6ce90e4ec020f2c96ad72b54ea5c5d2182c91bc1
2022-05-16 21:51:56 +03:00
andreas kainz
fee024f739 colibre-dark icons
as subfolder at images/dark

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I720cb82715760661faa74b7a9acb96ad97808ab5
2022-05-16 13:10:20 +02:00
Rash419
d6f055d36d contentcontrol: expose checkbox unocommmand
added checkbox in mobile,classic and notebookbar

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I0bed99094c2c4bacd50529dbd00891d39cb40c13
2022-05-13 17:57:53 +03:00
Rash419
c9b9a6589e introduce content control in online
added unocommand to enter rich text in classic, NB and mobile
created a new section to draw rich text rectangles
handle the callback for content control

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: If9912b3598729c26014519c4e1c3c65000b973a4
2022-05-13 17:57:53 +03:00
andreas kainz
df57005ae2 w2ui-scroll use var colors
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I0908c446ea5eb02c5fcd82f9fe0e2ac1af491dcb
2022-05-13 18:47:23 +05:30
andreas kainz
55d9724999 jquery-ui-lightness/ui-icons_ for dark mode
switch to ffffff instead of 222222 when the prefers-color-scheme is dark

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I3e3c68879c6b6a831d5fbf095597ddae6eb51f77
2022-05-13 18:30:10 +05:30
Rash419
2e186514f4 framed.doc.html: fix: cannot change UI view
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ifa842f64ed70137f06ebdfc053fa5a3afd2f4185
2022-05-13 17:28:04 +05:30
Henry Castro
c802d65d82 infobar: enable info bar handler to check ...
the latest version available

Change-Id: Iff89895757fdd2ae83eb34401480253967234bbe
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-12 18:25:10 +01:00
Henry Castro
a3d0920e18 wsd: infobar: clean up unused code
No longer used.

Change-Id: Ifdaaabc49df1b9af0fb4d436ffe2437446f5926a
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-12 18:25:10 +01:00
Henry Castro
994e3213f7 infobar: fire 'infobar' message
JSON data contains latest version.

Change-Id: I86e581a5a148f32178d6665425e3105d38e04127
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-12 18:25:10 +01:00
Henry Castro
0912d5d83d infobar: clean up unused code
The infobar div is no longer used.

Change-Id: Ic184bf1d0b6259ba7b349aca68edf4692d06e849
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-12 18:25:10 +01:00
Henry Castro
ea9421c330 infobar: show a snackbar message
When data is received from the server.

Change-Id: I53b888acb7624d1ea909bf6fe9eadbf1948dc6b9
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-12 18:25:10 +01:00
Henry Castro
79562d0e17 infobar: remove unused functions
Change-Id: Ic45acc0e627b29ddcd714b74d62aaf82c95df846
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-12 18:25:10 +01:00
Gökay Şatır
670f6efbba Fix typo.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I4cd2782d1dbce6456cd54e45a58329eb73bf557c
2022-05-11 15:43:28 +03:00
Pranam Lashkari
f5a67d37f7 browser: don't show conflict dialog to read-only users
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Icfc95fb72bee6696dffbb194efe95aa5f9716a72
2022-05-11 15:07:47 +03:00
Pranam Lashkari
ad0a1fe9e9 logging: let the log text colour be selected by the browser
browsers having different themes make it hard to read the logs
this will help make logs more readable irrespective of themes

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I9e48f75d0f1ed20221c969db6d4a6ea00910717e
2022-05-11 15:40:29 +05:30
Rash419
0a203ad91e cypress: added desktop calc/autofilter_spec.js
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I48f4ceb591cbdf178b08b44ad1f833b52d5c004d
2022-05-10 22:31:16 +05:30
Szymon Kłos
4f8a29a2a5 formulabr: remove reference marks after use
previously when used formulabar to type: "=SUM("
then selecting some range using mouse and "ENTER"
- referenced range was still visible

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I357b1ef51ad4d46e3e332decda0332ac4f9ad1d7
2022-05-10 14:00:54 +03:00
Szymon Kłos
03f842a385 formulabar: handle ctrl and shift keys
send SHIFT and CTRL modifiers
don't add event listener if not needed (rawKeyEvents not used)

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I5c3487e8655c33f1bf9cabcb2308428a27c18a95
2022-05-10 14:00:54 +03:00
Michael Meeks
486ab2fa86 deltas: add and show debug counts for both keyframes and deltas.
also color deltas as yellow when debugging.

Change-Id: I75e7f92708937adb31106e46e9771115320fb8d6
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-10 11:48:33 +01:00
Michael Meeks
a67b64218a For now detect a delta by size and warn.
Change-Id: I93c0678d8329d9cb4acb9ce30d505c06888063d4
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-10 11:48:33 +01:00