Files
loongoffice/sc/source/ui/view
Miklos Vajna 4ffe06a818 cool#8789 sc lok: fix copy for multi-selections
Select A1+A3 in Calc, copy, try to paste in B1, nothing happens.

This is because lok::Document::getSelectionTypeAndText() for a Calc
document ends up in ScViewFunc::CopyToTransferable(), which only handles
the SC_MARK_SIMPLE* cases.

Fix the problem by implementing support for SC_MARK_MULTI, similar to
what ScCellShell::ExecuteEdit() does in the SID_COPY case, which also
calls CopyToClip().

Keep the test highlevel as the Calc shell doesn't seem to have an easy
function to do the same as the Ctrl-click on a cell without duplicating
lots of code in the testcase.

Change-Id: I641d9db95ca391a4f39d96aeeb33422129262288
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166279
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-04-19 17:14:37 +02:00
..
2024-02-09 14:54:46 +01:00
2024-02-12 10:35:33 +01:00
2024-04-17 09:18:09 +02:00
2024-03-16 19:58:41 +01:00
2024-04-04 10:33:30 +02:00
2024-04-04 10:33:30 +02:00
2024-03-21 15:46:24 +01:00
2024-03-21 21:39:57 +01:00