#ifndef INSETCODE_H
#define INSETCODE_H
-#include <string>
-
namespace lyx {
-/** This is not quite the correct place for this enum. I think
- the correct would be to let each subclass of Inset declare
- its own enum code. Actually the notion of an InsetCode
- should be avoided, but I am not sure how this could be done
- in a cleaner way. */
enum InsetCode {
///
NO_CODE, // 0
///
LABEL_CODE,
///
- NOTE_CODE, // 10
+ NOTE_CODE,
///
- ACCENT_CODE,
+ ACCENT_CODE, // 10
///
MATH_CODE,
///
///
INCLUDE_CODE,
///
- GRAPHICS_CODE, // 15
+ GRAPHICS_CODE,
///
- BIBITEM_CODE,
+ BIBITEM_CODE, // 15
///
BIBTEX_CODE,
///
///
ERT_CODE,
///
- FOOT_CODE, // 20
+ FOOT_CODE,
///
- MARGIN_CODE,
+ MARGIN_CODE, // 20
///
FLOAT_CODE,
///
WRAP_CODE,
///
- SPACE_CODE, // 25
+ SPACE_CODE,
///
SPECIALCHAR_CODE,
///
- TABULAR_CODE,
+ TABULAR_CODE, // 25
///
EXTERNAL_CODE,
-#if 0
- ///
- THEOREM_CODE,
-#endif
///
CAPTION_CODE,
///
- MATHMACRO_CODE, // 30
+ MATHMACRO_CODE,
///
CITE_CODE,
///
- FLOAT_LIST_CODE,
+ FLOAT_LIST_CODE, // 30
///
INDEX_PRINT_CODE,
///
- OPTARG_CODE, // 35
+ OPTARG_CODE,
///
- ENVIRONMENT_CODE,
- ///
- HFILL_CODE,
+ CELL_CODE,
///
NEWLINE_CODE,
///
- LINE_CODE,
+ LINE_CODE, // 35
///
- BRANCH_CODE, // 40
+ BRANCH_CODE,
///
BOX_CODE,
///
///
VSPACE_CODE,
///
- MATHMACROARG_CODE,
+ MATHMACROARG_CODE, // 40
///
- NOMENCL_CODE, // 45
+ NOMENCL_CODE,
///
NOMENCL_PRINT_CODE,
///
///
LISTINGS_CODE,
///
- INFO_CODE,
+ INFO_CODE, // 45
///
- COLLAPSABLE_CODE, // 50
+ COLLAPSABLE_CODE,
};
-/** returns the InsetCode corresponding to the \c name.
-* Eg, insetCode("branch") == BRANCH_CODE
-* Implemented in 'Inset.cpp'.
-*/
-InsetCode insetCode(std::string const & name);
-/// the other way
-std::string insetName(InsetCode);
-
} // namespace lyx
#endif