class documentation

class Win32HtmlFormat: (source)

View In Hierarchy

This class adds support for Windows "HTML Format" clipboard content type

Code is based on example code from http://code.activestate.com/recipes/474121/

written by Phillip Piper (jppx1[at]bigfoot.com)

Also see specification at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/dataexchange/clipboard/htmlclipboardformat.asp

Class Method encode Undocumented
Constant DEFAULT_HTML_BODY Undocumented
Constant MARKER_BLOCK_OUTPUT Undocumented
@classmethod
def encode(klass, fragment, selection=None, head=None, source=None): (source)

Undocumented

DEFAULT_HTML_BODY: str = (source)

Undocumented

Value
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD>%s</H
EAD><BODY><!--StartFragment-->%s<!--EndFragment--></BODY></HTML>'
MARKER_BLOCK_OUTPUT: str = (source)

Undocumented

Value
'''Version:1.0\r
StartHTML:%09d\r
EndHTML:%09d\r
StartFragment:%09d\r
EndFragment:%09d\r
StartSelection:%09d\r
EndSelection:%09d\r
...