]> git.lyx.org Git - features.git/blobdiff - src/messages.h
Replace LString.h with support/std_string.h,
[features.git] / src / messages.h
index b426ccf0c3a7ba35a14f0299e9330b6c91edd3e1..1c04d9c73588d05c221eb8c82c7214730013a41f 100644 (file)
@@ -1,50 +1,34 @@
 // -*- 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 "support/std_string.h"
 
-#include <locale>
+#include <boost/scoped_ptr.hpp>
 
 ///
 class Messages {
 public:
        ///
-       typedef std::messages<char>::catalog catalog;
+       Messages();
        ///
-       Messages(string const & l, string const & dir);
+       Messages(string const & l);
        ///
        ~Messages();
        ///
        string const get(string const & msg) const;
-       ///
-       string const & lang() const {
-               return lang_;
-       }
-       ///
-       string const & localedir() const {
-               return localedir_;
-       }
 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