* \author Edwin Leuven
* \author Angus Leeming
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
-
#include "ControlAboutlyx.h"
#include "gettext.h"
#include "version.h"
-#include "Lsstream.h"
-#include "support/LOstream.h"
#include "support/filetools.h" // FileSearch
#include "support/path_defines.h"
#include <fstream>
-
-using namespace lyx::support;
+#include <sstream>
using std::ostream;
+using std::ostringstream;
+using std::string;
+
-// needed for the browser
-extern string user_lyxdir;
+namespace lyx {
+
+using support::FileSearch;
+using support::MakeDisplayPath;
+using support::system_lyxdir;
+using support::user_lyxdir;
+
+namespace frontend {
ControlAboutlyx::ControlAboutlyx(Dialog & parent)
<< MakeDisplayPath(system_lyxdir())
<< "\n"
<< _("User directory: ")
- << MakeDisplayPath(user_lyxdir);
+ << MakeDisplayPath(user_lyxdir());
- return STRCONV(ss.str());
+ return ss.str();
}
+
+} // namespace frontend
+} // namespace lyx