>>>>> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:

Andre> On Fri, Mar 15, 2002 at 03:05:28PM +0100, Asger K. Alstrup
Andre> Nielsen wrote:
>> Maybe the set of operations that need to have this back-link in the
>> parameters is limited. However, such a structure *will* stiffle
>> change: The day that you discover that the foo-method could really
>> use a back-link, you discover that you have to change this in many
>> files, and then you resort to hacks instead.

Andre> Maybe we should talk about real LyX specific examples. In which
Andre> case do I need the backlink, if possible under the assumption
Andre> that we have a "central cursor" and user interaction happens at
Andre> the cursor position?

In InsetQuote::Latex, I need to know the current language at point in
order to know what kind of quotes are updated. Of course, a solution
would be to pass a LyXFont to Latex(), although no inset except this
particular case will ever need this info (needing to know language for
writing latex is weird). I feel that in this case the backlink from
inset to paragraph is very useful. And no, there is no cursor there.

If you want other examples, feel free to ask.

JMarc

Reply via email to