]> git.lyx.org Git - lyx.git/blobdiff - src/trans.h
cleanup some debug messages
[lyx.git] / src / trans.h
index e0ccbc08baaefb90a333d9a1dd7091cf78821be0..6311e74def6b01cb20f86b934ca9bc9c4fe6900c 100644 (file)
@@ -1,16 +1,23 @@
 // -*- C++ -*-
-#ifndef Trans_h
-#define Trans_h
+/**
+ * \file trans.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ * \author Matthias Ettrich
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
+#ifndef TRANS_H
+#define TRANS_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include "trans_decl.h"
 
 #include <map>
 
-#include "tex-accent.h"
-#include "LString.h"
-#include "trans_decl.h"
 
 class LyXLex;
 
@@ -19,7 +26,6 @@ class TransManager;
 /**
   Trans: holds a .kmap file
   */
-//class Trans : public TransInterface {
 class Trans {
 public:
        ///
@@ -28,36 +34,36 @@ public:
        ~Trans();
 
        ///
-       int Load(string const & language);
+       int Load(std::string const & language);
        ///
        bool IsDefined() const;
        ///
-       string const & GetName() const;
+       std::string const & GetName() const;
        ///
-       string const process(char, TransManager &);
+       std::string const process(char, TransManager &);
        ///
        bool isAccentDefined(tex_accent, KmodInfo &) const;
 
 private:
        ///
-       void AddDeadkey(tex_accent, string const &);
+       void AddDeadkey(tex_accent, std::string const &);
        ///
        void FreeKeymap();
        ///
        int Load(LyXLex &);
        ///
-       string const & Match(unsigned char c);
+       std::string const & Match(unsigned char c);
        ///
        void InsertException(KmodException & exclist, char c,
-                            string const & data, bool = false,
+                            std::string const & data, bool = false,
                             tex_accent = TEX_NOACCENT);
        ///
        void FreeException(KmodException & exclist);
 
        ///
-       string name_;
+       std::string name_;
        ///
-       std::map<int, string> keymap_;
+       std::map<int, std::string> keymap_;
        ///
        std::map<int, KmodInfo> kmod_list_;
 };
@@ -65,14 +71,14 @@ private:
 
 ///
 inline
-string const & Trans::Match(unsigned char c)
+std::string const & Trans::Match(unsigned char c)
 {
-       std::map<int, string>::iterator it = keymap_.find(c);
+       std::map<int, std::string>::iterator it = keymap_.find(c);
        if (it != keymap_.end()) {
                return it->second;
        }
-       static string dummy;
+       static std::string dummy;
        return dummy;
 }
 
-#endif
+#endif // TRANS_H