Commit graph

18217 commits

Author SHA1 Message Date
Pedro Pinto Silva
4ccfdd598b Refactoring and generalize spinfield: share more CSS
Avoid to place rules within jssidebar.css that should be global
(it should affect any jsdialog class) and let jssidebar-only exceptions
in jssidebar file

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib950f5c13522f3d91139d8eac52b5b4daa22fe05
2022-04-28 11:07:02 +02:00
Pedro Pinto Silva
fadc3fb3b5 Fix sidebar select (dropdown) alignments
When using position relative the elements will still occupy and affect
space around. This was flagrant when using chromium.

https://archive.org/download/t-34772-writer-selected-img/T34772-relative-shouldbe-absolute.png
as you can see dropdown with arrow are being dragged outside

Also use margin-block-start to add vertical start margin (e.g. top) to
element depending on the element's writing mode, directionality,
and text orientation.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: If580fba061d8cb274a60ad5f780882c772059162
2022-04-28 11:07:02 +02:00
Pedro Pinto Silva
ca10b8bbdf Fix sidebar spinner units alignments
When using position relative the elements will still occupy and affect
space around. This was flagrant when using chromium.

https://archive.org/download/t-34772-writer-selected-img/T34772-relative-shouldbe-absolute.png
as you can see the spinner with units are being dragged outside of the
screen

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I292f83dc4840ceb1e12923a9aaf1fe56dbe14131
2022-04-28 11:07:02 +02:00
Pedro Pinto Silva
10029f58fa Fix sidebar alignments when image is selected
Remove additional margins and right positions that were affecting FF
https://archive.org/download/t-34772-writer-selected-img/T34772-writer-selected-img.png

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7d822d3bb05f4d476f6a066c28d686ad4e701c81
2022-04-28 11:07:02 +02:00
Henry Castro
455532c218 wsd: admin: fix typo
Change-Id: Ia9714fbadf7cdafa84fd58354e1b72dc36084ad3
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
c000f119b3 browser: test: explicitly convert to number
Change-Id: I2dbecafcc1148aa69010eee822ee0fa30a5e6307
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
28c1fa2844 browser:test: ensure to write the stats to stderr
Change-Id: I5761e7567c306b964fd41eaa49d9fdcd41caea9d
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
a48024ca78 browser:test: fix exception http or https protocol
Change-Id: Ia62833fb0cb448370b6fdf422d12e6b0ebbcff55
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
6f3c90c8a9 browser:test: exit process if uncaugth signal
Change-Id: I971e100cfbb5c428c6ee88d8b9f5413398250c50
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
cdb72ca762 browser:test: add function serverReady
When the coolwsd server is ready, begin to
fork the load.js process to start the tile tests

Change-Id: I7846ce013b729eab54e5fd3ab81ce396406bcf0b
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
6bfe68ea93 wsd: add parameter --signal
To signal SIGUSR2 to parent to notify
that the server is ready to accept connections,
and begin the tests.

Change-Id: Ie936217243aa7a2e836f3d45cb508ede13fae8c5
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
16e6494a21 browser: test: fix stdio pipes
Ignore stdio pipes if no debug is set

Change-Id: I8b77a32324d77a87577759b878f612dfbca586f7
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
3879f8720f browser: test: fix missing 'DOCUMENT_SIGNING_URL'
Change-Id: Iac91872bdec8b89174ae900c9e388681dcf27da0
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
6c7d031d61 browser: test: replace GROUP_DOWNLOAD_AS variable
Change-Id: Id20d476bc04167fd40b9524625bc389344a3f60b
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Henry Castro
12f7022f69 browser: test: add process env NODE_PATH
if builddir != srcdir

Change-Id: I5bdec438aff67d3c70aceafbff0d3a4445d865c6
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-04-27 09:18:21 +01:00
Tor Lillqvist
8ff5f1c57c Restart ForKit when a downloaded font has been updated or removed
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I62b53bb4ff16eac3e122f9b6d702c69d2355595d
2022-04-26 17:26:20 +01:00
Szymon Kłos
a465bc267f notebookbar: fix ui mode switch
previously without data in localstorage it started with
compact mode always

