On Wednesday 20 February 2002 2:16 pm, Juergen Vigna wrote: > On 20-Feb-2002 Angus Leeming wrote: > > > So how should I proceed. Somehow I need to tell the underlying bufferview > > that the inset has changed. That is, I'll have to call > > BufferView::updateInset(Inset *, false) > > > > The question is how? > > I would say as proove of concept you can use current_view (VERY EVIL ;) and > see if it works the way you expect it if you HAVE the BufferView pointer > actually. We still have to remove the current_view pointers completely from > the source but IMO we can only do it if we somewhere have a list which tells > us the BufferViews for a certain buffer and IMO this could be inside buffer.h > vector<BufferView *> bufferviews. Then if you have to update a certain thing > you can iterate over the vector and update it on all BufferViews! But we > still have to decide about that. As I told you for now and for you to be > sure it will work try current_view for now. > > Jug > > P.S.: I should have sent this privately as I will get hit on my head (virtually) > for proposing it, but well I like the danger #:O)
Man, you're evil! I'd forgotten all about this beast! Yes, proof of concept works. As you told me earlier, it doesn't work if the inset is in a table of a float, but IMO that's for an expert such as yourself! I'll clean up my code and then put the (enormous) patch in www.devel.lyx.org/~aleem Angus