On Thursday 05 December 2002 5:59 pm, John Levon wrote:
> X selection is application global, hence dealing with it should be
> refactored into lyx_gui class :
>
>       lyx_gui::getClipboard(BufferView & bv);
>
>       lyx_gui::putClipboard(string const & str);
>
> What's the problem with doing this ?

There is no problem. I'm glad that I understood the code.

I was merely pointing out that this requires knowledge of the current 
BufferView and I thought that that was something we were trying to do away 
with.

> xforms may indeed need a work area for handling the get/put, but this
> can be any work_area at all, since it's not workarea specific. Such a
> requirement should be behind the frontends firewall IMHO.

Sometimes I'm not sure we talk the same language. I can't grok this paragraph 
at all.

I will note that there's a a one-to-one correspondence between BufferView and 
WorkArea, so I really don't see what point you're trying to make.

Angus

Reply via email to