]> git.lyx.org Git - lyx.git/blob - src/layout.h
637a059a6164e2ecedc10a918544b9f32f9bfbcc
[lyx.git] / src / layout.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 1995-2001 The LyX Team.
9  *
10  * ====================================================== */
11
12 #ifndef LAYOUT_H
13 #define LAYOUT_H
14
15 /// The different output types
16 enum OutputType {
17         ///
18         LATEX = 1,
19         ///
20         LINUXDOC,
21         ///
22         DOCBOOK,
23         ///
24         LITERATE
25 };
26
27
28 /// The different margin types
29 enum LYX_MARGIN_TYPE {
30         ///
31         MARGIN_MANUAL = 1,
32         ///
33         MARGIN_FIRST_DYNAMIC,
34         ///
35         MARGIN_DYNAMIC,
36         ///
37         MARGIN_STATIC,
38         ///
39         MARGIN_RIGHT_ADDRESS_BOX
40 };
41
42
43 ///
44 enum LyXAlignment {
45         ///
46         LYX_ALIGN_NONE = 0,
47         ///
48         LYX_ALIGN_BLOCK = 1,
49         ///
50         LYX_ALIGN_LEFT = 2,
51         ///
52         LYX_ALIGN_RIGHT = 4,
53         ///
54         LYX_ALIGN_CENTER = 8,
55         ///
56         LYX_ALIGN_LAYOUT = 16,
57         ///
58         LYX_ALIGN_SPECIAL = 32
59 };
60
61 ///
62 inline
63 void operator|=(LyXAlignment & la1, LyXAlignment la2) {
64         la1 = static_cast<LyXAlignment>(la1 | la2);
65 }
66
67
68 /// The different LaTeX-Types
69 enum LYX_LATEX_TYPES {
70         ///
71         LATEX_PARAGRAPH = 1,
72         ///
73         LATEX_COMMAND,
74         ///
75         LATEX_ENVIRONMENT,
76         ///
77         LATEX_ITEM_ENVIRONMENT,
78         ///
79         LATEX_LIST_ENVIRONMENT
80 };
81
82
83 /// The different title types
84 enum LYX_TITLE_LATEX_TYPES {
85         ///
86         TITLE_COMMAND_AFTER = 1,
87         ///
88         TITLE_ENVIRONMENT
89 };
90
91
92 /// The different label types
93 enum LYX_LABEL_TYPES {
94         ///
95         LABEL_NO_LABEL,
96         ///
97         LABEL_MANUAL,
98         ///
99         LABEL_BIBLIO,
100         ///
101         LABEL_TOP_ENVIRONMENT,
102         ///
103         LABEL_CENTERED_TOP_ENVIRONMENT,
104
105         // the flushright labels following now must start with LABEL_STATIC
106         ///
107         LABEL_STATIC,
108         ///
109         LABEL_SENSITIVE,
110         ///
111         LABEL_COUNTER_CHAPTER,
112         ///
113         LABEL_COUNTER_SECTION,
114         ///
115         LABEL_COUNTER_SUBSECTION,
116         ///
117         LABEL_COUNTER_SUBSUBSECTION,
118         ///
119         LABEL_COUNTER_PARAGRAPH,
120         ///
121         LABEL_COUNTER_SUBPARAGRAPH,
122         ///
123         LABEL_COUNTER_ENUMI,
124         ///
125         LABEL_COUNTER_ENUMII,
126         ///
127         LABEL_COUNTER_ENUMIII,
128         ///
129         LABEL_COUNTER_ENUMIV
130 };
131
132
133 ///
134 enum LYX_END_LABEL_TYPES {
135         ///
136         END_LABEL_NO_LABEL,
137         ///
138         END_LABEL_BOX,
139         ///
140         END_LABEL_FILLED_BOX,
141         ///
142         END_LABEL_STATIC,
143         ///
144         END_LABEL_ENUM_FIRST = END_LABEL_NO_LABEL,
145         ///
146         END_LABEL_ENUM_LAST = END_LABEL_STATIC
147 };
148
149 /* Fix labels are printed flushright, manual labels flushleft.
150  * MARGIN_MANUAL and MARGIN_FIRST_DYNAMIC are *only* for LABEL_MANUAL,
151  * MARGIN_DYNAMIC and MARGIN_STATIC are *not* for LABEL_MANUAL.
152  * This seems a funny restriction, but I think other combinations are
153  * not needed, so I will not change it yet.
154  * Correction: MARGIN_FIRST_DYNAMIC also usable with LABEL_STATIC
155  */
156
157
158 /* There is a parindent and a parskip. Which one is used depends on the
159  * paragraph_separation-flag of the text-object.
160  * BUT: parindent is only thrown away, if a parskip is defined! So if you
161  * want a space between the paragraphs and a parindent at the same time,
162  * you should set parskip to zero and use topsep, parsep and bottomsep.
163  *
164  * The standard layout is an exception: its parindent is only set, if the
165  * previous paragraph is standard too. Well, this is LateX and it is good!
166  */
167
168
169 #endif