On Wednesday 20 February 2002 3:30 pm, Jean-Marc Lasgouttes wrote: > >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > > Angus> Should I modify GCache::update from void > Angus> GCache::update(InsetGraphics const &); to void > Angus> GCache::update(InsetGraphics const &, BufferView const *); > > Angus> and store which BufferView the inset is to be found in. Only > Angus> this won't work when we have multiple BufferViews. > > Angus> Alternatively, I should store the BufferView in the inset, but > Angus> this also seems very ugly. > > What bufferview would you use with your lfun solution? If you know > that, you can just use the same...
I had LyX as a singleton class and gave it a dispatch method. The idea was that eventually it could iterate over all LyXViews. I suspect that we'll need something like this eventually. For example, it's currently impossible to modify a bunch of the preferences settings in a running LyX. For now, I'll use Jürgen's kludge. Angus