Commit graph

1230 commits

Author SHA1 Message Date
Henry Castro
2e1cb5dd08 Revert "browser: css: add '#lokit-logo' style to fetch lokit-extra-img.svg"
This reverts commit dd83984896.

The logo style already exists and to avoid override rule.

Change-Id: Idf59f1acbc427ea8a33147398057de1883731830
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-06-08 21:14:58 +02:00
Szymon Kłos
d11a23be72 jsdialog: focus map after popup is closed
So we can type after we closed popup in the sidebar.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib4164cfa0b7b25b0a3aeeccdd9d0ac8c9bf7f280
2022-06-08 16:35:17 +02:00
Szymon Kłos
c7ca6dc112 jsdialog: avoid focus in special popups like busypopup
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib2089c9580c70f63cea8504cd847c583fbae9dd1
2022-06-08 12:30:11 +01:00
Pranam Lashkari
b1546f96e5 added UI buttons to protect and unprotect cells in writer table
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I7d9f1457a828d4ce69a49205e65e4df0e394e8de
2022-06-08 12:09:24 +03:00
Pedro Pinto da Silva
aca5503f33 Add missing Run Macro action to tabbed view
- Only visible when macros is switched on (coolwsd.xml)
- Added to the File tab because:
  - We do not have Tools tab and it seems we do not have a need or
  more > 1 action that justifies an yet another new tab
  - Run Macro could fall into Review or insert category but and
  since the icon when pressed Runs a Macro, best to place it
  within File tab since it affects the file. Plus user that is used
  to operate within classic view it's more likely to go to File tab

Signed-off-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Change-Id: I8110fc259860d285f0c911b9b553bdc67235f4e2
2022-06-08 11:40:31 +03:00
Henry Castro
dd83984896 browser: css: add '#lokit-logo' style to fetch lokit-extra-img.svg
Change-Id: Idb7001076db52471bfd4eeb79bf37b3732aa0dfc
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-06-07 15:42:53 +01:00
Rash419
f890e2102d browser: contentcontrol: improve picture contentcontrol to work when there is no integration
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ia53b4332d0e62166cb8f6e9d31f1abdb81bf4594
2022-06-07 08:55:30 +02:00
Pranam Lashkari
0b73614cfb ignore if comment is selected while pasting
if comment is selected but is not in editing,
proceed to normal pasting in document

problem:
while pasting content multiple times with comment,
previously pasted comment stays selected and can't further normally

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ia594c725f4fe7108d6aea1591d88b2c306202be3
2022-06-02 18:20:47 +03:00
Andras Timar
154a177979 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I65062d5ba390acaea87a8cc98771acb23e6bd1fd
2022-06-02 12:18:22 +02:00
Sveinn í Felli
e20a6d80a5 Translated using Weblate (Icelandic)
Currently translated at 100.0% (447 of 447 strings)

Co-authored-by: Sveinn í Felli <sv1@fellsnet.is>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/is/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia54d9fa6d2fe499f1ac64fecfa12c73109cb5831
2022-06-02 12:13:11 +02:00
SC
5899ca7f1a Translated using Weblate (Portuguese)
Currently translated at 100.0% (447 of 447 strings)

Co-authored-by: SC <lalocas@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If188b31aeebc99c8d8294ca1670aeb79efe0507c
2022-06-02 12:13:11 +02:00
Adolfo Jayme Barrientos
17751ffe32 Translated using Weblate (Spanish)
Currently translated at 100.0% (447 of 447 strings)

Translated using Weblate (Catalan)

Currently translated at 99.7% (446 of 447 strings)

Translated using Weblate (Asturian)

