Bug 135068 - Writer clipboard omits sm OLE formula objects, so not present on clipboard for paste -- affecting all clipboard formats
Summary: Writer clipboard omits sm OLE formula objects, so not present on clipboard fo...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:rtf
: 129010 (view as bug list)
Depends on:
Blocks: Clipboard RTF-Paste
  Show dependency treegraph
 
Reported: 2020-07-23 07:03 UTC by Telesto
Modified: 2022-05-12 12:53 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-07-23 07:03:53 UTC
Description:
Special paste rtf: Formula not pasted

Steps to Reproduce:
1. Open attachment 163282 [details]
2. CTRL+A
3. CTRL+C
4. CTRL+SHIFT+V
5. RTF paste

Actual Results:
Empty row

Expected Results:
Formula


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
7.1

an in
Version: 4.3.7.2
Build ID: 8a35821d8636a03b8bf4e15b48f59794652c68ba
Comment 1 Telesto 2020-07-23 08:09:29 UTC
Also in
3.3.0
Comment 2 V Stuart Foote 2020-07-23 14:05:05 UTC
The attachment ODT embeds only an OLE StarMath formula. On selection -> copy -> paste sepcial clipboard types are:

Writer object, GDI or BMP

Where is RTF involved? 

Version: 7.1.0.0.alpha0+ (x64)
Build ID: b1c83b68bfbf3477fa6a8f4c79c53f6f9ab31f8e
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 3 Telesto 2020-07-23 15:08:38 UTC
(In reply to V Stuart Foote from comment #2)
> The attachment ODT embeds only an OLE StarMath formula. On selection -> copy
> -> paste sepcial clipboard types are:
> 
> Writer object, GDI or BMP
> 
> Where is RTF involved? 
> 
> Version: 7.1.0.0.alpha0+ (x64)
> Build ID: b1c83b68bfbf3477fa6a8f4c79c53f6f9ab31f8e
> CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Vulkan; VCL:
> win
> Locale: en-US (en_US); UI: en-US
> Calc: threaded

Open the file + Press CTRL+A (not select the formula and copy; that is a different thing :-)
Comment 4 V Stuart Foote 2020-07-23 15:32:19 UTC
OK, so you want the full document. Yes the copy will place two RTF streams onto the clipboard:

49273 - Rich Text Format

49623 - Richtext Format

And neither contains the sm formula in a recognizable form--just a DDE bookmark.

But then the same is true of the text, unicode text, and HTML clipboard streams.

The filter simply does not pick up the OLE sm formula for any clipboard stream. Not sure it should and this is NAB?
Comment 5 Xisco Faulí 2020-07-23 16:23:22 UTC
Reproduced in

Version: 7.1.0.0.alpha0+
Build ID: d8270636a57e7dc68ede51308c380e2098f765d7
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 6 TomasW 2020-07-24 13:43:43 UTC
The primary bug is that Libre Writer does not put RTF math on clipboard.
Consequently no software (also Libre Writer itself) can paste RTF math from Libre Writer. The reported issue is a side effect.

The primary bug report is here: 
https://bugs.documentfoundation.org/show_bug.cgi?id=129010
Comment 7 Xisco Faulí 2020-07-24 13:46:27 UTC
*** Bug 129010 has been marked as a duplicate of this bug. ***
Comment 8 TomasW 2020-07-24 14:20:27 UTC
(In reply to Xisco Faulí from comment #7)
> *** Bug 129010 has been marked as a duplicate of this bug. ***

More precise would be to mark bug 135068 as duplicate (side effect), 
because pasting RTF math actually works in Libre Writer 
IF the clipboard contains RTF math (from other software than Libre Writer).

The primary bug 129010 (prevents all softwares which want to paste math) 
would be still open then.
Comment 9 TomasW 2020-07-24 14:37:37 UTC
And the issue is not about OLE objects, but about RTF math: 
This is the newest and preferred format to exchange 
Rich Text Format (RTF) with embedded formulas.
Comment 10 V Stuart Foote 2020-07-24 15:05:47 UTC
(In reply to TomasW from comment #9)
> And the issue is not about OLE objects, but about RTF math: 
> This is the newest and preferred format to exchange 
> Rich Text Format (RTF) with embedded formulas.

No. This issue here and on bug 129010 is that the Writer clipboard filter does not include math formula (all formulas are on page via OLE) in *any* clipboard format other than LibreOffice OTF document.

Clipboard format for RTF is not supported, nor is clipboard format for HTML, nor is clipboard for text.

The Writer filters for each needs dev work.
Comment 11 V Stuart Foote 2020-07-24 16:00:48 UTC
*** Bug 129010 has been marked as a duplicate of this bug. ***
Comment 12 LeroyG 2022-05-12 12:53:13 UTC
Select some text and a formula on version 7.1.8.1, copy, and paste on version 7.3.2.2 (or viceversa).
Only text is pasted.

Select only the formula, copy, and paste in the other version document: it will paste without problem.

Version: 7.1.8.1 (x86) / LibreOffice Community
Build ID: e1f30c802c3269a1d052614453f260e49458c82c
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: es-MX (es_MX); UI: en-US
Calc: threaded

Version: 7.3.2.2 (x86) / LibreOffice Community
Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: es-MX (es_MX); UI: es-ES
Calc: threaded