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 and ends like this
\begin_layout standard
\end_layout
Yes. At present. But of course this could change at any time, without
the internal representation changing.
3. Each layout is basically represented by a lyx:Paragraph
Each paragraph HAS a layout as one of its properties, which determines
how it is displayed and how it is output.
Q. Given what a lyx:Layout is, then what is a lyx::InsetLayout?
InsetLayouts are in a way misnamed. You might think they would be to
insets as Layouts are to paragraphs. But that would be wrong.
An InsetLayout defines how a particular type of inset operates: How it
is displayed, how it is output, and so forth. At the moment, only text
insets--- notes, footnotes, branches, etc---have InsetLayouts associated
with them, and they are all defined in stdinsets.inc. Note that, in some
cases, such as branches, not all the properties of the InsetLayout make
sense or can really be used. InsetLayouts come into their own in the
defining of custom insets, such as in endnotes.module.
InsetLayout is a good example of how the LyX code has evolved in the
last few years: Away from anything that is hardcoded and towards various
sorts of configuration files that users can edit. Of course, what would
be really nice would be to have a GUI for doing this, but no one has
gotten around to trying to do that.
I don't know about the other questions you raise.
Richard