On Friday 19 October 2001 12:39, Juergen Spitzmueller wrote:
> Hi, 
> 
> The attached patch adds a value choice for Default Skip 
> (Document->Class) and rearranges the class tab a bit.
> Unfortunately, there's one unsolved problem with the update of the 
> input field. Angus, maybe you can help me here if you find the time:
> 
> - If I insert a value, say "2" and chose "cm", after closing and 
> reopening, "2cm" is in the input field.

Try the patch attached.

> -Furthermore "cm" (and probably "inch" for USPaper) should be set as 
> default.

Yes. When you set the choice to "Length" and the input is empty. So you need 
to do it in the input (as opposed to the update routine.) The code to do so 
is in the patch with the fix to your above problem. You should move this to 
the right place (and probably not use the params to set it, but the contents 
of the widgets).

> 
> I tried to fix this with updateWidgetsFromLengthString (as it is in the 
> Paper Margin fields), but I failed.
> 
> The patch features a few more small cosmetics to get a consistent look 
> and feel:
> 
> - Changed the design of the value choices in Graphics and Minipage to 
> that of Document->Paper to have an identical look.
> - In Document->Class, the Default Skip and Spacing input fields are 
> disabled unless "Other" or "Length" is chosen. That happened to unify 
> the behaviour (which is that way in the other dialogs).
> 
> I hope the patch is of some interest.

Of course!
Have a good weekend.
Angus

document.diff.gz

Reply via email to