GTG

Comment 2 for bug 830968

Revision history for this message
Izidor MatuĊĦov (izidor) wrote :

Another round of research:

You need to use gtk.Clipboard for handling clipboard.

Nice tool to have is the code from http://stackoverflow.com/questions/3261379/getting-html-source-or-rich-text-from-the-x-clipboard (it is also as attachement in the case the site goes down) Copy something and run the script.

If you don't know, how the clipboard works in Windows or in X11: It is a system wide place where you put information (copy some text). It supports multiple representation of the same information. For example, when you copy something in LibreOffice, you get a version with richt text (bold, italic, bullets) and plain text version.

The goal is to export selection in that way, that subtasks are represented as bullets in Tomboy or LibreOffice. How to do that? Using gtk.Clibboard.set_with_data()

http://stackoverflow.com/questions/1992869/how-to-paste-html-to-clipboard-with-gtk - general info
http://ubuntuforums.org/showthread.php?t=324477
http://pvanhoof.be/blog/index.php/2006/04/25/clipboard-copying-the-texthtml-target-using-gedit - a plugin for GEdit which copies the selection as HTML