X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetCode.h;h=6a3f1bc15f1b06a33952efcf6a3c101a77a447d1;hb=2c357c1d23b7b83839a9beb8225d4f1ae4f793b4;hp=34801c1bdb359cdb862c831c9e22d0a91ee976e6;hpb=fb306e4a90297141bd4741e990f0bf9b8b913df5;p=lyx.git diff --git a/src/insets/InsetCode.h b/src/insets/InsetCode.h index 34801c1bdb..6a3f1bc15f 100644 --- a/src/insets/InsetCode.h +++ b/src/insets/InsetCode.h @@ -15,6 +15,8 @@ #ifndef INSETCODE_H #define INSETCODE_H +#include + 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