]> git.lyx.org Git - lyx.git/blobdiff - src/trans_mgr.h
minimal effort implementation of:
[lyx.git] / src / trans_mgr.h
index 083ef249142b21b4dff78379122003cbd4a67b49..c4af3cc3ee210f26f3a2598e3191a7f868f4a39b 100644 (file)
@@ -17,6 +17,8 @@
 #include "chset.h"
 #include "trans_decl.h"
 
+#include <boost/scoped_ptr.hpp>
+
 class LyXText;
 class Trans;
 
@@ -137,9 +139,9 @@ private:
        ///
        Trans * active_;
        ///
-       Trans * t1_;
+       boost::scoped_ptr<Trans> t1_;
        ///
-       Trans * t2_;
+       boost::scoped_ptr<Trans> t2_;
        ///
        static Trans default_;
        ///
@@ -152,17 +154,17 @@ public:
        ///
        TransManager();
        ///
-       virtual ~TransManager();
+       ~TransManager();
        ///
-       int SetPrimary(std::string const &);
+       int setPrimary(std::string const &);
        ///
-       int SetSecondary(std::string const &);
+       int setSecondary(std::string const &);
        ///
-       void EnablePrimary();
+       void enablePrimary();
        ///
-       void EnableSecondary();
+       void enableSecondary();
        ///
-       void DisableKeymap();
+       void disableKeymap();
        ///
        bool setCharset(std::string const &);
        ///
@@ -170,7 +172,7 @@ public:
                return trans_fsm_.currentState->backspace();
        }
        ///
-       void TranslateAndInsert(char, LyXText *);
+       void translateAndInsert(char, LyXText *);
        ///
        std::string const deadkey(char, KmodInfo);
        ///