[Libreoffice] Clipboard handling on Windows

2011-12-02 Thread Kohei Yoshida
Hi fellow hackers, While investigating this bug https://bugs.freedesktop.org/show_bug.cgi?id=33100 which involves Windows' clipboard handling, I've come to the realization that, there are two ways to communicate with the clipboard on Windows. One is to use the regular clipboard API

Re: [Libreoffice] Clipboard handling on Windows

2011-12-02 Thread Noel Grandin
I stand under correction, but I believe the correct answer is that ideally, you need to support **both**. I think the second one is the newer one, and Windows provides some support for interfacing applications using the first one with applications using the second one. Which is why you see

Re: [Libreoffice] Clipboard handling on Windows

2011-12-02 Thread Kohei Yoshida
Hi Noel, On Fri, 2011-12-02 at 18:40 +0200, Noel Grandin wrote: I think the second one is the newer one, and Windows provides some support for interfacing applications using the first one with applications using the second one. Which is why you see some of the formats, but not all of them,

Re: [Libreoffice] Clipboard handling on Windows

2011-12-02 Thread Kohei Yoshida
On Fri, 2011-12-02 at 11:52 -0500, Kohei Yoshida wrote: Hi Noel, On Fri, 2011-12-02 at 18:40 +0200, Noel Grandin wrote: I think the second one is the newer one, and Windows provides some support for interfacing applications using the first one with applications using the second one.

Re: [Libreoffice] Clipboard handling on Windows

2011-12-02 Thread Tor Lillqvist
So, I'm still not understanding this fully.  Why is it that, when you use the 2nd API, you only see some of the formats, not all? One possibility might be that the first API also returns synthesized clipboard formats. For instance, if you put CF_UNICODETEXT format data on the clipboard, Windows

Re: [Libreoffice] Clipboard handling on Windows

2011-12-02 Thread Kohei Yoshida
Hi Tor, On Fri, 2011-12-02 at 20:24 +0200, Tor Lillqvist wrote: So, I'm still not understanding this fully. Why is it that, when you use the 2nd API, you only see some of the formats, not all? One possibility might be that the first API also returns synthesized clipboard formats. Ah,

Re: [Libreoffice] Clipboard handling on Windows

2011-12-02 Thread Kohei Yoshida
On Fri, Dec 2, 2011 at 3:33 PM, Kohei Yoshida kohei.yosh...@suse.com wrote: As a test, I wrote another quick program to retrieve the clipboard format info using the IDataObject API, And here is the code (attached) that I used to retrieve the clipboard format info via IDataObject, in case

Re: [Libreoffice] Clipboard handling on Windows

2011-12-02 Thread Arno Teigseth
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/12/11 11:28, Kohei Yoshida wrote: Hi fellow hackers, While investigating this bug https://bugs.freedesktop.org/show_bug.cgi?id=33100 which involves Windows' clipboard handling, Don't want to hijack anything, but wonder if wine