2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2001 The LyX Team.
10 * ====================================================== */
15 /// The different output types
28 /// The different margin types
29 enum LYX_MARGIN_TYPE {
39 MARGIN_RIGHT_ADDRESS_BOX
56 LYX_ALIGN_LAYOUT = 16,
58 LYX_ALIGN_SPECIAL = 32
63 void operator|=(LyXAlignment & la1, LyXAlignment la2) {
64 la1 = static_cast<LyXAlignment>(la1 | la2);
68 /// The different LaTeX-Types
69 enum LYX_LATEX_TYPES {
77 LATEX_ITEM_ENVIRONMENT,
79 LATEX_LIST_ENVIRONMENT
83 /// The different label types
84 enum LYX_LABEL_TYPES {
92 LABEL_TOP_ENVIRONMENT,
94 LABEL_CENTERED_TOP_ENVIRONMENT,
96 // the flushright labels following now must start with LABEL_STATIC
102 LABEL_COUNTER_CHAPTER,
104 LABEL_COUNTER_SECTION,
106 LABEL_COUNTER_SUBSECTION,
108 LABEL_COUNTER_SUBSUBSECTION,
110 LABEL_COUNTER_PARAGRAPH,
112 LABEL_COUNTER_SUBPARAGRAPH,
116 LABEL_COUNTER_ENUMII,
118 LABEL_COUNTER_ENUMIII,
125 enum LYX_END_LABEL_TYPES {
131 END_LABEL_FILLED_BOX,
135 END_LABEL_ENUM_FIRST = END_LABEL_NO_LABEL,
137 END_LABEL_ENUM_LAST = END_LABEL_STATIC
140 /* Fix labels are printed flushright, manual labels flushleft.
141 * MARGIN_MANUAL and MARGIN_FIRST_DYNAMIC are *only* for LABEL_MANUAL,
142 * MARGIN_DYNAMIC and MARGIN_STATIC are *not* for LABEL_MANUAL.
143 * This seems a funny restriction, but I think other combinations are
144 * not needed, so I will not change it yet.
145 * Correction: MARGIN_FIRST_DYNAMIC also usable with LABEL_STATIC
149 /* There is a parindent and a parskip. Which one is used depends on the
150 * paragraph_separation-flag of the text-object.
151 * BUT: parindent is only thrown away, if a parskip is defined! So if you
152 * want a space between the paragraphs and a parindent at the same time,
153 * you should set parskip to zero and use topsep, parsep and bottomsep.
155 * The standard layout is an exception: its parindent is only set, if the
156 * previous paragraph is standard too. Well, this is LateX and it is good!