#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
///
OPTARG_CODE,
///
- ENVIRONMENT_CODE,
- ///
- HFILL_CODE,
+ CELL_CODE,
///
- NEWLINE_CODE, // 35
+ NEWLINE_CODE,
///
- LINE_CODE,
+ LINE_CODE, // 35
///
BRANCH_CODE,
///
///
FLEX_CODE,
///
- VSPACE_CODE, // 40
+ VSPACE_CODE,
///
- MATHMACROARG_CODE,
+ MATHMACROARG_CODE, // 40
///
NOMENCL_CODE,
///
///
NEWPAGE_CODE,
///
- LISTINGS_CODE, // 45
+ LISTINGS_CODE,
///
- INFO_CODE,
+ INFO_CODE, // 45
///
COLLAPSABLE_CODE,
-#if 0
- ///
- THEOREM_CODE,
-#endif
};
-/** 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