On Friday 15 June 2001 15:02, Juergen Vigna wrote:
> On 15-Jun-2001 Angus Leeming wrote:
> 
> > So, when the cursor is moved into a new paragraph, either by the arrow 
keys 
> > or the mouse, which bit of code do we end up in where I can emit a signal 
> > changedParagraph().
> 
> [This is not connected to insets, but to paragraph therefor snipped t_l_i 
text]
> 
> Lars please correct me if I'm wrong!
> 
> Well we have a paragraph-id for every paragraph, be it inside an inset or
> outside which is uniq! I'm not sure if we have a function returning us the
> actual paragraph-pointer (please confirm this Lars), but if not it should be
> quite easy to realize one.

Well, the cursor knows it's paragraph, so we can call LyXCursor::par() to 
obtain this info.

> Now knowing the above and that every cursor movement (inside a paragraph),
> should call the BufferView::fitCursor(LyXText *), so I guess if you call
> the signal in that function it may happen to work.

Thanks, Jürgen.

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. 

Angus

Reply via email to