2 * \file ControlAboutlyx.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS
15 #include "ControlAboutlyx.h"
20 #include "support/LOstream.h"
21 #include "support/filetools.h" // FileSearch
25 using namespace lyx::support;
29 // needed for the browser
30 extern string system_lyxdir;
31 extern string user_lyxdir;
34 ControlAboutlyx::ControlAboutlyx(Dialog & parent)
35 : Dialog::Controller(parent)
39 void ControlAboutlyx::getCredits(ostream & ss) const
41 string const name = FileSearch(system_lyxdir, "CREDITS");
43 bool found(!name.empty());
46 std::ifstream in(name.c_str());
53 ss << _("ERROR: LyX wasn't able to read CREDITS file\n")
54 << _("Please install correctly to estimate the great\n")
55 << _("amount of work other people have done for the LyX project.");
60 string const ControlAboutlyx::getCopyright() const
62 return _("LyX is Copyright (C) 1995 by Matthias Ettrich,\n1995-2001 LyX Team");
66 string const ControlAboutlyx::getLicense() const
68 return _("This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.");
72 string const ControlAboutlyx::getDisclaimer() const
74 return _("LyX is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\nSee the GNU General Public License for more details.\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.");
78 string const ControlAboutlyx::getVersion() const
82 ss << _("LyX Version ")
87 << _("Library directory: ")
88 << MakeDisplayPath(system_lyxdir)
90 << _("User directory: ")
91 << MakeDisplayPath(user_lyxdir);
93 return STRCONV(ss.str());