X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTrans.h;h=a0610c48606413f74031244fffd8f1c62548a020;hb=ab96df492a0a359797462fe109d009e54b864a4c;hp=a3eb93c2c1cfb4c135628f302cf42bb060816c13;hpb=4b5026c2e21316bdf008f310b535442f05110d4f;p=lyx.git diff --git a/src/Trans.h b/src/Trans.h index a3eb93c2c1..a0610c4860 100644 --- a/src/Trans.h +++ b/src/Trans.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Lars Gullik Bjønnes + * \author Lars Gullik Bjønnes * \author Matthias Ettrich * \author John Levon * @@ -14,7 +14,8 @@ #ifndef TRANS_H #define TRANS_H -#include "lfuns.h" +#include "FuncCode.h" + #include "support/docstring.h" #include @@ -70,7 +71,7 @@ enum tex_accent { }; -struct tex_accent_struct { +struct TeXAccent { /// tex_accent accent; /// UCS4 code point of this accent @@ -78,11 +79,11 @@ struct tex_accent_struct { /// char const * name; /// - kb_action action; + FuncCode action; }; /// -extern tex_accent_struct get_accent(kb_action action); +extern TeXAccent get_accent(FuncCode action); /// @@ -162,8 +163,7 @@ private: /// -inline -docstring const & Trans::match(char_type c) +inline docstring const & Trans::match(char_type c) { std::map::iterator it = keymap_.find(c); if (it != keymap_.end()) {