On Thu, Sep 26, 2002 at 05:37:36AM -0600, Micah Dowty wrote:
> IMHO the biggest decision to be made in implementing clipboard support is how
> to allow applications to exchange clipboard data in different formats. This
> will determine how the data is stored. I'm not very familiar with the
> clipboard mechanisms in other GUIs, so please feel free to add extra ideas or
> correct me :)
> 
> What about a system where pgserver manages the clipboard data, but clients can
> register user-defined data types? Some kind of plugin system for pgserver to
> convert between these user-defined data types?

I haven't coded for Windows in over 7 years, but Back Then, when you did a
copy/cut you would pass out a "pile" of formats, and then when the other app
wants to paste that, they would fetch the first one in this "pile" they
supported. For ex., from (say) Corel Draw you copy sobe objects, they would
be stored as [cdr, wmf, bmp]. If you try to paste this into an app that
supports cdr, fine; if you tried in (say) Word, you would get the wmf; if
you tried in paintbrush, you would get the bmp.

I think a new, opaque pgserver format, consisting of basically two strings
(the raw opaque data and the mime-type or similar), could handle that.

[]s,
                                               |alo
                                               +----
--
            Those who trade freedom for security
               lose both and deserve neither.
--
http://www.laranja.org/                mailto:[EMAIL PROTECTED]
         pgp key: http://www.laranja.org/pessoal/pgp

Eu jogo RPG! (I play RPG)         http://www.eujogorpg.com.br/
Python Foundry Guide http://www.sf.net/foundry/python-foundry/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to