Abdelrazak Younes wrote:

> Why is it that we use LCursor::goUpDown() to go down within a formula?
> Logically, we should know where we are within the formula and we should
> be able to descend inside the formula using that information.

How would that work? The only position information that is available are
screen coordinates. Only the logical structure is known in mathed, e.g. in
$\frac{1}{2}$ we have three insets, frac, 1 and 2, and 1 and 2 are the
first and second cell of frac, respectively. In normal fracs 2 is below 1,
but if you have a nicefrac, 2 is right of 1. Of course we could extend the
insets to know this information, but that would essentially be a duplicate
of the metrics calculation. Therefore it is not a bad idea IMO that screen
coordinates are used for navigating formulas.

> There 
> should be no need to use screen oriented information at all within a
> formula.

Well, if you can show us how this can be done without duplicating the
metrics stuff I am all ears, but I don't see why it is bad to use screen
oriented information.


Georg

Reply via email to