Commit graph

2227 commits

Author SHA1 Message Date
Hannah Meeks
401f76ed11 Dialogs: Help Page - Spelling Fix
Signed-off-by: Hannah Meeks <hmeeks4135@gmail.com>
Change-Id: I87c3f9aab49dd32e6d897cadaf0f2945b82e0d4a
2023-01-18 23:44:46 +01:00
Szymon Kłos
83c1c90627 Zotero: don't duplicate entries on edit
we already have selected existing entries in the dialog
so just use pending items directly

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibc9bf10c0a2815c2c9132100ec1beb254f42b3af
2023-01-19 02:01:02 +05:30
Szymon Kłos
a860e3dc7b Zotero: mark citations already used on list
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Idc36cfa0725c11174fcdbeb0694e9415adbae073
2023-01-19 02:01:02 +05:30
Szymon Kłos
0cdf42aa82 Zotero: handle multiple citation insertion
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I18c879279da5a7a80ed58eccbe4fe39e8fb6032e
2023-01-19 02:01:02 +05:30
Szymon Kłos
0f2b035a24 jsdialog: mark checked entries in treeview
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9dda55d5f7f7a912beaf2f8a23ee1ffa65e30dd5
2023-01-19 02:01:02 +05:30
Henry Castro
c270f802b8 browser: add "More..." menu entries specific to writer
Change-Id: Id851b4b48b9c365ac416858058cfff9e8fa1a399
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-01-18 16:45:16 +01:00
Henry Castro
1da779a2bc browser: add "More..." menu item to Language menu
Change-Id: Iaddec2ffd59f6859444ab48d4e5594e263e4d610
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-01-18 16:45:16 +01:00
Henry Castro
fa84abfacb browser: move "Default Language" menu to the last
position.

Change-Id: Ic853a1dd861b7e5f988bbe24aab7bb637fe56d86
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-01-18 16:45:16 +01:00
Szymon Kłos
2081c124ff Zotero: error on wrong api key
- when api key is incorrect - show snackbar
- when api key is empty but set - integrator has feature implemented
  so don't show our warnings about empty API key

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I62aaedc5a8c2033050b97db4c7e1ca1f629a10b0
2023-01-18 15:28:37 +01:00
Paris Oplopoios
e7e837b7ea browser: Add PageNumberWizard button in notebook bar
Add button that opens the page number wizard in the Writer notebook bar

Signed-off-by: Paris Oplopoios <paris.oplopoios@collabora.com>
Change-Id: I108b5cb014f162a243af7d61f6ed045834ff32d0
2023-01-18 13:50:22 +01:00
Dennis Francis
3db5fd3921 browser: fix draggingSomething is private
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Icc3c0d09c0ed3318dad375e3cf2d4da1e03c6ff7
2023-01-18 16:45:02 +05:30
Dennis Francis
0540e0564a browser: derive CanvasOverlay from CanvasSectionObject
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I3416fe4ca729adaee6132b786349bde3894bfdc3
2023-01-18 16:45:02 +05:30
Dennis Francis
a4a0786752 browser: eslint: fix cool.Comment
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I16a7cd22a0d16c80d0ef89943b2f73d15173fa30
2023-01-18 16:45:02 +05:30
Dennis Francis
5aeb2af573 browser: derive ContentControlSection from CanvasSectionObject
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I48b028f8ecb5422587879c443a70dd898b2bcdfb
2023-01-18 16:45:02 +05:30
Dennis Francis
311c410ece browser: use typed version of Comment class
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ia73627e4c1ba9c3b233adafcb745b0d2731b972b
2023-01-18 16:45:02 +05:30
Dennis Francis
0cd6629503 browser: derive Comment from CanvasSectionObject
Also fix TS eslint issues in this file.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I493ae8b8dc9351fe6aedb3407f78b60379173b5d
2023-01-18 16:45:02 +05:30
Dennis Francis
e6d09a9807 browser: fix TS eslint issues in ScrollSection
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I08d345bea972f8fac44975a915bf939cb6396d93
2023-01-18 16:45:02 +05:30
Dennis Francis
977f915106 browser: derive CommentSection from CanvasSectionObject
Also fix eslint issues in this file.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I061fdb18e35020118af9749530aaa8047d75630f
2023-01-18 16:45:02 +05:30
Dennis Francis
fd7836479d browser: derive ScrollSection from CanvasSectionObject
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I1f8d88638b6b2c1dfd74e2f8e46ba61483ad632a
2023-01-18 16:45:02 +05:30
Dennis Francis
b1cf4ce350 browser: derive TileSection from CanvasSectionObject
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ibc96489d20357e3e41d869823dda2e199792f599
2023-01-18 16:45:02 +05:30
Dennis Francis
75fbcc4ad0 browser: addSectionFunctions is no more
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ibceebaed2f553275b206f04e4c18dd9b842a78c3
2023-01-18 16:45:02 +05:30
Dennis Francis
e0017e5b8c browser: fix private canvas member access
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ia1686edb6bca6845904a4bffb698bc7e7a3bfbfe
2023-01-18 16:45:02 +05:30
Dennis Francis
8e05061f9b browser: convert calc header controls to TS
Control.Header.js -> Control.Header.ts
Control.ColumnHeader.js -> Control.ColumnHeader.ts
Control.RowHeader.js -> Control.RowHeader.ts
Control.CornerHeader.js -> Control.CornerHeader.ts

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ib0f111cf715171d91660c0672b2473df89f83b0d
2023-01-18 16:45:02 +05:30
Dennis Francis
aa1ec7d9e2 browser: correction in doc-string of moveTo()
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I2f4f6f2f3d7a61c5afa6628029a9adecf9b51a12
2023-01-18 16:45:02 +05:30
Dennis Francis
1d0a406e5d mocha: add unit test for L.LOUtil.Rectangle
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ib0708c41c93fd2d7680c9bc2876b75216fc5377c
2023-01-18 16:45:02 +05:30
Dennis Francis
688ea1d4ea browser: convert createRectangle() to typescript
The logic is simplified by not having to maintain redundant states for
x2, y2, area and rounded versions of all variables. Here they are
automatically calculated by using getters.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I0125c74d06bceaa69896029ce85c6437ffd3d0dc
2023-01-18 16:45:02 +05:30
Dennis Francis
cb1b2611bd ts: use let/const instead of var in group controls
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I217a741cb3b0a138cfd67cb631a73c9881d9d5f8
2023-01-18 16:45:02 +05:30
Dennis Francis
291494eaa9 eslint: fix errors in Control.RowGroup.ts
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ib5f24e6abe73576d63006a087bf0c7000973085b
2023-01-18 16:45:02 +05:30
Dennis Francis
efbeea569c eslint: fix errors in Control.GroupBase.ts
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ibbca537988e846bf9e3c8dea72c3d46702cb5c8e
2023-01-18 16:45:02 +05:30
Dennis Francis
0a97f16b9e eslint: fix errors in Control.CornerGroup.ts
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I007439abce299452a39285d3498331828413dcbe
2023-01-18 16:45:02 +05:30
Dennis Francis
cac5ab0315 eslint: fix errors in Control.ColumnGroup.ts
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ifb7d2685ef2fe3c85585bf42ff7a9095788dc7fc
2023-01-18 16:45:02 +05:30
Dennis Francis
b6a107291a browser: convert group controls to TS
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Iab63fbee8480c40a29635985e97764c1f62fc561
2023-01-18 16:45:02 +05:30
Dennis Francis
a4c890a12a use existing section/container types everywhere
Before this patch the section types were not used outside of
CanvasSectionContainer.ts and new sections were created by using objects
that looked like CanvasSectionObject.

