Am Sonntag, 26. November 2006 04:09 schrieb Bo Peng: > Anyway, using pagebreak and its derived class as an example, it is > easy to generalize the idea and implement a bunch of simple insets. > The problem is that, as JMarc pointed out, we should focus on what > insets do, not on individual latex commands. For example, we may > implement one page break inset, but with options to clear page, > although I have no idea how to do that cleanly.
That is very simple, and I outlined this already: Inherit from InsetCommand, and implement a dialog that lets you choose between "Page break with image flush", "Page break on even page", "page break without image flush" etc. This dialog would simply switch the command name in InsetCommandParams. We would need to overide the write() and read() methods, because we don't use the InsetCommand syntax, but if we do this we can implement this at any time without a file format change. Therefore I suggest to put this in bugzilla so that it does not get forgotten, but concentrate on bug fixing for now. Georg
