Commit graph

21809 commits

Author SHA1 Message Date
Szymon Kłos
39399a93c5 Fix typeerror on key event in interaction handler dialog
This fixes error:
Map.Keyboard.js:364 Uncaught TypeError: Cannot read properties of undefined (reading '_docType')
    at NewClass._globalKeyEvent (Map.Keyboard.js:364:3

When we open document which requires some interaction from user before
load and we press any key - that error appears. It can be seen with
macro warning or broken file warning.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib7b3681d047dd61ffde0364ad40a4d542a5fd548
2023-10-02 13:23:25 +02:00
Gökay Şatır
67bde47cee Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I4dd197666db5f85e6ba750857eba4ef6eb51d646

German shortcut changes for Calc:
* F12 for save as.
* SHIFT + F3 for function dialog.
* SHIFT + F2 for new comment.
* F9 for re-calculate.
* F5 for focusing on address input.
* ALT + 0 for format cells dialog.
* CTRL + SHIFT + L for auto filter.
* CTRL + F1 for expanding / collapsing notebookbar.

Change-Id: If9bcf4f696f4575061443423645726860d14eafe
2023-10-02 11:45:45 +03:00
Rash419
9d6b1d148b don't request new tiles unnecessarily on canonicalidchange
- it applies for 2 cases:
1. when document is loaded for the first time document already has
tiles of respective theme
2. when Kit loads the document it sends canonicalidchange  unconditionally
(5520965b15/kit/Kit.cpp (L1708))
we don't need to request new tiles for that also

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I42cdc5a03e70c3d3d653f3124d3d5ed9382e22c0
2023-10-02 13:29:25 +05:30
Patrick Luby
4b71e988b4 Fix compiler warnings when building on macOS Sonoma
Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I7e88e0ba272fc00892059c96a2cd0237657e23b9
2023-10-02 08:50:52 +01:00
Caolán McNamara
b25d7617d6 cid#318824 avoid Calling risky function warning
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I871035b7879157467b97e5610a38d0b53f934766
2023-10-02 08:30:42 +02:00
Caolán McNamara
ed59e9e3b0 cid#318948 Unchecked return value from library
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I543f7150c23fe6a6cffc3333754e413ee4c190a4
2023-10-02 08:30:42 +02:00
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