]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCode.h
Further cleanup of collapsable insets. The layouts are now properly read and applied.
[lyx.git] / src / insets / InsetCode.h
index 34801c1bdb359cdb862c831c9e22d0a91ee976e6..cd6e9e6b4abdf5fa860122eab333985560ff76b8 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,
        ///
@@ -123,8 +123,18 @@ enum InsetCode {
        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