On Mon, Jun 14, 2010 at 09:12:51AM +0200, Vincent van Ravesteijn wrote:
> > * Conceptually what is an anchor in a Cursor?
> 
> The anchor is the starting point of a selection. If you have selected
> the word "hello" starting from the 'h' to the 'o', the anchor is
> positioned at 'h' and the cursor at 'o'.
> 
> > * What does it mean for an inset to be "locked" ?
> 
> I've no idea, but according to the comment: "/// returns whether
> changing mode during latex export is forbidden".

I think originally it was use to make complex insets behave like single
characters for cursor movement. I.e. you could 'lock' a, say, fraction
containing \frac{\partial}{\partial x} and it would act as a single unit
afterwards, i.e. the cursor would move from before the inset to behind
the inset with a single 'CursorRight' stroke, and not enter the
numerator of the fraction.

Having said that, I have no idea how 'locked' is used nowadays.

> [...]
> > * What exactly is a MathAtom. Not sure I understand how InsetMath and
> > MathAtom work together... if you could give a short
> > conceptual description that would be very useful
> 
> I don't think I can explain you any better than the comment in MathAtom.h:
> 
> "Wrapper for InsetMath * with copy-semantics
> 
> The MathAtom owns the InsetMath * and is responsible for proper cloning and
> destruction. Every InsetMath * should be put into a MathAtom after its
> creation as soon as possible."
> 
> As you can see in the code, the MathAtom class doesn't do an awful
> lot. It only clones the InsetMath* inset whenever the MathAtom is
> copied. I guess it is just a mere wrapper .. :S

Hard to believe anyone reads documentation ;-)

Andre'

Reply via email to