Commit graph

13623 commits

Author SHA1 Message Date
Jan Holesovsky
e77da33d43 canvas layer: _animatingZoom is no more needed too.
Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Change-Id: If7e38c591e6b4b52fa16a47f4cc3f1c015ee0901
2020-12-21 22:19:18 +01:00
andreas kainz
51ba40862a Notebookbar Insert Tab: update writer insert tab
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I255116b6bb16e84d2b465f8fb862145924552f68
2020-12-21 21:25:31 +01:00
andreas kainz
a596e3292c Notebookbar Insert Tab: update calc insert tab
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I0d829aaa2e9869de87cddc997b8758fe8d20823c
2020-12-21 21:25:15 +01:00
andreas kainz
db2280bbba Notebookbar Insert Tab: update impress insert tab
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Iadae860ec5bb82d84e262eaf5bc602f2ce304758
2020-12-21 21:24:40 +01:00
Szymon Kłos
39c54e69cf jsdialog: pan gesture on dialog content only on tablets
Change-Id: I08ee307fa860beeed9c3b9b577a8b191ae8f2f72
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 19:11:49 +01:00
Szymon Kłos
a8a715373e jsdialog: open dropdown also when clicked on arrow
Change-Id: Ia354ddf75e6a097f1ef5aab586adb88a5234a14d
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 19:11:49 +01:00
Szymon Kłos
cb568b4340 jsdialog: fix dialog jumping
Change-Id: Id0a428280db2811efcd0f355f6109984179c50af
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 19:11:49 +01:00
Szymon Kłos
d3b8796c87 jsdialog: support step in spinfields
Change-Id: I010f616e4601789fde36f8143226fe99bac3bb1a
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 19:11:49 +01:00
Szymon Kłos
06df4b71fa jsdialog: make draggable also on tablet
Change-Id: I2759d5ceba222cfc34528ca8cf1087b2d70be6bf
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 19:11:49 +01:00
Szymon Kłos
2bdf5e4840 jsdialog: fix textarea position in mobile-wizard
Change-Id: Idc77992b477acd790cf4d4bffe2589c530b4cb09
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 19:11:49 +01:00
Szymon Kłos
ebdc5c07b6 jsdialog: don't override mobilewizard buttons
Change-Id: I4cc192fc3906b2f29a35844ae66201a13202ce99
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 19:11:49 +01:00
Pedro Pinto Silva
7787e2e2f0 JSDialog: Checkbox's parent shouldn't get dragged or selected plus label improvements
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia07a4ffd59be3b19dc38c0904f15086b9f3fe2c0
2020-12-21 19:11:49 +01:00
Szymon Kłos
ac7db0167b jsdialog: fix grid nodes
tr should be inside the table...

