There was some discussion here on how to get a "dummy" layout into a file.
Well I just discovered this code maybe this is responsible?

// Gets a layout (style) name from layout number and textclass number
string const &
LyXTextClassList::NameOfLayout(textclass_type textclass,
                          layout_type layout) const
{
        static string const dummy("dummy");
        classlist[textclass].load();
        if (layout < classlist[textclass].numLayouts())
                return classlist[textclass][layout].name();
        return dummy;
}

And one other question couldn't we just have "Standard" layout defaulting
to layout-no == 0? This would simplify things (when for example I want to
force Standard layout on a paragraph how can I do this now?) IMO.

Also Standard should IMO be forced to be in all possible textclasses at least
I cannot see a textclass without "default" paragraph textclass (I call it
'Standard' but it name could be another in some other textclasses I just don't
care about the name it HAS to be no == 0). We could do this by forcing a
"Default Layout" in the textclasses. But well we don't have this now but I
have to "force" a "Standard" layout on all paragraphs inside "normal" tabular
cells (without width!).

Please give me enlightment!

          Jug

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Italienallee 13/N       Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen           Web:     http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

"Being disintegrated makes me ve-ry an-gry!" <huff, huff>

Reply via email to