#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(_("Can not export file"),
+ Alert::alert(_("Cannot export file"),
_("No information for exporting to ")
+ formats.prettyName(format));
return false;
else if (backend_format == format)
buffer->makeLaTeXFile(filename, string(), true);
else if (contains(buffer->filepath, ' ')) {
- WriteAlert(_("Cannot run latex."),
+ Alert::alert(_("Cannot run latex."),
_("The path to the lyx file cannot contain spaces."));
return false;
} else