On Friday 14 February 2003 1:54 pm, Andre Poenitz wrote:
> On Fri, Feb 14, 2003 at 01:34:17PM +0000, Angus Leeming wrote:
> > André, I'm suffering from brain ache.
>
> Take a hot bath, go to bed...
>
> > 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);
>
> I don't understand the question?
>
> ref_inset has a write() method inherited from command_inset...

So I've discovered. But this fails because ostream has no str() method.

        ostringstream data;
        WriteStream wsdata(data);
        write(wsdata);
        // nasty hack because show expects an Inset*
        cmd.view()->owner()->getDialogs().
                        show("ref", wsdata.os().str(), (void *)this);

Any ideas?
Angus

Reply via email to