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 * ====================================================== */
17 LYX_LAYOUT_DEFAULT = 99
21 /// The different output types
34 /// The different margin types
35 enum LYX_MARGIN_TYPE {
45 MARGIN_RIGHT_ADDRESS_BOX
62 LYX_ALIGN_LAYOUT = 16,
64 LYX_ALIGN_SPECIAL = 32
69 void operator|=(LyXAlignment & la1, LyXAlignment la2) {
70 la1 = static_cast<LyXAlignment>(la1 | la2);
74 /// The different LaTeX-Types
75 enum LYX_LATEX_TYPES {
83 LATEX_ITEM_ENVIRONMENT,
85 LATEX_LIST_ENVIRONMENT
89 /// The different label types
90 enum LYX_LABEL_TYPES {
98 LABEL_TOP_ENVIRONMENT,
100 LABEL_CENTERED_TOP_ENVIRONMENT,
102 // the flushright labels following now must start with LABEL_STATIC
108 LABEL_COUNTER_CHAPTER,
110 LABEL_COUNTER_SECTION,
112 LABEL_COUNTER_SUBSECTION,
114 LABEL_COUNTER_SUBSUBSECTION,
116 LABEL_COUNTER_PARAGRAPH,
118 LABEL_COUNTER_SUBPARAGRAPH,
122 LABEL_COUNTER_ENUMII,
124 LABEL_COUNTER_ENUMIII,
131 enum LYX_END_LABEL_TYPES {
137 END_LABEL_FILLED_BOX,
141 END_LABEL_ENUM_FIRST = END_LABEL_NO_LABEL,
143 END_LABEL_ENUM_LAST = END_LABEL_STATIC
146 /* Fix labels are printed flushright, manual labels flushleft.
147 * MARGIN_MANUAL and MARGIN_FIRST_DYNAMIC are *only* for LABEL_MANUAL,
148 * MARGIN_DYNAMIC and MARGIN_STATIC are *not* for LABEL_MANUAL.
149 * This seems a funny restriction, but I think other combinations are
150 * not needed, so I will not change it yet.
151 * Correction: MARGIN_FIRST_DYNAMIC also usable with LABEL_STATIC
155 /* There is a parindent and a parskip. Which one is used depends on the
156 * paragraph_separation-flag of the text-object.
157 * BUT: parindent is only thrown away, if a parskip is defined! So if you
158 * want a space between the paragraphs and a parindent at the same time,
159 * you should set parskip to zero and use topsep, parsep and bottomsep.
161 * The standard layout is an exception: its parindent is only set, if the
162 * previous paragraph is standard too. Well, this is LateX and it is good!