Commit graph

21561 commits

Author SHA1 Message Date
Oli
ba31ffb598 Make jsdialogs capture keydown events in Impress
JSdialog popups on Impress would have the keydown events not captured.
The events would be handled by the main document.
Now they will be captured by the correct element.

Signed-off-by: Oli <oli.baker@collabora.com>
Change-Id: I543e25ddbcb1766cc677f7fbc6629e8d04a5b394
2023-08-26 11:36:50 +02:00
Pranam Lashkari
ec17f72fb5 feature-locking: fixed broken feature unlock popup
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I5ec30ef6be17aa18ff0ec8b4ff7c6a8da831fa04
2023-08-26 12:33:50 +08:00
Szymon Kłos
6e5852eb78 jsdialog: move IconView widget to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I812ca4f1b0db65078fc676fddce6b7a55b17676d
2023-08-25 08:48:15 +02:00
Cosmin Humeniuc
5fcdf5bf6d test for not to cut in the middle of a UTF-8 multibyte sequence
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Id13995ff7e775105882c726144f39aadaef76e64
2023-08-25 08:41:46 +02:00
Caolán McNamara
24317d555f ensure we don't split a utf-8 sequence when logging message
Given a well-formed utf-8 string 'message' of messageLen bytes and a
desire to truncate to approximately abbrevLen bytes return the shortest
string greater or equal to abbrevLen that does not split a utf-8
sequence.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ie623d8c1027bb4724485cab5b0bb6d3d1cd3d9ab
2023-08-25 08:41:46 +02:00
Caolán McNamara
3e7ae50ec1 messages to be logged might not end in a new line
they sometimes do, and sometimes not, we can't assume that the last
byte is a newline and can be discarded without truncating message
text.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ie5ea00f927a558b43b2ae38e1cac96c805e93fcc
2023-08-25 08:41:46 +02:00
Caolán McNamara
a3b32c5203 use the same level of building blocks in each getAbbreviatedMessage impl
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ia38dc3a8318c0d2adad9bf7f879b7b8a55e5ad77
2023-08-25 08:41:46 +02:00
Caolán McNamara
a4e74dedab std::string variant of getAbbreviatedMessage would include trailing newline
for a short non-abbreviated message if it ended in a newline which the
more common variant would not.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I4105fb8eb67b3a38aebc745dfb1e79aa99f2d878
2023-08-25 08:41:46 +02:00
Caolán McNamara
a3f5ca0057 one of the getAbbreviatedMessage variants creates results 1 char longer
the std::string variant uses:

