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"
18 #include "support/std_sstream.h"
20 #include "support/filetools.h" // FileSearch
21 #include "support/path_defines.h"
25 using namespace lyx::support;
30 ControlAboutlyx::ControlAboutlyx(Dialog & parent)
31 : Dialog::Controller(parent)
35 void ControlAboutlyx::getCredits(ostream & ss) const
37 string const name = FileSearch(system_lyxdir(), "CREDITS");
39 bool found(!name.empty());
42 std::ifstream in(name.c_str());
49 ss << _("ERROR: LyX wasn't able to read CREDITS file\n")
50 << _("Please install correctly to estimate the great\n")
51 << _("amount of work other people have done for the LyX project.");
56 string const ControlAboutlyx::getCopyright() const
58 return _("LyX is Copyright (C) 1995 by Matthias Ettrich,\n1995-2001 LyX Team");
62 string const ControlAboutlyx::getLicense() const
64 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.");
68 string const ControlAboutlyx::getDisclaimer() const
70 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.");
74 string const ControlAboutlyx::getVersion() const
78 ss << _("LyX Version ")
83 << _("Library directory: ")
84 << MakeDisplayPath(system_lyxdir())
86 << _("User directory: ")
87 << MakeDisplayPath(user_lyxdir());
89 return STRCONV(ss.str());