Commit graph

1555 commits

Author SHA1 Message Date
Rash419
4aaa3f2370 js: added EditPrintArea and AddPrintArea uno commands in classic and NB
updated unocommand.js using unocommand.py

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I0d972a16d5e9365af3ce31a39ceb006eb217627f
2022-09-30 13:56:50 +05:30
Szymon Kłos
21c7958549 slidesorter: use correct styles for desktop & selection more visible
Mark as important so will not be overriden by the
mobile-wizard rules.

Use primary color for selection so it will be visible...

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7688f22c4da0121999b7f7675fcab0b0f59f8c11
2022-09-30 10:26:13 +02:00
Pedro Pinto Silva
498eab8da1 Add missing full stop at the end of the error message
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8916172a4c7df9002b6f8d5ac2d508ab2dc6a855
2022-09-29 10:28:18 +03:00
Pedro Pinto Silva
d4c4774a57 Improve infobar's component contrast
Reduce inconsistencies by inherit component properties such as
shadow, border and bg.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia978b229cf4c9616d1d38ccac09644114972b39b
2022-09-29 10:28:18 +03:00
Pedro Pinto Silva
f133aa3ab9 Add button-primary to infobar component
The primary button should inherit styles form our common used
css class

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I923ecc58f5456cba226a35b6f9e180346908febe
2022-09-29 10:28:18 +03:00
Henry Castro
9a51d8ec52 browser: add util function getProduct
Change-Id: I51be33f5e64c716d22c11ddb1f969e9238c18884
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-09-29 10:28:18 +03:00
Henry Castro
b991e6a017 wsd: add buyProductURL
Change-Id: I5ca0a84e7a927496bfe0b314967a2b11b20bd60d
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-09-29 10:28:18 +03:00
Henry Castro
bf8539ff9d browser: initial integrator redirection
Change-Id: I6406b6b1dc128cf8d2141626b6f968fa21cdfbf4
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-09-29 10:28:18 +03:00
Rash419
629b25b27a mention: update the popup with new data and position instead of re-creating the new one
-jsdialog: close the popup when zoom event is fired
-use callback to handle the special key event in treelistbox
-code cleanup

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: If46c840d7f751f89898ec1a54ec0a6fcb6811f7a
2022-09-27 14:43:16 +05:30
Rash419
d13d430b58 writer: introducing new mention feature
now you can insert a mention just by starting to type with @
integrator needs to implement UI_Mention postmessage api endpoint on which
online will send request of initial character what user is typing on the basis of
that integrator should send the list of user using Action_Mention postmessage api call
object where each object contains { username: '<username>', profile: '<username profile link> }
for example you can check framed.doc.html

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I38387cd05f1654b0bdb2b4f31cbac633eece5722
2022-09-27 14:43:16 +05:30
Pedro Pinto Silva
b42e916a97 Don't add border nor margin to widget if dialog is a onlyChild popup
When we are in presence of a dialog with just one treeview list
please do not add border around the widget. Container takes care
of it.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0c99f837ac6174fa60031e773c75fbfa1162762d
2022-09-26 16:01:21 +02:00
Pedro Pinto Silva
0d7dfa92dd Fix drop-down marker (form control) size
- Better to don't set hard width or height values via CSS
JS is already setting it initially and updating it when
zoom changes
- Add min width and min height otherwise:
    - The control can become almost impossible to interact with (too
    small if we zoom too far out)
    - The arrow becomes unreadable

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id54f7addbd8899a3e3ca97493e1865aa36b88817
2022-09-26 16:01:21 +02:00
Pedro Pinto Silva
6bf146d4ea Improve drop-down marker cosmetics, form controls
- No need to make it so dark (can be misleading, as if it was
disabled)
- Inherit border radius

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8aaf44758ddea447b2d167d80e73c3a8a8a7e022
2022-09-26 16:01:21 +02:00
Pedro Pinto Silva
3874ab9d81 Fix drop-down marker position, form controls
Before this we were trying to align arrow via bg position
this in turn was leading to problem when the parent control
(drop-down marker) resizes which happens every time we change
document zoom.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iad0479b5db462e5bbe14c8e81f8a41fc024947dc
2022-09-26 16:01:21 +02:00
Szymon Kłos
53190e5058 formulabar: fix selection in multi-line cell
indexOf returns position - do not sum the positions
This fixes not working cursor position change in
formulabar when we had multiple lines.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I306ab461c832bb0a48d760b84f32938e109959fd
2022-09-26 17:53:20 +05:30
Gökay Şatır
e200533b5e Remove obsolete css rules for shadow-transparency items.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Idd1b71e1b32a1367902a230eb9f43fe18321f856
2022-09-23 14:42:21 +02:00
Pedro Pinto Silva
e1345de673 Fix Online help: buttons are no buttons, also decrease vertical space
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I766076d7819dfb2034134d3cb2a3f67ed0110b2c
2022-09-23 12:24:12 +02:00
Gökay Şatır
9993453714 Make the wrapper's display "fixed" so it doesn't interfere with the window.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I7176a0dbc235f8202cbbd4028ac187293d648d8a
2022-09-21 15:45:50 +02:00
Rash419
1ca521b161 fix: calc: comments in frozen row headers aren't shown after scrolling
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I6eeb716c118778c1a386437c751bda3e9e3a5a24
2022-09-21 13:39:21 +05:30
Aron Budea
384b4ce198 Hide context menu items that don't work on mobile
- Page Style, Paste Special don't work
- Group/Ungroup Sparklines should be hidden when they aren't
  relevant, let's hide completely for now

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: Iae7da11719827512307eeeade10caa56e023c8f0
2022-09-19 15:59:24 +02:00
Aron Budea
58cd55efe0 Fix missing delete comment icon on mobile
Regression from 4e075146b9.

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I72375d5a784f9905f6a36ba805d2368c3d45900d
2022-09-19 15:59:24 +02:00
Szymon Kłos
06fbc53c9d masterpage: get & set optional mode parameter for tiles
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ied50985f85db385fb38cfb9c4006e3b87119e9fc
2022-09-19 15:18:23 +02:00
Szymon Kłos
8f84e6acff masterpage: ignore cursors and selections from other modes
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I55f82032dc5d21300abb3870c8ba660efb795249
2022-09-19 15:18:23 +02:00
Szymon Kłos
2e401a4d1b masterpage: add _selectedMode to the TileLayer
_selectedMode will be used to store current EditMode
(Page / MasterPage in Impress)

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie3ff5c2e6d8f122fb5b6e6a6e69363bdd3a51403
2022-09-19 15:18:23 +02:00
Pedro Pinto Silva
41495bb602 Fix annotation btns tooltips discrepancies
These tooltips were not getting styled as the other ones.
Annotation btn tooltips were missing:
- padding (as seen in .ui-tooltip)
- font-size and line-height (as seen in the ones that get styles
from jquery ui css by default)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ief46d294e36dfa0926cf668cd9a9f89589c6da40
2022-09-19 13:14:02 +02:00
Pedro Pinto Silva
587674560c Enforce annotation icons' style
currently it was getting styles from generic buttons

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I05e798cc1ba14dcd36607c6b4ec8a27dc33e585a
2022-09-19 13:14:02 +02:00
Pedro Pinto Silva
e66dfb7706 Add icons to save as drop down menu
Reuse download format icons

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic7824159913ae2d4f02413fee000f2e1daf86238
2022-09-19 10:56:08 +02:00
Mert Tumer
c74ee86262 added option to group save-as
We can provide doctype extensions for save-as much like downloadAs
but this will load the new file in the integration. instead of downloading

To achive this, args: {format: '<extension>' } parameter needs to be
sent inside UI_SaveAs postmessage. Because the integration provides
dialog with filename, there the extension will be set after the
filename. Our save-as work flow already handles the rest.

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I6005846047fc0b26ea07e8eeea965965ed1b87e7
2022-09-19 10:56:08 +02:00
Ihor Hordiichuk
610b80a7e4 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (459 of 459 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: If874c2c0fddc1d21f1cb8a9aa87b15248d9b4146
2022-09-18 10:01:54 +02:00
Gökay Şatır
0b78ad3a0d Translated using Weblate (Turkish)
Currently translated at 100.0% (459 of 459 strings)

Co-authored-by: Gökay Şatır <gokaysatir@collabora.com>
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: I5048ff671ff28d7bd4d55123005b9a36252bfd3e
2022-09-18 10:01:54 +02:00
Martin Srebotnjak
e2da50a9e0 Translated using Weblate (Slovenian)
Currently translated at 100.0% (459 of 459 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: I3aaa50b11a78d13d8edcfc54398cd775a3570352
2022-09-18 10:01:53 +02:00
Mike Kaganski
fa284ae09a Translated using Weblate (Russian)
Currently translated at 100.0% (459 of 459 strings)

Co-authored-by: Mike Kaganski <mikekaganski@hotmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ru/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Icf6d149dfd1c6b025d28eedc3d31c26959db55e2
2022-09-18 10:01:53 +02:00
Pedro Pinto Silva
fc017e54c0 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (459 of 459 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (459 of 459 strings)

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: Ie0aa3a60b4934e0bf20598bff981618db8179870
2022-09-18 10:01:53 +02:00
Matthaiks
f870270c52 Translated using Weblate (Polish)
Currently translated at 100.0% (459 of 459 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: I96b6a6658e36cdf2efcbc2c2daf930a317012b21
2022-09-18 10:01:53 +02:00
Sebastiaan Veld
5844f3b168 Translated using Weblate (Dutch)
Currently translated at 100.0% (459 of 459 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: Iea75955387594f9789cead9df8a5966a35cdc5ba
2022-09-18 10:01:53 +02:00
Marco Cecchetti
db3e01f49a Translated using Weblate (Italian)
Currently translated at 100.0% (459 of 459 strings)

Co-authored-by: Marco Cecchetti <mrcekets@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/it/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie16308775f9fcaed96d4a9869f4009363e1993e5
2022-09-18 10:01:53 +02:00
Andras Timar
a58de01d0a Translated using Weblate (Hungarian)
Currently translated at 100.0% (459 of 459 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: I4f6ef95e89d6b2ed749ee731fa882914e298d238
2022-09-18 10:01:53 +02:00
Milo Ivir
1845b64dbd Translated using Weblate (Croatian)
Currently translated at 100.0% (459 of 459 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Idc8ef79e9b526d4633cabe7c0efd5e314a4f2c32
2022-09-18 10:01:53 +02:00
Rashesh Padia
f0a92df1a3 Translated using Weblate (Hindi)
Currently translated at 34.4% (158 of 459 strings)

Co-authored-by: Rashesh Padia <rasheshpadia419@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hi/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I45c86158f14f7bdb8c7b746302917e6b05289522
2022-09-18 10:01:53 +02:00
Rob Pearson
5a2e95dad0 Translated using Weblate (English (South Africa))
Currently translated at 100.0% (459 of 459 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (459 of 459 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (459 of 459 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (459 of 459 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: I23208c182c449bab761d782effca8b36aad2da20
2022-09-18 10:01:53 +02:00
Marc Rodrigues
a0d21683e4 Translated using Weblate (German)
Currently translated at 100.0% (459 of 459 strings)

Co-authored-by: Marc Rodrigues <marc.rodrigues@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/de/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8fdc6bc5d959201847ef706a2814e4cb9fe9c0cd
2022-09-18 10:01:53 +02:00
Rash419
4ae16e5ce8 fix: notebookbar, tablets: sidebar toggle icons not visible in online browser
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I5ea588e8e9b5b7e189b9d762435b69f3ed399f9c
2022-09-16 21:07:43 +05:30
Andras Timar
5fe6d503c8 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1a9ff8df464b337e2ef1e239cc0593be310f8a42
2022-09-16 12:49:50 +02:00
Milo Ivir
7ee3ea8c2b Translated using Weblate (Croatian)
Currently translated at 100.0% (457 of 457 strings)

Translated using Weblate (Croatian)

Currently translated at 100.0% (463 of 463 strings)

Translated using Weblate (Croatian)

Currently translated at 100.0% (22 of 22 strings)

Translated using Weblate (Croatian)

Currently translated at 100.0% (110 of 110 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I23926d262e9bd8b5c755a0eaa53970ee443c7117
2022-09-16 12:48:21 +02:00
HerMin
a6b9c452f3 Translated using Weblate (Korean)
Currently translated at 57.6% (267 of 463 strings)

Co-authored-by: HerMin <jetem@me.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ko/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ibcc89f448aa238bce9bb093015630c3a0f822dc8
2022-09-16 12:48:21 +02:00
Gülşah Köse
7179a2d881 Resize cursor width according to browser zoom.
Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: I15418181394d27cb379d99e7f4c688153ac7a443
2022-09-14 10:18:24 +03:00
Szymon Kłos
ff65e5af7d sidebar: show on demand
Previously sidebar was always active on launch.
This patch together with core fix changes that so
initially it is off and we don't waste resources
for rendering sidebar which is hidden just after short
time.

We don't know the state of sidebar (which deck is activated)
on the core side so in some cases we need to switch decks
in 2 steps: send SidebarShow, and when we received result
we change deck to other one or we do nothing. This allows us
to switch correctly the decks.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib161cae73fd1344d375cb37712c5e805c4d1eefb
2022-09-13 11:29:21 +03:00
Szymon Kłos
999d2ff264 sidebar: move sidebar show action to more generic place
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia4cddadf9d947a0fd76f6d867da9f93c70f743ce
2022-09-13 11:29:21 +03:00
Szymon Kłos
b151cd9a8a sidebar: save state also in notebookbar
we need this state variable set in more generic place
not only in menubar

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I72e100ef91bbe32987ceb1e2bff5903f15c6134b
2022-09-13 11:29:21 +03:00
Gökay Şatır
6405b260d6 Save different sidebar states for Impress.
Remember them on opening if local storage is enabled.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I0c3e4eb65dfc16807d2a9a654d8e71f64341df67
2022-09-13 11:29:21 +03:00