Commit graph

19550 commits

Author SHA1 Message Date
Ashod Nakashian
ada1dd1a0b wsd: test: better post-close check in UnitCopyPaste
At the end of the test we validate getting
the clipboard contents after disconnecting
and unloading the document. Unfortunately,
this relied on the speed at which unloading
happened.

Now we wait for the document to unload,
via the callback, before proceeding.
This makes the test more reliable and
harder to pass accidentally.

Change-Id: I4b7f4483c6827dc56689f739ec41a197759413f1
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-21 19:41:38 -05:00
Szymon Kłos
50cf96ee4e Zotero: use correct index for entries
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Icc366fca768d18c31ac351195ddc7680ffba290c
2022-12-22 00:04:24 +05:30
Szymon Kłos
0a3fa6951d Zotero: no expander when there is no subcollection
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic60d72583341cfef28829c8faf8ed59efe22033e
2022-12-20 15:59:52 +01:00
Szymon Kłos
417be951e6 Zotero: handle subcollections in the tree structure
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I93f2a4f77969cf27415d882a8114a644dfced1fb
2022-12-20 15:59:52 +01:00
Szymon Kłos
389ed68493 jsdialog: a11y: handling tab in TreeView
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic5215d6d0706e572c174e1da09afd48e44d14d5a
2022-12-20 15:59:52 +01:00
Szymon Kłos
d59f930fc0 Zotero: fix selection in subcollections
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6009c52d7f5e106bcba0186359b90489af64a4c5
2022-12-20 15:59:52 +01:00
Szymon Kłos
c3cdad6c61 zotero: use correct index for selection
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2076c84539fd499eb3a231f6866f22e2e4f99fd9
2022-12-20 15:59:52 +01:00
Aron Budea
6bf8fd1905 browser: Disable F2 handling in Writer
It tries to bring up formula bar, which is unsupported,
and causes issues.

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I9aaf445fde9ed5fa507e503e72319b6c7a146e44
2022-12-20 12:21:54 +01:00
Szymon Kłos
a55b0451b8 Zotero: map missing icons to thesis icon
in the future we can make icons different for every type

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I039f412e9d89b08b86ef9fe0b45bc868343de122
2022-12-20 07:00:12 +01:00
Szymon Kłos
c42a7d891f Zotero: show icons
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I864228b2628f7e58c7d5f9eb404145ce482028d7
2022-12-20 07:00:12 +01:00
Szymon Kłos
abb829b736 Zoteor: use camel case naming for icons
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id049146c7b9b91c9054b4f3a4259cb5b178b79ae
2022-12-20 07:00:12 +01:00
Szymon Kłos
fb854ffc1f Zotero: avoid error on keypress
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8071486fe0d8c6ed157dc2565d2aff871f8002fd
2022-12-20 07:00:12 +01:00
Szymon Kłos
5bb2949da6 Zotero: add caching
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I4df342b0c9e2ffd5532a8eff7fdfbcb484614ecf
2022-12-20 07:00:12 +01:00
Szymon Kłos
67e93f49ca Zotero: add my publications subcollection
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Idcb8938c8e7c1dc2d45bc6406aca406e26e14f79
2022-12-20 07:00:12 +01:00
Szymon Kłos
67bbab812c jsdialog: optimize TreeView filtering
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id79fe6d8e56753810880acb430fedbd10731e2a1
2022-12-20 07:00:12 +01:00
Andras Timar
15ad0e84ab Export PDF dialog (Calc, Draw, Impress) in case of non-grouped download
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I48735b41a0c970ed83dd3571d209a452193e3f12
2022-12-20 06:59:48 +01:00
Szymon Kłos
e55d65a225 jsdialog: support inlineLabel property in custom item
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic2b58a5dbdbd1cf4276174722c10e687cae515b9
2022-12-20 06:59:48 +01:00
Andras Timar
5d26df995d add icon aliases for exportpdf and exportepub
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I059b4144b27ad2758f9a0a95d1a17ab77743508d
2022-12-20 06:59:48 +01:00
Andras Timar
0c6651e600 Make export EPUB/PDF always with options dialog (Calc, Impress, Draw)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I86880ab3c54994554ab7f91921d028f962318e5a
2022-12-20 06:59:48 +01:00
Andras Timar
c77f60c2a7 Zotero: l10n of dialog elements
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4cc51f5f58a1801fc4d016eb3e0646ae6e10e1b4
2022-12-20 06:59:05 +01:00
Pranam Lashkari
b6ce991c4d zotero: add zotero citation data json with field mark
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I52710acb3a56e8930438d07cfe28be491e0161b7
2022-12-19 15:18:42 +01:00
Tor Lillqvist
ffa0a9027c Use window.ThisIsAMobileApp instead of checking for iOS or Android
The code that is conditionally called based on that check verifies
using ThisIsAMobileApp anyway.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ic86cf102e061d90bedecb6efcb4ef171dc494004
2022-12-19 15:25:07 +02:00
Andras Timar
6d1b392b7e Bump version to 22.05.9.2
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I75c82104da273c939279ead679ae708a6bf778d8
2022-12-17 20:49:10 +01:00
Andras Timar
2a9ba59eb9 Bump version to 22.05.9.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iefc36a0a4ddd53879047b1134f2aee937bbc7bca
2022-12-16 21:04:06 +01:00
Егор Ермаков
9882be9870 Translated using Weblate (Russian)
Currently translated at 98.7% (473 of 479 strings)

