]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCode.h
Inset::translate() -> lyx::insetCode()
[features.git] / src / insets / InsetCode.h
index 34801c1bdb359cdb862c831c9e22d0a91ee976e6..2dd7d79c67c97c0324f34c126e61a0e464da5c1c 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
@@ -125,6 +127,12 @@ enum InsetCode {
        INFO_CODE,
 };
 
+/** returns the InsetCode corresponding to the \c name.
+*  Eg, translate("branch") == BRANCH_CODE
+* implemented in 'Inset.cpp'.
+*/
+InsetCode insetCode(std::string const & name);
+
 } // namespace lyx
 
 #endif