Re: [tutorial] Questions related to Layouts & Insets

2010-06-18 Thread Vincent van Ravesteijn
> > The answer to my 2nd question I was able to figure out. > Yes, pos() is relevant for InsetMath-derived objects too. See listing for > nextAtom below the listing for nextInset is provided just for context. > > According to me pit() is not relevant for InsetMath-derived objects > Note that

Re: [tutorial] Questions related to Layouts & Insets

2010-06-17 Thread Sidharth Kshatriya
The answer to my 2nd question I was able to figure out. Yes, pos() is relevant for InsetMath-derived objects too. See listing for nextAtom below the listing for nextInset is provided just for context. According to me pit() is not relevant for InsetMath-derived objects = Inset

Re: [tutorial] Questions related to Layouts & Insets

2010-06-17 Thread Richard Heck
On 06/17/2010 06:13 PM, Sidharth Kshatriya wrote: 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? The inset_ pointers have to be zeroed out here, because

Re: [tutorial] Questions related to Layouts & Insets

2010-06-17 Thread Richard Heck
On 06/17/2010 06:13 PM, Sidharth Kshatriya 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 Yes. 2. In .lyx file a layout begins

Re: [tutorial] Questions related to Layouts & Insets

2010-06-17 Thread Sidharth Kshatriya
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 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

[tutorial] Questions related to Layouts & Insets

2010-06-17 Thread Sidharth Kshatriya
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 l