At ooocon, ssa demoed a XUL based solution to dialog layout, which was
pretty nifty, but would require pulling in a large XUL implementation
from OOo, reimplemention of dialogs in XUL and moving the dialog logic
into the dialogs re-implemented in javascript. A long term project.

So as an alternative suggestion I used a springlayout implementation to
provide a layout system for dialogs within the current dialog framework
which just requires adding extra data to the dialog resources to specify
which controls are below/left/right/above and by how much relative to
another control or surrounding dialog.

The advantage is that dialogs could be layout enabled incrementally
without any other changes to program logic.

Implementation, sample resource change for the zoom dialog and some
screenshots available at
http://www.openoffice.org/issues/show_bug.cgi?id=56304

Additionally implementing a preferredsize for controls should allow the
layout to assign sizes to the contained controls to shrink them to the
minimum size required to just show their contents without the additional
space currently required to display the largest possible length of
translated string that they could contain.

C.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to