On Tue, Aug 26, 2003 at 06:58:04PM +0100, John Levon spake thusly: > > Inset::display() seems to have gone from non-mathed insets, but there's > still some references around. What's the status ?
Didn't look at math at all. Good question... seems to me that math handles its own display() unconnected to the core. Am I right? > How are display math insets etc. centred these days ? > > Hmm, I see "center_indent" : > > 60 InsetCommand::metrics(mi, dim); > 61 center_indent_ = (mi.base.textwidth - dim.wid) / 2; > 62 dim.wid = mi.base.textwidth; > 63 dim_ = dim; > > Can I say "ouch" ? hitInset() isn't going to like the inset claiming it > takes up the whole row, I don't think. Can we still place the cursor > next to such a centred inset without problems ? I suspect not. You mean insetHit? That's in insettabular. Unaffected I think. Then there is checkInsetHit in text3. Yes, there could be trouble there... if a textinset would be centered. The only insets containing center_indent_ are insetbibtex, insetfloatlist, insetinclude, insetindex and insettoc ... and insettheorem. Yes, I suppose we'll have some fun by the time this is enabled :-) > regards > john > -- > Khendon's Law: > If the same point is made twice by the same person, the thread is over. > - Martin
pgp00000.pgp
Description: PGP signature