Let us take advantage of typescript type checks by using
CanvasSectionObject class as the base class for all sections added using
addSection().

To make this happen we need to separate callbacks from member functions
of CanvasSectionObject class because typescript does not treat them as
same.

TODO: Other non-typescript sections need to be converted by follow-up patches.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ieeac168b6a4f82a0d55accd88a07708bf9da2587
2023-01-18 16:45:02 +05:30
Dennis Francis
bd40bca37f browser: add type for createSection parameter
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ic23aa1f686644de9b18daecc3a993af71add1114
2023-01-18 16:45:02 +05:30
Dennis Francis
a0932fd840 browser: avoid duplication of check command
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I9a31f5abb20ce230925205501b7f1e67b53cb328
2023-01-18 16:45:02 +05:30
Dennis Francis
e2ef62aabd mocha: add tests for '-left' anchor flag
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ibb359bb596994204d4641b2929ac2d3cd329caf1
2023-01-18 16:45:02 +05:30
Dennis Francis
f19948de9c mocha: avoid assert with absolute coordinates
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Iffb3ad4e35621bb7d57e8379d59940fa2caae288
2023-01-18 16:45:02 +05:30
Dennis Francis
4ac90db720 mocha: tests for 2-vert section container
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I22a1b72917508e1a1615251aa9b6183f79299432
2023-01-18 16:45:02 +05:30
Dennis Francis
98da29a609 mocha: tests for 2-horiz section container
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I26b29113fcb627e1f22a3578eb82641d105a67ae
2023-01-18 16:45:02 +05:30
Dennis Francis
c744ed64dc mocha: move container setup code
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5f31276c3570d2ab02a2820848cb2393dfb0b760
2023-01-18 16:45:02 +05:30
Dennis Francis
df14c25fbe mocha: move Rectangle utility functions
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id441837e6939297d40870761dd191c7f4240b677
2023-01-18 16:45:02 +05:30
Dennis Francis
ad71d399ef mocha: move Rectangle type to its own file
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I8bfa41e9a25d5d13da62065186f8d7e7d2466b5f
2023-01-18 16:45:02 +05:30
Dennis Francis
13f746781b mocha: move jsdom setup string to helper function
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I8a04aabee4691d1c0d914618a1be49bd8dac7fb2
2023-01-18 16:45:02 +05:30
Dennis Francis
ee7a6e7539 add mocha tests for singleton section-container
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I2d6cb530b527d891ed1490e535105c7362fcc0de
2023-01-18 16:45:02 +05:30
Tor Lillqvist
366b94a5fb Limit line length in uglified bundle.js file
Helps in the hopefully rare cases where you need to see what code some
error message points to. Otherwise bundle.js will have extremely long
lines, and many editors have a hard time with such. (For example: Line
1, column 2949562.)

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I229814e985348e94c8cda2d88b77ad1ea4b74ae7
2023-01-18 02:19:26 +02:00
Pranam Lashkari
7c82370446 zotero: added unlink citation support for refmarks
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I8b92d6187c60ee6656d84c4fec0cebb0eb3a1b58
2023-01-17 15:11:05 +01:00
Pranam Lashkari
4dd5c23fcf zotero: added unlink citation support for bookmark
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I8a1e8019997af230ab19ad2161153ba603af2ee9
2023-01-17 15:11:05 +01:00
Pranam Lashkari
6399d5722a zotero: added unlink citation support for field mark
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I4dd4f0e7e58c5272a965eac10537903024314029
2023-01-17 15:11:05 +01:00
Pedro Pinto Silva
f5c31c89ec Inform user about all the implication related to unlinking citations
Add also notification once they are unlinked

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id26f7228f5a845b79f941256738a0d83bd12e43f
2023-01-17 15:11:05 +01:00
Andras Timar
7b10bd0a16 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia5d7a453c1b73ea6bf52fdf5557b855a8a357484
2023-01-16 20:20:14 +01:00
Andras Timar
8e3e2c61b7 fix a few translatable messages
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If8313ceb7d4f7acf08958b310c378d8bea9d1887
2023-01-16 20:12:32 +01:00
Nathan
5d391a74ea Translated using Weblate (French)
Currently translated at 100.0% (479 of 479 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fr/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id2034def8b97d54ea537c47348bfb20b8173e0cb
2023-01-16 19:35:31 +01:00
ERYpTION
ec260d99c8 Translated using Weblate (Danish)
Currently translated at 73.4% (352 of 479 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/da/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2f762de7d5df820dc40e446c174b775f91c93044
2023-01-16 19:35:31 +01:00
Herve FARNER
cf841bc6e6 Translated using Weblate (French)
Currently translated at 98.7% (473 of 479 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fr/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I87cfcbbd0c11a386b19eb05fadc6ab9a3a42e44a
2023-01-16 19:35:31 +01:00
Adolfo Jayme Barrientos
812ca1b942 Translated using Weblate (Catalan)
Currently translated at 100.0% (457 of 457 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ca/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I86d9d6f7c30f455f3f306b1cd40b3cb1a27a82cd
2023-01-16 19:35:31 +01:00
Adolfo Jayme Barrientos
9178c00aa3 Translated using Weblate (Catalan)
Currently translated at 100.0% (479 of 479 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I227375ec73351ae640a3a02aa5673d6021747fb5
2023-01-16 19:35:30 +01:00
Allan Nordhøy
dabcb04be1 Translated using Weblate (Norwegian Bokmål)
Currently translated at 77.0% (369 of 479 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nb_NO/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iefd8ee90aa007c0367ccd7767c8f5da40289366c
2023-01-16 19:35:30 +01:00
Adolfo Jayme Barrientos
528f31b004 Translated using Weblate (Portuguese (Brazil))
Currently translated at 99.7% (478 of 479 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt_BR/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic1aaad94dc508f1d13c4583a0f7c821fc65351b9
2023-01-16 19:35:30 +01:00
Flavio F. M
b820df9947 Translated using Weblate (Portuguese (Brazil))
Currently translated at 99.7% (478 of 479 strings)

Co-authored-by: Flavio F. M <flavius_androiduser@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt_BR/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9b14ed8c7ce1ed059206431c72ebff801ed176da
2023-01-16 19:35:30 +01:00
Adolfo Jayme Barrientos
856bae94b8 Translated using Weblate (Portuguese (Brazil))
Currently translated at 99.7% (478 of 479 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt_BR/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0d2ce743f6e3c67a89012008afffc7743621a796
2023-01-16 19:35:30 +01:00
Luna Jernberg
60dfb52b8e Translated using Weblate (Swedish)
Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: Luna Jernberg <droidbittin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sv/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I26bb3e8f909c2aba4179b3aa9a438af4033c8e97
2023-01-16 19:35:30 +01:00
Translator-3000
086d7010e9 Translated using Weblate (Italian)
Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: Translator-3000 <weblate.m1d0h@8shield.net>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/it/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I04fb3f4a21b35a01c6a5b062e0853536a3d52bb3
2023-01-16 19:35:30 +01:00
Tor Lillqvist
3c39657ae5 Add debug output and simplify use of QtLoader
Also, don't load online.js. It seems that it will be loaded into the
JS "web worker" for each thread automatically by
online.worker.js. (But hmm, what loads online.worker.js? I am probably
completely confused here. Probably getting rid of Qt things
(qtloader.js) and using only JS that Emscripten produces (modified if
necessary) will make things simpler to understand.)

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I050a20a553b7c0f6ebe9db0e7cb9cab2f9829f9e
2023-01-16 18:43:21 +02:00
Tor Lillqvist
7978e74434 Try to send the HULLO message only after the WASM runting has been initialised
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ida3e01482db0e18d17e8e6db0c75667c39adae59
2023-01-16 18:43:21 +02:00
Tor Lillqvist
cd592a4ec2 We use String.locale unconditionally so make sure it always gets set
Even if the URL did not have a query parameter called "lang".

And yes, we should stop using String.locale for that, and instead add
our locale property to window.app, which seems to be the place for our
code to store various global state. Using String.locale is hugely
confusing. I naturally thought it was some built-in JavaScript thing
and was very confused when it was undefined and I couldn't find any
documentation on it.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I549d3dac1be0991f87f1ca3aa3f147b081e898b1
2023-01-16 18:43:21 +02:00
Tor Lillqvist
40f53c6696 Initial attempt to load the WASM using code from Qt
Obviously just this is not a good reason to involve Qt, but we want
now initially to get something to even show up, so let's start by
using HTML and from the Qt-based WASM-LibreOffice. Let's see.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I7841fce8e5680a983cc00d516c3fca3a6747e9dc
2023-01-16 18:43:21 +02:00
Pranam Lashkari
7d75902d0e zotero: added support for multiple citations with refmark
now refmarks support to cite multiple sources at a place

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I07639bbc7206dd69a604b7aeabe4cf1a6fea5ca3
2023-01-16 16:31:53 +01:00
Pranam Lashkari
e13e28de24 zotero: added support for multiple citations with bookmarks
now bookmark support to cite multiple sources at a place

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Iafc65224d35ff6af5bcae09988567901ffd64dbc
2023-01-16 16:31:53 +01:00
Pranam Lashkari
da345e6de6 zotero: added support for multiple citations with fieldmark
now fieldmarks support to cite multiple sources at a place

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Iea3b6f7bee208d0a7c01780ec5b837d7f1042b4d
2023-01-16 16:31:53 +01:00
Szymon Kłos
8780b35fea Zotero: don't show errors on load
- allow reading bibliography properties on load without api key
- if fieldType is missing - use default

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic4ece4b4d61032a29f03cf57852cbdf6694a5294
2023-01-16 14:23:35 +01:00
Gökay Şatır
06916902cf Disable start/stop updates for Calc.
Another method is used for Calc while scrolling.
Remove unnecessary call to draw in control.header.js
Add condition for draw calls while scrolling on desktop view. Scroll bar is visible by default on desktop.

Remove commented-out code.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Iaaa0267c63a9a92aa67786231baf53a625541440
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2023-01-16 16:02:15 +03:00
Pedro Pinto Silva
1727383e7c Fix invisible text on primary button (hover)
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic07482aebe79e1dbd796acafbbd132a1449fe121
2023-01-16 12:08:13 +01:00
Gülşah Köse
b406a28af1 Prevent the conflict of welcome and missig font dialogs
If the welcome dialog will be shown we postpone showing missing font
dialog to user.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: Ie19a81588873842f92f4d482c14f07f112b1bcc3
2023-01-16 10:40:21 +01:00
Pedro Pinto Silva
283b225b96 Fix Missing title on showInfoModal when on a mobile
Before this commit dialogs such as hyperlink leave editor warning
or fontmissing didn't have a title

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Icded55a489dbfebc2fb7e12fe0b04da70938a416
2023-01-16 10:40:21 +01:00
Gülşah Köse
1fb15d4179 Missing Fonts dialog: Use JSDialog instead of Vex, allow dismiss
Before this commit it, it was impossible to:
- Dismiss the dialog by clicking anywhere else
- Dismiss when using mobile (it blocked both editing and reading)

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: I3caeef327e653a054994fb01e8e53c5023c20055
2023-01-16 10:40:21 +01:00
Szymon Kłos
4c2c8833c5 Zotero: show snackbar when API key missing
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2d05d29096bef0eb27cb4cf684bae2a3a175c57f
2023-01-16 10:18:04 +01:00
Szymon Kłos
5269851595 Zotero: handle disabled state in config
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id65ec60a9832872cf24dd7f295ffb90ad9b377d3
2023-01-16 10:18:04 +01:00
Szymon Kłos
3b3d648e39 Zotero: ask integrator if key is missing
It sends post message to the integrator: UI_ZoteroKeyMissing
if API key was not provided in CheckFileInfo and user tried
to perform any action on bibliography

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia7d04cbdd337d989e33bd4e1500efe113131a326
2023-01-16 10:18:04 +01:00
Pranam Lashkari
a493190392 zotero: renumber numeric bibliography
renumber the identification number in bibliography to match the citation number

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ic1eec6044e45c2b24aff1f9127fdb13cdab97313
2023-01-15 19:47:07 +01:00
Tor Lillqvist
b248787bfa We do want to temporarily use the idea that a "WASM app" is a separate thing
Only once we have that working will we go back to having a COOL client
that on the fly can switch from a normal COOL server to using local
online and core code in WASM.

Note that the --with-wasm-fallback configure option now then
temporarily is a no-op, and the ENABLE_WASM_FALLBACK Automake
conditional and WASM_BUILDDIR Autoconf macro are not used anywhere.

Once we have something that barely works as a proof of concept, we can
go back to working towards what we really want.

(Yeah, yeah, I know that "temporary" solutions have a tendency to
become more permanent than you expect...)

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I2f01acd418686e672fd9d2e12cbbd688b128dfa5
2023-01-15 19:46:37 +01:00
Tor Lillqvist
0a85ca0c2a Some initial thoughts how to handle messaging when WASM fallback is active
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I4146c5b93a3f5988b16836231e529640e9126392
2023-01-15 19:46:37 +01:00
Tor Lillqvist
ee157c0810 Clean up WASM-related stuff in configury and the cool HTML page
There is no "Emscripten app", but a COOL client that additionally can
fall back to using in-client WASM code instead of a COOL server.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I86517c6a8f6e0397f6c466278c7be19db001e6d8
2023-01-15 19:46:37 +01:00
Pranam Lashkari
4e5a9ddd6a zotero: update bibliography together with citations
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I0387d01e3e4eaec7a11e9ef58c790b1719f9abee
2023-01-15 11:08:29 +01:00
Pedro Pinto Silva
46f392bd0d Add min and max width to jsdialog modalPopup
with the introduction of showModal:
https://github.com/CollaboraOnline/online/pull/5518 we now have
a type of a dialog that, without this commit, can grow without
limits and can be as small as its content which is not ideal.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8768925377606924fd70fab8be40b0b755d802ac
2023-01-15 11:08:13 +01:00
Pedro Pinto Silva
73f2dfc591 Zotero: CSS: Ensure spacing between labels and other elements
While avoiding to add extra space to first elements

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia4102a783525e801e3adcd7dd8b621bb10ff2eb3
2023-01-14 09:41:47 +01:00
Pedro Pinto Silva
8336217607 Zotero: CSS refactoring: do not use id to target labels
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I312143e0c1764c7ecd761b95605b6f1e611e39c6
2023-01-14 09:41:47 +01:00
Szymon Kłos
7a9e18164a Zotero: fix error when not selected style
When ok is enabled and style selected - just use it
When style wasn't selected in the pase - ok is not enabled

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2f36dd967e44dfdaf5210f030521fb6c1ec6ecf5
2023-01-14 09:41:47 +01:00
Szymon Kłos
ea54185c3a Zotero: split JSON and add field type in settings
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8a96be86b00e80f1777a544a2385741b060008e2
2023-01-14 09:41:47 +01:00
Pranam Lashkari
f68ffa4356 zotero: extract item key from item URL
online stores keys as item id,
but other softewares use numbers for id and no other fields store keys.
keys are required in order to fetch the data from API.
So extract the item key from item URL

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ib2d25df81f975d0e926627408047b79c624394fb
2023-01-14 09:04:27 +01:00
Pranam Lashkari
dad74756c9 zotero: fixed style attribute storage in xml
style settings were treated as html instead of xml,
which caused attributes to lose its camelCase naming,
due to which some attributes were unrecognised and caused regression

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I34f211c54f9692ec67e08a872a68f516b1f82944
2023-01-12 21:29:28 +01:00
Szymon Kłos
50148416be Zotero: check available languages
it reads citation style and shows only available languages
if last used locale is available - use it
if not - use default defined by style

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7539ffeb3942d3a1f8b44c5a17b69b4b4b9b475c
2023-01-11 21:56:21 +01:00
Szymon Kłos
0d5590e7d3 Zotero: add message for failed requests
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I123c629947fd357aec2430a5736cf5c08ee15cb3
2023-01-11 18:15:49 +01:00
Dennis Francis
678e7e88fa writer: vex-desktop: clicking away drops comment
In case of desktop browser window whose size is only a little bigger
than the page, our native comments get collapsed and we use vex. In this
case don't close the comment dialog on clicking outside the dialog or
when switching browser tabs.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I92c9d800d58a6910d6df01371e6748c864641cff
2023-01-11 13:12:38 +01:00
Michael Meeks
506c739233 delta: add trace events to monitor delta performance better.
Change-Id: I1e537108e4ad43f5e7161e629c8fa72387eac3e2
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-01-11 11:52:29 +01:00
Dennis Francis
cb85497cdd Revert "share css-url renamer with branding"
This reverts commit 089b6d235a0e38d5b1d021fab024becc2def0ada.

Reason for revert: For packaging builds the global.js is in minified
form hence marker comments are not present and it is difficult to
extract the css url renamer function without js-language analysis tools
or packages - this needs more thought.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I86755cd74c8f92105b157477f7da8f6e439f1f99
2023-01-11 11:49:36 +01:00
Pranam Lashkari
d86a0b48bc zotero: update existing bibliography
if bibliography already exists, update existing and avoid inserting a new copy

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ief742a5c18d2cc9acd9fb14d5c3545bc7fcaa4da
2023-01-11 11:48:02 +01:00
Pranam Lashkari
2bbe4e0aa0 zotero: add support for refmark and bookmark for bibliography
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ic8c5e02a58c43a137246fd92cfa8378530131349
2023-01-11 11:48:02 +01:00
Pedro Pinto Silva
1c69fe0dcc Show citation snackbar also when loading up document
Before this commit, when opening a document with citations,
citations would be updated and the document refreshed but without
any information of what is happening

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I474e8cdf9c31e18027501ebfc9bd6dd2f55a58a5
2023-01-11 11:47:51 +01:00
Dennis Francis
f583ca47c9 browser: hide fontworks ui for non-odf files
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I8497a6b34186ce4167e4f864579a49a7d9910fb6
2023-01-11 16:15:18 +05:30
Gülşah Köse
966e62adc7 Use thin instead of auto for scrollbar width
On Windows firefox auto setting is not handled properly. Scrollbar
flows on the sidebar elements. We use thin instead.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: Ife27f461639e6b034ac9071624d628cd35709191
2023-01-11 10:42:31 +01:00
Tor Lillqvist
99afb66870 Add FIXME: We don't want a separate HTML file for a "WASM app"
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I3ce8d34e987350a82e9d86dcc0877bc12952c522
2023-01-11 09:27:36 +02:00
Tor Lillqvist
28ca327640 Need to pass strings to C++ with allocateUTF8()
Also need to free them afterwards. Later.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ie09f268132d01fb51a7126fc3c97272f1e11246c
2023-01-11 09:27:36 +02:00
Tor Lillqvist
8cc1c1baa5 Preparations for a "WASM app"
The WASM C++ bits (in wasm/wasmapp.cpp) will have to export functions
hande_cool_message(), handle_error_message(), and
handle_debug_message() to receive the calls from JS.

Change-Id: Ic7f2cffdeb4408a9f726ad70a8ceb8db372787dd
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2023-01-11 09:27:36 +02:00
Pedro Pinto Silva
d43243bc47 Fix Zotero labels
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I25e0cbb871c7631d14cc14aca497ef944c37b58f
2023-01-10 22:35:47 +01:00
Pranam Lashkari
1c73ec45dd zotero: introduce bookmark support for zotero citation
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I2cddea94988c12459e35c83ca9327c2a0a32f0f9
2023-01-10 19:28:14 +01:00
Dennis Francis
a0d86c8a6f share css-url renamer with branding
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I849948c69e9cc656c410513f9f95db2e7fb07e03
2023-01-10 11:40:50 +01:00
Szymon Kłos
f542aff8ea Zotero: show placeholder text when loading
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib3ce91ddaa80645e844e760f5a5e90d7b78c25eb
2023-01-09 22:00:00 +01:00
Szymon Kłos
a4ebc7fda2 Zotero: use private info for key
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie2459b8002d33a6e9a5c4bc21e129df602fe588b
2023-01-09 21:55:06 +01:00
Szymon Kłos
c973cb99d7 Zotero: remember last used style
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I01877c0a22f71d21cb146b350dbd8449452764a9
2023-01-09 14:46:34 +01:00
Pedro Pinto Silva
b308ba68e9 JSDialog: Add padding in between columns and fix th alignment
Before this table columns were getting "glued" (content of one
col would end and immediately would start content of another col).
Plus, we were having table content normally aligned to th start
while headers were being centered aligned

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ie0908c26d1e7bedc37b3c5d768d941b091946524
2023-01-09 14:30:39 +01:00
Szymon Kłos
b338c3faec jsdialog: scroll treeview to selected entry
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7c88df039fc0358b3444be3552f2e200ee3bf71f
2023-01-09 13:33:00 +01:00
Szymon Kłos
8371ce4437 Zotero: show snackbar on citations update
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I225d62fa006d444ac70014058e20a2dc865b5d96
2023-01-09 12:55:05 +01:00
Pedro Pinto Silva
c9a170463d JSSidebar: remove non-effective rules for expanders
These have no effect on the ui-expander-content since they
are set to display: block somewhere else (jsdialogs.css)
plus, (and even testing with flex) this does not seem to improve
or fix anything

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0260f44413ff46f79b9ea6a15e154ee62fb1e53f
2023-01-09 12:43:53 +01:00
Pedro Pinto Silva
ac2db46325 JSSidebar: Align vertically every widget
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: If18a47848790bdf1898aab712c8900f46cd6cdbe
2023-01-09 12:40:37 +01:00
Pedro Pinto Silva
58a29afffa Revert "toolbox widgets get vertical center aligned"
This commit was initially intended to affect sidebar but it is
affecting every toolbox (dialogs, formula bar) causing regression
in the formula bar buttons

This reverts commit c0302a8d93c183b90079e3c2cbe9c90220e93cdb.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ie872d26ec7dcfb396c7ccba13dcbf6142655be7a
2023-01-09 12:40:37 +01:00
Pedro Pinto Silva
c6e28eee58 Add float logical values fallback for buttonboxes
Before this commit, browsers such as chrome (without enabling
experimental features) were not supporting those float values

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I2530e7bf46d161ac980559c181a4e03947edbeee
2023-01-09 10:26:27 +01:00
Gökay Şatır
de1e9fa334 Re-show formula bar if only the document is a spreadsheet.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Id82bb40ef7a86f6c2a068896cdfb3084e63aaf60
2023-01-09 12:06:43 +03:00
Pedro Pinto Silva
7f26249041 Add possibility to target item images within treeview widget
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I17de1fee0a4d508fbe1cc6e5b2530ee1a3caf3d3
2023-01-09 09:13:52 +01:00
Gökay Şatır
01b378ea71 Remove extra sidebar command.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I59b5c7a66ae5811331a53288146c5965dcf610e3
2023-01-08 15:40:18 +01:00
Pranam Lashkari
4b932f24aa Util: introduce random string generator function
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Iaf99240f5a4bdda7a39420eab05813187a89e2bd
2023-01-08 13:16:14 +01:00
Pranam Lashkari
3cb8a99e67 zotero: introduce refmark support for zotero citation
now odf documents will by default use refmarks,
MS docs will use field marks by default

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I57ef5de9bef8d1e5f6b5029e478d9a43e38dbc4d
2023-01-08 13:16:14 +01:00
Michael Meeks
616197d7a1 calc cell cursor: get the layout and sizing right.
The cursor should minimally obscure the cell content - so the border
should go outside and over the cell border, and the white contrast
line inside it.

Similarly the autofill handle should not obscure the number in the
cell you're trying to read - so move it out and down to a more
familiar position, shrink the size somewhat, and correct the
white boarders around it too.

Change-Id: Ib107adc2927172d69b8cd9a6523b50327d4f81cb
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-01-08 07:24:36 +01:00
Tor Lillqvist
8233d030e5 Don't pointlessly assign global.socket = app.socket
Note that the code changed is inside an anonymous function that is
called with one argument: window, for the function parameter called
global. Thus the assignment that this change removes sets
window.socket.

The window.socket variable is not used by code later, so this change
can be this minimal.

The window.socket variable has earlier been set to the WebSocket
object used to communicate with the COOL server. Let's keep it for
that purpose. app.socket is the app.definitions.Socket object. Even
though JavaScript is not type-safe, it is very confusing to use the
same variable for completely different object types at different
stages in the code execution. I am working on some new code that will
want to access the WebSocket object also later.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I6273a6d6acee3fa46ab9fedc5742ae44c8bfa567
2023-01-07 00:16:02 +02:00
Pranam Lashkari
383b6a7080 zotero: implement citation refresh
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Id91acbed6c651dfed02777d7fa4142edf597a55a
2023-01-06 12:47:34 +01:00
Pranam Lashkari
46d1f930de zotero: renumber citations on citation insertion for numeric style
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I5cc8b7d6cb16a7f849bf42dd893487c95a7a3e8d
2023-01-06 12:47:34 +01:00
Pranam Lashkari
9be49e17c7 Zotero: introduce the citation update mechanism
Commit introduces the following capabilities:
1. Users can now change the style and the existing citations will respond to it and update
2. Citations numbers are handled
3. Citation clusters(multiple citations) can be read and handled now

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I1e7d85ab955db49bf962303f3b6a0471b37e6ae7
2023-01-06 12:47:34 +01:00
Pranam Lashkari
fb5be17057 zotero: fetch the selected citation style details
fetching selected style language details will allow us to make adjustments to citation texts
this is particularly helpful in handling citation numbers and citation clusters

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ia469e0e44fc0550c083ce572f8fe9f512947a1f4
2023-01-06 12:47:34 +01:00
Szymon Kłos
f6a2d93265 Add missing icon for macro dialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id9f5929886703c3881b550dec6987b26203fafcd
2023-01-06 11:15:23 +01:00
Ashod Nakashian
12f3f1e6a4 browser: package.json always get resorted anyway
On every build, nodejs (v12.22.9 for me) re-sorts
the packages in package.json. I expect this is
the case for everyone, so best to commit it
sorted.

Change-Id: Ifa69989ae1bee0fda5a9cc19c2215db92959a434
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-01-06 11:19:18 +03:00
Pedro Pinto Silva
6ad1b900e0 Remove zotero search label and use placeholder instead
Remove citation search label and instead use placeholder

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0eef0cd9321babd7239b18b4fd5a422cc4d09831
2023-01-05 19:21:29 +01:00
Szymon Kłos
4d2b020513 Add missing icons for macro dialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9ee72a697b30571234af9314acc64513ee8184c9
2023-01-05 15:24:18 +01:00
Pranam Lashkari
16349472eb zotero: avoid asking unnecessary bibliography data
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I6aab932715cdfc9511f0b96b4f6aaf671f0b6efb
2023-01-04 17:29:12 +05:30
Pranam Lashkari
8086aba917 zotero: keep citation JSON in same sequence as the desktop
makes it easy to compare for debugging

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I948b79d1f17224dfe40dd70671abfb35f49d7336
2023-01-04 17:28:55 +05:30
Pranam Lashkari
60a11b58f8 zotero: add missing fields in style property
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I048d351e5590413fe57e1ac009bd96933e73b5df
2023-01-04 17:28:55 +05:30
Szymon Kłos
1aeeda61ac jsdialog: use unified naming for treeview icons
unified header and no header treeviews
icon shouldn't contain old extension

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0778d49395c084e4ac9adc848b3327529ee37e61
2023-01-04 07:27:20 +01:00
Pedro Pinto Silva
7dcd8a12fc Citations: fix Refresh btn alignment, add json leftaligned property
Move refresh button under a buttonbox so it can automatically inherit
container's offset

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I405eddc56ab806b33404221f64255ea676240134
2023-01-03 17:04:32 +01:00
Pedro Pinto Silva
1cc519ccf3 Citations: Fix extra h margins affecting search and locale controls
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5e1bf9cedbce7de1a5ca18c014b30914f9f6f046
2023-01-03 17:04:32 +01:00
Pedro Pinto Silva
3f27c6b1bc JSDialog: edit controls (input fields): do not force their width
setting it at 100% was leading to element getting passed their
container. Example of the referred bug:

https://archive.org/download/jsdialog-ui-edit-has-forced-width/jsdialog-ui-edit-has-forced-width.png

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I64a65e3149356f0094d0ce8e2ace8ffd8fba28fd
2023-01-03 17:04:32 +01:00
Pedro Pinto Silva
f1a86aedd5 JSdialog: Fix container's padding
Do not set sub container with a margin. This was resulting in
some elements (that are inside of that container) to be properly
contained but all the rest were being set without any surrounding
margins -> leading to misalignment

- Main jsdialog container shouldn't inherit lokdialog padding 0
- We do not need to specifically set `padding: .5em 1 em` because it
- has been already set and inherit from jquery ui CSS rules

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I957c93c099692a5bd202248731b16bc6bf358234
2023-01-03 17:04:32 +01:00
Pedro Pinto Silva
5f29c731fb JSDialog: add margin offsets to buttonbox L and R
Fixes the misalignment, before this commit: the safe margin
present in every button was correct but for the cases where
the button is placed to the further left or further right
edge of the dialog -> it looked misaligned

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ibadeaf6cf736b07229d60f99b5af72865f26e23f
2023-01-03 17:04:32 +01:00
Szymon Kłos
ba3aa1b4c4 Zotero: refresh insert note dialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Idbb7dfe88072fb2071e75efd961317b4184ddcae
2023-01-03 10:19:12 +01:00
Szymon Kłos
130433f8d5 Zotero: don't duplicate notes on insert
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I586e83b05d7757df11dac263b8ed3317efd58575
2023-01-02 20:51:37 +01:00
Szymon Kłos
c3f98060d6 Zotero: show notes from groups
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id24ee1282703f2cb1eea15f828c134151b11352d
2023-01-02 20:51:37 +01:00
Szymon Kłos
c49ae2a78f Zoteor: don't shorten the note
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I452eaf484fd91ad8f3e2d88d0a1270b85f17be99
2023-01-02 20:51:37 +01:00
Szymon Kłos
8d86da3c43 Zotero: show all notes
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I42a9686b275f42615a36d0e02519f2037a0d129b
2023-01-02 20:51:37 +01:00
Szymon Kłos
7d8c7ede3d jsdialog: don't use deprecated string color parameter
There was a bug in the core with duplicated filds, also
we can use original numeric argument to pass colori (tdf#150339).
Let's don't use string color so we can remove that
from the core in the future.

Related core commit: https://gerrit.libreoffice.org/c/core/+/144866
Resolves: tdf#150339 two arguments called "Color"

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I880552b7af4408e568db878dc862e548e901124d
2023-01-02 16:26:25 +01:00
Henry Castro
857e3f35a6 browser: menu: ignore menu item with empty text
if command "None" and empty item text, there is
an unhandled exception, and no grammar suggestions are shown.

Change-Id: Ie2c832a2a3ff7fe9944024fa003370819b16a432
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-01-02 11:14:31 +03:00
Pranam Lashkari
f7968b4fc1 zotero: fix locale drop down showing incorrect language
user was allowed to select language without selecting the style,
if style is not selected language data will also be not written in the doc.

force user to select style too if want to set the language.

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie323b19189858e601f3fa979d747d7c688e4baf1
2022-12-30 12:03:27 +01:00
Pranam Lashkari
852d12960f zotero: in style dialog show selected style
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I420c5f22f8b4aa880f202fe8b0d981f091c1dfa7
2022-12-30 12:02:57 +01:00
Andras Timar
652eb4f16f zotero: localized bibliography
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2df13cbc1b818ab26551161f18673e9e1a4770d3
2022-12-29 11:48:23 +01:00
Pranam Lashkari
1c7987b87e zotero: fixed broken item query function
fixed regression form 9529215

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Id375958bd17b528dee7e9000d056ca60da064133
2022-12-28 06:19:50 +05:30
Pranam Lashkari
60ac1e18b2 zotero: fetch and set locale language from doc if set
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I5a003d065b062d9631c00ade65e969b21db121ce
2022-12-27 22:46:22 +01:00
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
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
Szymon Kłos
6346bdc42e Zotero: add search field
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id0842b6c24953a447068ca4b6aea8f2d49d11d8d
2022-12-14 17:31:38 +01:00
Szymon Kłos
cbaab44d08 jsdialog: add TreeView JSON documentation
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7bc259eb43a42cc79bb1d7ceaaca60eea63e7410
2022-12-14 17:31:38 +01:00
Szymon Kłos
9a5edea123 jsdialog: reduce jquery usage in TreeView
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id814010bdf1d5f0be8ba1437fb64044882c39a6f
2022-12-14 17:31:38 +01:00
Szymon Kłos
9296d06891 jsdialog: add sorting the column to TreeView
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I93ff95affe3eb27b988477491fbc9b8a855160af
2022-12-14 17:31:38 +01:00
Szymon Kłos
e98e530b66 jsdialog: extract TreeView widget file
This starts cleanup in JSDialogs, we will move
widgets to separate files for easier maintaining.
In the future we will be able to convert single files
to TypeScript

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I4ca26bd51f895476a17ba1d54d9cdb684e8c8e2b
2022-12-14 17:31:38 +01:00
Szymon Kłos
d3f746021d Zotero: avoid request when url is not set
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9ebdafcc8c18f7bab11b52dd87577eb2f08e570e
2022-12-14 17:31:38 +01:00
Szymon Kłos
dd840148bb jsdialog: mark correct primary button
use deterministic querySelector to avoid usage of
button from the old window to remove

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I49f7b563666fad614b1f688e80ccb0cdc8d6dcb7
2022-12-14 15:56:07 +01:00
Szymon Kłos
5bc7f274a9 jsdialog: on full update don't refresh position
mark as invalidated when this is full update
so we don't change position on any update in the
future

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I90f79937c5a69ccb2ee36cda7860cddcd36e9311
2022-12-14 15:56:07 +01:00
Szymon Kłos
cbce2feb39 Make export EPUB/PDF always with options dialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id8d6c6e6ddbeb510e476365728f4957d3938dfd6
2022-12-14 15:56:07 +01:00
Szymon Kłos
f2f6b0ba24 Expose export as EPUB
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I43b2df08f6973b4d7baa8286d5ffa54e88c9d1d5
2022-12-14 15:56:07 +01:00
Szymon Kłos
a9f7931144 Expose Export to PDF also in menubar
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I85ed12907d7d39823ccdf6039669f914a3a9704f
2022-12-14 15:56:07 +01:00
NickWingate
c5aadfc4d1 Expose pdf-export dialog online
Signed-off-by: NickWingate <nick.wingate@collabora.com>
Change-Id: I7655f37a9a461612990059d24d7443a438e37a68
2022-12-14 15:56:07 +01:00
Andras Timar
749fed14e0 add back Insert Footnote and Insert Endnote to mobile menu
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0e33707fb4ea327943443c3bfdc7d0a10a49c1ee
2022-12-13 23:23:20 +01:00
Andras Timar
3571c7211d Add '(unbranded)' string to product name, when branding is missing
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I231f06f509c2d70ba092658b828e1d201cef2887
2022-12-13 23:23:20 +01:00
Martin Srebotnjak
9e4eca0c58 Translated using Weblate (Slovenian)
Currently translated at 100.0% (479 of 479 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: I1c4e6e01f463269de87326d2c33598248e9c8fd4
2022-12-13 11:13:31 +01:00
SC
4acb16373a Translated using Weblate (Portuguese)
Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: SC <lalocas@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I027cfa176bf3045d98b4ce662f77896b965f117e
2022-12-13 11:13:30 +01:00
Rob Pearson
4c8a94e407 Translated using Weblate (English (South Africa))
Currently translated at 100.0% (479 of 479 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (479 of 479 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (479 of 479 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 98.3% (471 of 479 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_ZA/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0b2ddef5b03531a297ac5a19d1168576eac560f8
2022-12-13 11:13:30 +01:00
Stanislav Horáček
48c1fc7f2e Translated using Weblate (Czech)
Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: Stanislav Horáček <stanislav.horacek@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I117879a036b3ae561ac9dad0c50f4ebe3364694a
2022-12-13 11:13:30 +01:00
Sebastiaan Veld
9abb794d09 Translated using Weblate (Dutch)
Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5cb4dfefb4de7f125c44b347c128e87e97fa6ffa
2022-12-13 11:13:30 +01:00
Sveinn í Felli
916d750d03 Translated using Weblate (Icelandic)
Currently translated at 100.0% (479 of 479 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: Ic7b2291a8b4ed70d81893f0554fd97d29a8c90ad
2022-12-13 11:13:30 +01:00
Yaron Shahrabani
039a5ad7bc Translated using Weblate (Hebrew)
Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/he/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie4f0667406ab7a95bda56290a13497cdd72c5aee
2022-12-13 11:13:30 +01:00
Alex Gabilondo
7b6e47b860 Translated using Weblate (Basque)
Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: Alex Gabilondo <alexgabi@disroot.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/eu/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9e5bdff6a7edea61a48f4fd4acf734131e1a5bcf
2022-12-13 11:13:30 +01:00
Ayhan Yalçınsoy
905abdc62e Translated using Weblate (Turkish)
Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: Ayhan Yalçınsoy <ayhanyalcinsoy@pisilinux.org>
Co-authored-by: PhD. Ayhan YALÇINSOY <ayhanyalcinsoy@pisilinux.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/tr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8213efb280e33fd71f2f8b096fb4128eb101433a
2022-12-13 11:13:30 +01:00
Adolfo Jayme Barrientos
95b06ad650 Translated using Weblate (Catalan)
Currently translated at 100.0% (479 of 479 strings)

Translated using Weblate (Asturian)

Currently translated at 53.2% (255 of 479 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 98.1% (470 of 479 strings)

Translated using Weblate (Galician)

Currently translated at 68.0% (326 of 479 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (479 of 479 strings)

Translated using Weblate (Catalan)

Currently translated at 100.0% (479 of 479 strings)

Translated using Weblate (Asturian)

Currently translated at 53.2% (255 of 479 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (457 of 457 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (479 of 479 strings)

Translated using Weblate (Catalan)

Currently translated at 100.0% (457 of 457 strings)

Translated using Weblate (Catalan)

Currently translated at 100.0% (479 of 479 strings)

Translated using Weblate (Asturian)

Currently translated at 52.1% (250 of 479 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (110 of 110 strings)

Translated using Weblate (Catalan)

Currently translated at 100.0% (110 of 110 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ca/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/es/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ca/
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/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/gl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt_BR/
Translation: Collabora Online/Android app
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iad6b2cda2dc02dffb636a306e84147dbf33b1da4
2022-12-13 11:13:30 +01:00
Pedro Pinto Silva
bf2618d2a7 References (compact view): Always show bibliography
And just disable them when engine is not present

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I6504197f096b4e48d075ee0d631217cb576f4a22
2022-12-13 09:05:59 +01:00
Pedro Pinto Silva
4dd3b733e9 References: Move missing items to compact view menu entry
- Move menu entries (that are exclusively related to references)
to References menu
- Add Missing menu entries to References menu so it has 1 to 1
parity with References tab (tabbed view)
- Update text in some menu entries so it follows what has changes
in the tabbed view
- Add separators

Note: Footnote and endnote action were also kept under insert
menu because it seems user are already very used to that. So,
now they can be found both under Insert and References menus

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Icde47f88f60c8423b9af3f6f3793bb8da056adde
2022-12-13 09:05:59 +01:00
Szymon Kłos
aeac944e4b Reinitialize notebookbar after Zotero init
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I697c87bbd995800bdd69358f139fa8537fb70077
2022-12-13 09:05:48 +01:00
Szymon Kłos
45184adba9 Zotero: show categories list
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6ecf4dd2dd26ce9f420ebe52edd06bf534575e7d
2022-12-13 09:05:48 +01:00
Szymon Kłos
7b6100d1b4 Zotero: show dialog while waiting
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I161795b2d1125b9846b0a6baa96432aeba64bef3
2022-12-13 09:05:48 +01:00
Szymon Kłos
a3862571f8 notebookbar: don't show border under tabs
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia0b54c0751f0fb3abb9e862b79895c44e890e3e2
2022-12-13 09:05:48 +01:00
Szymon Kłos
85661a92c0 Fix Zotero in Notebookbar
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8dd8d6c2792066cf602f0b9cc9d33cc5fbf24d98
2022-12-12 13:35:29 +01:00
Andras Timar
a077c4288b Put all Zotero logic to browser
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib1b071b96322511b7f319ff6b851e902b3556fbb
2022-12-12 13:35:29 +01:00
Pedro Pinto Silva
907079ea83 Bibliography: use icons for each action independent of engine used
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I96f92a4269c711652f6cac64de0ae461bc69bc42
2022-12-09 16:06:03 +01:00
Pedro Pinto Silva
c0a1c1aead UI menu: Add references compact mode menu instead
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I92d0502a6f8268e28e4f2eabc5cd722b58e53a2d
2022-12-09 16:06:03 +01:00
Pedro Pinto Silva
054af102ce UI Tab: Bibliography add additional buttons conditionally
note: Ideally we would always add the buttons,
but when the extra capabilities are not available we would
switch the trigger for all of those buttons to be a warning
dialog

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7359fe222eff31920b78116e69b45aa60cb15790
2022-12-09 16:06:03 +01:00
Pedro Pinto Silva
d5a6d36c85 UI tab: Bibliography improve labeling
Use keyword citation in multiple buttons so they can be
easily understood and grouped

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4104bdcbb555ee3f4a2b446ad70583e00727cab1
2022-12-09 16:06:03 +01:00
Pedro Pinto Silva
690bd3d425 UI tab: bibliography should be independent of engine used
Thus, Remove Zotero dedicated tab and menu
 - Add instead to existing references tab
Also remove dedicated top menu (compact)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8b056ac17fceb0bad2c9a864faeaf3ed2eec8d9d
2022-12-09 16:06:03 +01:00
Pedro Pinto Silva
2e25609359 Add zotero actions to menubar (compact mode)
Also make sure that new menu is only visible if zotero is
available

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0893515dbc5495aa8251fc9ca795fea357400e6c
2022-12-09 10:18:05 +01:00
Rizal Muttaqin
3828e1fa47 Add colibre themed zotero icons
Signed-off-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
Change-Id: I675dfc86cf9e500adae8c407e06403b3cd624864
2022-12-08 13:16:32 +01:00
Pedro Pinto Silva
826920e41d Improve Zotero tab's layout and add additional placeholder btns
Also rename the current testing button (Citation Style) to be used
temporarily as doc pref.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I70c434a42034a1ee0d729e4aa855b37e5d195950
2022-12-08 13:16:32 +01:00
Szymon Kłos
f6d2786df9 Don't scroll when cursor still visible on the screen
When we have 2 users:
A is typing on the page 0
B is at the bottom of the document

We scrolled view B when page overflow happened what caused
"flickering". This patch prevents us from scrolling when
cursor is still on the screen and visible.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id8f3a12ba566a4b2fd03bf3ab5aa618f8e00c263
2022-12-08 13:16:12 +01:00
Andras Timar
764d443a69 Zotero is a proper name, not for translation
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ifaaa5386dc70341672ab97026a6cc1e99c10eaa6
2022-12-08 10:42:35 +01:00
Pedro Pinto Silva
431ba6206f Introducing Zotero tab
- Prefer to show zotero related actions within a dedicated tab (instead
of adding those within references tab as it was previously). This,
hopefully is more familiar to user using similar interface elsewhere
- Show this new tab conditionally (if zotero is enabled)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I1690295724d54693aca68ade567e9d1076f26876
2022-12-08 10:14:13 +01:00
Pedro Pinto Silva
0321254443 Fix UpdateCurIndex string
Avoid using `Current Index` (uno text) and instead set custom
string that is easier to understand

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5057b7c974a5bd33f8af5b93f5bf6a85af916f98
2022-12-07 16:42:32 +01:00
Andras Timar
f9f858ab67 zotero: fieldmark should be read-only
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If9d816932ff074c40ee159a8c36885c5bdda9fac
2022-12-07 13:44:00 +01:00
Andras Timar
9407c98df4 Remove the 'Insert Bibliography Entry' feature
LibreOffice has its own solution to handle bibliography. It is outdated, and
reportedly everyone prefers Zotero or similar solutions. Moreover in Online
this feature does not work, because the bibliography database is a file in
the jail that is not retained, and because tunneled dialogs have serious UX
problems.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ibf6195c0265c767b3acf94012ee3f82339cf34d3
2022-12-07 11:53:26 +01:00
Tor Lillqvist
4fd6279f6b sendCounter is unused
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ie6f713f062e9c89ed3679d709394089413184d0d
2022-12-06 10:38:39 +02:00