Commit graph

21291 commits

Author SHA1 Message Date
Andreas-Kainz
81c44946d4 Dark Icons: update toggledarktheme to fit other icon styles
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: Iee02515870d48adc2dcdd2f44ff76fb4c2cf05e7
2023-07-17 10:19:33 +02:00
Andreas-Kainz
4e5159e77c Dark Icon - Help tab icons update
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: I50654f4fc82330e50069761a87e50ada23740ec7
2023-07-17 10:05:18 +02:00
Andreas-Kainz
563ae14953 Dark Icon Update - saved icons
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: I966f44bb79ba0252ca662146f1680984a140bc1c
2023-07-17 10:05:18 +02:00
Rash419
55305d0d28 indirection: use Action_Load_Resp to show error msg
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I682973acfe45b9477bb6df9e8a17adf01e3dda65
2023-07-17 12:18:41 +05:30
Rash419
72570b1ea3 fix: media cannot play with indirection server
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I83d39fa4829938e8f217361fec3fbdab79adbac9
2023-07-17 12:18:41 +05:30
Darshan-upadhyay1110
2369bfc0ac Enter shouldn't be a requirement to trigger a tab or a button
No enter key will not be necessary to change tab by accessibility key

Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I9ab9e004e9dc883d18b8f750a9a400e1f318240e
2023-07-16 09:16:02 +02:00
Rash419
8c5d822dc9 android: fix: save failed error while parsing save command
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ia6a53184322f403d2b995213700193d5612fd63d
2023-07-15 20:33:18 +05:30
Rash419
371cb21d5d android: after sdk 30 WRITE_EXTERNAL_STORAGE is not required
- android will not even show a popup
- for some reason after sdk 33 checkSelfPermission returns PackageManager.PERMISSION_DENIED for WRITE_EXTERNAL_STORAGE even if it given permission implicitly by android

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: If50df0df0322d0bddf30d5ff5fb13ab9c010ed87
2023-07-15 20:33:18 +05:30
Darshan-upadhyay1110
ddef0ef881 Fixed Spellcheck dialog size
Set Minimal width for suggestions list
Added some padding for spell check text box for more readability

Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I0fa5bb60ece88e4107408448a17378b526020784
2023-07-14 14:32:22 +02:00
Szymon Kłos
6124d3abd1 notebookbar: tab focus cycle inside tab page
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0daf9a068802470a45cfd203577a2b5f01c7cfc5
2023-07-14 10:32:34 +02:00
Szymon Kłos
a58c802d5b Create util for doing tab focus cycle inside container
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I25b44ebd1954301de4be0a4b4d22286f026a62fe
2023-07-14 10:32:34 +02:00
Pedro Pinto Silva
ee592d97bd Compact view: Add missing InsertObjectStarMath (formula object)
Before this commit this option was only available on tabbed view

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I6e027f1b84d09e802f7ea6c6fd9e5144cae2eb91
2023-07-14 09:48:20 +02:00
Szymon Kłos
3d6ed28857 Fix pasting image assertion
Revert "Avoid crash when pasting image in debug mode"
This reverts commit 78558fe9af.

Instead of detecting paste command and not trigerring assertion:
fix frame type so it will be binary in case of paste.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If5c726463459be7eaffae1522df522dfa1d74443
2023-07-13 20:06:58 +02:00
Pranam Lashkari
919db1674f keyboard: show keyboard only when explicitly requested
problem:
on mobile phone keyboard used to flicker when you tap on cell,
even if you were not editing inside cell

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I47d940ef32297fdf846ed4370411743982fcd3b7
2023-07-13 20:17:32 +07:00
Szymon Kłos
4c3be8555f comments: fix hidden comment after lost focus in modification
after commit 51d19dd60e
annotation: avoid saving comments on losing focus

We had regression causing collapsed comment to be completly hidden
if user first opened 'modify mode' and clicked outside comment
area. Then comment was collapsed but when selected again - content
wasn't shown.

This commits makes us sure that when we select comment again
it has visible content.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I4fc9f0bb7d6649c0aa88bbb9c4cc69ed5cbf57c9
2023-07-13 10:43:17 +02:00
Michael Meeks
a064fe66ba tile debug: toggle tile debugging mode without bogus invalidation.
Show the existing state as-is to aid debugging, rather than
polluting it with bogus data, also update the screen immediately.

Change-Id: Ia6f0033208a5ad29eca374f24f215ffc5104301c
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-07-13 08:14:48 +01:00
Michael Meeks
9270ceef16 update: send for redundant tilecombine requests.
Update tests to check for this too.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I02c8f3167886321496245589b34a382fd61617f0
2023-07-13 08:14:48 +01:00
Michael Meeks
24f0819337 tile debug: render updates as well as deltas in the tile.
re-factor histogram rendering out, remove crufty paths to track
tile metrics and do them unconditionally - some counters should be
small & fast & simple. Simplify debug output of tile/deltas.

