Commit graph

21803 commits

Author SHA1 Message Date
Caolán McNamara
dd2f0e26f6 cid#318881 Unchecked return value from library
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I6c02e392a96717c4ebc6f50e56bcec553aa328bb
2023-10-02 08:30:42 +02:00
Caolán McNamara
14dce568f0 cid#318836 Resource leak
in error branches dlclose unusable dso, leave it open on success

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I3a2eafceb573cc59ada922d98ae6a9b421d6accc
2023-10-02 08:30:42 +02:00
Andras Timar
16306b4966 Translated using Weblate (Portuguese (Brazil))
Currently translated at 91.5% (475 of 519 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.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: I7b5d91997166b81d7a5bc608df80f8ee5b1a7474
2023-10-01 13:42:25 +02:00
Aron Budea
c068bce4cc Translated using Weblate (German)
Currently translated at 99.4% (516 of 519 strings)

Co-authored-by: Aron Budea <aron.budea@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/de/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I363c27e2dcea196f43fab2dfa5dae611359716dc
2023-10-01 13:42:25 +02:00
ButterflyOfFire
05eecc19c0 Translated using Weblate (Arabic)
Currently translated at 58.1% (64 of 110 strings)

Co-authored-by: ButterflyOfFire <boffire@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ar/
Translation: Collabora Online/Android app
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia53b05b21e1841b31724e1063d41fcf0c5f26c6b
2023-10-01 13:42:25 +02:00
Skyler
9ab75b549e fix broken forum link in README
The forum link in the README is missing https://. This commit fixes that

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ica0a29ecba69e68b201c07b76ef6fd57822fc3ac
2023-09-29 18:12:05 +02:00
Gökay Şatır
dc75c1e8bf Add note for the CTRL+SHIFT+L combination.
Use sendUnoCommand insted of sendmessage.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Id123864d897a2838066c97bb649c1a355b44dde1
2023-09-29 17:14:09 +03:00
Gökay Şatır
6d65c4db70 German shortcuts:
Assign CTRL+F3 to change upper/lower case letters.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ib612ba69ec19abce0164d6273f8ee83124c0c455
2023-09-29 17:14:09 +03:00
Gökay Şatır
48eb5f5811 Assign GoToPage function to F5 in Writer for German.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ia82d191d9445bfd8cf08e8011f9a47a17876235a
2023-09-29 17:14:09 +03:00
Gökay Şatır
131586f757 Assign save-as shortcut to F12 for German.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I94dd9ebe21be34d94db6b950174098ab1a56d799
2023-09-29 17:14:09 +03:00
Gökay Şatır
f4577f91b6 German key bindings (Writer):
* Seperate ctrl+k and ctrl+shift+k.
   * Add ctrl+space for search.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Iee5f60ded801505aef11962e5950607dca29b431
2023-09-29 17:14:09 +03:00
Gökay Şatır
1520d8ba67 Add navigator shortcut to keyboard handler.
We are adjusting the sidebar when we send sidebar commands. So i couldn't add the .uno:Navigator command to core side.
It tries to open the navigator but our side should also be ready.

In the future, we can make adjustments to allow to use core side shortcuts directly.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I273b7c2cacce6ed0c8f20f672ba9ba7daa29cfd5
2023-09-29 17:14:09 +03:00
Pedro Pinto Silva
b7a4b13970 Fix main-nav elements being treated as generic primary, secondary btn
With the recent (and very welcoming) changes to steer away for generic
elements such as div and instead use more appropriate/semantic
elements such as button we ended up applying new rules to main-nav
buttons. These rules were only intended to be apply to classic
buttons (rectangle + text inside). Result:
	- userlistheader even if invisible was getting a background
	on mouseover
	- all <button> elements were getting extra padding and margin

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic774fd342df5483cd7210b85c4847688914b28f2
2023-09-29 10:26:23 +02:00
Pedro Pinto Silva
0a7e0fe65d userListHeader: remove legacy padding and margin
userListHeader, element present in compact and tabbed view to display
users present in the document (avatars), seems to suffer from a odd
alignment and duplicated usage of white space.

Best to remove any hard coded pixel that seem to come from legacy css
and rely on flex if necessary. Also the surrounding elements (doc name
and sidebar icon) already have save space around so they will never touch

on top of that this was having different result than "expected" when
using a different RTL system (since we were not using logical css properties)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iab0869080231ac734c087afeee97d9cd0243030d
2023-09-29 10:26:23 +02:00
Pedro Pinto Silva
d0b4229aff Tabbed view: Fix main-nav for small screens
Make tab's size dynamic
 - Font-size
 Instead of using always a font size that looks nice in a wide screen
 but that  will look cramped and  without space in a narrow window:
   - change it's size depending on  viewport within a safe range
   - new css vars added and respective comment in the code
   - Also we use clamp css function but we also add a fallback for old
   browser using the generic calc css function
 - Padding: allow to get lower levels when the viewport is reduced

Hide document-header when the window is narrower than 800px
- this frees up space and also benefits tablet us case where user uses
2 apps side by side

Document-title bar
 - Hide document name if the window is too small. This makes it
 possible to fit all buttons without horizontally scrolling the main-nav
 - Note user can always access the rename feature by going to File > Rename button
 - Remove any hard coded pixel positioning and instead rely solely on
 flex layout

Main-nav
 - should always occupy (width wise) 100% of the viewport. We want
 always the far left icons be always at the end of the viewport

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I58843f40e21d26f955422d6159b5777144b684fd
2023-09-29 10:26:23 +02:00
Pedro Pinto Silva
86623afddd Fix tabbed view top bar not being scrollable sometimes
Before this, when using a narrow window, the top bar wouldn't be
scrollable until we would press the avatar list. Also when switching the
modes it would becomes unscrollable yet again.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I01b2afcb125a2addf9847e2581f9498105b54b00
2023-09-29 10:26:23 +02:00
aarsh21
5520965b15 calc: hide spreadsheet context menu in readonly mode
Signed-off-by: aarsh21 <aarshpersonal21@gmail.com>
Change-Id: I541d076a457daa0e01b660e5cd91e468a22aa09d
2023-09-28 10:57:37 +02:00
Andras Timar
2e86ea467e docker: use env vars to configure the container
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib6267c05e687a64d5a2e4df2a1d42c33e001f999
2023-09-28 10:54:14 +02:00
Andras Timar
cc628feda7 docker: do not generate WOPI proof key, it's better to mount it externally
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4141546c4ab281dfe749b16b119eb9de46fd9e67
2023-09-28 10:54:14 +02:00
Andras Timar
6789c663d2 docker: use internal inotify implementation instead of inotifywait command
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I74e16827bd7033fe3a2282da562b35cc9bfc3eb4
2023-09-28 10:54:14 +02:00
Andras Timar
28737d8272 docker: we do not have to set SAL_LOG here, because it's set in coolwsd.xml
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I80bdc3a2b8fa6f571624395ed8c1917eb241b0cd
2023-09-28 10:54:14 +02:00
Pedro Pinto Silva
9a116dd6d0 Calc: clone formatting cursor has misaligned hotspot
Before:
"When I use the "clone formatting" tool, I have to point the handle of
the brush icon to the cell I want to clone rather than the
brush. Logically I would expect to point the brush part to the cell I
want to clone, but because the handle seems to be the point at which
cloning occurs, I end up cloning the cell above and not the actual
cell I want to clone."

Fix vertical coordinate so the bottom of the hotspot is in the brush
and change the outdate comment WRT the png in question.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I69e0935542c068016366a26d8100866c23ca17dc
2023-09-27 19:44:54 +05:30
Szymon Kłos
75cbb26305 Correctly extract file name for exported file
We assumed in the code that LO will return in a
LOK_CALLBACK_EXPORT_FILE url starting with "file:///tmp/"
But that is not true for all the cases. Let's use
more generic approach to extract file name.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib415f129b10c7e54172536f43a820e4bd3e9bfd2
2023-09-27 15:44:23 +02:00
aarsh21
d9ecc40ee9 fix: close userListSummary popover on click
Signed-off-by: aarsh21 <aarshpersonal21@gmail.com>
Change-Id: Idc467c33e690c6e13023ad022b7cf57380d32ff3
2023-09-27 14:01:35 +05:30
Caolán McNamara
2f9b0f8d62 cid#323356 Resource leak
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: If04703571b2e20c59bd5cd5fa271cb6859fb9887
2023-09-27 10:25:28 +02:00
Caolán McNamara
c28dd7f08a cid#323355 Logically dead code
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ie2909237e604a4815ba110281335f039c7d792da
2023-09-27 10:25:28 +02:00
Caolán McNamara
6208b37a32 cid#318945 Unchecked return value from library
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I37cb5ddd7a1ce2dd1357738130f62950e76bbc6a
2023-09-26 16:08:09 +01:00
Szymon Kłos
1ac8e8f276 postmessage: fix Get_Export_Formats
This fixes regression in Get_Export_Formats where we
didin't report possible formats when in coolwsd.xml
option "group_download_as" was set to false.

Regression comes from:
commit 939a7a0301
Simplify notebookbarwriter and tab page containers.

Where JSON for File tab was incorrectly built and
some of the entries were skipped.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I10c06f28dd2b3884bdab8389ea121c94d0ba92d8
2023-09-26 16:45:16 +02:00
Szymon Kłos
e81f795abe Add test button for Get_Export_Formats PostMessage
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I07bec21cce481d72f628d860937953a9e4bd1e91
2023-09-26 16:45:16 +02:00
Rash419
4dce44846c persist slide number in impress and sheet number
in calc on reconnect

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I7dafcd5f8d57ae79952153faf90b682f17a33cfd
2023-09-26 16:33:05 +05:30
Caolán McNamara
0f5c171433 do init_gather_lut at start if simd::init succeeds
and avoid local static in simd_initPixRowSimd

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Idb89d5069da5ff10b346b5e4d767374d4529a96f
2023-09-26 08:39:20 +01:00
Ashod Nakashian
3d93e69e49 wsd: use a smaller value when trimming after inactivity
This is to differentiate between a complete
trimming when idle compared to trimming
when inactive.

Change-Id: I61b309968e0a5199fe4f0fb445437a953c0e468a
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-09-25 19:29:12 -04:00
Ashod Nakashian
b58ca4be5c wsd: test: remove duplicate uninit
Change-Id: Idc6aa0f7edfdcb7f6cf0fc3e92ff830215f6c1da
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-09-25 19:29:12 -04:00
Ashod Nakashian
4865eff4a0 wsd: improved assertion
Change-Id: I8d65850415f62a6b1680d6638b0639f2642d95e8
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-09-25 19:29:12 -04:00
Ashod Nakashian
21889aca26 wsd: add LOG_ASSERT to replace assert with extra logging
In NDEBUG builds, where there is no assert macro,
we log at debug level to still find issues without
adding noise to the logs.

However, in ENABLE_DEBUG builds not only do we assert
but we also log at error level.

Change-Id: I773dbf7bb2b459e505e73d91505b13d8ed2ed6d8
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-09-25 19:29:12 -04:00
Ashod Nakashian
692fcdc401 wsd: test: wait for 'statusindicator: find' instead of 'ready'
This returns from the connect helper sooner,
shaving some time from each connection.

Change-Id: I29e2637c16b9e2574cbfb99779551d7ae1c8c2f0
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-09-25 19:29:12 -04:00
Ashod Nakashian
96bc73ea17 wsd: simpler string appending in readDirToHash
Change-Id: I13c741bd5cae3cfe4ffb1a71ddc2de650356ac4b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-09-25 19:29:12 -04:00
Ashod Nakashian
4bf309d136 killpoco: serve the Welcome file using http::Response
Change-Id: Ia29a881f8ec53aa1d48c20240ecc0e01b58ef2b6
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-09-25 19:29:12 -04:00
Ashod Nakashian
7aed4c0461 wsd: const correctness
Change-Id: I1be6a2055d906b590d7801f9873a48d510c78a0b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-09-25 19:29:12 -04:00
Ashod Nakashian
2a58fcaa93 wsd: utility to read small files in memory
Change-Id: I9b98f8706c0c32ed59c4f49844570225532a1a59
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-09-25 19:29:12 -04:00
Ashod Nakashian
d2ebd4cff7 wsd: FileServerRequestHandler instance
This encapsulates and manages the lifetime of
file-serving cache in an instance of
FileServerRequestHandler. Previously, it was
all done through static functions and explicit calls.

Change-Id: I1b0bf0e3c25e6ae82c398bf5d0de255a6fec42a1
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-09-25 19:29:12 -04:00
Caolán McNamara
5c5e1c41d6 use spaces instead of tabs
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I3c7c474d10e500d662fc0e697f8e2b298799d795
2023-09-25 16:55:04 +01:00
Caolán McNamara
654cb1ae05 add DeltaSimd to android/iOS
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Icad55a047ea505d81e50ae634e38d8301fb3b21e
2023-09-25 16:55:04 +01:00
Caolán McNamara
ff2bd955c8 add Simd.[c|h]pp to ios build
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I03971f023ba3bb7c51872fd4179da8b5fb8128a1
2023-09-25 16:55:04 +01:00
Caolán McNamara
6f984b042a don't check for SIMD in mobile case
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ib4ec551bd3c3c662c0e39aa0df292920c7afac08
2023-09-25 16:55:04 +01:00
Caolán McNamara
77d1424b8d rleMask->rleMaskBlock in non-simd branch
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I09d0c900535eba6b274e294ff39ea71a9d9c323f
2023-09-25 16:55:04 +01:00
Caolán McNamara
aa59f57285 add Simd.cpp to android CMakeLists
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I577bbe203a940e1d2f38fa4d1f86cc6d8f8d1f33
2023-09-25 16:55:04 +01:00
Michael Meeks
fde98db394 Factor out CPU RLE into a function with similar signature.
Performance testing suggests that:
 + dense text this is 2x faster.
 + 'hello world' text this is 1.7x faster.

Change-Id: I4ff940663c44d0b22c9187deb4ee397a9d9953b0
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-09-25 16:55:04 +01:00
Michael Meeks
8f2c7f4de7 Add idea to save an instruction by masking at the same time ...
Change-Id: I9ecd35c1655bd72994a297b8897db473a921bc20
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-09-25 16:55:04 +01:00
Michael Meeks
2e1e0c1260 Save another variable and rename.
Change-Id: I279df2615f972acd3f8107b236d67232c3d6015f
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-09-25 16:55:04 +01:00