Commit graph

21675 commits

Author SHA1 Message Date
Gökay Şatır
eff4b6760a Add shorcutstoolbar to the integrator containers list.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ic101061ed8d39178c1dc0777350126c3fa545258
2023-09-11 17:27:30 +03:00
Gökay Şatır
b370ba6e4a Change the insert > insert table command access key.
So it doesn't conflict with others.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I3f114aa007572cb40acff58f9d3b4a45f3d57988
2023-09-11 17:27:18 +03:00
Gökay Şatır
f4ea5fc065 Re-position the accessibility info boxes.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ia812d8a8dd89e12b8c6f0d3d7f3586700b1e6ce3
2023-09-11 17:03:32 +03:00
Gökay Şatır
d6d64b38d7 Resolve id conflicts between contents and the buttons.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Id55c56e65cf27dd67bf6c88488b5f29b6e5dade8
2023-09-11 17:00:35 +03:00
Gökay Şatır
6ad69a7699 writer: add missing accelerator keys for file tab.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I10d821080a06b8bd93993e2ab6bf0fe212449b2d
2023-09-11 16:59:44 +03:00
Darshan-upadhyay1110
5f2ad3e5e6 Add option for print sheet
Added 2 options to print
    - Active sheet
    - All sheets
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Ic4514648bd998575990bce877eda5d45884a8514
2023-09-11 14:24:33 +02:00
Darshan-upadhyay1110
6406aeac83 Enable autocorrect option to add bulltes
Will add bullets after pressing enter
 Example: press * then some sentence and enter
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I63676eb3f725dba0d9fdb0a12cb31847fef8e663
2023-09-11 11:48:47 +02:00
Caolán McNamara
084e715dc6 TileDesc broadcast field is always false
apparently since:

commit b0a7532b08
Date:   Sat Nov 14 19:43:02 2020 +0300

    Turn off broadcast on presentation preview tiles

so drop this field from TileDesc and protocol.txt

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ib4b1eca0d30911e13c245551cb3e3261afc99dd2
2023-09-11 09:38:49 +01:00
Caolán McNamara
3b7ef07997 getTokenString is another loop over the tokens that we already loop over
getTokenString(const StringVector& tokens...) loops over each
token and calls
getTokenString(const std::string&...) with token.getParam() on each
token. We already have a loop over each token, so we can merge those
loops here.

perf reports TileDesc::parse taking 3.68% of the time in a hour
of an interactive writer session with multiple participants

Though looking further, broadcast seems unused by anything now.

To be followed up on that topic.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I244637043c58d90562001ec58fac494da54e55a8
2023-09-11 09:38:49 +01:00
Rash419
68f147679a indirection: fix ui flicker when migrating
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib435a08399179e33ee71736c1f36987e14fcaace
2023-09-11 13:38:11 +05:30
Miklos Vajna
790a19ab25 kit: improve date format of UNO commands in crashreports
Old format:

	kit-27634-02839 2023-08-30 11:08:43.590564 +0000 [ kitbroker_17a ] SIG   Fatal signal received: SIGSEGV code: 1 for address: 0x4f00000007
	      unoCommand(2552f) : ToolbarMode?Mode:string=notebookbar_online.ui - Wed, 30 Aug 2023 11:08:31

New format:

	kit-30199-30197 2023-09-06 14:30:21.417817 +0200 [ kitbroker_001 ] SIG   Fatal signal received: SIGABRT code: 18446744073709551610 for address: 0x3e8000075f7
	Recent activity:
		unoCommand(064) : ToolbarMode?Mode:string=notebookbar_online.ui - 2023-09-06 12:29:56

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Idf62ea18c75c453d188d8c25723a43824d5fc147
2023-09-11 10:07:19 +02:00
Szymon Kłos
fb79675c0f jsdialog: simplify intert hyperlink dialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I44bae5fd01a6d4c099af46742eb2069b5b6db7ab
2023-09-11 09:48:25 +02:00
Szymon Kłos
03cd99d6d2 cypress: adjust mobile insert hyperlink to new dialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iab68d99e9f35a7a93152466103b23e5344eea72b
2023-09-11 09:48:25 +02:00
Szymon Kłos
a6a08f4a21 mobile-wizard: unify combobox to listbox replacement
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I20d5014e1d0e96857d01ce29b2734b27e07efa3f
2023-09-11 09:48:25 +02:00
Szymon Kłos
4e91213b52 mobile-wizard: unify combobox to edit replacement
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ief95b914812e6598e101e2bd64646b1bcf3e5e9e
2023-09-11 09:48:25 +02:00
Szymon Kłos
84fadfe9d1 mobile-wizard: replace combobox with edit in hyperlink dialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib87fbef220212ffeb14fa189122c3016085997b9
2023-09-11 09:48:25 +02:00
Szymon Kłos
5f4ceb1032 mobile-wizard: handle vertical tab control
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iba97075ce663fa6d95eaf00716204da8be34e192
2023-09-11 09:48:25 +02:00
Szymon Kłos
8ba7d80025 mobile-wizard: avoid errors when content doesn't exist
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I82dac967ee490376c18934996089c9c4a83bbef5
2023-09-11 09:48:25 +02:00
Szymon Kłos
a0fb57f22f jsdialog: replace combobox with edit in hyperlink dialog
calc -> insert -> hyperlink dialog has combobox which is
useless, let's replace it with edit field

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifc5c10028fa55459a8433ae0b932c857aa883de8
2023-09-11 09:48:25 +02:00
Szymon Kłos
46763f6d05 jsdialog: fix tabs switching
we expected number in the id, but it has been changed in
commit f8e53bd851

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I5c8793facca03a586918f411d7e88066ac30dc16
2023-09-11 09:48:25 +02:00
Szymon Kłos
da174cbb97 Use dialog from core in Calc Insert Hyperlink
introduce it in Calc only as it has better knowledge about
cell content and what should be edited

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Idc66e3380e83975b44ca88d47586de3bd0e7dee9
2023-09-11 09:48:25 +02:00
Szymon Kłos
9cb37bc439 cypress: make slide page format test more reliable
it seems we generate previews later now
it might be related to commit 04ac02b033
    Do not request tiles until we are sure a canonical id is set

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I250c37049ba62c4cdc06b16413767edafc362dc0
2023-09-10 18:46:39 +02:00
Szymon Kłos
e47f959a0c cypress: skip failing mobile annotation test
regression introduced in commit d4dcc9e748
Correct the naming of highlightComment function.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifdb4e821e7102d8efc480231aaa52aefea394b62
2023-09-10 18:46:39 +02:00
Szymon Kłos
08194fa06d cypress: skip failing switching sheet test
this is only desktop test that fails, let's skip
it until we fix the regression and not block others
from testing their patches

