On Monday 18 June 2001 08:18, Juergen Vigna wrote:
> On 15-Jun-2001 Angus Leeming wrote:
>
> > Well, the cursor knows it's paragraph, so we can call LyXCursor::par() to
> > obtain this info.
>
> LyXCursor is stateless!!! You have to get the right LyXCuror-struct to have
> the values filled out with the stuff you want!
Oh, purlease!
And while we're at it. Could you explain why we need more than one cursor
anyway. This code (lots and lots of the code base actually) could do with a
not-so-brief explanation of the rationale behind it. This goes for the
frontend too :-(
> > I put the signal in the three
> > LyXText::SetCursorXXX(BufferView * bv, xxxx)
> > functions and it appears to work, but that was only because I didn't know
> > what I was doing.
> #:O)
> Well it's easier for me I rewrote a lot of that stuff to make InsetText
> work without hacks!
Well I'm in a blissful state of ignorance! Actually, I'm in the happy
position of understanding how some of the periphery works but next to nothing
about the core!
Can I conclude from your statement therefore that the insets are clean but
the kernel is not? Is this only because the kernel is still to be cleaned?
I'd quite like to learn how a modern document processor (TM?) works, but at
the moment I must conclude that it's all done by Black Magic!
Angus