Andre Poenitz wrote:

> On Fri, Feb 14, 2003 at 12:03:20PM +0000, Angus Leeming wrote:
>> > +  stringstream data;
>> > +  params().write(data);
>> > +  lyxfunc().dispatch(FuncRequest(action_, data.str()));
>> >  }
>> >
>> > I really think you should use ostringstream for write-only streams.
>> > Makes things a bit more obvious...
>> 
>> Won't work. I pass it to dispatch which ends up extracting the data using
>> an istream...
> 
> But you don't pass the stream, you pass a string here.
> 
>> Sigh. I enjoy the proof of principle bit, but going over each of 30
>> different insets fills me with loathing :-(
> 
> Poor little tiger...
> 
> But you will be the hero of your neighbourhood if you finish this.

André, I'm suffering from brain ache.

What should I use in mathed/ref_inset.C instead of the 'normal' insets' 
write method:
        ostringstream data;
        write(bv.buffer(), data);
        // nasty hack because show expects an Inset*
        bv.owner()->getDialogs().show("ref", data.str(), (void *)this);

-- 
Angus

Reply via email to