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

--- Comment #12 from Justin L <[email protected]> ---
P.S. The same problem is seen pasting this into Calc/Draw/Impress, since they
all use EditRTFParser::ReadField(). 

The clipboard is imported as an RTF field, with
aFldInst[HYPERLINK "https://de.wikipedia.org/wiki/LibreOffice"; \t "_top" ]
aFldRslt[https://de.wikipedia.org/wiki/LibreOffice]


It is passed to the clipboard as RTF text, so it should be in the format
something like 
{\field{\*\fldinst HYPERLINK "http://www.google.com/"}{\fldrslt Google}}
where the field result is the visible text.

I don't see anywhere in the specification where it indicates that other flags
can be attached to it for formatting purposes.

However, we do have flags specified for Word's fields.
17.16.5.25 HYPERLINK    Syntax: HYPERLINK field-argument [ switches ]

\l field-argument
text in this switch's field-argument specifies a location in the file, such as
a bookmark, where this hyperlink jumps.

\m Appends coordinates to a hyperlink for a server-side image map.

\n Causes the destination site to be opened in a new web browser window.

\o field-argument text in this switch's field-argument specifies the ScreenTip
text for the hyperlink.

\t field-argument text in this switch's field-argument specifies the target to
which the link should be redirected. Use this switch to link from a frames page
to a page that you want to appear outside of the frames page. The permitted
values for text are:
 _top, whole page (the default)
 _self, same frame
 _blank, new web browser window
 _parent, parent frame


So the question is, do we have an RTF import problem (need to strip the
switches), or is it an export-to-clipboard problem in Writer (where it should
not include the switches in RTF's HYPERLINK)?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to