- reduce calls to local storage
- unify local storage entry name (no doctype)

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2bf4776a6296d2c35ac974b3d108bce5e77a7614
2022-04-26 15:39:52 +02:00
Ashod Nakashian
0d027a9a56 wsd: test: disable verifySignature test with openssl 3
This is a temprorary patch until we can properly
migrate the verification code to openSSL 3.x.

Change-Id: I676ae3b5a1e0d27ef1d253dba2275f7de5fc08ff
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-04-26 14:08:48 +02:00
Tor Lillqvist
97a18768d7 Avoid using only "real" paths for the tmpfont thing
If I have used a path with symlinks in it when changing directory to
my build directory, what gets put in config.status as ac_pwd is that
path, not a realpath version. That then propagates to
ac_abs_to_builddir and to SYSTEMPLATE_PATH, which is what Makefile.am
passes for the --o:sys_template_path option to coolwsd.

To be on the safe side, do the tmpfonts dance both for the systemplate
path that might include symlinks and for one that has been realpathed.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I7575120090986e6207497c5ce740aedd6075e48f
2022-04-26 13:59:29 +03:00
Pranam Lashkari
45c119ff21 draw: make sure page settings do not use term "slide"
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I8831f0a1edcbbe8e8ea08ad691f86c7a422a89aa
2022-04-26 15:58:09 +05:30
Pranam Lashkari
138a98385a wsd: do not set default close reason
we preserve original reason,
so setting default reason means always using default reason
and ignoring any other reason

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I837a13a129aa759a319406affc6e89425bf31361
2022-04-26 15:57:51 +05:30
Szymon Kłos
618c53de7a Remember last UI mode
This also makes us sure we are in sync due to
single point of knowledge about UI Mode

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifefeee90666db7c341da52a7190ef09749b8e3ab
2022-04-26 11:05:47 +02:00
Ashod Nakashian
fac6c01725 wsd: replace strrchr with constexpr
This avoids the runtime overhead of strrchr used
in logged filenames on iOS, which is unnecessary
on string literals, and adds unit-tests.

We also strip leading './' and '../' in other builds.

Change-Id: I56ec722d1400fad9165eb046d1bd8d4438241ca3
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-04-26 11:13:44 +03:00
Ashod Nakashian
14d96957cd wsd: log macro cleanup
* Simplify log macros.
* Reduce expanded lines (faster compilation).
* Avoid flushing (since we always use ostringstream).

