On Mon, Nov 09, 2009 at 09:40:13AM +0100, Abdelrazak Younes wrote: > rgheck wrote: >> On 11/08/2009 10:53 AM, [email protected] wrote: >>> Author: younes >>> Date: Sun Nov 8 16:53:21 2009 >>> New Revision: 31901 >>> URL: http://www.lyx.org/trac/changeset/31901 >>> >>> Log: >>> Uniformize Inset construction (passing Buffer * everywhere). Lots of >>> cleanup to do still... >>> >>> >> Congratulations, Abdel. I tried once to do this and failed. > > Thanks. Still, André's idea about Inset parent sounds a better long term > solution. The good side effect about my cleanup and uniformization is > that it should now be easy to replace "InsetXXX(Buffer *" with > "InsetXXX(Inset *", perhaps with a script...
For the record: It is not my idea, and a while ago I even pushed into the opposite direction of having no 'back pointers' at all. However while that made e.g. Paragraphs easy to copy, there remained a few cases (like The Caption Hack, or the necessity to pass cursors around in situation where no cursor was logically involved) that where "unsolvable" in that setup. Andre'
