Uwe Stöhr wrote: > + string indentation = bp_.getIndentation().asLyXCommand(); > + if (indentation == "defskip") > + //set LaTeX's default indentation of 30 pt > + indentation = "30 pt"; > > I failed to figured out how to set the default value of 30 pt when the > dialog is created. Furthermore, why is indentation == "defskip" when > nothing was ever wrote to the line edit?
I guess VSpace defaults to defskip. But why do you use a VSpace here? The indendation is a horizontal space. As long as you do not want to do fancy things, I guess a Length would be more suitable. Anyway, setting defskip to 30 pt strikes me wrong. This might be the default in the LaTeX kernel, but any class (or in fact the user) might set defskip to another value. As to the default when the dialog is created: I think the UI should contain a combo with at least the choices "Default" and "Custom", defaulting to default. The \setlength{\parindent} thing should only be output to the preamble if the user choses not "Default", i.e., if he explicitly sets a custom value for the indendation (many classes, especially for specific publishers, define their own parindent which must not be overwritten by LyX). Jürgen