]> git.lyx.org Git - lyx.git/blobdiff - src/messages.h
Bug fix; ensure that all is Ok after the combox is moved with
[lyx.git] / src / messages.h
index b426ccf0c3a7ba35a14f0299e9330b6c91edd3e1..c4b2fa25ec225e381c1aa232799945383d7054a5 100644 (file)
@@ -1,50 +1,33 @@
 // -*- C++ -*-
-* \file messages.h
-* This file is part of LyX, the document processor.
+/* \file messages.h
+ * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
  * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef MESSAGES_H
 #define MESSAGES_H
 
-#include "LString.h"
-
-#include <locale>
+#include <boost/scoped_ptr.hpp>
+#include <string>
 
 ///
 class Messages {
 public:
        ///
-       typedef std::messages<char>::catalog catalog;
+       Messages();
        ///
-       Messages(string const & l, string const & dir);
+       Messages(std::string const & l);
        ///
        ~Messages();
        ///
-       string const get(string const & msg) const;
-       ///
-       string const & lang() const {
-               return lang_;
-       }
-       ///
-       string const & localedir() const {
-               return localedir_;
-       }
+       std::string const get(std::string const & msg) const;
 private:
-       ///
-       string lang_;
-       ///
-       string localedir_;
-       ///
-       std::locale loc_gl;
-       ///
-       std::messages<char> const & mssg_gl;
-       ///
-       catalog cat_gl;
+       class Pimpl;
+       boost::scoped_ptr<Pimpl> pimpl_;
 };
 
 #endif