On Fri, 2005-03-11 at 10:28, Jean-Marc Lasgouttes wrote:
> Concerning the font sizes: the 10|11|12 value is only the default for
> basic classes, and I am not sure actually why the xforms and qt
> frontends use it. Later in the code, they initialize the combox with
> the value of LyXTextClass::opt_fontsize(), which is the real list of
> sizes handled by the textclass. I do not see where your code does
> that. Did I miss something?
I hadn't noticed that those values were later read in from the backend.

It appears that the backend passes a "one|two|three" type string, which
is then parsed by the frontend (since only xforms takes that kind of
string for a combo natively), put into the combobox, and the same
user-visible strings are passed back.

1.  Shouldn't the backend be giving me a STL list-type structure? 
Parsing a string seems a little bit of a roundabout way.

2. Are these strings translated in the backend?  Or do they not need to
be because they're always numbers?

John

Reply via email to