Currently translated at 49.6% (222 of 447 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ast/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
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: I2b2ca372ee7d4ed3d1ee05077ebad9ecc465a540
2022-06-02 12:13:11 +02:00
Ayhan Yalçınsoy
aa44c3184c Translated using Weblate (Turkish)
Currently translated at 100.0% (447 of 447 strings)

Co-authored-by: Ayhan Yalçınsoy <ayhanyalcinsoy@pisilinux.org>
Co-authored-by: PhD. Ayhan YALÇINSOY <ayhanyalcinsoy@pisilinux.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/tr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iaf5c8a2f8753fce9909ed19b15b3df28f8b85cb6
2022-06-02 12:13:11 +02:00
Ihor Hordiichuk
1b0e6d4928 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (447 of 447 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: I1f5c56965a3d2f065992ca847e1bc684bfade274
2022-06-02 12:13:11 +02:00
Martin Srebotnjak
3bfdfc8db1 Translated using Weblate (Slovenian)
Currently translated at 100.0% (447 of 447 strings)

Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id906e228ed763edbec424c84a3af1161563ef26c
2022-06-02 12:13:11 +02:00
Matthaiks
6a9515cda6 Translated using Weblate (Polish)
Currently translated at 100.0% (447 of 447 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: If5c7a9df0d5f26de6777fdb12cc628ccfd8993d0
2022-06-02 12:13:11 +02:00
Andras Timar
daac68e4c3 Translated using Weblate (Hungarian)
Currently translated at 100.0% (447 of 447 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: I525abc85aebbc5987e07391dd3b590c6c7b86cd9
2022-06-02 12:13:11 +02:00
Yaron Shahrabani
93b1668628 Translated using Weblate (Hebrew)
Currently translated at 100.0% (447 of 447 strings)

Translated using Weblate (Hebrew)

Currently translated at 99.7% (446 of 447 strings)

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/he/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib31ef778fdf841f6c5d98c2b3112b052dcf053d2
2022-06-02 12:13:11 +02:00
Nathan
fb365b82dd Translated using Weblate (French)
Currently translated at 100.0% (447 of 447 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: I40dacb31ae6a84045cd808e91ce78eb8823b656f
2022-06-02 12:13:11 +02:00
Szymon Kłos
1351f142a2 welcome: temporarily use only local welcome dialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iade402db7fcb8ee7d58dc539ae99f49be20d697d
2022-06-02 12:11:03 +02:00
andreas kainz
334160bb51 calc formularbar use var colors for input elements for dark mode
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I0bee881aafb52d86641243f3e614ffd60427d198
2022-06-02 10:49:02 +01:00
Gökay Şatır
9e5b8cc943 testing the cherry-pick bot.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Id7a0acaa3aefdcde4a0cf65ccbbf133ac9510a67
2022-06-02 11:01:52 +03:00
Rash419
08969b843e browser: contentcontrol: added picture type
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I8ba68253954c9b2052a864c61923d376220861f0
2022-06-01 15:33:47 +03:00
Rash419
0e12c85fc9 browser: contentcontrol: added dropdown type
- added a new menu button 'form' in classic and tab button in notebookbar for content control

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ibe06667de39199fd2541fa70ced3ff879274366d
2022-06-01 15:33:47 +03:00
Szymon Kłos
1761e703f9 jsdialog: use correct codes for shortcuts CTRL + char
we should do the same for other modifiers: shift, alt

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I75933194aee82589c787c8c31cc47b66e96e2066
2022-06-01 14:14:32 +03:00
Pranam Lashkari
e5651d0e1c annotation: unselect comment when cell cursor moves
problem solved:
some times when cell cursor is moved using keyboard,
comments were not unselected,
which caused problems when copying cell which contains comment.
i.e: comments were pasted inside the cell as plain text

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I318c850c25956d210ef9acfa631a689a4d1a71c6
2022-05-31 16:04:59 +02:00
Pedro Pinto da Silva
278d9cd8ec Form tab: Add missing icons for control actions
copied from core

Signed-off-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Change-Id: Ic22f4dd885094a268c755e1ebb60c157d775bf06
2022-05-31 10:49:27 +01:00
Szymon Kłos
7ddd308a50 jsdialog: treeview keyboard support
- handle tab key
- handle enter key for entry selection
- change jquery into plain JS

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia2f8d2d9c8c2dc52c75339c4f72734a5a3e770b7
2022-05-30 12:46:46 +02:00
Szymon Kłos
8174860cfa jsdialog: handle tab key in jsdialog popup fixes #4716
This added begin and end mark to the popup so we can detect
we are leaving the popup and we should close.

This prevents us from blocking the whole UI by focusing
map and typing before popup was closed.

Also close popup when server confirmed it should be closed.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1a290e27dd7a14eca2cd3bb8368fee27255f51a8
2022-05-30 12:46:46 +02:00
Pedro Pinto da Silva
85522f65e0 Formulabar: Make expander look like it's attached to input
Before the expander button was detached from input this in turn was:
- Making it hard to understand what that button will do
- Affecting the overall look and feel of the formulabar (different border-radius etc)

Signed-off-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Change-Id: Id17742aae8b09acd3bdcbffd05fe17181492322d
2022-05-30 10:27:35 +01:00
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