#include "support/filetools.h"
#include "lyxrc.h"
#include "converter.h"
-#include "lyx_gui_misc.h" //WriteAlert
+#include "frontends/Alert.h"
#include "gettext.h"
using std::vector;
}
}
if (backend_format.empty()) {
- WriteAlert(_("Cannot export file"),
+ Alert::alert(_("Cannot export file"),
_("No information for exporting to ")
+ formats.prettyName(format));
return false;
// LaTeX backend
else if (backend_format == format)
buffer->makeLaTeXFile(filename, string(), true);
- else if (contains(buffer->filepath, ' ')) {
- WriteAlert(_("Cannot run latex."),
+ else if (contains(buffer->filePath(), ' ')) {
+ Alert::alert(_("Cannot run latex."),
_("The path to the lyx file cannot contain spaces."));
return false;
} else
- buffer->makeLaTeXFile(filename, buffer->filepath, false);
+ buffer->makeLaTeXFile(filename, buffer->filePath(), false);
string outfile_base = (put_in_tempdir)
? filename : buffer->getLatexName(false);