Change-Id: I90c983f3d3446549b04e3b4379612dba7b762750
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 16:55:02 +01:00
Pedro Pinto Silva
be6488b544 JSDialog: style frame-label, fix ui-alignment, fix expanders' container..
- Fix checkbox
- Chrome: fix input dimensions
- Remove unnecessary margins
- Hide frame-label in SelectSourceDialog (we don't need it, there is only one frame and we already have  a title)
- Add .ui-treeview-cell.with-sub-dialog to be used when we get that class
- fix hideitems, remove border

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5b07c543038163a33c66ea81672a858fca2b4059
2020-12-21 16:55:02 +01:00
Szymon Kłos
bcca81e860 jsdialog: disabled state for treeview
Change-Id: I40d21f395239c7394c9e4ae0af3facd11100b0e1
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 16:54:48 +01:00
Pedro Pinto Silva
bb0346d198 JSDialog: Fix listbox disabled value and style surrounding elements
- radio buttons
- label
- listbox and listbox-arrow
- make sure disable elements do not get hover styles

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Icb3f4171a431fe794c2a97848952219a6bb2bee0
2020-12-21 13:44:51 +01:00
Pedro Pinto Silva
a2e23eb5d6 Notebookbar: Fix StatisticsMenu arrow on Chrome and Safari
In some browsers the 3 components (icon, label and arrow)
were not being displayed properly.

- Adjust arrow element for StatisticsMenu
(fiddle with useInLineLabelsForUnoButtons and noLabelsForUnoButtons [Control.JSDialogBuilder.js] wouldn't solve it)

- Remove unnecessarily padding-left: 25% from .unotoolbutton images
- Also avoid other problems with regular arrow by setting its dimensions to 0
- Be sure that image gets centered aligned everywhere with margin: auto
- Avoid position absolute

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I907bfe711bbf81ac2a1071b73c322813426fc4e9
2020-12-21 13:38:22 +01:00
Pedro Pinto Silva
1db35de0a0 JSDialog: Set radiobutton and respective labels
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iaed825d98c4eea7fc4256d39aedb6e76b982e682
2020-12-21 13:38:22 +01:00
Pedro Pinto Silva
7d10bef362 JSDialog: Statistics: Fix spinfields and respective labels
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I1dc530bd4f5e5aca853c811fc06884cbf40e2ef7
2020-12-21 13:38:22 +01:00
Pedro Pinto Silva
d660a9f8de JSDialog: Statistics functions: fix reference btns
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I1bb3c0e3318bc3e83982892861101ead7c91f4e5
2020-12-21 13:38:22 +01:00
Szymon Kłos
886ef2689b jsdialog: icons for reference buttons in statistics dialogs
Change-Id: I571c5613d53d81b23e49826adfed0ffa2a4cfac6
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 13:38:22 +01:00
Szymon Kłos
160416106d jsdialog: alignment control
Change-Id: I8579b530ef2c37af82ce12393f12b3192fe81eb9
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 13:38:22 +01:00
Szymon Kłos
897d4b1b83 Add statistics dialogs to the menu
Change-Id: I27f06e7f25a44bd42de7a4b2bb26a9c4f84afd64
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 13:12:21 +01:00
Andras Timar
8f947d907b remove traces of "LibreOffice Online Personal" brand
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9fa6e33a8012065262885a5a0ef1c855e2df5b53
2020-12-21 12:39:27 +01:00
Miklos Vajna
f77c8076a7 wsd: fix crash on renderfont when the doc broker has no tile cache
Happens when renderfont is called without first loading a document.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I1152d1f4b3f610364e22c406cda5494672f20aed
2020-12-21 10:23:56 +01:00
Szymon Kłos
b678a1a5f9 jsdialog: added menubutton
Change-Id: I2c8931f5d3c3358a5a7e5f7200493ca1a132d816
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-21 09:58:42 +01:00
Pedro Pinto Silva
af99e900ee JSDialog: Fix disabled btn
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8f718371584d8fce1078179a2312f585ee8adcce
2020-12-21 09:58:42 +01:00
Andras Timar
f508be24e4 Better error reporting from loolwsd-systemplate-setup
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1197b6473f6e24143386559458f257a95df0882b
2020-12-19 10:49:36 +01:00
Dennis Francis
84feae2860 remove stale comment
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id1d6c21eb395e0cc562157de76912a7655968fa5
2020-12-19 12:50:34 +05:30
Dennis Francis
cf46f81d9b zoom-animation in the canvas
...(CanvasTileLayer) for the pinch-zoom event. This uses extra canvas
elements for each freeze-pane which are not attached to the DOM
(OffScreenCanvas is not available in IE11). These canvases will always
be kept updated as the main canvas except that they also include a few
(three for now) border tiles, so that zoom-out works. The zoom animation
frames are drawn on the main canvas by drawImage() call from the
offscreen canvas at the right intermediate scaling. After the pinch zoom
event has ended (_onPinchEnd()) the map's zoom/center are updated and
offscreen canvases are cleaned up.

Caveat: The zoom animation frames will have out of sync row/col headers
and it is slow to render them frame by frame for every intermediate
zoom. It is much easier/faster to have them in sync if they are drawn in
main canvas which is currently a WIP item.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I74fefd0302d139d32c227f67eb6759bb6b298f83
2020-12-19 12:50:34 +05:30
Jan Holesovsky
c44609532a Root actually has all the capabilities.
Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Change-Id: If49be334cb1380daf1eaf24c7007f1b004754304
2020-12-18 23:15:57 +01:00
Tamás Zolnai
d6663d807f cypress: record the loolwsd's command line output.
So we can catch crashes / debug messages of core code.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ib11426e7fdd8f219be4715b3f1e2983ad33d7f2b
2020-12-18 21:20:27 +01:00
Miklos Vajna
b47a4e7f53 g review: fix advice on how to update the existing PR ...
In case the local branch name and the remote branch name is different.

E.g. if you had co-6-4 tracking origin/distro/collabora/co-6-4, then the
correct advice is './g review distro/collabora/co-6-4', not './g review
co-6-4'.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I6b5556f992e30756542ed8e1f1cc15e61ce9bffa
2020-12-18 19:09:23 +01:00
Henry Castro
cac2b2c990 loleaflet: add new menu item "Run Macro"
The ".uno:RunMacro" will pop up a dialog
to select a visual basic script to execute
server side.

Change-Id: Ide4143b0fab15b9882c5163d301a77016f81a7e8
Signed-off-by: Henry Castro <hcastro@collabora.com>
2020-12-18 11:59:45 -04:00
Pedro Pinto Silva
5aadfe87b6 JSDialog: make icon btns share existent styles, Fix dialog exceptions, use dialog ids
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I19b5de53085a22a516941f9e45a98853a80bdac7
2020-12-18 16:58:41 +01:00
Pedro Pinto Silva
8ef0d05727 JSDialog: Select: Fix font and reuse jquery ui
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I1d2b76ae479e00e39e3596014a10ffd1c28252d9
2020-12-18 15:19:10 +01:00
Szymon Kłos
19a238e540 jsdialog: setup dialog id
Change-Id: Ibb84385f2e85d9f519a52521ccceefe467c0e1e5
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-18 15:18:04 +01:00
Pedro Pinto Silva
b829f570cc JSDialog: buttons: fix css plus remove unnecessary floats
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I17f315574af9bdd8a51b43990f31d96384592c8e
2020-12-18 15:17:45 +01:00
Szymon Kłos
ecbf5e39f7 Move Named ranges management to data tab/menu
Change-Id: I63574abff5c9c425e6c68d8163e221a2315939ba
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-18 15:16:36 +01:00
Szymon Kłos
3ceef81d28 jsdialog: add separator control
Change-Id: I6e5ac9e1656a60b9d31a5d988706eeba7586cbeb
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-18 15:16:09 +01:00
Henry Castro
2ba03cbcc2 config: add "Macro Security" default value
Add default option to execute macros with level 1

Change-Id: I6292edb935e2acbd366662ea4f1c49c471349cbc
Signed-off-by: Henry Castro <hcastro@collabora.com>
2020-12-18 09:50:22 -04:00
Henry Castro
9abefe8320 jsdialog: request 'expand' to server side
Occurs when showing the Macro Selector dialog,
the node children populate on demand when the
user click the expand element.

So client side will send the request 'expand'
and asynchronous it receives the data to update
the dialog, another result it is not acceptable.

Change-Id: Ib176b86ab7f1b3bb5b463c825565f5d25fedf1f9
Signed-off-by: Henry Castro <hcastro@collabora.com>
2020-12-18 09:50:03 -04:00
Henry Castro
23f66d8ec3 jsdialog: add class "collapsed"
Occurs that when showing the Macro Selector Dialog
the nodes of the treelistbox are shown on demand,
so the item is collapsed waiting user click to expand.

Change-Id: I45ea3252c9ea7f3806b22aec3063a57bf59c6d21
Signed-off-by: Henry Castro <hcastro@collabora.com>
2020-12-18 09:14:22 -04:00
Henry Castro
25e5119f31 jsdialog: avoid to insert the "<dummy>" entry
Apparently the treeview control in server side,
create a "<dummy>" entry when no children exist.

Change-Id: If2afdd8aed7f8090ed33a8b77a96447394cad7bf
Signed-off-by: Henry Castro <hcastro@collabora.com>
2020-12-18 09:13:49 -04:00
LL Magical
e71327b6ad Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (417 of 417 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (364 of 364 strings)

Co-authored-by: LL Magical <lolayami2004@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt_BR/
Translation: Collabora Online/CODE welcome text
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I19d10e906e243df29805447f138dd907014d285b
2020-12-18 11:54:01 +01:00
Andras Timar
41dc368d25 Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (417 of 417 strings)

Translated using Weblate (Indonesian)

Currently translated at 59.4% (248 of 417 strings)

Translated using Weblate (French)

Currently translated at 100.0% (417 of 417 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/fr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/id/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/nb_NO/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib792b5f57ab0e6ea46134d80064fc9d3450448d0
2020-12-18 11:54:01 +01:00
Mike Kaganski
1bc36c4cf7 Translated using Weblate (Russian)
Currently translated at 100.0% (364 of 364 strings)

Co-authored-by: Mike Kaganski <mikekaganski@gmail.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: I35e9b56b2036bc262803f326da8d8fb066c5eaaf
2020-12-18 11:54:01 +01:00
日陰のコスモス
e557f71c35 Translated using Weblate (Japanese)
Currently translated at 27.1% (29 of 107 strings)

Translated using Weblate (Japanese)

Currently translated at 52.5% (219 of 417 strings)

Translated using Weblate (Japanese)

Currently translated at 60.7% (221 of 364 strings)

Translated using Weblate (Japanese)

Currently translated at 58.8% (10 of 17 strings)

Translated using Weblate (Japanese)

Currently translated at 24.2% (26 of 107 strings)

Translated using Weblate (Japanese)

Currently translated at 52.5% (219 of 417 strings)

Translated using Weblate (Japanese)

Currently translated at 58.5% (213 of 364 strings)

Co-authored-by: 日陰のコスモス <baffclan@yahoo.co.jp>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7aae2abde203d194fc67307502cc2d5136ccdd92
2020-12-18 11:54:01 +01:00
Masa Murakami
681801a83b Translated using Weblate (Japanese)
Currently translated at 20.0% (1 of 5 strings)

Translated using Weblate (Japanese)

Currently translated at 57.9% (211 of 364 strings)

Co-authored-by: Masa Murakami <mucky85236@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Translation: Collabora Online/CODE welcome text
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie0b051d1514e2535da959fa43aec3f0b6049e395
2020-12-18 11:54:01 +01:00
Tamás Zolnai
a13b1a93bc cypress: try to handle support file better during parallel run.
When we run cypress tests in parallel (e.g. make check -j4), the
tests randomly fail with an uncaught error. The issue might be
because the same support file is shared between the different threads,
and they might access it at the same time. We try to create different
instances of the support file via preprocessing. Let's see whether it
makes the issue go away.

Issue's error message was:
"An uncaught error was detected outside of a test:
SyntaxError: The following error originated from your test code, not from Cypress.
Unexpected end of input"

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I7b256cd686fb2b0e79ab602e95d197388a5aadca
2020-12-17 19:12:44 +01:00