In my previous mail I meant to say "pit" and not "pid". Please excuse the
error.

On Fri, Jun 18, 2010 at 3:43 AM, Sidharth Kshatriya <sid.kshatr...@gmail.com
> wrote:

> Dear All,
>
> I have a few questions and would really appreciate if they could be
> answered
>
> If I understand correctly:
> 1. A lyx::Layout corresponds to something like a section, abstract, title
> or standard
> 2. In .lyx file a layout begins and ends like this
>
> \begin_layout standard
>
> \end_layout
> 3. Each layout is basically represented by a lyx:Paragraph
>
> Q. Given what a lyx:Layout is, then what is a lyx::InsetLayout?
>
> Q. I understand the concept of inset positions in a paragraph, e.g. a
> particular inset is on position 33 of a particular paragraph. But what
> happens in the case of InsetMath? What is the concept of positions in
> them... for example a InsetMathFrac will have 2 cells but does it any
> concept of pos()? How would you locate, say an InsetMath-derived-class in a
> nested situtation? i.e. does it just become about which cell an Inset is
> nested in or does pos() still play a role here?
>
> Here is what I think happens, please confirm if my understanding is
> correct.
>
> Note let # indicate the current cursor position, let XXX be characters and
> 13/(1/2) be a nested InsetMathFrac
>
>           13
>  XXX-----
>         1/2#
>
> Let us have Cursor class instance (pointing to # position)
>
> My understanding is that the Cursor::slices_ member would be a vector with
> CursorSlice #1 would the top level InsetText with pid=1, pos=4, cell=?? as
> the member variables of the CursorSlice
> CursorSlice #2 would be an InsetFracMath with cell=2, pid=??, pos=?? as the
> member variables of the CursorSlice
> CursorSlice #3 would be an InsetFracMath with cell=2, pid=??, pos=?? as the
> member variables of the CursorSlice
>
> Is my understanding correct? My question, restated, do things like
> position, pid have any meaning within InsetMath?
>
> Q. What is the concept of a StableDocIterator and what is the use of
> zeroing out all the inset_ pointers in each CursorSlice? How does a
> stableDocIterator do its job in the UndoElement?
>
>  Thanks for your time,
>
> Sidharth
>
> Thanks,
>
> Sidharth
> --
> Sidharth Kshatriya
> www.sidk.info
>
>


-- 
Sidharth Kshatriya
www.sidk.info

Reply via email to