]> git.lyx.org Git - lyx.git/blobdiff - src/messages.h
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / messages.h
index b426ccf0c3a7ba35a14f0299e9330b6c91edd3e1..e5c17d8dd3d9a0148425a07194edc417af2ad9f8 100644 (file)
@@ -1,11 +1,11 @@
 // -*- 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
 
 #include "LString.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