Change-Id: I3b615719ae2540f855597e52e6c35594dbe5b3f4
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-07-13 08:14:48 +01:00
Michael Meeks
8e91eafbf2 Cleanup JS tilecombine generation and reduce copy/paste.
Share sorting tilecombines by part, and de-duplicating on key.
Ensure we build wireID list and send oldwid data to save
bandwidth and avoid re-rendering keyframes un-necessarily.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I8180fceca22f1369e577bba4de7fd8a6fdbc011f
2023-07-13 08:14:48 +01:00
Michael Meeks
9a29a346d8 Allow tilecombine's to send oldWid information to fetch deltas.
Disable the 'forceKeyFrame' for tilecombine messages from the client,
we have a larger cache now and it makes sense to honor and track these.
forceKeyFrame was signalled with a zero oldWireId - which is the default
if we don't have it set.

Change-Id: If96423e96f8dc578a634ed5093517dfa6702cc1b
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-07-13 08:14:48 +01:00
Pranam Lashkari
7cf1e19493 impress: avoid all slide preview context menu in master view
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I9f661df619581aa9d66d98f7e63c3562c6a939b9
2023-07-13 10:08:24 +07:00
Szymon Kłos
0832fb7f99 Avoid using null in notebookbar a11y code
happens for example in Impressi on load

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I4d9f8fbb2ba996bdecd33c54bbc198d9ed82ce89
2023-07-12 14:22:54 +02:00
Szymon Kłos
a5bc10185a comments: avoid using undefined
refactor a bit condition introduced in:
commit 51d19dd60e
annotation: avoid saving comments on losing focus

I noticed TypeError here at some point in my browser

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I416088333bb0c87b03c52aff3804fee8f7ada311
2023-07-12 14:22:54 +02:00
Pranam Lashkari
81bfaee859 language: introduce option to change language of only para or selection
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: If9086e72f53c3620c9d3e605b9e0415bdebab730
2023-07-12 19:14:44 +07:00
Ashod Nakashian
752f2a4ae1 wsd: save and upload rapidly when unloading
We normally throttle saving and uploading to
avoid hammering repeatedly, but when unloading,
we reduce said minimum wait by a factor of 10.

This allows for a quicker unload cycle, esp.
if we had just saved before unloading, or
if there was a previous failure.

Change-Id: I8710c9b86c05254ad9b9735d8496dd96900221e2
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-07-12 07:00:41 -04:00
Ashod Nakashian
ec120ccfab wsd: test: enable testCrashForkit
Change-Id: I2acabeccda6caf660c73f2f46fdd96a4b3f28972
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-07-12 07:00:41 -04:00
Ashod Nakashian
2fd159bc0c wsd: better always-save-on-exit handling
Change-Id: Id718f81fc2eb0af5ca5bfe61e687de5258dbdd7d
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-07-12 07:00:41 -04:00
Ashod Nakashian
75b1cbcb11 wsd: better detection of upload skipping for save-on-exit
Change-Id: I0b8c6dc7429587cddff6304aaf501f24af896602
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-07-12 07:00:41 -04:00
Ashod Nakashian
2756d48a5a wsd: test: new UnitWopiLockReadOnly test
Change-Id: I67aec627737fd3e67ad576aaba378b7391641b87
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-07-12 07:00:41 -04:00
Ashod Nakashian
68e20add3b wsd: better data-loss detection
Had to disable a crash test due to incorrect
modification check before unloading.

Because we think there are modifications to
the doc, we issue a save, which will fail
because the kit is killed in said test.

Will be re-enabled when isPossiblyModified
is improved.

Change-Id: I0dd7931308e66e9a12d891a979d54e3f373ef99b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-07-12 07:00:41 -04:00
Ashod Nakashian
0a969e5006 wsd: better modification detection after saving
And now UnitSaveOnExitUnmodified verifies that
we do not unnecessarily upload unmodified
documents because always-save-on-exit is set.

Always-save-on-exit is meaningful only when there
are modifications. Otherwise, we create identical
copies as separate revisions.

Change-Id: I933069d31d3d273c41734b58e0849680566e591a
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-07-12 07:00:41 -04:00
Ashod Nakashian
f383cf9032 wsd: always-save-on-exit skips uploading as-loaded docs
Change-Id: Id38c2b708d9d440cedb3d51b345bf180af0349f8
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-07-12 07:00:41 -04:00
Ashod Nakashian
acdd74f014 wsd: better session disconnection logic
This improves the disconnected session cleanup
and fixes a corner-case with the last editor
disconnecting before read-only sessions.

