X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetCode.h;h=6d48d1235d8382a40efd5c0e2a7c094bff278e72;hb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;hp=34801c1bdb359cdb862c831c9e22d0a91ee976e6;hpb=fb306e4a90297141bd4741e990f0bf9b8b913df5;p=features.git diff --git a/src/insets/InsetCode.h b/src/insets/InsetCode.h index 34801c1bdb..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. @@ -17,11 +17,6 @@ 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 @@ -34,9 +29,7 @@ enum InsetCode { /// REF_CODE, /// - URL_CODE, // 5 - /// - HTMLURL_CODE, + HYPERLINK_CODE, // 5 /// SEPARATOR_CODE, /// @@ -44,9 +37,9 @@ enum InsetCode { /// LABEL_CODE, /// - NOTE_CODE, // 10 + NOTE_CODE, /// - ACCENT_CODE, + ACCENT_CODE, // 10 /// MATH_CODE, /// @@ -54,9 +47,9 @@ enum InsetCode { /// INCLUDE_CODE, /// - GRAPHICS_CODE, // 15 + GRAPHICS_CODE, /// - BIBITEM_CODE, + BIBITEM_CODE, // 15 /// BIBTEX_CODE, /// @@ -64,47 +57,41 @@ enum InsetCode { /// 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, /// @@ -112,17 +99,19 @@ enum InsetCode { /// VSPACE_CODE, /// - MATHMACROARG_CODE, + MATHMACROARG_CODE, // 40 /// - NOMENCL_CODE, // 45 + NOMENCL_CODE, /// NOMENCL_PRINT_CODE, /// - PAGEBREAK_CODE, + NEWPAGE_CODE, /// LISTINGS_CODE, /// - INFO_CODE, + INFO_CODE, // 45 + /// + COLLAPSABLE_CODE, }; } // namespace lyx