X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetCode.h;h=6d48d1235d8382a40efd5c0e2a7c094bff278e72;hb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;hp=14b6cfa51439c70399dbf0ca35fbbebb7ec4621e;hpb=3431ea875346e963d6845e0dd1e467caee4a3e59;p=features.git diff --git a/src/insets/InsetCode.h b/src/insets/InsetCode.h index 14b6cfa514..6d48d1235d 100644 --- a/src/insets/InsetCode.h +++ b/src/insets/InsetCode.h @@ -5,8 +5,8 @@ * Licence details can be found in the file COPYING. * * \author Alejandro Aguilar Sierra - * \author Jürgen Vigna - * \author Lars Gullik Bjønnes + * \author Jürgen Vigna + * \author Lars Gullik Bjønnes * \author Matthias Ettrich * * Full author contact details are available in file CREDITS. @@ -15,15 +15,8 @@ #ifndef INSETCODE_H #define INSETCODE_H -#include - 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 @@ -92,13 +85,11 @@ enum InsetCode { /// OPTARG_CODE, /// - ENVIRONMENT_CODE, - /// - HFILL_CODE, + CELL_CODE, /// - NEWLINE_CODE, // 35 + NEWLINE_CODE, /// - LINE_CODE, + LINE_CODE, // 35 /// BRANCH_CODE, /// @@ -106,9 +97,9 @@ enum InsetCode { /// FLEX_CODE, /// - VSPACE_CODE, // 40 + VSPACE_CODE, /// - MATHMACROARG_CODE, + MATHMACROARG_CODE, // 40 /// NOMENCL_CODE, /// @@ -116,25 +107,13 @@ enum InsetCode { /// 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