]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCode.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetCode.h
index 34801c1bdb359cdb862c831c9e22d0a91ee976e6..6a3f1bc15f1b06a33952efcf6a3c101a77a447d1 100644 (file)
@@ -15,6 +15,8 @@
 #ifndef INSETCODE_H
 #define INSETCODE_H
 
+#include <string>
+
 namespace lyx {
 
 /** This is not quite the correct place for this enum. I think
@@ -34,9 +36,7 @@ enum InsetCode {
        ///
        REF_CODE,
        ///
-       URL_CODE, // 5
-       ///
-       HTMLURL_CODE,
+       HYPERLINK_CODE, // 5
        ///
        SEPARATOR_CODE,
        ///
@@ -118,13 +118,23 @@ enum InsetCode {
        ///
        NOMENCL_PRINT_CODE,
        ///
-       PAGEBREAK_CODE,
+       NEWPAGE_CODE,
        ///
        LISTINGS_CODE,
        ///
        INFO_CODE,
+       ///
+       COLLAPSABLE_CODE,  // 50
 };
 
+/** 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