"this document but has not been found in the list of\n"
"available modules. If you recently installed it, you\n"
"probably need to reconfigure LyX.\n"), from_utf8(modName));
- throw ExceptionMessage(WarningException,_("Module not available"),
- msg + _("Some layouts may not be available."));
+ frontend::Alert::warning(_("Module not available"), msg);
continue;
}
if (!lm->isAvailable()) {
bformat(_("The module %1$s requires a package that is\n"
"not available in your LaTeX installation. LaTeX output\n"
"may not be possible.\n"), from_utf8(modName));
- throw ExceptionMessage(WarningException, _("Package not available"), msg);
+ frontend::Alert::warning(_("Package not available"), msg);
}
FileName layout_file = libFileSearch("layouts", lm->getFilename());
if (!doc_class.read(layout_file, TextClass::MODULE)) {
docstring const msg =
bformat(_("Error reading module %1$s\n"), from_utf8(modName));
- throw ExceptionMessage(WarningException, _("Read Error"), msg);
+ frontend::Alert::warning(_("Read Error"), msg);
}
}
return doc_class;
namespace lyx {
+namespace frontend {
+namespace Alert {
+ void warning(docstring const & title, docstring const & message,
+ bool const &)
+ {
+ LYXERR0(title);
+ LYXERR0(message);
+ }
+}
+}
+
+
// Dummy translation support
Messages messages_;
Messages const & getMessages(std::string const &)
namespace support { class FileName; }
+/// Simple support for frontend::Alert::warning().
+namespace frontend {
+namespace Alert {
+ void warning(docstring const & title, docstring const & message,
+ bool const &);
+}
+}
+
class Context;
/// A trivial subclass, just to give us a public default constructor