]> git.lyx.org Git - lyx.git/blob - src/insets/InsetCode.h
Fix numbering.
[lyx.git] / src / insets / InsetCode.h
1 // -*- C++ -*-
2 /**
3  * \file InsetCode.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Alejandro Aguilar Sierra
8  * \author Jürgen Vigna
9  * \author Lars Gullik Bjønnes
10  * \author Matthias Ettrich
11  *
12  * Full author contact details are available in file CREDITS.
13  */
14
15 #ifndef INSETCODE_H
16 #define INSETCODE_H
17
18 #include <string>
19
20 namespace lyx {
21
22 /** This is not quite the correct place for this enum. I think
23     the correct would be to let each subclass of Inset declare
24     its own enum code. Actually the notion of an InsetCode
25     should be avoided, but I am not sure how this could be done
26     in a cleaner way. */
27 enum InsetCode {
28         ///
29         NO_CODE, // 0
30         ///
31         TOC_CODE,  // do these insets really need a code? (ale)
32         ///
33         QUOTE_CODE,
34         ///
35         MARK_CODE,
36         ///
37         REF_CODE,
38         ///
39         HYPERLINK_CODE, // 5
40         ///
41         SEPARATOR_CODE,
42         ///
43         ENDING_CODE,
44         ///
45         LABEL_CODE,
46         ///
47         NOTE_CODE,
48         ///
49         ACCENT_CODE, // 10
50         ///
51         MATH_CODE,
52         ///
53         INDEX_CODE,
54         ///
55         INCLUDE_CODE,
56         ///
57         GRAPHICS_CODE,
58         ///
59         BIBITEM_CODE, // 15
60         ///
61         BIBTEX_CODE,
62         ///
63         TEXT_CODE,
64         ///
65         ERT_CODE,
66         ///
67         FOOT_CODE,
68         ///
69         MARGIN_CODE,  // 20
70         ///
71         FLOAT_CODE,
72         ///
73         WRAP_CODE,
74         ///
75         SPACE_CODE,
76         ///
77         SPECIALCHAR_CODE,
78         ///
79         TABULAR_CODE, // 25
80         ///
81         EXTERNAL_CODE,
82         ///
83         CAPTION_CODE,
84         ///
85         MATHMACRO_CODE,
86         ///
87         CITE_CODE,
88         ///
89         FLOAT_LIST_CODE, // 30
90         ///
91         INDEX_PRINT_CODE,
92         ///
93         OPTARG_CODE,
94         ///
95         ENVIRONMENT_CODE,
96         ///
97         HFILL_CODE,
98         ///
99         NEWLINE_CODE, // 35
100         ///
101         LINE_CODE,
102         ///
103         BRANCH_CODE,
104         ///
105         BOX_CODE,
106         ///
107         FLEX_CODE,
108         ///
109         VSPACE_CODE, // 40
110         ///
111         MATHMACROARG_CODE,
112         ///
113         NOMENCL_CODE,
114         ///
115         NOMENCL_PRINT_CODE,
116         ///
117         NEWPAGE_CODE,
118         ///
119         LISTINGS_CODE, // 45
120         ///
121         INFO_CODE,
122         ///
123         COLLAPSABLE_CODE,
124 #if 0
125         ///
126         THEOREM_CODE,
127 #endif
128 };
129
130 /** returns the InsetCode corresponding to the \c name.
131 *   Eg, insetCode("branch") == BRANCH_CODE
132 *   Implemented in 'Inset.cpp'.
133 */
134 InsetCode insetCode(std::string const & name);
135 /// the other way
136 std::string insetName(InsetCode);
137
138 } // namespace lyx
139
140 #endif