Co-authored-by: Егор Ермаков <eg.ermakov2016@yandex.ru>
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: I24e5d65ed44befbc36b11a0339dcda0a2fad2003
2022-12-16 21:01:43 +01:00
Gülşah Köse
944e72ccea Fix the insert hyperlink behaviour on Calc
To switch to edit mode in a cell, firstly we have to select a cell.
During that selection Clipboard (here _clip object) has a context
normally. When we do double click to switch edit mode, that selection
should be invalidated because actually we don't select anything yet
in that case.

Here we clean the selection when we switch to edit mode.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: Ib8d5bedba3a6d9c05a26a73edd81b52cd94e3358
2022-12-16 19:33:24 +01:00
Gülşah Köse
cee5a5baea Set the checked state of the FreezePanes item
To show a checkmark for "Freeze Rows and Columns" item on hamburger menu,
we have to set "checked" propery of the item according to uno command's
status.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: Icfc2ac07a84ed8a843b3bb8b2fe4c75de8ad9233
2022-12-16 16:16:56 +01:00
Szymon Kłos
8a07ce5217 Zotero: avoid undefined in the search field
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1086acba86f710f80d3638be804ea8c69ae8cfde
2022-12-16 14:15:33 +01:00
Szymon Kłos
425471634b Zotero: add basic icons
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6b38667c660c165afc7d762bced1a1c4d8213554
2022-12-16 14:15:33 +01:00
Szymon Kłos
976b466796 Zotero: show only standard items
exclude notes, full text and snapshot entries

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib2183d95c4b0f90d3fd80504625f989ccafe3fb9
2022-12-16 14:15:33 +01:00
Szymon Kłos
b70f6e6213 jsdialog: keep icons column in line with header
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2ed3b97dced0e0be686a602de9dda05a3322745e
2022-12-16 14:15:33 +01:00
Szymon Kłos
82205c98e1 jsdialog: support checkbox in all TreeViews
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I34a86b45751bee5534301c1062ae83412855669c
2022-12-16 14:15:33 +01:00
Szymon Kłos
3afd9156b6 jsdialog: support icon in the TreeView entry
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I33c76cef7164e2bb1abf6522f514d36924845272
2022-12-16 14:15:33 +01:00
Szymon Kłos
5e5873b8fc Zotero: setup minimal size for dialog
to avoid large position change when loaded

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I67a5e1f4dec6db370dc01c1c469ce516601a70ac
2022-12-16 14:15:33 +01:00
Szymon Kłos
7c443599c8 jsdialog: set minimal width for spinfileds
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic78abc37b4ad0cf610b923dc1e28cb14f811b07b
2022-12-16 10:52:59 +01:00
Szymon Kłos
c19b3fe0b5 jsdialog: align vertically grid content
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ied87fb00a4859386a06719903e255489bc72beae
2022-12-16 10:52:59 +01:00
Rash419
8c2c732727 cypress: fix: inconsistent writer/image_operation_spec.js
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Iff79e224fa10b4b8462280dcae650c96b3a933e4
2022-12-16 09:09:07 +01:00
Szymon Kłos
42d7348a18 jsdialog: share code for modals
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I69526f47d5315aa23a99e20567a1c4135b4119db
2022-12-16 09:09:07 +01:00
Szymon Kłos
abb3e91571 jsdialog: improve styling for input modal
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifa57a0ae876e79a665082ec23cf784603321798c
2022-12-16 09:09:07 +01:00
Szymon Kłos
80ebb7735c Simplify rename of tab
introduce JSDialog based input modal

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If0525c3baa50f8f45777f196e13e542cee789051
2022-12-16 09:09:07 +01:00
Ashod Nakashian
87456e2f8e wsd: test: add read-only storage tests
This creates the scenarios where the
storage is read-only (i.e. UserCanWrite=false)
and we have an editable document.

