#ifndef INSETCODE_H
#define INSETCODE_H
+#include <string>
+
namespace lyx {
/** This is not quite the correct place for this enum. I think
///
REF_CODE,
///
- URL_CODE, // 5
- ///
- HTMLURL_CODE,
+ HYPERLINK_CODE, // 5
///
SEPARATOR_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