Commit graph

13751 commits

Author SHA1 Message Date
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
Gleb Popov
fed8ed59a4 Use portable /usr/bin/env bash shebang, instead of /bin/bash one.
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Change-Id: I196c8747d9c88991bd0352849113748f8ea1294d
2020-12-17 11:52:18 +00:00
Gleb Popov
d6de33d9e4 configure.ac: Require pkg-config on all platforms except Darwin.
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Change-Id: I33cde2c69fe77b6b226b431eee9ca1853d1d2e6b
2020-12-17 11:52:18 +00:00
Gleb Popov
3cea82d6fd configure.ac: Extend some Linux conditionals to the FreeBSD case.
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Change-Id: Ie4bce494ee81308d9b0236a1d814513761e84226
2020-12-17 11:52:18 +00:00
Gleb Popov
292aa7e9b5 Stub out hasAnyCapability for !Linux platforms.
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Change-Id: I22e33cc15420747d120bd10466eb29679b66709f
2020-12-17 11:52:18 +00:00
Pedro Pinto Silva
cf92ad38d0 JSDialog: Autofilter: Fix font, Fix Ok btn, Fix search width, Fix submenu, Fix entries
- Use existent font variable
- Update btns acording to last changes and add missing margins
- Make sure search input field occupies all available space
- Submenu: Remove extra border as it has already one (since it's a box
inside of a box without any other siblings)
- Make sure entries inside of Autofilter do not have additional padding

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia7cc4690b99f46976ed1f7590fbbc6fd606cf9f1
2020-12-17 11:05:00 +01:00
Szymon Kłos
7f6cacb187 jsdialog: button box
Change-Id: Ic0b2d36bb84b2521e2cb96fe1c754480f1fa3395
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-16 18:22:16 +01:00
Szymon Kłos
16c4969270 jsdialog: merge columns in grid
Change-Id: Ifecaef9726a66f4dad840ced2d29ebe5d31026e9
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-12-16 18:21:48 +01:00
Tor Lillqvist
19adb3b7df Don't show an empty font name field when the selection has multiple fonts
Instead use "Font Name". Fixes
https://github.com/CollaboraOnline/online/issues/1005 .

Change-Id: I427a2fc86c2c4a4415f80d27ffd2a1d4934f9cbe
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2020-12-16 14:15:13 +02:00
Gökay Şatır
934d783e9a Admin: vex.css usage improvements.
vex.css reference is removed from admintemplate.html file. main-admin.js already injects it into html.
There was a bug causing "socket closed" message to appear on every page refresh.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I1ae625a184bc353feb6af056f5767b92b518be16
2020-12-16 07:36:33 -04:00
Gökay Şatır
7a55eb24a4 TileLayer/Writer: Don't focus on map while a comment box is open.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I603ad4b439e52f37542c05549fd418bf1579010d
2020-12-16 07:33:06 -04:00
Gökay Şatır
100522adf5 Revert "leaflet: User may continue writing a comment after it loses focus/online part."
We will use another approach, comment box was lingering.

This reverts commit 1beb1fde3e.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I43de65acdbe5ff02fabc5e0d3b606ac9b21b651d
2020-12-16 07:33:06 -04:00
22shubh22
458d2b4eed Remove unwanted Poco::Timestamp functions
Signed-off-by: 22shubh22 <22shubh22@gmail.com>
Change-Id: Ie042253d2b99237537bac450a4b3b673606a84a9
2020-12-16 13:16:37 +03:00
Michael Meeks
ea1148a50d Don't copy dictionary extensions we already pre-loaded from the system.
Change-Id: I9cf7459c5214b6d7c23d5097822c7827409577a0
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2020-12-15 23:15:09 -05:00
Ashod Nakashian
2bb3ebb86e wsd: don't trust modified time when comparing files
We shouldn't assume two files are different just
because one was touched recently. This is an issue
when we think systemplate is out of date when it isn't.

Since we only do this file comparison on (very) small
/etc files, it's simply safer to compare the files
when their sizes are the same, instead of assuming
that timestamps are indicative of being outdated.

Ironically, by comparing the contents we spawn
jails faster when there is nothing to update
and we can safely use bind-mount.

Change-Id: Idb2088fcb52b493c91bef92890750f1dfcfbcc25
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-12-15 21:00:28 +00:00
Pranam Lashkari
182515dcbf leaflet: open comment wizard on comment insertion
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I90bb301c35ba6d52c26a22dd0b686961b94181fd
2020-12-15 23:06:44 +05:30
Tamás Zolnai
8b815908c9 cypress: import 3rd-party packages everywhere they are used.
I see some random test failures:
"An uncaught error was detected outside of a test:
SyntaxError: The following error originated from your test code, not from Cypress.

> Invalid or unexpected token"

There is no backtrace or code pointer or anything to find out
what is the actual problem, but it might be related the missing
import of 3rd-party code.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ia2243852e825eee18c226d89fd17e92960daa129
2020-12-15 18:23:20 +01:00
Tor Lillqvist
c48e8172cb Contents of ios/README has moved to the website
Change-Id: I2fb628a9b69badbb0052e4a303df90bf39e25bad
2020-12-15 18:05:00 +02:00
Tamás Zolnai
a409b221f8 downgrad wait-on: 5.2.0 -> 3.3.0
We get syntax error from outside cypress test code.
It might be one of the 3rd-party packages. Revert wait-on
package to a previous version and let's see whether the
issue goes away or not.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I902536fd7124ebaca58a3491400606c89e5e7483
2020-12-15 16:54:43 +01:00
Gökay Şatır
974701155c Calc: Headers, remove unused scroll callbacks.
We may need a clear view of scrolling features.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I7a278cc7699bfd3f3db6bd0f84329af660bb4fb2
2020-12-15 18:33:37 +03:00
Gökay Şatır
95b45120e7 Calc: Correct row & column sizin feature.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I4f95c6d984dcc0715a6c3d548a5fc030486a9873
2020-12-15 18:33:37 +03:00
Gökay Şatır
5f8f8c86b9 Calc: Correct row and column header selections.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I0621fe89162988612c243b6183ade984ffcf92c0
2020-12-15 18:33:37 +03:00
Gökay Şatır
98d97a2bcc Calc: Clicked column & row headers are corretly shown.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I79fa7a4696cc88c6165a454142770ce6650985fe
2020-12-15 18:33:37 +03:00