For supporting HTML clipboard data it would be required to register an
appropriate HTML data converter (typically done in Config) via a call like this:
- Code: Select all
OleData.Register("HostTextConv.ImportDHtml", "HostTextConv.ExportDHtml", "HTML Format", "TextViews.View", {});
HTML data is transferred as plain Utf-8 text but with an additional header that specifies some properties
(fragment start, fragment end, etc.) of the html fragment to be transferred.
Here is an example of the transferred data as provided by Chrome.
It looks similar when exported from Internet Explorer.
- Code: Select all
Version:0.9
StartHTML:0000000170
EndHTML:0000000815
StartFragment:0000000206
EndFragment:0000000779
SourceURL:http://blackboxframework.org/index.php?cID=home,en-us
<html>
<body>
<!--StartFragment--><h1 style="margin: 0px 0px 15px; padding: 0px; font-size: 1.714em; font-weight: normal; font-family: PTSansBold, arial, sans-serif; font-style: normal; color: rgb(24, 24, 24); line-height: 1.2; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;">What is BlackBox/Component Pascal?</h1><!--EndFragment-->
</body>
</html>
- Josef