Commit graph

1875 commits

Author SHA1 Message Date
Pranam Lashkari
e045552ab0 zotero: added language selection support
some style may differ in languages
i.e: in APA style a citation may appears as (Abrikosov, n.d.) like "no date". When I switch language to Hungarian, it becomes (Abrikosov, é. n.) like "évszám nélkül".

language can be selected in document preference dialog

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ida1cd91b189fc468e0205e9f1e332238f3ebbe7b
2022-12-27 22:46:22 +01:00
Pranam Lashkari
952921577d zotero: extract repeated query in a separate function
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I27db5073fcd46f0853e947c4cf9a246477271d84
2022-12-27 22:46:22 +01:00
Szymon Kłos
1480df81d2 Zotero: add note
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3696bd1115ac996c2f5d163ddcb0238036436aac
2022-12-22 21:31:07 +01:00
Szymon Kłos
aa7503c03c Zotero: unify command naming
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib2b6cda94817e544d2fe37181d4aae105f2ea201
2022-12-22 21:31:07 +01:00
Szymon Kłos
dde1057ac2 Zotero: fix broken requests
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6dd1e198e6870c62a53bdca141b55c69a9d4a47a
2022-12-22 12:40:16 +01:00
Pranam Lashkari
b7db80cfb4 zotero: insert bibliography
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: If6d1f2189eb27785cd2bb2d15a50ee01c4735afc
2022-12-22 12:40:16 +01:00
Szymon Kłos
84c68b7ef9 Calc: show cursors from others
avoid comparison with undefined for mode param

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifdcd46ae2d10aa2f203b377e7daf30aee8715802
2022-12-22 11:39:04 +01:00
Pranam Lashkari
80de048866 zotero: store the style property in doc in chunk of 255 char
following the standerd zotero convention, reason is unknown

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie7d3167906cdce7be22dc9a201d6a1d20e880a2c
2022-12-22 09:58:46 +01:00
Pranam Lashkari
444dab1648 zotero: set document preference before performing any action
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I8c6e3c7c7b75fad59cf09a2c827bcb66a57e012b
2022-12-22 09:58:46 +01:00
Pranam Lashkari
1e0c89c956 zotero: fetch existing style from the document on load
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I377ba844fcbc6881a306668022bfa776b1916293
2022-12-22 09:58:46 +01:00
Pranam Lashkari
3e66d205f4 zotero: set citation style
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ib29683c96bb4037a1084baee282fb4b066018d38
2022-12-22 09:58:46 +01: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
Егор Ермаков
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
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
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