X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetCode.h;h=3633da727ae45e684ebe54abed293d33ff0962d8;hb=85b36769cb38d5b9a1f0f52999d23c68a9fb9759;hp=14b6cfa51439c70399dbf0ca35fbbebb7ec4621e;hpb=3431ea875346e963d6845e0dd1e467caee4a3e59;p=lyx.git diff --git a/src/insets/InsetCode.h b/src/insets/InsetCode.h index 14b6cfa514..3633da727a 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 @@ -90,15 +83,13 @@ enum InsetCode { /// INDEX_PRINT_CODE, /// - OPTARG_CODE, - /// - ENVIRONMENT_CODE, + ARG_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, + MATH_MACROARG_CODE, // 40 /// NOMENCL_CODE, /// @@ -116,25 +107,139 @@ enum InsetCode { /// NEWPAGE_CODE, /// - LISTINGS_CODE, // 45 + LISTINGS_CODE, /// - INFO_CODE, + INFO_CODE, // 45 /// - COLLAPSABLE_CODE, -#if 0 + COLLAPSIBLE_CODE, /// - THEOREM_CODE, -#endif + PHANTOM_CODE, + /// + MATH_AMSARRAY_CODE, + /// + MATH_ARRAY_CODE, + /// + MATH_BIG_CODE, // 50 + /// + MATH_BOLDSYMBOL_CODE, + /// + MATH_BOX_CODE, + /// + MATH_BRACE_CODE, + /// + MATH_CANCEL_CODE, + /// + MATH_CANCELTO_CODE, // 55 + /// + MATH_CASES_CODE, + /// + MATH_CHAR_CODE, + /// + MATH_COLOR_CODE, + /// + MATH_COMMENT_CODE, + /// + MATH_DECORATION_CODE, // 60 + /// + MATH_DELIM_CODE, + /// + MATH_DIFF_CODE, + /// + MATH_DOTS_CODE, + /// + MATH_ENSUREMATH_CODE, + /// + MATH_ENV_CODE, // 65 + /// + MATH_EXFUNC_CODE, + /// + MATH_EXINT_CODE, + /// + MATH_FONT_CODE, + /// + MATH_FONTOLD_CODE, + /// + MATH_FRAC_CODE, // 70 + /// + MATH_GRID_CODE, + /// + MATH_HULL_CODE, + /// + MATH_KERN_CODE, + /// + MATH_LEFTEQN_CODE, + /// + MATH_LIM_CODE, // 75 + /// + MATH_MATRIX_CODE, + /// + MATH_MBOX_CODE, + /// + MATH_NEST_CODE, + /// + MATH_NUMBER_CODE, + /// + MATH_OVERSET_CODE, // 80 + /// + MATH_PAR_CODE, + /// + MATH_PHANTOM_CODE, + /// + MATH_REF_CODE, + /// + MATH_ROOT_CODE, + /// + MATH_SCRIPT_CODE, // 85 + /// + MATH_SIZE_CODE, + /// + MATH_SPACE_CODE, + /// + MATH_SPECIALCHAR_CODE, + /// + MATH_SPLIT_CODE, + /// + MATH_SQRT_CODE, // 90 + /// + MATH_STACKREL_CODE, + /// + MATH_STRING_CODE, + /// + MATH_SUBSTACK_CODE, + /// + MATH_SYMBOL_CODE, + /// + MATH_TABULAR_CODE, // 95 + /// + MATH_UNDERSET_CODE, + /// + MATH_UNKNOWN_CODE, + /// + MATH_XARROW_CODE, + /// + MATH_XYMATRIX_CODE, + /// + MATH_MACRO_CODE, // 100 + /// + ARGUMENT_PROXY_CODE, + /// + PREVIEW_CODE, + /// + MATH_DIAGRAM_CODE, + /// + SCRIPT_CODE, + /// + IPA_CODE, // 105 + /// + IPACHAR_CODE, + /// + IPADECO_CODE, + /// + MATH_CLASS_CODE, + /// + INSET_CODE_SIZE }; -/** 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