Util::getDelimiterPosition(message.data(), std::min<size_t>(message.size(), maxNonAbbreviatedMsgLen + 1),...

while the more commonly used const char* version has

getFirstLine(message, std::min(length, maxNonAbbreviatedMsgLen)

where getFirstLine is...

return Util::getDelimitedInitialSubstring(message, length,...

and getDelimitedInitialSubstring has

const size_t size = getDelimiterPosition(message, length, delim);
return std::string(message, size);

so the std::string variant's condition is one char longer for the same input

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I5b8c4523844501a43731ff3b4a939b76ebe472c3
2023-08-25 08:41:46 +02:00
Caolán McNamara
ce56852851 clarify the meaning of the len arg to getAbbreviatedMessage
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I4bdcc8d2fbd5a2ee74b6743b369196825eeb4fb0
2023-08-25 08:41:46 +02:00
Caolán McNamara
ca6044cd40 move max 500/501 len into a single place
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I71f44b88b62bd1d2daa7d5019e14e58cc15c7e02
2023-08-25 08:41:46 +02:00
Caolán McNamara
afe6c1bed8 reduce cost of TileDesc::parse
perf reported 6.58% of time in collaborative multi user test
on 2023-08-24 was spent in TileDesc::parse and much of that
in std::unordered_map.

There are only 12 arguments in the map we care about here so
we can just used a sorted array, look by name on write, and
read by index.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Iadfc2001e298d8f4d46200c8488f0eb4cd8734c2
2023-08-24 22:22:43 +01:00
Pranam Lashkari
576fb1b1d2 impress: fixed incorrect text box uno command
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I45f58cd043fc684457bde2e896c9032f71ee1962
2023-08-24 22:33:32 +08:00
Szymon Kłos
6ddbc4dd75 Fix regression in tab cycle in dialogs
this is regression from commit:
f8e53bd851
Assign tab ids while defining tabs.

When opened Format -> Page Style dialog in Writer.
There was "123" label next to the tabs.
Also when switching between widgets using tab key
it was moving focus outside window.

Core is sending id as plain number what is easy to duplicate.
Let's add some unique name.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iebf70c7968f336761baf19442101ac98a948218c
2023-08-24 15:05:41 +02:00
genofire
d40f6387bd fix(helm): improve error alerts
Signed-off-by: genofire <geno+dev@fireorbit.de>
Change-Id: I58dd66f04a05be2b4b0befd7e77bee0cc83d9558
2023-08-24 18:01:35 +05:30
genofire
30555545d2 fix(helm): hostaliases for statefulset
Change-Id: 948a00a8-90ae-4722-bcf0-f4e796c9fc0b
Signed-off-by: genofire <geno+dev@fireorbit.de>
2023-08-24 18:01:35 +05:30
genofire
6654665a99 chore(helm): easy format of hostalieses on deployment
Change-Id: f3edb041-f152-4b89-ab0f-466267aecc87
Signed-off-by: genofire <geno+dev@fireorbit.de>
2023-08-24 18:01:35 +05:30
genofire
978a62afef chore(helm): update annotations for community haproxy-ingress
add also blocking urls hinds

Change-Id: f9aa92b2-af70-4547-a55a-4cf65316c320
Signed-off-by: genofire <geno+dev@fireorbit.de>
2023-08-24 18:01:35 +05:30
Andras Timar
1117b6129e Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I29b26adc5a2aa7d063b67f6a69bed0ce49896840
2023-08-24 09:26:53 +02:00
Ali Elminia
13c6fdf4df Translated using Weblate (Persian)
Currently translated at 96.6% (490 of 507 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fa/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie547bafef942b8bf9c5c565c92a360cb5811808a
2023-08-24 09:23:29 +02:00
Fatemeh Komeily
00f4a748f3 Translated using Weblate (Persian)
Currently translated at 96.6% (490 of 507 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fa/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib0951375b5d5d71e2be6fda1f236d672a98f1219
2023-08-24 09:23:29 +02:00
Fatemeh Komeily
3325741a8e Translated using Weblate (Persian)
Currently translated at 0.6% (3 of 463 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/fa/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0fd177abb207227240d76c653d8a2b20e274ac48
2023-08-24 09:23:29 +02:00
Fatemeh Komeily
9ebe27f533 Translated using Weblate (Persian)
Currently translated at 83.0% (421 of 507 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fa/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6d6f6b5a258c17ac568cbdb8318437707a0db6d7
2023-08-24 09:23:29 +02:00
Ali Elminia
212ed8118f Translated using Weblate (Persian)
Currently translated at 80.2% (407 of 507 strings)

Co-authored-by: Ali Elminia <ali.elminia@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fa/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I96b95cc39164d319b1dd175e1c4bc92f59f76a06
2023-08-24 09:23:29 +02:00
Fatemeh Komeily
1427838dfd Translated using Weblate (Persian)
Currently translated at 0.4% (2 of 463 strings)

Translated using Weblate (Persian)

Currently translated at 80.2% (407 of 507 strings)

Co-authored-by: Fatemeh Komeily <komeily.fatemeh@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/fa/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fa/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib5305dee30fac650a7ae4ad0b54024dadd572f05
2023-08-24 09:23:29 +02:00
Salif Mehmed
b67a995cdd Translated using Weblate (Bulgarian)
Currently translated at 56.4% (286 of 507 strings)

Co-authored-by: Salif Mehmed <mail@salif.eu>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/bg/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I749f69aaa0ffaab746fd32b61c51a7eb8744a318
2023-08-24 09:23:29 +02:00
Влад
42e50ab165 Translated using Weblate (Russian)
Currently translated at 66.5% (308 of 463 strings)

Translated using Weblate (Russian)

Currently translated at 100.0% (507 of 507 strings)

Co-authored-by: Влад <integration.into.society@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ru/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ru/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I737794ab9edd43affe92ce1ed946cb4b2d7108b2
2023-08-24 09:23:29 +02:00
Reza Almanda
0855e1763a Translated using Weblate (Indonesian)
Currently translated at 100.0% (463 of 463 strings)

Translated using Weblate (Indonesian)

Currently translated at 100.0% (507 of 507 strings)

Co-authored-by: Reza Almanda <rezaalmanda27@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/id/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/id/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ifb59ded2241915d631e226278457e1db84965dda
2023-08-24 09:23:28 +02:00
Joan Montané
1666970674 Translated using Weblate (Catalan)
Currently translated at 100.0% (463 of 463 strings)

Translated using Weblate (Catalan)

Currently translated at 100.0% (507 of 507 strings)

Co-authored-by: Joan Montané <jmontane@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ca/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If0102cbee5b03a841a0f981f5a058e81a412bc88
2023-08-24 09:23:28 +02:00
SC
9cd6980f76 Translated using Weblate (Portuguese)
Currently translated at 100.0% (463 of 463 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (507 of 507 strings)

Co-authored-by: SC <lalocas@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/pt/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iecfb11300ca7b88b9d5ac1e302a18d1911eda0f7
2023-08-24 09:23:28 +02:00
Alexander Gabilondo
d2a91a640e Translated using Weblate (Basque)
Currently translated at 100.0% (463 of 463 strings)

Translated using Weblate (Basque)

Currently translated at 100.0% (507 of 507 strings)

Co-authored-by: Alexander Gabilondo <alexgabi@openmailbox.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/eu/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/eu/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2fd7abb99512784d6a75e3568f0fcb12c0d11b06
2023-08-24 09:23:28 +02:00
Sveinn í Felli
7ceb2c5f96 Translated using Weblate (Icelandic)
Currently translated at 100.0% (507 of 507 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: Ie447bb45fac5f16d15dd3806facc3c8289ec8148
2023-08-24 09:23:28 +02:00
Rob Pearson
d89eea5b98 Translated using Weblate (English (South Africa))
Currently translated at 100.0% (507 of 507 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (507 of 507 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
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: I7fa179ebc9393c8b35e8057f9e3610b5d0ffb9d3
2023-08-24 09:23:28 +02:00
Ayhan Yalçınsoy
5db9812a21 Translated using Weblate (Turkish)
Currently translated at 100.0% (507 of 507 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: Ia307ca5dfa45473dbe283102c5c98257fc0f9b00
2023-08-24 09:23:28 +02:00
Martin Srebotnjak
03e08379f2 Translated using Weblate (Slovenian)
Currently translated at 100.0% (507 of 507 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: Ib8471d45e5884e7ecfdf63b1394db0d302c2a5f7
2023-08-24 09:23:28 +02:00
Milo Ivir
0ea0739fd3 Translated using Weblate (Croatian)
Currently translated at 100.0% (507 of 507 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: I9029d57117d182967f54a8a0e53de2b2208ac0bc
2023-08-24 09:23:28 +02:00
Caolán McNamara
e3cfc935ff cid#318907 silence Uncaught exception
silence various of these in tests and utilities

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I4fcc95b1b5d5c95e5ac40782550f95c08a3467bd
2023-08-24 08:30:40 +02:00
Caolán McNamara
e0b70657fa cid#318912 Result is not floating-point
we presumably want the current behaviour so silence with
an appropiate explicit cast

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ibed4cb2cc31b26195e407f25f7f0a2ea7172c67d
2023-08-24 08:30:40 +02:00
Caolán McNamara
da54b23538 cid#322632 COPY_INSTEAD_OF_MOVE
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: If53b75521fa07d89828aaff06834f741e2b64a5a
2023-08-24 08:30:40 +02:00
Pedro Pinto Silva
6d7efe9876 Add missing renamedocument button
The newly added button in 24ac74db4f was
only added to writer

Also add css class

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I630640d94884cb5e50559fbbd8298554deb0a651
2023-08-23 16:18:04 +02:00
Caolán McNamara
26934061b1 cid#318872 Improper use of negative value
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ia76b677d466c67fc47760fdcb41459446c4c8e8e
2023-08-23 12:06:31 +02:00
Caolán McNamara
7163b2f9d7 cid#318896 AUTO_CAUSES_COPY
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I1d34ae9287e3c639255541584e3daf9209387bc5
2023-08-23 12:06:31 +02:00
Caolán McNamara
492f678996 add and use 'N_ELEMENTS' in lieu of std::size
which isn't available in the current android toolchain

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I5834adb7c6211c7aad38f5977a7e425d9ca257fd
2023-08-23 12:06:31 +02:00
Pedro Pinto Silva
e7a314caa1 Notebookbar: introduce simple search button
This way we increase status bar discoverability ( fixes #7098 ) and
group both search functionality in one place in the home tab

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia1fa8fe58903088aad37a560edd033a184d35e0e
2023-08-22 21:23:07 +02:00
Skyler Grey
2e07fcb1a3 Fix 'manage changes' dialog expanding infinitely
A regression in change ID I8551242fc2b987f00c67088caa0ed07ee8526a72
caused the manage changes dialog to continue expanding when new elements
were added, no matter how big it got. This would cause you to be unable
to see all the changes when there were a lot of them because you could
not scroll through the list. This patch fixes the scrolling, without
making the list area very small again.

Change-Id: Ib29fb161522773ea9893b7bc21d06aab19b74c52
Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
2023-08-22 19:04:29 +02:00
Oli
8eae2a0adb Prevention of triggering the autocompletion list
A box would appear when accessing the accessiblity mode.
This was because of the autocomplete feature.
This patch disables it when using the accessibility mode.

Signed-off-by: Oli <oli.baker@collabora.com>
Change-Id: I461956b591271b2d3513bce7f81d136da6ca37a7
2023-08-22 19:02:22 +03:00
Oli
9399fced21 Moved the up arrow key event to tab pages
Tab pages now hold responsibility for catching the event.
Events were previously assigned to each individual element.

Responsibility is on each page and not the "toolbar-wrapper" element.
This is to allow functionality to also exist in jsdialogs.

Signed-off-by: Oli <oli.baker@collabora.com>
Change-Id: I57681c3573d9931a79856fb8ed43f119bf019535
2023-08-22 19:02:22 +03:00
Oli
7cbeb987bb Removed use of tab pointers before tab selection
This was done to avoid using accelerator keys before a tab is selected.

Signed-off-by: Oli <oli.baker@collabora.com>
Change-Id: I4bc8a8cd8d885491624e8c769bcbab123104189b
2023-08-22 19:02:22 +03:00
Oli
08757d2b3f Fix accessibility up and down keys on first load
There was an issue where on first loading a document and pushing the alt
key to bring up the accessibility mode, the up and down arrow keys would
not move focus up or down in the notebook bar. This only occured on
first loading the document.

Signed-off-by: Oli <oli.baker@collabora.com>
Change-Id: I003b74ecbaae80a6baf33709fa16d47261a1ed2e
2023-08-22 19:02:22 +03:00
Oli
a8a0ed20bb Make up and down arrows move focus in notebook bar
Previously when focus was inside the notebook bar you could not change
between having focus inside the tab pages or on the tab buttons. Now the
up and down arrow allows entering and escaping from the tab pages from
the tab buttons.

Resolves #6933

Signed-off-by: Oli <oli.baker@collabora.com>
Change-Id: I1cf696223ff5739e6a48095acbdf3fd778af1ffd
2023-08-22 19:02:22 +03:00