>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Lars> | It | should be a normal paragraph, but hold a label (not in
Lars> the latex | sense) inset which is specific to captions.
Lars> The problem with this is special cases. We have still have a
Lars> _lot_ of code to handle the spacial cases of sections, different
Lars> kind of labes and lists.
This could be handled by the "label" inset, no?
Lars> The best would be to have the document be a list of Insets. With
Lars> only a few insets allowed at the first level: InsetParagraph. Of
Lars> course I also see the problem with this since we then are
Lars> effectvely merging the data and the view... but we already have
Lars> that problem with insets... (actually it should be possible to
Lars> split the insets...)
Well you could do that if you wish, but I think you should make a
difference between objects that can be inserted inside text (insets)
and the top-level objects a document is made of. It would make more
sense to subclass LyXParagraph into a CaptionParagraph, although I
guess our object structure is not suited to that.
JMarc