>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Lars> IMO your view of insets are then a bit too limited.
My view is that a document is a sequence of paragraphs. Until this
changes, your nice new section inset will have to be inserted into an
empty paragraph. What happens when the paragraph is not empty? How do
you prevent that?
Then, will people need to do insert->Section to begin a section? This
does not look very intuitive... Or do you plan to change a paragraph
into an inset when the current layout is changed from Standard to
Section?
IMO you see this problem from a purely technical point of view, but
the big picture is wrong. I do not see what the gains of your scheme
are (expect the "insets are good" mantra).
Lars> Exactly! This is special case for the _uncommon_ case and it
Lars> makes the logic in LyXText and LyXParagraph a lot harder and a
Lars> lot more complex than it need to be.
Not if all this code was moved into specialized label insets (I agree
that the current code is awful).
Lars> Something similar to this is my intention, but to wrap it all up
Lars> in a inset.
And what's the gain?
JMarc