Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] WORD to SWT Canvas

You need to look into what data formats Word places on the clipboard.  You 
can use Clipboard.getAvailableTypeNames() to do this (you can also use the 
SWT ClipboardExample to find this out - this is part of the examples 
download on the Eclipse download page).  Once you know the available 
types, you need to research the data formats involved and probably write a 
Transfer subclass to handle the data transfer type that is useful to you. 
SWT provides an RTFTransfer data transfer type, however, for the embedded 
pictures/charts etc, you may need to add support for the ObjectLink data 
type and others.

For a reference on writing a Transfer subclass see:

http://www.eclipse.org/articles/Article-SWT-DND/DND-in-SWT.html


Back to the top