https://bugs.documentfoundation.org/show_bug.cgi?id=159525

            Bug ID: 159525
           Summary: Make Simple HTML paste format the preferred instead of
                    RTF
           Product: LibreOffice
           Version: 24.8.0.0 alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]
            Blocks: 103411

Created attachment 192347
  --> https://bugs.documentfoundation.org/attachment.cgi?id=192347&action=edit
HTML paste from Word in Free Clipboard Viewer

This is a followup to bug 157363

In cases when an external app (in our cases: MSO apps) puts copied content in
HTML and RTF format to the clipboard, it could be useful to have an option to
prefer the HTML format as default paste format over RTF, as some apps (such as
MSO) may put more content into HTML compared to RTF.

1. Open attachment 192289 from bug 159478 (but really any complicated document
should do) in Word
2. Copy everything
3. In PowerPoint go to Paste - Paste Special
4.a Insert the content as HTML
-> There is a table pasted. The font formatting is however lost (e.g. FAX is
not in large bold font)
4.b Insert the content as RTF
-> No table, only text is pasted. Font formatting is retained.

So both source formats have pros and cons, it may make sense to:
(1) make it configurable via a config key that can be tweaked per deployment.

(2) Another option may be to actually look inside the clipboard content and
check for something like this:
<meta name=Generator content="Microsoft Word 15">
<meta name=Generator content="Microsoft PowerPoint 15">
and if this is found in the HTML clipboard content, prefer this automatically.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=103411
[Bug 103411] [META] Paste from MSO applications bugs and enhancements
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to