Lars Gullik Bjønnes wrote: > Dekel Tsur <[EMAIL PROTECTED]> writes: > > | On Wed, Sep 18, 2002 at 09:59:56AM +0200, Lars Gullik Bj?nnes wrote: > >>>| Should "Block" alignment be better named "Justified" (as in Qt) ? >>> >>>Left justified or Right justfied? or perhaps Block justified. >>> >>>As I learned it "Justified" alone does not give full meaning. >> > | Selecting this button may not necessary give you block justification, > | as the textclass/user may change the default justification. > | So, it should be named "Default (<something here?>justified)". > > Then we should perhaps two buttons - Document Default justified, and > Block. Or a "Reset to layout default" button.
src/layout.h has: enum LyXAlignment { /// LYX_ALIGN_NONE = 0, /// LYX_ALIGN_BLOCK = 1, /// LYX_ALIGN_LEFT = 2, /// LYX_ALIGN_RIGHT = 4, /// LYX_ALIGN_CENTER = 8, /// LYX_ALIGN_LAYOUT = 16, /// LYX_ALIGN_SPECIAL = 32 }; At present, there is no such thing as "Default aligment". And in fact a paragraph always has one out of the four choices (BLOCK, LEFT, RIGHT and CENTER) and that is what shows up in the dialog now. Introducing a Default, would need quite some more recoding all over the paragraph and paragraph-parameter code. We may possibly need a "LYX_ALIGN_DEFAULT", which tells the paragraph that its alignment is not overruled by the user's settings. Or does one of the other enums in LyXAlignment refer to such a Default setting? It's a good idea to have a "Default" alignment button here, since once you've changed the alignment, the dialog doesn't tell you what was the original default. Then, a new paragraph should always produce a dialog with Default alignment checked. Cheers, Rob.