Change-Id: Id10c1a75b5af5d8cdba62d768192ab0a6a9e0aca
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-04-26 11:13:44 +03:00
Ashod Nakashian
777463d9c5 wsd: automatically include a log prefix if provided
Change-Id: Ic542ec83ffa9c76478a4f1121caf3edf078f40a7
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-04-26 11:13:44 +03:00
Tor Lillqvist
c3b76b4311 Define ENABLE_DEBUG in the iOS app Xcode project, not DEBUG
We don't have any ifdefs on DEBUG.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I76b4fe8ebbce235e967d8b5275fea663d3fb8f9d
2022-04-26 11:13:14 +03:00
Andras Timar
ac60989af5 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I54b671950843ea600aff7073e68e2636d51d02f9
2022-04-25 20:43:49 +02:00
Martin Srebotnjak
66738557ab Translated using Weblate (Slovenian)
Currently translated at 100.0% (441 of 441 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: I18acf3ab6b281567209b1fe2462a8c11af540ed7
2022-04-25 20:29:50 +02:00
Максим Белозеров
dc77f4fbfb Translated using Weblate (Russian)
Currently translated at 55.5% (254 of 457 strings)

Co-authored-by: Максим Белозеров <mxite@ya.ru>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ru/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I86cad90016a81adda4d414eadc17d7ef6c9aecd8
2022-04-25 20:29:50 +02:00
Sveinn í Felli
d2b7db240b Translated using Weblate (Icelandic)
Currently translated at 100.0% (441 of 441 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: I1d7905ab8e434ad3517316940abc6d830727ce13
2022-04-25 20:29:50 +02:00
Adolfo Jayme Barrientos
a5858c70fe Translated using Weblate (Spanish)
Currently translated at 100.0% (457 of 457 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (441 of 441 strings)

Translated using Weblate (Catalan)

Currently translated at 100.0% (441 of 441 strings)

Translated using Weblate (Asturian)

Currently translated at 49.2% (217 of 441 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/es/
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/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9dcfd9e019d8fad2e5e178d30450cc89e60c7465
2022-04-25 20:29:50 +02:00
Pedro Pinto Silva
ddb19199d9 Add tooltip to close document button
Normally these kind of button wouldn't need a tooltip but:
1. Doesn't hurt to add it
2. It helps the user with understanding what that btn does:
  - The button doesn't remove the current opened document
  - The button doesn't save and close
  - The button closes the document

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I45e63c4c7f42d314743702e6ff50b777527c4367
2022-04-25 20:24:45 +02:00
Pedro Pinto Silva
35cd9bcc5d Notebookbar: Fix rev-history Id, Capitalize Each Word
All NB items ids have EachWordCapitalized and are successfully target by
users/partners/users to change image for example, and expect them to be
have EachWordCapitalized:
- Notebookbar: Make rev-history -> Rev-History so it also can be
- Classic: Id remains "rev-history" in the case integrator rely on that
specific lowercase id
- Allow rev-history and Rev-History when checking id (Menubar.js)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7a5a31f78713fe43e1855021652500d0306c5ac4
2022-04-25 18:30:56 +02:00
Pedro Pinto Silva
b93c47178b Notebookbar: Fix SaveAs Id, Capitalize Each Word
All NB items ids have EachWordCapitalized and are successfully target by
users/partners/users to change image for example, and expect them to be
have EachWordCapitalized:
- Notebookbar: Make saveas -> SaveAs so it also can be
- Classic: Id remains "saveas" in the case integrator rely on that
specific lowercase id
- Allow saveas and SaveAs when checking id (Menubar.js)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia92a442eadb34c4b4ae374e54835d7866f70df7a
2022-04-25 18:30:56 +02:00
Pedro Pinto Silva
e5e7b34075 Fix leaflet-control alignment
context: https://archive.org/download/repair-doc-close-misaligned/repair-doc-close-misaligned.png

line-height, if the hard-coded px is needed, then it should be the
same value as the width and height so not 28px but 32px
as it's the values used in a.leaflet-popup-close-button.

But better to just rely on the unitless value that line-height can
accept then it will fit whatever the font-size and width the anchor has:
- Fix it by letting the web browsers align the content for us. Web
browser multiplies our number by the font-size value (1 times font-size)
, so no need to depend on specific px values for that.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4145231241a9acc540c684971e3bde46adb2304b
2022-04-25 17:48:07 +02:00
Pedro Pinto Silva
f3fd524396 Revert "Fix leaflet-control alignment"
The commit message of this commit was correct but it seems I end up not
git adding the latest change which obviously is not initial but 1.

This reverts commit c80d4ca62e.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I999e7e51ee36e4c162cc8d0a15bc9850fdd9c1fd
2022-04-25 17:48:07 +02:00
Pedro Pinto Silva
c80d4ca62e Fix leaflet-control alignment
context: https://archive.org/download/repair-doc-close-misaligned/repair-doc-close-misaligned.png

line-height, if the hard-coded px is needed, then it should be the
same value as the width and height so not 28px but 32px
as it's the values used in a.leaflet-popup-close-button.

But better to just rely on the unitless value that line-height can
accept then it will fit whatever the font-size and width the anchor has:
- Fix it by letting the web browsers align the content for us. Web
browser multiplies our number by the font-size value (1 times font-size)
, so no need to depend on specific px values for that.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4145231241a9acc540c684971e3bde46adb2304b
2022-04-25 16:02:09 +02:00
Szymon Kłos
5aa5f6256b jsdialog: don't build iconview like container
Fixes not working iconview eg. in Fontwork dialog (selection)
regression from:
commit 496256a96b
jsdialog: remove table- prefix hack

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I53e85ebd281e2fd705bcb4848c1dfc3c776903f6
2022-04-25 15:59:23 +02:00
Szymon Kłos
8a7ed0b987 jsdialog: remove jquery and warn when not found iconview entry
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I006a8419a60606cbdd2199f876b7260c1f58cae3
2022-04-25 15:59:23 +02:00
Szymon Kłos
df690019dd notebookbar: fix help items
regression from:
commit e8d759f18a
jsdialog: postprocess toolitems

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0205184c4cfcb4cd9b571c8e346e94e108c4a519
2022-04-25 15:35:04 +02:00
William Gathoye
81847a87c3 README: correct URL to build machine
Signed-off-by: William Gathoye <william.gathoye@collabora.com>
Change-Id: If0baef05db6daa3c8bcd4908128481261ec30f41
2022-04-25 12:02:46 +02:00
Pranam Lashkari
bad251d183 calc header: avoid reselecting selected row/col range
if right clicked on already selected row/column range,
don't reselect the right clicked row/column

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I718a0a727913c38bc506fd2b808fba8feaebb0c8
2022-04-25 15:18:16 +05:30
Rash419
0945c4d48b config,UI: change classic -> compact and notebookbar -> tabbed
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I633a13927245ee6b4d750cd84c2b4577dca06d68
2022-04-25 13:56:10 +05:30
Szymon Kłos
cc5b4441b3 formulabar: remove old tunneled dialog code
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ife5a13dad04794be5cab667e075676013f09d6d8
2022-04-25 09:59:56 +02:00
Szymon Kłos
52018664f4 autofilter: remove old jsdialog code
starting with co-22.05 core we don't need old
autofilter code as it is now unified with popups
handled in Control.JSDialog.js

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I613d76950c9c9d727be958607d25793a3a69c28a
2022-04-25 09:59:56 +02:00
Pedro Pinto Silva
5f7189d2cb Fix repair document item on notebookbar writer
Context:
Repair document on the Notebookbar is currently always a small item

https://archive.org/download/repairdoc-writer-smallitem/repairdoc-writer-smallitem.png

,it should be a bigtooltiem when the extra additional/optional item
Sign document is not available:
- Set it to small item and vertically stacked when hasSigning is true
- Set it to bigmenubartoolitem when hasSigning is false
Note: Make use of the newly added bigmenubartoolitem in
8d149d31db

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I26a8e1b721bf2550127eff1ccfdc44ab4876db52
2022-04-25 09:20:40 +02:00
Szymon Kłos
acb0ed3bbd jsdialog: use only one handler for selection
this will allow us to avoid doubled messaged
and ugly bugs, setting selection in JS works as
async call and it's hard to not trigger own handler...

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibeae30c04374116776413b19ebd8efca043e9c0e
2022-04-23 10:58:55 +02:00
Szymon Kłos
abe204adc7 jsdialog: apply selection in textarea
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9856002b7f72ce8db9f6d2116871804fc4763f3b
2022-04-23 10:58:55 +02:00
Szymon Kłos
256b50e926 cypress: fix after formulabar conversion to jsdialogs
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0792e2b1e044220dc44ae8155ac7b30b47a7ea8d
2022-04-23 10:58:55 +02:00
Szymon Kłos
cbde6f324a cypress: tunneled formulabar was removed
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I040bbc8c9a5c76a367de046acf2a05e6dfb88920
2022-04-23 10:58:55 +02:00