3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
8 * Full author contact details are available in file CREDITS.
17 #include "frontends/Alert.h"
19 #include "support/filetools.h"
23 using lyx::support::bformat;
24 using lyx::support::makeDisplayPath;
29 bool openFileWrite(ofstream & ofs, string const & fname)
31 ofs.open(fname.c_str());
33 string const file = makeDisplayPath(fname, 50);
34 string text = bformat(_("Could not open the specified "
35 "document\n%1$s."), file);
36 Alert::error(_("Could not open file"), text);