Martin Vermeer wrote:
On Mon, Mar 24, 2008 at 12:31:15PM +0000, [EMAIL PROTECTED] wrote:
Author: rgheck
Date: Mon Mar 24 13:31:07 2008
New Revision: 23913
URL: http://www.lyx.org/trac/changeset/23913
Log:
Add support for document-local layout information. GUI is to follow.
That's a tall order to do generally and safely.
Well, I think it's OK. It's essentially equivalent to writing a module
into the document header. So any problems we find here we'd have found
elsewhere, too, I believe.
For charstyles, I suggest a mechanism whereby the cursor points
to an existing lyxtext position with a set of character
attributes, and say "put these into a local layout". I had such
a thing working at one point.
That would be welcome, to be sure.
This is very much an "advanced feature", and I'm thinking to leave it
GUI-less for a while, as I play around with it. I've already got a
static TextClass::validate() routine going, though, so we can at least
make sure that people add valid layout information. Of course, if you
add something, use it, and then remove it, you'll have a (minor)
problem, but that's possible other ways already.
If you've got other thoughts, I'd love to hear them.
Richard