Juergen Spitzmueller wrote:

> Jean-Marc Lasgouttes wrote:
>> The problem is probably (as in bugs 1952/53) that there is no way when
>> the cursor is in a tabular (top.inset() is the insettabular) to access
>> the insettext itself (the cell). InsetTabular suffers from some
>> personality disorder: it is a tabular from the outside, but an
>> insettext from the inside. I am not sure what we can do about it. The
>> special insettabular code may be OK for now, but we have to make sure
>> that we'll eventually fix it.

I have the feeling that the tabular stuff is way too complicated. It
certainly needs an overhaul later.

> I think we should consider a general restructuring of this. An insetcell
> would be a first step. But certainly not now (I'll add FIXME's
> everywhere).

I see. I would also document the argument of forceDefaultParagraphs in
insetbase.h so that misunderstandings like in the current code do not
longer happen:

/// if this inset has paragraphs should they be output all as default
/// paragraphs with "Standard" layout?
/// \p in is a cell in case of tables.
virtual bool forceDefaultParagraphs(InsetBase const * in) const
{ return false; }


Georg


Reply via email to