X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTrans.h;h=a0610c48606413f74031244fffd8f1c62548a020;hb=82c7669381fa95d00fa13e6cf70eae1bbc721875;hp=92cad9b0dcde38272effea467e4f1a80f4d4aafd;hpb=897436efbb9bd641b61467d185a2dfae9839e575;p=lyx.git diff --git a/src/Trans.h b/src/Trans.h index 92cad9b0dc..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,10 +14,9 @@ #ifndef TRANS_H #define TRANS_H -#include "lfuns.h" -#include "support/docstring.h" +#include "FuncCode.h" -#include +#include "support/docstring.h" #include #include @@ -72,7 +71,7 @@ enum tex_accent { }; -struct tex_accent_struct { +struct TeXAccent { /// tex_accent accent; /// UCS4 code point of this accent @@ -80,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); /// @@ -164,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()) { @@ -305,9 +303,9 @@ private: /// Trans * active_; /// - boost::scoped_ptr t1_; + Trans t1_; /// - boost::scoped_ptr t2_; + Trans t2_; /// static Trans default_; /// @@ -316,8 +314,6 @@ public: /// TransManager(); /// - ~TransManager(); - /// int setPrimary(std::string const &); /// int setSecondary(std::string const &);