regression was introduces in:
commit 04ac02b033
Do not request tiles until we are sure a canonical id is set

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1de44a94121648b381df67d926bbc33dd1044b76
2023-09-10 18:46:39 +02:00
Gökay Şatır
d4dcc9e748 Correct the naming of highlightComment function.
Add new property to commentSection (children).

Update commentListSection for Writer comments.
Now the comments at the same position are separated.

The parent / child relations are set by "parent" attribute.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I0a8ab060c133a51f4d09e71777cc6233b78a6efa
2023-09-08 23:10:02 +03:00
Darshan-upadhyay1110
bec384c572 Add QR and Bar code generation option
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I3fafb97e99df87f813562063192e6ae39b34c2d1
2023-09-08 20:40:13 +02:00
Paris Oplopoios
1b9a186c01 Turn canonical id assertion into warning for now
Signed-off-by: Paris Oplopoios <paris.oplopoios@collabora.com>
Change-Id: I7e332b5e5a0c6a8ce5a428caf4c23274b9be8d82
2023-09-08 14:46:21 +02:00
Gökay Şatır
0af836d4ad Add accessKey properties for save buttons of shortcuts toolbox.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I24d892e0618d7105062e794c032fb8f96f76ccf3
2023-09-08 12:17:25 +03:00
Caolán McNamara
8ba14ab5e2 if we can't call _onMessage yet, delay all messages until we can
and not just some of them discarding the others, so we
always apply all messages received in order the arrived
without omissions.

TODO: apply them when the conditions application requires become
true rather than depending on a timer poll.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I265b6ccb45e211c15c5f4daf9d6572fa051b68eb
2023-09-07 14:15:24 +01:00
Rash419
855429dad5 admin: send serverId with migrate msg
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I484620df234a1dcbedeba5b5102dacee7451015a
2023-09-07 18:35:32 +05:30
codewithvk
e0ce56d2b2 Add Scrollbar onmouseover effect
Signed-off-by: codewithvk <vivekpatel7202@gmail.com>
Change-Id: I6d34151cc897f9cb97fbe8404694959c5ff4ca49
2023-09-07 11:10:01 +02:00
Paris Oplopoios
0621aa4825 Fix canonical id related unit tests
Signed-off-by: Paris Oplopoios <paris.oplopoios@collabora.com>
Change-Id: Ie4b965c3bac8cddd48a47343d2d1c5f387d8bd41
2023-09-06 10:28:26 +02:00
Paris Oplopoios
04ac02b033 Do not request tiles until we are sure a canonical id is set
Change-Id: Iee15388407ac644e498d3798e545de06038e4b5a
Signed-off-by: Paris Oplopoios <paris.oplopoios@collabora.com>
2023-09-06 10:28:26 +02:00
Paris Oplopoios
5409175a2a Add assertions for bad canonicalviewid
Change-Id: I2621e08123ca9cac30e027b0c018c0e9cc40750d
Signed-off-by: Paris Oplopoios <paris.oplopoios@collabora.com>
2023-09-06 10:28:26 +02:00
Paris Oplopoios
cfd1d2e01f Revert "Give new sockets a canonical view id in tests"
This reverts commit a003126a65.

Signed-off-by: Paris Oplopoios <paris.oplopoios@collabora.com>
2023-09-06 10:28:26 +02:00
Paris Oplopoios
e67fa117f6 Revert "Fix getting canonical view id of 1000"
This reverts commit 6448c8be0d6a6a58f46c6e1ec2755138b9e7e3d1.