Change-Id: Iecb553d7f5be2c63fc55111e60e22b3d8aa668f6
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-07-12 07:00:41 -04:00
Andreas-Kainz
e90586a098 DarkMode border icons use dark fr0x icons #4592
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: Ia09efa8530e04f571af4b2e1e7599215746be2df
2023-07-12 11:20:44 +02:00
Andreas-Kainz
f84105072b DarkMode checkboxes will be themed
Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: I0ffd594ba3e897a36c2caa8a5fe9aace9e04a63d
2023-07-12 10:06:00 +02:00
Darshan-upadhyay1110
e2215c39b2 Fix "Dark Mode" Button Jumps to "Home" Tab
After change to dark mode in notebookbar focus will stays to `view` tab.
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Id0df0ded18a5858efa15eb0942b1ec69b6a716c2
2023-07-12 09:25:18 +02:00
Szymon Kłos
d475083f05 jsdialog: close snackbar when action button clicked
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibbdb247a052d8d4c2cca5f26d5bb9f31ced42187
2023-07-11 16:29:48 +02:00
codewithvk
df03cf1ce8 Fix : Wrong context menu in Slides Pane in master view for Impress
Signed-off-by: codewithvk <vivekpatel7202@gmail.com>
Change-Id: Icf19c9db12e0430fca98b0d639be62e2bbf29d37
2023-07-11 18:42:51 +07:00
Szymon Kłos
168f7cde07 jsdialog: field with time format should be simple edit
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id745fc6651b3cab6f080e41abb97d13e444d0c73
2023-07-11 12:48:28 +02:00
Szymon Kłos
83c0f61f82 jsdialog: add disabled state for menubutton
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0b5c8db6015348c9ad7803c08d5ac00b6fff7016
2023-07-11 12:48:28 +02:00
Szymon Kłos
9720311bcd jsdialog: don't ignore menubutton with empty text
build also empty menubuttons, example:
- writer -> review -> manage -> filter
- select 'Date' checkbox
result: end date disappears
expected: menubutton should be recreated with empty string

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I96ba161d209a4f65bd40b4a1efac896e3e172d0c
2023-07-11 12:48:28 +02:00
Szymon Kłos
ee3935a997 jsdialog: calendar control
can be tested in Writer -> Review -> Manage -> Filter (date dropdown)

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I63b052ae29ac45b9ded66d1ca75195c58f3d7e13
2023-07-11 12:48:28 +02:00
Szymon Kłos
9187ae99d7 Center IFrameDialog using CSS
instead of using hardcoded pixel distance...

affects eg. feedback dialog which was impossible to
access in very small windows due to position outside window

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2a85defcd2aabf1bdb8ec88d70b6e6a873dec75f
2023-07-11 10:19:40 +02:00
Szymon Kłos
8fb734b52d Make snackbar non-modal
Snackbar shoudn't block user interactions with other
UI components. This fixes regression introduced with
vex rework to JSDialogs where snackbar become modal.

This fixes problem with "send feedback" and "Zotero"
snackbars which block users for ~10s from editing.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I71a2d1654b58a89162679346208409124f24b14e
2023-07-11 10:19:40 +02:00
Pranam Lashkari
8120449cb4 scroll: override any pending scroll for cursor following
problem:
unselecting shape would make document jump to position where
cursor was before selecting the shape

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I4aa75932631de51e84e3aca9b439f1a9a945e2d3
2023-07-11 14:49:04 +07:00
Pranam Lashkari
5d049a2fd3 jsdialog: avoid closing parent dialog if child dialog is open
this patch assumes that dialog ids are incremental,
and no two dialogs are open at the same time unless
one dialog(parent dialog) has triggered another dialog

i.e: calc advance filter dialog triggers warning dialogs,
if entered an invalid range and closing the advance filter dialog
before the warning dialog causes a crash of LOK

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ic4ba3b4553fb0ee089b1ab9b50b1c023801b674a
2023-07-11 14:47:21 +07:00
Rash419
12dbc98395 fix: info level log for exceptions
- hard to find exception if browser logs error at info level

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I9f354480e1ee1d2da8a85973acd7b6563df83291
2023-07-11 12:37:34 +05:30
Caolán McNamara
aba5583ca9 drop empty CanvasTileLayer::_viewReset
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I77ac5e2069f86bcb9d2062cdabd9e886fbd34623
2023-07-10 17:50:13 +01:00
Caolán McNamara
42c9f54a98 osCanvasExtraSize is unused
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I96d74a5a9f6ae86ab4c33f58b60988f62afda417
2023-07-10 17:50:13 +01:00
Caolán McNamara
d5c7306a16 halfExtraSize and extendedOffset are newly unused
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ia2a51478ad674d0b10eeebdfb7e4bc4eb4614984
2023-07-10 17:50:13 +01:00