Change-Id: I2878e5e27bc3c3a809dde16f7c39a5ccda4a35a3
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-14 20:30:11 -05:00
Ashod Nakashian
843620d4de wsd: disable editing when Storage UserCanWrite=false
This ensures that when the Storage has
UserCanWrite=false no editing can happen,
no new versions could be saved, and no
attempts to upload would happen, even
on view-only documents (by means of
allowing comments).

When the Storage has disabled writes for
the current user/document, we override
the read-only and allow-change-comments
flags.

Change-Id: Ic140fab4f76209fb143f3f5edef70bc3c80cad1b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-14 20:30:11 -05:00
Ashod Nakashian
115b9cf2ab wsd: support isWritable flag in Session
We need to differentiate between a document
that cannot be edited (due to permissions)
and Storage being read-only.

The distinction isn't always important,
except when readonly is set either by
the client side permissions, or is due
to opening a view-only document (such as
a PDF). Since for a view-only document,
adding and editing comments might be
allowed, while the document is read-only
and cannot be otherwise edited, we
still need to upload it to storage.
This is to preserve the changes done
to comments.

Since we need to differentiate between
read-only Storage vs the above cases,
we use a new flag in Session: isWritable.

Change-Id: I028e7908db7f0f10e5407a45c71d89aaab858390
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-14 20:30:11 -05:00
Ashod Nakashian
2b7e2bda96 wsd: move isWritable to Session and rename
This helper is only true if editing of the document
is enabled and not whether or not the document is
writable in storage. Since it unifies isReadOnly
and isAllowChangeComments, which are in Session,
there is no advantage in having it in ClientSession.

It is now renamed to isEditable in Session.

Change-Id: Ib923b6162a8075be145049bc1442c42479c8ce4b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-14 20:30:11 -05:00
Ashod Nakashian
30fc5ed649 wsd: correct setting read-only and allow-comments
We should always set the read-only flag when
the storage disables writing for the doc/user.
Similarly when the user is locked.

This breaks down the logic of setting these
two flags such that it's explicit and more
readable.

Change-Id: I99ea19b85a529c08fa50b91fb73bffcfba47f996
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-14 20:30:11 -05:00
Ashod Nakashian
4884455f88 wsd: set _isViewFileExtension for LocalStorage
And reuse it for WopiStorage.

Change-Id: I37666300830fd872b3d38fe2d824ae3895e0d22d
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-12-14 20:30:11 -05:00
Milo Ivir
09e467c267 Translated using Weblate (Croatian)
Currently translated at 100.0% (479 of 479 strings)

Translated using Weblate (Croatian)

Currently translated at 99.7% (478 of 479 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: Ib32b8d001305efaee88744febf628a67d57b3732
2022-12-14 21:02:48 +01:00
Andras Timar
ddf23b7be1 allow quote in tab name
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie49a420bc1d8721c276a7aed5b889b6a17236b5a
2022-12-14 21:02:37 +01:00
Szymon Kłos
b61305985e jsdialog: filteing also non header list
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I93c5157a39644264ed744002d7ad6950d63eefb6
2022-12-14 18:39:27 +01:00
Szymon Kłos
ad3db4797d jsdialog: TreeView case insensitive filtering
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If4a9524e4ce97896e40d920ac87ef103175911f6
2022-12-14 17:31:38 +01:00