Signed-off-by: Paris Oplopoios <paris.oplopoios@collabora.com>
2023-09-06 10:28:26 +02:00
Gökay Şatır
57ebf8c6e4 Update the comment property for writer.
to parent from parentId while importing the comments.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I2f8fa3eae995d894b33558a2fb67639c7af5f1a1
2023-09-06 00:00:03 +03:00
Pranam Lashkari
a022212381 annotation: autosave comments when lose focus without exiting editing
how it is expected to work:
before this patch, whenever comment is saved,
editing comment box(DOM elements) is deleted and
a new comment(DOM elements) is created when we recieve the data from server about saved comment

This commit prevents the deletion of the original comment box which is being edited,
if comment loses focus it is saved. If user explicitly saves the comment then it
follows the routine which were used previously.

Many checks were added to prevent comments from getting unselected(select means it is highliting the text in doc)
or getting collapsed

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: If24ccbcd7a0287b659f790db486ada5d17608a32
2023-09-05 16:35:45 +02:00
Pedro Pinto Silva
5ada25b7c3 Tabbed view: Remotelink: Add missing CSS class
It seems the CSS class was only added to impress in
c582d75f57

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4e8884004bbd1a4f6e4e62a841eb940e23065f50
2023-09-05 12:38:00 +02:00
Pedro Pinto Silva
4b2d29f004 Tabbed view: Add missing CSS class for simple search button
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I78a0adbf84fbea8e2a6c08b0b4eaded7309fa79a
2023-09-05 12:37:31 +02:00
Darshan-upadhyay1110
5f56c339d3 [WIP] : Bullet / Number List Keyboard Shortcut
Added support for keyboard shortcut to add
    - Numbered list Ctrl + Shift + 7
    - Bulleted list Ctrl + Shift + 8

Still type * (asterisk) then Spacebar to add list view not implemented
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I097691edd81fdc95718d778fcac57c0b0d3e9fb5
2023-09-05 12:03:14 +02:00
Rash419
f9c865fcbe android: fix cannot open pdf
- regression after removing unused slide sorter from this patch 639068e3fe

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Idc94f316d3e2b7d8ed23c8202c20b14252390b97
2023-09-04 19:16:29 +05:30
Rash419
52bbb7df9c mobile: fix icons not visible with branding
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I7a3d430ddd96ccb3ea0605eb0a0f2523d66225ce
2023-09-01 17:50:48 +02:00
Rash419
a52bb5e193 fix: comment annotation table not aligned
- regression from 8379ae65dd713c30ac729ae10a2d78cfc98e9a6c

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I28edf882ce9efd586730a48a95f3bde555a63690
2023-09-01 17:26:07 +05:30
Ashod Nakashian
e6798e9062 wsd: exclude readonly sessions from modification indication
Read only sessions cannot modify the document, so
we shouldn't consider input from such a session
as potentially modifying the document. This
becomes important during an abrupt disconnection
where we look at isPossiblyModified() as an
indicator for data-loss.

New unit-test that reproduces the corner-case
with disconnection. With graceful unloading
a previous unit-test verified that it worked
as expected.

Change-Id: Id84cda4f4599c559018247c32ea1205e154e4984
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-09-01 07:18:12 -04:00
codewithvk
8533175bd7 Fix: hover states on disabled
Signed-off-by: codewithvk <vivekpatel7202@gmail.com>
Change-Id: I64d291b87ccfbcb7a48b020d1d89fb77cefd8a01
2023-09-01 10:55:12 +02:00
Rash419
cc3f12926c indirection: get new routeToken if serverId mismatch
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I0efb38b714894dffb44cb5e2ca06be12ccf43b89
2023-09-01 13:48:31 +05:30
Caolán McNamara
1d850c0b4b cool#7164 use existing delay queue for 'canonicalidchange'
https://github.com/CollaboraOnline/online/issues/7164

might be best to add everything to this queue, and not drop any
incoming message, and then process the queue when both
this._map._docLayer and _isReady become available/true.

But perhaps this serves as a reasonable safe checkpoint to return to
if it becomes necessary.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ib77a4126437689709e2ca0915667b5b9b2f2f207
2023-08-31 13:41:40 +01:00
Rash419
a02cde2565 android: fix lint errors
RecentFilesAdapter.java:76: Error: Value must be ≥ 0 [Range]
                  filename = cursor.getString(cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));
                                    RecentFilesAdapter.java:97: Error: Value must be ≥ 0 [Range]
                  length = cursor.getLong(cursor.getColumnIndex(OpenableColumns.SIZE));

file_explorer_grid_item.xml:42: Error: Inconsistent alignment specification between textAlignment and gravity attributes: was center_vertical, expected center_horizontal [RtlCompat]
              android:textAlignment="center"

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I663a89b0ecce03b067e1fa216a030a19fa578da5
2023-08-31 13:12:22 +02:00
Rash419
f0ea15a9b9 android: add ndkVersion in build.gradle
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I7b7c716be067859e72c21e07716db7622a116bf6
2023-08-31 13:12:22 +02:00