]> git.lyx.org Git - lyx.git/blobdiff - src/trans_mgr.h
* Painter.h:
[lyx.git] / src / trans_mgr.h
index 083ef249142b21b4dff78379122003cbd4a67b49..74fdf1d8b90e5aec64cc015a460197429ed7494e 100644 (file)
 #include "chset.h"
 #include "trans_decl.h"
 
+#include <boost/scoped_ptr.hpp>
+
+
+namespace lyx {
+
 class LyXText;
 class Trans;
 
@@ -137,9 +142,9 @@ private:
        ///
        Trans * active_;
        ///
-       Trans * t1_;
+       boost::scoped_ptr<Trans> t1_;
        ///
-       Trans * t2_;
+       boost::scoped_ptr<Trans> t2_;
        ///
        static Trans default_;
        ///
@@ -152,17 +157,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 +175,7 @@ public:
                return trans_fsm_.currentState->backspace();
        }
        ///
-       void TranslateAndInsert(char, LyXText *);
+       void translateAndInsert(char, LyXText *);
        ///
        std::string const deadkey(char, KmodInfo);
        ///
@@ -193,4 +198,7 @@ std::string const TransManager::deadkey(char c, KmodInfo t)
        return trans_fsm_.currentState->deadkey(c, t);
 }
 
+
+} // namespace lyx
+
 #endif // TRANS_MANAGER_H