Am 03.03.2008 um 18:03 schrieb Richard Heck:
Stefan Schimanski wrote:
While doing these changes, it would be not too hard to add some
additional information to the layout. It would be interesting IMO
to display (in grey) the document class model right to the layout
name where the layout comes from. E.g. next to Theorem a grey "AMS"
would be written.
I'm not sure what you mean here. If it's really the document class
we want to display, then that's the same for everything in the
layout. If it's the file where the layout is defined, then some
paragraphs will come from e.g. stdsections.inc; some from the main
*.layout file; and some from modules; but I don't know if the
ordinary user will care. And some will originate in one place and be
modified in another, or even be deleted and then totally redefined.
So I'm not sure there's any clear sense to "where things come from".
And at present, we don't have this information stored in the
DocumentClass object. Of course, it could be put there.
It was just an idea if we had useful information like that available.
The reason behind it is that I would like to see some more order in
the layout list. Some kind of layout section/categories or so would be
nice, separated visually by a separator in the list. E.g. the theorem
environments in one section, list like environments in another, and
documents properties like author, date, institution in yet another. No
idea if this is feasible with the information we have about layouts.
But the general idea of making the information displayed here more
flexible is a good one. And no matter what you do here, I'm glad
you've fixed the "translated strings" problem in
GuiLayoutBox::selected().
If you have a translated lyx around, please test whether my changes
really work. I was changing that, but couldn't test it myself yet.
Stefan