4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Jean-Marc Lasgouttes
9 * Full author contact details are available in file CREDITS.
15 // Do not include anything here
19 /* The list of possible flags, that can be combined.
20 * Some flags that should logically be here (e.g.,
21 * CanBreakBefore), do not exist. This is because the need has not
22 * been identitfied yet.
24 * Priorities when before/after disagree:
25 * AlwaysBreak* > NoBreak* > Break* or CanBreak*.
28 // Do not break before or after this element, except if really
29 // needed (between NoBreak* and CanBreak*).
31 // break row before this element if the row is not empty
33 // Avoid breaking row before this element
34 NoBreakBefore = 1 << 1,
35 // force new (maybe empty) row after this element
36 AlwaysBreakAfter = 1 << 2,
37 // break row after this element if there are more elements
39 // break row whenever needed after this element
40 CanBreakAfter = 1 << 4,
41 // Avoid breaking row after this element
42 NoBreakAfter = 1 << 5,
43 // The contents of the row may be broken in two (e.g. string)
44 CanBreakInside = 1 << 6,
45 // specify an alignment (left, right) for a display element
46 // (default is center)
49 // A display element breaks row at both ends
50 Display = BreakBefore | BreakAfter,
51 // Flags that concern breaking after element
52 AfterFlags = AlwaysBreakAfter | BreakAfter | CanBreakAfter | NoBreakAfter