collabora-online/test/data
Miklos Vajna b14f3fffff cool#8465 clipboard: improve handling of plain text copy, complex case
In case the selection is complex (not simple), we used to just request
HTML, and then the browser converted that to plain text, which has the
downsides already mentioned in commit
7f9de46688 (cool#8465 clipboard: improve
handling of plain text copy, simple case, 2024-03-08).

Steps to support this:

1) Clipboard.js now asks for the text/html,text/plain;charset=utf-8 MIME
   types.

2) wsd: ClientRequestDispatcher::handleClipboardRequest() now maps this
   to DocumentBroker::CLIP_REQUEST_GET_HTML_PLAIN_ONLY

3) ClientSession::handleClipboardRequest() maps this to the HTML+plain
   text MIME type list.

4) kit: ChildSession::getClipboard() is now improved to take a list of
   MIME types, not just 1 or everything.

5) kit: ChildSession::getClipboard() now emits JSON in case not all, but
   multiple MIME types are requested.

6) wsd: ClientSession::postProcessCopyPayload() now knows how to
   postprocess clipboardcontent messages, which may or may not be JSON
   (it's JSON if more formats are requested explicitly, leaving the 1
   format or all format cases unchanged)

7) Control.DownloadProgress.js now handles the case when we get JSON and
   sets the core-provided plain text next to the HTML.

   Leave the handling of non-JSON case in, because this means we can
   copy from an old COOL server to a new one.

Note that this approach has the benefit that once the clipboard marker
is inserted, the length of the text/html format would change, which
means we can't parse the clipboard data till the marker is removed.
Emitting JSON for html+text means adding the marker keeps the ability to
parse the HTML and the plain text part of the clipboard in JS.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I67a1f669e8a638d34cc25a2f288a7b30884b9892
2024-03-20 10:21:59 +01:00
..
Example.odt Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00
RenderSearchResultFragment.xml New POST service to render a search result + unit and integ. tests 2021-09-13 10:36:15 +02:00
RenderSearchResultTest.odt New POST service to render a search result + unit and integ. tests 2021-09-13 10:36:15 +02:00
bullets.odt cool#8465 clipboard: improve handling of plain text copy, complex case 2024-03-20 10:21:59 +01:00
calc-render.ods wsd: unittest to reproduce rendering issue in Calc 2017-05-02 06:14:33 +02:00
calc_render.xls Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00
calc_render_0_256x256.3840,0.7680x7680.png drop non-standard width=400 height=400 tile request in unit test 2023-06-23 16:55:25 +01:00
convert-to.xlsx test: simplify the timeout logic. 2020-01-21 15:07:54 +00:00
corrupted.odt chmod -x on test data files 2018-11-01 11:39:30 +01:00
delta-graphic.png Fix copy command going out of bounds during delta creation 2023-06-05 08:59:39 +01:00
delta-graphic2.png Fix copy command going out of bounds during delta creation 2023-06-05 08:59:39 +01:00
delta-text.png Start of Delta unit-tests. 2017-11-22 15:55:03 +00:00
delta-text2.png Start of Delta unit-tests. 2017-11-22 15:55:03 +00:00
empty.odg chmod -x on test data files 2018-11-01 11:39:30 +01:00
empty.odp chmod -x on test data files 2018-11-01 11:39:30 +01:00
empty.ods chmod -x on test data files 2018-11-01 11:39:30 +01:00
empty.odt leaflet: fire Doc_ModifiedStatus with modified state of the document 2019-09-03 01:53:12 -04:00
graphicviewselection.odp Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00
graphicviewselection.ods Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00
graphicviewselection.odt Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00
hello-world.odg Adjust size of custome properties dialog 2024-02-21 15:16:14 +00:00
hello.odp take hello-world.ods and hello-world.odp out of version control 2018-11-01 11:39:43 +01:00
hello.ods take hello-world.ods and hello-world.odp out of version control 2018-11-01 11:39:43 +01:00
hello.odt Remove empty Configuration2/ from ODT, it's better for testing signing 2018-12-28 13:10:16 +01:00
hello.txt Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00
hide-whitespace.odt Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00
insert-delete.odp Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00
large-six-hundred.odt wsd: test: reduce test run time 2023-05-31 07:40:11 -04:00
load12.ods Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00
non-shape-image.odt Add a test case of SVG export of Writer image 2019-01-22 14:52:39 +01:00
non_shape_writer_image.svg UnitRenderShape: update Writer reference SVG 2020-02-27 11:57:07 +01:00
password-protected.doc Test password protected OOXML and Binary MSO documents 2017-01-10 12:44:20 +01:00
password-protected.docx Test password protected OOXML and Binary MSO documents 2017-01-10 12:44:20 +01:00
password-protected.ods Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00
paste.html Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00
perf-test.odt perf-test: fire up six views concurrently and position on bookmarks. 2021-06-24 13:35:55 +03:00
setclientpart.odp Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00
setclientpart.ods Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00
shape.ods Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00
shape.odt Add test case for SVG export of selected shapes in case of Writer 2019-01-22 14:52:39 +01:00
shapes.odp Introduce client-server message for requesting the selected shape as SVG 2018-12-07 12:39:27 +01:00
shapes_impress.svg Fix HTTPWSTest::testRenderShapeSelectionImpress() against product core 2019-05-09 14:25:21 +02:00
test.ott wsd: introduce "TemplateSource" WOPI property 2019-07-24 12:10:15 +02:00
test.ppsx test/data: Add a ppsx file 2024-03-15 18:25:53 +01:00
tiff.odt Add TIFF load testcase 2019-07-04 17:57:01 +02:00
timeline.xlsx Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00
viewcursor.odp chmod -x on test data files 2018-11-01 11:39:30 +01:00
with_comment.odt Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00