Jean-Marc Lasgouttes wrote: >>>>>>"R" == R Lahaye <[EMAIL PROTECTED]> writes: >>>>> > > R> Jean-Marc Lasgouttes wrote: > >>>>>>>>"R" == R Lahaye <[EMAIL PROTECTED]> writes: >>>>>>> > R> Also, I still don't see how the dialog can find out about the > R> paragraph's original default. Or am I missing something here? > >>>It has to find out the layout of the paragraph and find it there. >> > > R> Yes, I figured that :). > > Sorry:) > > R> But how can I poll this info in > R> FormParagraph.C::FormParagraph::update() ? > > Look at ControlParagraph::setParams(): you could add a member > defaultalign_ to ControlParagraph and set it there. Then you add an > accessor defaultalign() to ControlParagraph. > > Does it sound simple enough?
Jean-Marc, Thanks so much! That's exactly the information I needed. Please have a look at attached patch to ControlParagraph.[Ch]; would you agree with this way of doing it? (I renamed "alignpos_" to "alignpossible_" on the fly, cause it's a better name :) ). The new dialog then looks as attached, where the button of the default alignment gets an appendix "( default )". This is all done in FormParagraph.C, which is not attached. BTW: I've got already a dozen dialogs redesigned here in my tree. When would it be suitable to send those to the list? Regards, Rob.
ControlParagraph.diff.gz
Description: application/gzip