Commit graph

1555 commits

Author SHA1 Message Date
Pedro Pinto Silva
ed5ab42d38 Calc: Add missing class to toolbar-wrapper when on tabbed view
This is needed so 584aa5b8f6
is also applied on tabbed view.
Until now we were just adding that class when on compact view
(Control.TopToolbar.js)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8c0ac3d909f64025f301651564b3c2b1ae130e1c
2022-07-14 09:16:30 +02:00
Егор Ермаков
ffc5e4f45b Translated using Weblate (Russian)
Currently translated at 62.5% (286 of 457 strings)

Translated using Weblate (Russian)

Currently translated at 100.0% (462 of 462 strings)

Translated using Weblate (Russian)

Currently translated at 99.7% (461 of 462 strings)

Co-authored-by: Егор Ермаков <eg.ermakov2016@yandex.ru>
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: I821ed266d54f8802e747aa5c558799851d93121e
2022-07-11 19:12:16 +02:00
Rob Pearson
537af141e2 Translated using Weblate (English (South Africa))
Currently translated at 100.0% (462 of 462 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (462 of 462 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (462 of 462 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (462 of 462 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_ZA/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If529c436a314705de45fc5801e7bbcf11ab44ba8
2022-07-11 19:12:16 +02:00
Adolfo Jayme Barrientos
95210c9f16 Translated using Weblate (Spanish)
Currently translated at 100.0% (462 of 462 strings)

Translated using Weblate (Catalan)

Currently translated at 99.3% (459 of 462 strings)

Translated using Weblate (Asturian)

Currently translated at 50.0% (231 of 462 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: If20eeac4c226f519c29c9c910e92e466f6994821
2022-07-11 19:12:16 +02:00
Yaron Shahrabani
7366f21bd3 Translated using Weblate (Hebrew)
Currently translated at 100.0% (462 of 462 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: I5b7c69f8c73a7723bc941ceaba20bb53d1f26411
2022-07-11 19:12:16 +02:00
Henry Castro
63998720f4 browser: ensure if welcome was disabled
Change-Id: I22a90c0dd8e80870699aef12b800c85508b17920
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-07-11 14:19:00 +03:00
Andras Timar
fb25b7d806 If integration theme does not exits, fall back to default theme
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9939ee243aa81b50969168df2e8bb5c8cbf2a34c
2022-07-11 12:59:05 +02:00
Pedro Pinto Silva
10c70a46a6 Mobile: Do not allow rules from busypopup to affect snackbar
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ibb3d964f66ef7f18272207b2738708b451c2e1b0
2022-07-11 07:29:26 +02:00
Pedro Pinto Silva
d09157b412 Snackbar: Fix contrast, remove unnecessary rules
Use a dark solid background color - with a shadow (already existent)
- to stand out against content.

Make sure button is blue similar to test selection handles or some
icons etc. So it is visible at 1st sight what's the action

Remove unnecessary or duplicated rules

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I53a291f762c4ed40f5b39230fad8246fa280d050
2022-07-11 07:29:26 +02:00
Pedro Pinto Silva
a29aeac3c0 Remove snackbar's border
It is not a normal dialog as in jsdialog or lodialog,
no need to add border

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib7a4d3d1a89f1c69df8e7a374d4283d48b66e42b
2022-07-11 07:29:26 +02:00
Pedro Pinto Silva
3000d74e7e jsDialogs: Avoid uncertain border radius
Avoid odd number by stop relying on a division by 2.
Instead, use the same already existent border radius.

-----

In the future if we end up deciding on something else,
we should probably create a new var for that and apply
it to all dialogs

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: If0e53f0b2a965587c33156536f74fcc0a223a43a
2022-07-11 07:29:26 +02:00
Pedro Pinto da Silva
e3ed04713c Writer: sidebar (table) fix row height spinner's position
Since the row height spinner is the 1st element in the row,
there is no need for margin.

Note: in the future wuld be good to have the spinner coming from the
builder with additional class or style when they are the first
element being positioned

Signed-off-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Change-Id: I2396ab662fcb4a12762b4a6e2b38582f1df7c59b
2022-07-10 21:35:34 +02:00
Pedro Pinto da Silva
9e67710e3a Writer: Fix sidebar table btns position shift
Remove unnecessary rules targetting minimalrowheight and
minimalcolumnwidth. These rules were
1. Not being apply always (sometimes jsbuilder was
setting them with different id, e.g.: with suffix 1)
2. Even when apply this rules were forcing these two btns
to go up, looking like they are mere icon for the spinner.
This is wrong. They are buttons that trigger the set to the
minimal sizes of that particular row or columns

Signed-off-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Change-Id: I53e81c69cdcc3aafd2ca5ab0f8e196d912b86608
2022-07-10 21:35:34 +02:00
Pedro Pinto da Silva
ba8dfa52a9 Writer: remove sidebarbar spinner padding for table row & col
Before this change the spinner were getting unnecessary additional
padding.

Signed-off-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Change-Id: I43b8bffc8bacc13dfc633cee4cd8f7823834d402
2022-07-10 21:35:34 +02:00
Henry Castro
3cdd25c340 browser: add 'dropdown' dialog type
Adjust the drop-down dialog to the #map element
to show the correct position sent by the server.

Change-Id: I74a6d7402438241aae77a18699c3297d64b34098
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-07-08 16:37:47 +03:00
Pedro Pinto Silva
584aa5b8f6 Formulabar: remove bottom padding from toolbar-wrapper
This was affecting how we perceive padding around formulabar
- Making it look uneven (with more space at the bottom)
- Making toolbar-wrapper's bg visible at the bottom

Remove bottom padding when in presence of spreadsheet so to
avoid affecting the other apps

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Icce34ecb64781221428130f4a11420b5546003ad
2022-07-08 13:22:08 +02:00
Pedro Pinto Silva
fb83b73587 Fix formulabar's address input vertical pos on mobile
Before item address was getting vertical aligned resulting
in misalignment when in expanded view

![image](https://archive.org/download/formulabar-mobile-addressinput/formulabar-mobile-addressinput.png)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8f71a99da0d813a367f75023b5ae1230378bb19c
2022-07-08 13:22:08 +02:00
Pedro Pinto Silva
ae4a240fcc Formulabar: no need to use calc for line-height
Using unitless values will be automatically
multiply by the element's font size

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ice4b56c5da7e47aae83347c1bf6b6ac377a51518
2022-07-08 13:22:08 +02:00
Pedro Pinto Silva
db23db6a78 Fix formulabar's item address input field vertical alignment
Make sure every element between item address parent and the
item address itself is place at the top

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib883f6659788f4ec42ae6d953fa2d857038fc815
2022-07-08 13:22:08 +02:00
Pedro Pinto Silva
450d4611a8 Fix formulabar vertical padding and odd numbers
- Set heights to even numbers so we don't end up with uneven
  surrounding vertical spaces
- Remove individual top margins (margin-block-start) from btns
  - Instead fix underlying issue with formulabar
- Fix text-area padding inconsistencies between being expanded
  and collapsed. Problem: text area becomes taller, ending up
  occupying the top and bottom white space left from its parent
  - Leverage new css class added to the main parent #formulabar
    and add vertical padding so text-area forces parent to increase
    in size
  - Remove sub parent's (#tb_formulabar_item_formula)
    individual top padding

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I380af6cf70c0e879224329fbf9093e0778a38d8d
2022-07-08 13:22:08 +02:00
Pedro Pinto Silva
e3210b4c82 Fix horizontal padding around formulabar
Avoid setting elements, located  on the edges, with margin
in the hopes we get an overall padding:
   - Remove it
   - Add instead a true padding to the main parent

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ie1690c9cc3c58f59387cb6aa73df20d42f5cc1fb
2022-07-08 13:22:08 +02:00
Szymon Kłos
47130f551e jsdialog: formulabar: fix backward selection using shift+arrow
When editing formulabar using keyboard - try to use shift + arrow
to make selection from the end in backward direction.

This patch makes it possible (visible).

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I48073214545892d98be097b38c60251ff95082f3
2022-07-08 12:32:48 +03:00
Szymon Kłos
b506abad58 jsdialog: formulabar: unify behaviour of Safari/Gnome Web with other browsers
eg. Chrome setups selection only if element has focus
it prevents us from stealing focus by formulabar when
switching cells

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I46cbd4d04615478a95a36dd8bcda22d732e74d3e
2022-07-08 12:32:48 +03:00
Henry Castro
545122e933 infobar: listen 'updateviewlist' event
check infobar data when the server send
the user info data.

Change-Id: I0ba1da488f9b3d03dc7e3f42cea718273e6939b1
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-07-08 11:39:48 +03:00
Henry Castro
c4681a79ba infobar: remove interval timer
Change-Id: Icf948c2f7ecc06ed2ba68224bf3fca7c22842ec0
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-07-08 11:39:48 +03:00
Pedro Pinto Silva
d552fc07d4 Fix DownloadPopup close btn overlapping popup link
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I3294ce292b7921e36cb243f25149375f025e517d
2022-07-07 17:35:10 +03:00
Szymon Kłos
fe62d09c28 jsdialog: formulabar: fix freeze when server sent huge paragraph id
if there is no more paragraphs: exit the loop

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7075ff5454e1ddcc11155867f835e85117bdea15
2022-07-07 15:23:20 +03:00
Michael Meeks
e404ce88bb rows: ensure we don't stray beyond the last row in error.
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I04273e6c4ed8ea5b5e4398121f3d97767d7c3a2f
2022-07-07 13:09:47 +01:00
Michael Meeks
9a32c2c27a sheet geometry: build geometry array up to the last row in the range.
Improve performance by not looking up endIdx that may be over the end
of the range. Ensure we still have valid data for the pieces we do
know about.

Playing with a complex 1m row spreadsheet and re-sizing rows by
typing multi-line text into them would provoke row header problems
otherwise.

Change-Id: I5a110137e6d26e2c4b272210cf41883abb02c3af
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-07-07 13:09:47 +01:00
Szymon Kłos
d1cb42e111 Keep custom buttons when switching the view
When we use API call InsertButton and we add custom buttons
we want to keep them when we switch between compact/tabbed view.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If03520f52422ac41aa40432f068e5bc011ed2596
2022-07-06 12:18:54 +02:00
Rash419
cb080f561e writer: fix: cannot add picture using picture contentcontrol
use sendContentControlEvent to set picture instead of InsertGraphic uno command
since InsertGraphic is not allowed for a protected content control (like picture),
only sendContentControlEvent();

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I5f70919d995c51456056a8be2aa1e596df7bedc2
2022-07-06 14:57:30 +05:30
Pedro Pinto Silva
806dacecc2 Formula bar: Fix formula and sum btns shifting when expanding
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7a235750513f8375670fa73894964b2a05acab10
2022-07-06 08:35:13 +02:00
Pedro Pinto Silva
7a6f7fd846 Formula bar: Make sure the outline doesn't bleed out
and thus avoid cropping it altogether

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: If959c617c6036daa353dc8185668aeb99d515497
2022-07-06 08:35:13 +02:00
Pedro Pinto Silva
cbfe45185d Formula bar: Increase font size of the text area
Before not only it was not vertically aligned but it was difficult
to read

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I3790d51f4a90dd9bdb5158cfa16ed92de1ebfca5
2022-07-06 08:35:13 +02:00
Pedro Pinto Silva
4a6c701ae2 Formula bar: improve expander img
Set it to 24px, fix stroke and make it a path
- Result same size, smaller visual indicator

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic41b7a1d8e798998ea9399cd68c9fc6b46e73725
2022-07-06 08:35:13 +02:00
Pedro Pinto Silva
12d269768a Formula bar: Set text area and expander with the same style
Decrease number of visual differences between the two while
by using similar style. Add border radius already in use
in other components such as drop-down menus.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I09b51f0817d35641cfc7d028e281ae3ba362a663
2022-07-06 08:35:13 +02:00
Pedro Pinto Silva
ddcf4797a6 Remove Toolbar-mobile.css, avoid bleeding out rules to desktop
The rules found in toolbar-mobile.css seem to no longer be needed
in any shape or form on desktop (even on FF). Remove file and
insert those changes within device-mobile (so it is loaded only
when on mobile)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I58a3d52fc6313a8e32916fa2b5dd4796dd1c1cef
2022-07-06 08:35:13 +02:00
Pedro Pinto Silva
cbf1db8d38 Formula bar buttons add hover effect
And make them less "shouting" by default

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I69306cbe6107ce1f7306291fe55d7f54f7fdfe8b
2022-07-06 08:35:13 +02:00
Pedro Pinto Silva
3d993d79c2 Formula bar: improve autosum menu button
- Make it clear that it is a menu button
  - Remove extra space between triangle and image
- Fix icon size, before it was overshadowing the function icon
- Redo icon, so it is more legible, less tall and less flimsy

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I95c635b9a39aaa4dd470372018c63c9f45385b25
2022-07-06 08:35:13 +02:00
Szymon Kłos
3e1c068127 Fix TypeError when using formulabar variable in Writer
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I5e90fe04f83cacfbf4dd15a821f3d0b1310a9ab2
2022-07-05 20:47:46 +05:30
Pedro Pinto Silva
95db795a23 Allow buttons in vex dialogs to wrap
ported from:
PR: https://github.com/CollaboraOnline/online/pull/4976

In cases when the button text is too long
or when using CO in, for example, DE language and when
the length of the parent dialog was not enough the btns
would not stack up, instead that would overlap. This would
make reading those btns impossible.

![vex-btns-overlap](https://archive.org/download/csv-overlap-btn-labels/CSV-overlap-btn-labels.png)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I801ea330db21add35d0a81466a1fba9501a61899
2022-07-05 12:01:13 +05:30
Sebastiaan Veld
bd44a879fb Translated using Weblate (Dutch)
Currently translated at 100.0% (462 of 462 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: I604d6118f1bca7242de194a84fadc16c5de51952
2022-07-02 18:39:20 +02:00
Nathan
23ad398698 Translated using Weblate (French)
Currently translated at 99.5% (460 of 462 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: I38c51c48d17242e261c3e6fe849585b43609eeca
2022-07-02 18:39:19 +02:00
Yaron Shahrabani
91baaa0f7a Translated using Weblate (Hebrew)
Currently translated at 99.7% (461 of 462 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: I494dcf5c9c176a63a66242cc2290818dfe7bd964
2022-07-02 18:39:19 +02:00
Ayhan Yalçınsoy
193bce6815 Translated using Weblate (Turkish)
Currently translated at 99.7% (461 of 462 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: I80302d1a3751e44219b91d3e6d349cd041303c77
2022-07-02 18:39:19 +02:00
AbsurdUsername
339d5be236 Translated using Weblate (Italian)
Currently translated at 100.0% (462 of 462 strings)

Translated using Weblate (Italian)

Currently translated at 93.0% (430 of 462 strings)

Translated using Weblate (Italian)

Currently translated at 100.0% (457 of 457 strings)

Translated using Weblate (Italian)

Currently translated at 100.0% (22 of 22 strings)

Co-authored-by: AbsurdUsername <sgso@pm.me>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/it/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/it/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/it/
Translation: Collabora Online/Android lib
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I41053824fbb7040c79820dd95e503fe7dcf00f1b
2022-07-02 18:39:19 +02:00
Eric
0b0f483e95 Translated using Weblate (Chinese (Simplified))
Currently translated at 80.0% (370 of 462 strings)

Co-authored-by: Eric <alchemillatruth@purelymail.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: If8c4f929ec7a8a0e55f81b53df9b08bcd1afd925
2022-07-02 18:39:19 +02:00
Ihor Hordiichuk
9794a6a2d4 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (462 of 462 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: I8a0dd12197259a4dadbddce25580ab9c1566c162
2022-07-02 18:39:19 +02:00
Andras Timar
6b524c1466 Translated using Weblate (Hungarian)
Currently translated at 100.0% (462 of 462 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: I1620d5e529c0b1e50a93e8731ef64c13cc78d043
2022-07-02 18:39:19 +02:00
Szymon Kłos
0833ec6489 jsdialog: use open/close instead of toggle for dropdowns
This helps us to be in sync with core especially with
problematic dropdowns like:
Sidebar in shape context -> Line Panel -> Line Width
This will close and not reopen the popup when we click outside.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I4daf90f2611f6caa922022e1cc6e248f6a62d02f
2022-06-30 13:53:55 +02:00
Rizal Muttaqin
7c45f7a468 Revise dark variant of Picture Control icon #4845
Signed-off-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
Change-Id: I728152c67975fd297b2035d4bf102cc5c57695f1
2022-06-30 11:43:19 +02:00
Pedro Pinto Silva
0f97be5d05 Context menu: on hover, fix contrast
User a darker background for on mouseover items

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib6dc6d2ed434d21765ab3d6bf3988dc918261281
2022-06-30 11:12:57 +02:00
Pedro Pinto Silva
aad841a48f Fix padding in follow editor's entry (userListPopover)
Use the same padding as the user names and thus fixing the
alignment (vertical: checkbox vs avatars)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I1acb8cf5e3e5dc8aad083151c9c54b38aa552d6c
2022-06-29 19:44:08 +02:00
Pedro Pinto Silva
c3c37b3b71 Add following label to userListPopover (avatar list)
Until now user was reporting not fully understanding all the
features that user userListPopover offers. Namely, not knowing
that not only is possible to follow the editor (checkbox) but
that it is also possible to follow a specific user from the list

Make it easier to understand what's the current following status
by adding "Following" under the selected user name in the list

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0beba5df06f2cc7a9a349ef8f93db6b403befb9b
2022-06-29 19:44:08 +02:00
Pedro Pinto Silva
8a5d87f679 Hide avatars list when follow editor changes status
Get rid of the popover once the user completes the action
Probably better to avoid having hanging popover (that have no
close btn) and instead close them, specially because this
one can always be re-opened at anytime from omnipresent
toolbar and without risk of triggering any additional change

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id7946512e6c54622e3ed20b28d56178c05b18b5c
2022-06-29 19:44:08 +02:00
Pedro Pinto Silva
dadffd8a76 Hide avatars list when a user entry is selected
Make sure the avatar list popover automatically gets out of the
way once the user selects an entry (follow user)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ie83a587e4f9900ffb0d70cadbfb13cfe81d8b849
2022-06-29 19:44:08 +02:00
Pedro Pinto Silva
7a395f48a5 Avatars list: Add missing hover styles
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I6a5b215316a988ad0649982415c2d8ce6fab1212
2022-06-29 19:44:08 +02:00
Pedro Pinto Silva
dbf88dda17 Use the same bg for #userListPopover and its pointing triangle
Before the triangle was getting a different bg when compared
to #userListPopover

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: If110d9e1178bedb7e858804e169689ee97a5a385
2022-06-29 19:44:08 +02:00
Pedro Pinto Silva
556220303d Fix position of avatar list
Instead of trying to re-position #userListPopover for every case
(compact view, tabbed view and rtl), use flex to align the elements
- This also fixes the positioning discrepancy of both the popover
but also the arrow (triangle)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I32ed3e05efc51001db106f5baaf18012e87965fe
2022-06-29 19:44:08 +02:00
Szymon Kłos
081deb5090 comments: don't lose focus if is edited
When spreadsheet was opened after few seconds we received CellCursor
message.
If comment was opened end edited at that time - it dissapeared

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I15804bfa0bf9ccac03c2858184db327a978061b3
2022-06-29 11:34:47 +05:30
Andras Timar
dcae5fa613 proxy.php: Special case for the remote image
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I98da25735a3b889824a72c2134c495abd26b3a05
2022-06-28 22:03:28 +02:00
Andras Timar
4a17ceb72b Fix release notes URL for 22.05
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If98d3a8dd70a71d5d2f44ef4248ec1608382b764
2022-06-27 20:12:35 +02:00
Ihor Hordiichuk
4d8e29850b Translated using Weblate (Ukrainian)
Currently translated at 99.7% (461 of 462 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: I5d385e48f1ffdf5ec7be1a210489305bf3bf310f
2022-06-27 20:11:04 +02:00
Martin Srebotnjak
0b43c019ae Translated using Weblate (Slovenian)
Currently translated at 100.0% (462 of 462 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: I3f12ffbc3db15c6d07ff48cdc404b14ca2ad07f7
2022-06-27 20:11:04 +02:00
Matthaiks
811a34e851 Translated using Weblate (Polish)
Currently translated at 100.0% (462 of 462 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: Ia628d6b391a45059a8e860e0604beb9c35aa74b6
2022-06-27 20:11:04 +02:00
Andras Timar
848d1bbcdb Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5f72c01c8ac275798e5f083e8c61c0b0789801ac
2022-06-27 17:26:36 +02:00
Matthaiks
c5a490c3f4 Translated using Weblate (Polish)
Currently translated at 100.0% (457 of 457 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: Id8013876ed314776258cadbe7c75de453031b9ac
2022-06-27 17:25:13 +02:00
Andras Timar
97884769ec Translated using Weblate (Hungarian)
Currently translated at 100.0% (457 of 457 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: If71b793017f38e29b8aa7ab91ced66e3b22b47d4
2022-06-27 17:25:13 +02:00
Andras Timar
04eafaf323 Update UNO command translations
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I64502c9295197e6edf0a0d947e9dec138b7b9c05
2022-06-27 17:10:50 +02:00
Andras Timar
9edb092df1 Update UNO command list and unwind the damage of direct editing of the file
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I692b76eb795041d3068dc3ff50dfeba83034e2dd
2022-06-27 17:10:50 +02:00
Andras Timar
6c6c44b73b Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic2076761f90483ed1a910fc151fcd9ab45d8e066
2022-06-27 15:50:09 +02:00
Szymon Kłos
1908d84bcb jsdialog: be sure popup overlay will not block user
Don't add multiple overlays with the same id.
Remove overlay always when it exists and we close.
Close dropdown entires by dropdown click - specific to 21.11
where popups in the core are handled differently.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia1652434f38571defb817bfb29491ed0bd246e73
2022-06-27 15:05:28 +02:00
Szymon Kłos
9c81a240a2 jsdialog: use correct element to close popup
For toolitems with dropdowns we should toggle the button.
Use correct parent so we don't use button from other component.
Later we send toggle event to properly close the popup on the server.

example: Calc sidebar, Underline popup
Before this patch when we clicked in outside the popup it dissapeared
but app was completly blocked.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I124a41361df305931c66047a8799ce03393b67de
2022-06-27 15:05:28 +02:00
Eric
bc0ea4e47b Translated using Weblate (Chinese (Simplified))
Currently translated at 63.6% (291 of 457 strings)

Co-authored-by: Eric <alchemillatruth@purelymail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/zh_Hans/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia9e0926ee5fca292a026eaa09b4d41d30f8c72bc
2022-06-27 13:23:37 +02:00
Ayhan Yalçınsoy
114bdcb36b Translated using Weblate (Turkish)
Currently translated at 100.0% (455 of 455 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: I22617b15f0fe476be93f4629fec1ccfa5e8fe26a
2022-06-27 13:23:37 +02:00
Sebastiaan Veld
6f4c4a3738 Translated using Weblate (Dutch)
Currently translated at 100.0% (457 of 457 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (455 of 455 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (457 of 457 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (455 of 455 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ios-app/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Translation: Collabora Online/iOS app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4ad42f81a439d04a053b18b5669ba6f42f116d7b
2022-06-27 13:23:37 +02:00
Nathan
ea25a391bb Translated using Weblate (French)
Currently translated at 99.5% (453 of 455 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: I7ff86a18fa35b26c29422213c2b1a6393eca029a
2022-06-27 13:23:37 +02:00
Martin Srebotnjak
42568612ac Translated using Weblate (Slovenian)
Currently translated at 100.0% (455 of 455 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: Idd9269476c7972ce031e6333366ab88603886aee
2022-06-27 13:23:37 +02:00
SC
4b937f9dcc Translated using Weblate (Portuguese)
Currently translated at 100.0% (455 of 455 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: I9d36b85abeff7adffcc0af86d728142320a7dcb6
2022-06-27 13:23:37 +02:00
Mathieu B
e40862a5ad Translated using Weblate (French)
Currently translated at 98.2% (447 of 455 strings)

Co-authored-by: Mathieu B <mathieu.bousquet2@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: I72f749e51cf5ed134f975ce8b456ba5f51790964
2022-06-27 13:23:37 +02:00
Ihor Hordiichuk
fbe8a51468 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (455 of 455 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: Ie74775208b6167e846c9371973068bfe1082faa4
2022-06-27 13:23:37 +02:00
Matthaiks
f5bd60ea34 Translated using Weblate (Polish)
Currently translated at 100.0% (457 of 457 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (455 of 455 strings)

Co-authored-by: Matthaiks <kitynska@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/pl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pl/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0cb02b565a19abbb36b5c09f665a045cccbd1227
2022-06-27 13:23:37 +02:00
Andras Timar
a0d779e16c Translated using Weblate (Hungarian)
Currently translated at 100.0% (455 of 455 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: I12b393379d7a8268701c1d7699f356a2e8e35adb
2022-06-27 13:23:36 +02:00
Yaron Shahrabani
7d98c8a4de Translated using Weblate (Hebrew)
Currently translated at 100.0% (455 of 455 strings)

Translated using Weblate (Hebrew)

Currently translated at 99.7% (454 of 455 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: I492efa1e1594cb3aeb663818a61dd26f9f2dbf95
2022-06-27 13:23:36 +02:00
Rob Pearson
68f6de23d6 Translated using Weblate (English (South Africa))
Currently translated at 100.0% (455 of 455 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (455 of 455 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (455 of 455 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (455 of 455 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_ZA/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I043410200c00fc39d34f06bf30bad5ee61e9ea7d
2022-06-27 13:23:36 +02:00
Szymon Kłos
896f5b9ce8 notebookbar: unify color control in all components
Keep in sync colors in sidebar and notebookbar when
we change one of them.

Followup for
    commit 13ef21aa1e
    notebookbar: unify color control with core

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia8af727c6ba6b5b32a644ff070954c9ada584a24
2022-06-27 13:03:45 +02:00
Pedro Pinto Silva
82e9348609 Calc: formulabar item adress fix padding
Use instead logical properties

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I162f18a0249cc6a95c81418677bd03d68d9119d6
2022-06-24 21:23:25 +02:00
Pedro Pinto Silva
8f0f1c700d Calc: address bar, remove w2ui break
unclutter formula bar surrouding elements by removing the visual
break and instead add padding. Plus: we can now remove CSS
rules that were targetting that break's id

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4a9990a5709918d7cacfac2ef41b91281f9af54a
2022-06-24 21:23:25 +02:00
Pedro Pinto Silva
182e4ce9fc Formula bar's input address: add missing border property
This fixes a odd behaviour present on chrome based browsers
where the adress input (current cell) was being rendered
with a thicker border and with emboss style due to browsers'
default values

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib5ab745ab45415e86a2976d537b5766a72a136d3
2022-06-24 21:23:25 +02:00
Szymon Kłos
b2d8fc620a Avoid TypeError by not using undefined function
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6b2fc565f33169eca575f59a8a4b2ce398588113
2022-06-24 17:18:28 +05:30
Szymon Kłos
bbd63374f3 Don't focus map on .uno:CellCursor message when widget is focused
Just after we opened spreadsheet and opened font list - it was
closed after some seconds due to focus change caused by
.uno:CellCursor update.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifabde00163567ab7d4f3f8359d58b4251fff5ec3
2022-06-24 17:18:28 +05:30
Szymon Kłos
13ef21aa1e notebookbar: unify color control with core
in desktop case color widget should show the latest selected
color not current one. split the button into arrow with dropdown
and "last color" button (icon)

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I07fcc94d69e14b030cf9f1bfe3ae50f0df333ec7
2022-06-24 12:45:16 +02:00
andreas kainz
4e933cea51 mobilewizard.css #fontsizecombobox.mobile-wizard only
the css rule for #fontsizecombobox at file
mobilewizard.css
change also the behaviour at desktop sidebar
so added .mobile-wizard and than the rule
was for mobile only.

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I704857bca49556abebca018ef7a284c7b2159530
2022-06-24 10:05:48 +02:00
Szymon Kłos
8cd4bbd8b9 jsdialog: don't focus containers
Be sure we focus active part of a widget. We also require
active eleme3nts to have unique ids assigned so we don't
lose focus after we update the widget.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iaf741f4753022b7f4da92184d576623dd0300adc
2022-06-24 09:38:56 +02:00
Szymon Kłos
b71c542f15 jsdialog: listbox and scrollwindow are not containers which need additional parent
This helps to keep id unique and process events correctly.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I35997ed40d09de73a7451b54243c54b041fd9c34
2022-06-24 09:38:56 +02:00
Rash419
c3e30b88be fix: CheckFileInfo - HideSaveOption, HideExportOption and HidePrintOption do not work in NB
fix: after switching to Notebookbar view and back again to Classic View; the Save icon reappears.

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I8fda18a9148c679209f0de99b80526393a965720
2022-06-23 21:14:34 +05:30
andreas kainz
25c0c47a12 Sidebar .ui-expander-content have left and right same padding
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ifbeecbaef00963498ac3a1bafd2a42075856d9ca
2022-06-23 10:47:33 +02:00
Szymon Kłos
ee996454c8 jsdialog: formulabar: handle tab key
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I5c6e679ebaa4b3d97553e212224c76583ea84fbd
2022-06-21 16:40:05 +02:00
Rash419
5ff8a38473 css: improve contentcontrol datepicker
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib03cd613672089a29ef0226813bca54a0e6b0f81
2022-06-21 18:47:55 +05:30
Szymon Kłos
1d82b32ab4 jsdialog: handle grab_focus action
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I5f53ffd5c3fbee03d1fcbbc47e110212e7882ffd
2022-06-21 12:41:20 +02:00
Pedro Pinto Silva
4b5aa6b4ca Fix images' alignment within pushbutton control, add flex classes
Bug
- pushbuttons with images get misaligned. Namely the inner image that
it's position well. Visible in some places within the sidebar
impress, calc:
https://archive.org/download/bug-pushbutton-with-img-alignments/bug-pushbutton-with-img-alignments.png

Fix
- Pushbuttons with images are now classified with .has-img and inherit
the respective global flexbox CSS classes.
  - Add global flex box CSS classes so we can avoid code duplication
- Also make sure other pushbuttons with image don't butchered with this
change (e.g. calc > pivot table dialog)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ie37680eb02c15417c505402074bbe01d302910cb
2022-06-21 10:33:53 +02:00
Rash419
b27cf37801 contentcontrol: use polygon to draw indicator
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Id6ffb0de53f3fa386ffe13c7680b48d8e104bc8b
2022-06-16 17:33:38 +02:00
Rash419
22e168031d mobile: contentcontrol improvements
add: form icon in insert menu
fix: datecontentcontrol icon in form menu, jsdialog: options for all content control types were shown

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Id3f425f3a80cb09f58b3f83224bb19ebb365e8f3
2022-06-16 17:33:38 +02:00
Michael Meeks
d8482ea7d6 Catch a second location to de-duplicate JS tilecombined requests.
Change-Id: Iec8d5a76b7add535a640aa5940fba50fea03527f
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-06-16 14:00:00 +01:00
Michael Meeks
05f9f2aaff elide duplicate tiles in JS created tilecombine requests.
Change-Id: Iefce276c2a44159d8f177e31dcaae8987343eacd
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-06-15 18:34:58 +01:00
andreas kainz
365b70b0bc Sidebar padding-inline instead of -left -right for RTL support
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ib694d2acf60b2f0058f5ef0633e19aa086498c77
2022-06-15 17:19:45 +02:00
Szymon Kłos
822bc435c3 jsdialog: formulabar: handle keyboard arrows, multiline selection
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia65f49d578cf0a2a184ab583fb7a9694918e6e93
2022-06-15 13:40:29 +03:00
Szymon Kłos
79cc9ae23f jsdialog: formulabar: send key modifierwith all key events
This will allow to create multiline cell content using Shift+Enter

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie1b8497063fc59e29d010c62724b88c4ad8972a0
2022-06-15 13:40:29 +03:00
Pedro Pinto Silva
31b67e9b93 NB: Form tab: Move Properties to last position
Content control properties is not always an active button, it only
takes affect once a content control is selected thus best to place it
at the end.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ie13bdc81a84730380d8462241661775d1abd1699
2022-06-15 11:04:18 +05:30
Pedro Pinto Silva
f5e7f6b247 NB: promote all toolitem elements in form tab
Currently there is no plans of adding more content controls. In total
there are 5 content controls toolitems and one for accessing its
properties.
 - Make it easier to pick content controls by increase toolitem size
 (bigtoolitem)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I86d8c1025cb4ff82fe45654076800057e17e9ea6
2022-06-15 11:04:18 +05:30
Pedro Pinto Silva
9b7970a441 Fix missing icon date picker for content control via iconURLAliases
No need to duplicate the icon, use the existent one.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I22ad3f99778051d6b663207ad229e808a34c0e3e
2022-06-15 11:04:18 +05:30
Rash419
1efbf290dc contentcontrol: mobile added content control option in form menu
rich text, checkbox , dropdown, picture picker work correctly now
css: fix: MacroSelectorDialog rules applied on normal jsdialog

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib6db879e968d45604d737cc5ee2b522fa45218af
2022-06-15 11:04:18 +05:30
Rash419
080a46d2fa browser: contentcontrol: add date type
add uno command to insert date in form tab
renamed 'Content Control Properties' -> 'Properties'

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib4a439cd349bb79430d590e0b80c825372c629d3
2022-06-15 11:04:18 +05:30
Szymon Kłos
8d238eb990 sidebar: css: calc area, line, shadow, possize panels
context: shape

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I791c766a91d4ce50fc2f27e4dfe6adc01583a64e
2022-06-14 22:46:23 +02:00
Szymon Kłos
4d622e044d sidebar: css: calc number format and alignment panels
- removed not needed direct position rules

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I462b04bc64dbcf989f04cbc36c3ecc11be08113b
2022-06-14 22:46:23 +02:00
Szymon Kłos
52e703e67a notebookbar: retry to activate when needed
Don't generate spam in the console log with warnings about not
activated notebookbar in apps where we don't use any welded widgets.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I48c2d843752058923242d6678f08ec0791d08e4c
2022-06-14 10:49:52 +03:00
Szymon Kłos
87e0280a43 Allow to send view mode command when dialog is opened
We automatically send notebookbar activation command in some cases.
Allow this command when dialog is opened and don't blink.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iac068cfca49ce6dbfe241bde752a475560d3445e
2022-06-14 10:49:52 +03:00
andreas kainz
7c3bd732d5 Impress add context: MasterPage
Fix #4808 by add SlideMasterPage to impress view tab
and add a context related MasterPage tab.

Update the icons to use the master*.svg colibre icons from core

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ibbd24d1c20a48e26591d217311c5989794aa841e
2022-06-13 11:20:11 +02:00
Szymon Kłos
b371ff23ff cursor: hide current not all
when other view moved cursor outside out view - all of
them were hidden because we used selector for all the
elements matching cursor class - instead of current
instance

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If97606f33e44ce59f747ad0b015048deacbe8657
2022-06-13 09:02:24 +02:00
Szymon Kłos
abff2c7388 jsdialog: combobox is not a container type
add combobox to list of non-containers and cleanup

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I657038c960d7c606a0e437b0c24e74e83f2c2b00
2022-06-10 15:35:42 +02:00
Aron Budea
63c3560213 browser: adjusted Field submenu in menu bar
Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I50decd1f84dd6e91ba268dabdca2d579e8d229ec
2022-06-10 11:50:19 +02:00
Pranam Lashkari
2990c018cc added icon for unprotect cell
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I48454b529044766c6646b15f9277a22ca0b81642
2022-06-09 18:25:28 +05:30
andreas kainz
864779be02 Compact View isn't part of Sidebar, Statusbar
Compact View is separate in the menubar from Sidebar and Statusbar
So it shouldn't be between them in the View Tab.

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ib46e9c4a4df24432eae5a7fef335e7cde68b1766
Signed-off-by: andreas kainz <kainz.a@gmail.com>
2022-06-09 11:58:48 +02:00
andreas kainz
97e196c370 Insert Shapes instead of Basic Shapes
In the insert tab there is the command uno:BasicShapes
by select BasicShapes the user can insert shapes
at least Basic Shapes, Symbol Shapes, Block Arrows,
Stars and Banners, Callouts, Flowchart, ...

So uno:BasicShapes will let you insert all available type of shapes
therefore the text label should be Shapes instead of Basic Shapes.

fix #4672

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I692b7a5b03b905599648c7af4a016684b12b335a
2022-06-09 11:49:25 +02:00
Pranam Lashkari
2168c3a58e added picture control icons
closes #4845

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I93eac9d7be31c06353b6fd595f699285b7deadd5
2022-06-09 11:53:54 +05:30
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
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
Henry Castro
4a002845f6 browser: remove unused Zlib embedded library
Change-Id: I58b6146d33adce9211143083c393834bff9ece56
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-10 11:48:33 +01:00
Henry Castro
e15a4dea4e browser: use pako to inflate zlib
Change-Id: I3486692fb38f26778ede69c14c64c3886f3565f1
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-10 11:48:33 +01:00
Michael Meeks
4b0b73bec9 js: apply multiple deltas in one blob.
Change-Id: Ied8662ad54ecf76e0e3140a54b2763539f5523d3
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-10 09:35:47 +01:00
Michael Meeks
92f47cb4a3 Do a straight putImage without getting first for new tiles.
Change-Id: I35ef4292d3342febcb7db21348b857f0e50ecdb0
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-10 09:35:47 +01:00
Michael Meeks
01abe2326a Avoid re-creating and initializing canvas tiles un-necessarily.
Change-Id: I94ace82baede5c341f770cef4d910c24f95ca87e
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-10 09:35:47 +01:00
Michael Meeks
b6445a9692 Un-pre-multiply pixels in deltas and BGRA -> RGBA swap.
Change-Id: I31eaf0580cfb9d43df3e85a5f15ae0443b6941f0
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-10 09:35:47 +01:00
Michael Meeks
f76522c86a Compress raw images too directly with zlib.
Change-Id: Idb54db1c3a3d6970db0782b2a7a2eebbad27f153
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-10 09:35:47 +01:00
Michael Meeks
099ebaa089 deltas: add delta deflate compression.
Includes a horrible inlining of minified zlib de-compression (MIT)

Change-Id: Iaf5f9f5e1215458836e26d45e48e436ee52c48ef
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-10 09:35:47 +01:00
Michael Meeks
5abf419bc8 deltas: switch tile.el to be a canvas when that makes sense.
Makes rendering interactive again, and removes the async 'load'
from the delta application code-path.

Change-Id: Iaf95b24b299f6614b37f4188afcdbd95a4a8f673
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-09 16:40:57 +01:00
Henry Castro
f19348f0c3 browser: fix bundling error
The uglify tool does not support es6

Change-Id: Ia87651ad39064889c99922b5e910bd4bcaf09885
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-09 16:40:57 +01:00
Michael Meeks
8aff82aca7 Cleanup and fix issues in delta creation.
Change-Id: I05ac31d2b968821909e975622a0f52a7f6189369
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-09 16:40:57 +01:00
Henry Castro
299457e49a browser: add tmp module package
Change-Id: I2daaf027ea9888f9e543f7543cccd129e1c3bf69
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-09 16:40:57 +01:00
Henry Castro
e3c170cf94 browser: add pako dev dependency
https://github.com/nodeca/pako

Change-Id: I115c6c729f6783a23856a0e41f1908a7fc7f61fe
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-09 16:40:57 +01:00
Henry Castro
28d940eb93 browser: fix jsdom exception drawing in canvas
jsdom requires that the tile is a HTMLCanvasElement element type

Receiver.dataMessage (private/mmeeks/deltas/browser/node_modules/ws/lib/receiver.js:51
7:14) TypeError: The first argument must be an object
    at CanvasRenderingContext2D.ctx.<computed> [as drawImage] (private/mmeeks/deltas/browser/
node_modules/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js:124:17)
    at TilesSection.paintSimple (private/mmeeks/deltas/browser/dist/bundle.js:1:136355
4)
    at TilesSection.paint (private/mmeeks/deltas/browser/dist/bundle.js:1:1364132)
    at TilesSection.<anonymous> (private/mmeeks/deltas/browser/dist/bundle.js:1:136981
2)

Change-Id: I55b77e3a9ae80afd519f1a6c6c5388070c85193e
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-09 16:40:57 +01:00
Michael Meeks
e382d52102 deltas: batch tileprocessed and send together.
Should enable a multi-tile-processed optimization later.
For now lets us see which tiles are read & applied together easily.

Change-Id: I6e0bf13fc4df7b43503637d749753aaad828464e
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-09 16:40:57 +01:00
Michael Meeks
104e4b35cf deltas: remove redundant copy/paste code: _onTileMsgFileBasedView
Change-Id: I57539b35a091cad3718e511270bbf57a2849a60c

Change-Id: I495a91fcdd1db8cd0e47f12131e8e5a61bb90799
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-09 16:40:57 +01:00
Michael Meeks
4140bf8741 Bring back the delta application JS from the 6.4 branch.
Change-Id: I13329e1e7ceeb1fc611193ccaa78fc4e799e1869
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-05-09 16:40:57 +01:00
Henry Castro
df96b97f88 browser: allow cursor jump if text selection is empty
Otherwise, if the user selects all the document,
the clipboard blocks Page Up or Page Down cursor jumps.

Change-Id: Ia9c432646c51063775bb7cca6a998e7d1cdcdbf2
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-09 16:08:14 +03:00
andreas kainz
dd3134d554 .w2ui-button use var color for :hover
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I3b77ba1e99dee24e74f9f839de5590d0a0def939
Signed-off-by: andreas kainz <kainz.a@gmail.com>
2022-05-09 12:54:37 +05:30
Henry Castro
f65afcf5ff browser: fix show feedback dialog
When user click the menu options.

Change-Id: Ia53126b5c2972149839de501214d0a1cb2b5fc6c
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-06 18:50:54 +03:00
Ashod Nakashian
40839e8019 wsd: browser: Reset_Access_Token API to update access-tokens
Change-Id: I92cc424c30824232eaf156ddfe49104932b2ba81
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-05-06 11:13:35 +01:00
Ashod Nakashian
623bcb2948 browser: reuse post helper in framed.doc.html
Change-Id: Iabc310a59a7c4e0522558ea0a15e260d2bf141bd
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-05-06 11:13:35 +01:00
Pedro Pinto Silva
6cfe2dab5b Notebookbar: fix sidebar icon alignment
Subcontainer `root-container notebookbar` was not able to vertical align
contents even thought it has vertical-align: middle
	- Fix it by removing parents' (notebookbar-options-section) height and
		padding

The alignment is still off due to:
sub cell is inheriting automatic padding (useful in all other places)
	- Fix it by remove padding for the cell under
		.notebookbar-options-section

Display inline seems not be needed here, we can just inherit it.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iafb4f83acfff5ae0923afb972cefe1201080c79e
2022-05-06 13:12:27 +03:00
Szymon Kłos
bca1206e29 feedback: fix in wopi case and ask before
- prevent from multiple onDocLoaded calls
- use snackbar to ask user first before showing main dialog

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1afb67c7bb403aa05c8e33ef48c0d55fa57350dd
2022-05-05 16:26:39 -04:00
Szymon Kłos
54fad26c34 welcome: one place with local URL
so we don't have to change 2 places
also I've noticed only one place had
proxy support

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I64af9dac9bd8449fba0de3b05e0c2102e440788b
2022-05-05 16:26:39 -04:00
Pedro Pinto Silva
f5f7ad654a Dialogs should have white background
which is the same color as other container elements inside of it. If
we want to use a "neutral" color that can either be light or dark (due
to future plans on dark mode) then better to just create another var
for dialog backgrounds. For now better to fix (so we can avoid dialogs
such as the pivot table to be with multiple background and with less
brightness then the document that seats behind)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I848392e3c1194963273f2950a22022eeaadbe8f0
2022-05-04 15:20:43 +03:00
Pedro Pinto Silva
dab56036b6 JSdialog: fix disabled radio buttons border
radio buttons were being render with a border surrounding them, example:
insert pivot table, all disabled radio buttons have a border around it

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I003280ec929b49c8f8f0a1b9a4ca361c87a9224f
2022-05-04 15:20:43 +03:00
Pedro Pinto Silva
53e6f7252f Do not add padding too all td jsdialog cells
This was impacting alignments on dialogs. Example Find and replace,
checkbox were being pushed tot he side. Better to rely on parent
padding or table structure

also with 496256a96b -table is no longer
in use

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I60b29f818e8ec53f5c66a2772f4cda82de0011bf
2022-05-04 15:20:43 +03:00
Pedro Pinto Silva
b41658a4c1 JSdialog: Don't add margins to multiple inner containers
Example: macro select dialog is getting set with multiple inner margins
- Simplify the CSS so we only target one sub element
- Remove unnecessary code (no need to add exception for sidebar and
formulabar)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ibc35e6b8c37badbbe27b411c21986ddda0e27ef3
2022-05-04 15:20:43 +03:00
Pedro Pinto Silva
8a4d7d19cd Macro dialog: remove unecessary CSS rules
with 496256a96b we no longer need the
pre fix -table in the ids plus better to just remove any non essential
bits and share more CSS between places

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ica8ef3db2ed52a379cb75437d7b147c8b42bbd7b
2022-05-04 15:20:43 +03:00
Pedro Pinto Silva
7c2a63537e JSdialog, p element: Remove #table- from CSS it was removed from JS
from: 496256a96b

- let's not target absent ids on the CSS side
- Also better avoid target boxN (e.g.: box3)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I41bf1540c634dcde8111ae0192a70772153c592b
2022-05-04 15:20:43 +03:00
andreas kainz
592d27a409 Add color-scheme-dark.css support
@media (prefers-color-scheme: dark) setting
is available by use color-scheme-dark.css
instead of color-scheme.css

sure the scheme need some update
but there are other open points like
use dark color for document
use dark colibre icons

this is only the .css change
so no full dark mode update

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I5c2adcbb75583a952f419af507d7cfe5c1343e3c
2022-05-03 10:40:35 +02:00
andreas kainz
b3a88dd7bc writer notebookbar stylesview previews no padding
remove padding-top: 5px so there is no scrolling
needed for two rows.

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I9a0450074cc55486d0f7de8a39b7edff8e66c752
2022-05-03 09:58:07 +02:00
andreas kainz
96bea09485 Sidebar RTL fixes
border on left and right so it work also for RTL languages

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ic973cfee4c8fd563008477ab38a9e4e3e69c8300
Signed-off-by: andreas kainz <kainz.a@gmail.com>
2022-05-03 09:50:02 +02:00
Gökay Şatır
e6af40f7fd fix: isVisible is not a function error.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ia63a0098b65540462dce32b54cb4910b388f9065
2022-05-02 21:20:50 +03:00
Gökay Şatır
c860303345 increase the dialogue timeout to 10 secs.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I2eb5f22bd9d0f02e605179e4246fcaa89d3ade32
2022-05-02 16:42:28 +03:00
Ayhan Yalçınsoy
b6b1f77c81 Translated using Weblate (Turkish)
Currently translated at 100.0% (444 of 444 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: I48a3cec58f5b79ea1e69fa92f3b45706014dfb6b
2022-05-02 15:09:48 +02:00
Alexander Gabilondo
353021be37 Translated using Weblate (Basque)
Currently translated at 98.6% (438 of 444 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: Ibc52f414f57843e31c144971ce37264eb5059a1c
2022-05-02 15:09:48 +02:00
Pedro Pinto Silva
9b85bfd7d2 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)

Co-authored-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Co-authored-by: Pedro Silva <pedro.silva@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt_BR/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I23cc55c918f72a8cc91429c03fa86f4e101a664c
2022-05-02 15:09:48 +02:00
Nathan
db6125a8df Translated using Weblate (French)
Currently translated at 99.7% (443 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: I56551b4d62d8d2cdb1a19d6b20c4ff26bec498be
2022-05-02 15:09:48 +02:00
Martin Srebotnjak
ad33bfd648 Translated using Weblate (Slovenian)
Currently translated at 100.0% (444 of 444 strings)

Translated using Weblate (Slovenian)

Currently translated at 99.7% (443 of 444 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: Ie519a835e45d5308e3dac9eb19b879f19dc1b726
2022-05-02 15:09:48 +02:00
Adolfo Jayme Barrientos
a54ffd9c32 Translated using Weblate (Asturian)
Currently translated at 10.9% (50 of 457 strings)

Translated using Weblate (Asturian)

Currently translated at 10.9% (50 of 457 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ast/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6707e1c208d3d669bd5535ca61110b8ac2467778
2022-05-02 15:09:47 +02:00
Ihor Hordiichuk
4a529ce6c7 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (444 of 444 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: Id48bcc47729d6deb8dac79e5b3461ebcd8fa34be
2022-05-02 15:09:47 +02:00
Matthaiks
fe3e67a717 Translated using Weblate (Polish)
Currently translated at 100.0% (444 of 444 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: I354f7531d6b9833632621e141515ca2d81ce7fbe
2022-05-02 15:09:47 +02:00
Sebastiaan Veld
9a4925cae0 Translated using Weblate (Dutch)
Currently translated at 68.4% (313 of 457 strings)

Translated using Weblate (Dutch)

Currently translated at 67.6% (309 of 457 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (444 of 444 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Co-authored-by: sebastiaanveld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5690268d76c984a1920fc232c5b405b7e02a9806
2022-05-02 15:09:47 +02:00