On May 23, 2011, at 2:18 PM, Richard Heck wrote:

> On 05/23/2011 08:12 AM, Tommaso Cucinotta wrote:
>> Il 23/05/2011 08:22, LyX Ticket Tracker ha scritto:
>>>  However, there are still things left that need to be copied. For instance,
>>>  both Insert>  Citation and Insert>  Cross Reference do not seem to work in
>>>  the search buffer. Shall I file separate reports for these?
>>> 
>> do you know whether these were working when we were cloning
>> the whole BufferParams (2.0.0 version) ?
>> 
> I don't think it would work. That buffer has no access to the bibliography or 
> reference info from the working buffer. Probably what you would need to do is 
> copy the reference cache and the bibinfo cache, though you'd also have to 
> make sure they were updated as well whenever they changed in the main buffer, 
> or the main buffer switched, etc. Seems very delicate.
> 
> In a way, what we want really is for the search buffer to treat the main 
> buffer as its parent, but only for certain purposes. Maybe there is some way 
> to accomplish that....

Maybe the solution is to create a special EmbeddedBuffer class that will 
constantly refer to the document Buffer (const access to the params, ref cache, 
etc). EmbeddedBuffer would inherit Buffer and would offer only const access to 
the params/etc.

Abdel.

Reply via email to