]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCode.h
more latin1..utf8 schanges. all of src/* should be utf8 now
[features.git] / src / insets / InsetCode.h
index 14b6cfa51439c70399dbf0ca35fbbebb7ec4621e..6d48d1235d8382a40efd5c0e2a7c094bff278e72 100644 (file)
@@ -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.
 #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
@@ -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