2003-04-23 18:47:21 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-04-23 20:44:53 +00:00
|
|
|
|
/* \file messages.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
2003-04-23 18:47:21 +00:00
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-04-23 18:47:21 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef MESSAGES_H
|
|
|
|
|
#define MESSAGES_H
|
|
|
|
|
|
2006-09-09 11:16:28 +00:00
|
|
|
|
#include "support/docstring.h"
|
|
|
|
|
|
2003-04-24 22:09:46 +00:00
|
|
|
|
#include <boost/scoped_ptr.hpp>
|
2003-10-07 06:45:25 +00:00
|
|
|
|
#include <string>
|
2003-04-23 18:47:21 +00:00
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
|
2003-04-23 18:47:21 +00:00
|
|
|
|
///
|
|
|
|
|
class Messages {
|
|
|
|
|
public:
|
2004-10-19 09:11:02 +00:00
|
|
|
|
/// messages in the language defined by the environment
|
2003-04-27 22:11:45 +00:00
|
|
|
|
Messages();
|
2004-10-19 09:11:02 +00:00
|
|
|
|
/// messages in the language \p l
|
2003-10-06 15:43:21 +00:00
|
|
|
|
Messages(std::string const & l);
|
2003-04-23 18:47:21 +00:00
|
|
|
|
///
|
|
|
|
|
~Messages();
|
|
|
|
|
///
|
2006-10-21 00:16:43 +00:00
|
|
|
|
docstring const get(std::string const & msg) const;
|
2003-04-23 18:47:21 +00:00
|
|
|
|
private:
|
2003-04-24 22:09:46 +00:00
|
|
|
|
class Pimpl;
|
|
|
|
|
boost::scoped_ptr<Pimpl> pimpl_;
|
2003-04-23 18:47:21 +00:00
|
|
|
|
};
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
2003-04-23 18:47:21 +00:00
|
|
|
|
#endif
|