On Tue, Nov 11, 2003 at 02:55:00PM +0200, Martin Vermeer wrote:
> On Tue, Nov 11, 2003 at 11:17:39AM +0100, Andre Poenitz spake thusly:
> 
> ...
>  
> > > Where should the conversion LFUN_INSERT_LABEL -> LFUN_INSET_INSERT
> > > take place?
> > 
> > I'd just duplicate the code in factory.C. I.e:
> 
> Yes, did that. Next problem:
> 
> 1) The label appears, but without label text.
> 
> 2) Clicking on it brings up the label dialog; entering a label string
> and pressing OK produces
> 
> 
> 
> LyXFunc::dispatch: cmd:  action: 236 arg: 'label LatexCommand {abc}
> \end_inset
> ' x: 0 y: 0
> 
> LCursor::dispatch: 
> 
> trying to dispatch to main text 0x08b004c0
> LyXText::dispatch: cmd:  action: 236 arg: 'label LatexCommand {abc}
> \end_inset
> ' x: 0 y: 0
>    result: 0
> ### NOT DISPATCHED BY Cursor::dispatch() ###

[That's ok for 'global stuff' btw. INSET_APPLY does not necessarily go
to the cursor tip, so considering it 'global' should be ok.]

> BufferView::Pimpl::fitCursor.
> 
> 
> 
> Action 236 is LFUN_INSET_APPLY, which appears neither in text3.C nor
> in factory.C. 

Is the LFUN_INSET_APPLY handler in BufferView_pimpl::dispatch handling it? 

> Ehhh, what next? ;-)

Send patch.

Andre'

PS: I'll be off in twenty minutes for a day or so.

Reply via email to