using std::string;
using std::vector;
+namespace Alert = lyx::frontend::Alert;
+
namespace {
using lyx::support::tempName;
using lyx::support::trim;
+namespace Alert = lyx::frontend::Alert;
namespace os = lyx::support::os;
namespace fs = boost::filesystem;
using std::min;
using std::string;
+namespace Alert = lyx::frontend::Alert;
namespace fs = boost::filesystem;
namespace {
using std::back_inserter;
using std::transform;
+namespace Alert = lyx::frontend::Alert;
+
BufferList::BufferList()
{}
using std::ostringstream;
using std::pair;
+namespace Alert = lyx::frontend::Alert;
namespace biblio = lyx::biblio;
using std::vector;
using std::distance;
+namespace Alert = lyx::frontend::Alert;
+
namespace {
} else {
// FIXME: this should go out of here. For example, here we cannot say if
// it is a document (.lyx) or something else. Same goes for elsewhere.
- Alert::error(_("Cannot convert file"),
- bformat(_("An error occurred whilst running %1$s"),
- lyx::from_ascii(command.substr(0, 50))));
+ Alert::error(_("Cannot convert file"),
+ bformat(_("An error occurred whilst running %1$s"),
+ lyx::from_ascii(command.substr(0, 50))));
}
return false;
}
using std::string;
using std::vector;
+namespace Alert = lyx::frontend::Alert;
namespace fs = boost::filesystem;
namespace {
using std::string;
using std::distance;
+namespace Alert = lyx::frontend::Alert;
namespace fs = boost::filesystem;
namespace os = lyx::support::os;
using std::string;
+namespace lyx {
+namespace frontend {
+
int Alert::prompt(docstring const & title, docstring const & question,
int default_button, int escape_button,
docstring const & b1, docstring const & b2, docstring const & b3)
return askForText_pimpl(msg, dflt);
}
+
+}
+}
#include "support/lstrings.h"
+namespace lyx {
+namespace frontend {
namespace Alert {
/**
lyx::docstring const & dflt = lyx::docstring());
}
+}
+}
#endif // LYX_ALERT_H
static int counter = 0;
if (counter == 0) {
- Alert::error(_("Invalid filename"),
+ lyx::frontend::Alert::error(_("Invalid filename"),
_("LyX does not provide LateX support for file names containing any of these characters:\n") +
lyx::from_utf8(printable_list(invalid_chars)));
}
static int counter = 0;
if (counter == 0) {
- Alert::error(_("Invalid filename"),
+ lyx::frontend::Alert::error(_("Invalid filename"),
_("LyX does not provide LateX support for file names containing any of these characters:\n") +
lyx::from_utf8(printable_list(invalid_chars)));
}
}
}
if (loader_format.empty()) {
- Alert::error(_("Couldn't import file"),
+ lyx::frontend::Alert::error(_("Couldn't import file"),
bformat(_("No information for importing the format %1$s."),
formats.prettyName(format)));
return false;
using lyx::support::tokenPos;
using lyx::support::trim;
+namespace Alert = lyx::frontend::Alert;
namespace os = lyx::support::os;
using std::endl;
using std::ostream;
using std::ostringstream;
+namespace Alert = lyx::frontend::Alert;
namespace fs = boost::filesystem;
using std::swap;
using std::vector;
+namespace Alert = lyx::frontend::Alert;
+
namespace {
using boost::shared_ptr;
+namespace Alert = lyx::frontend::Alert;
namespace fs = boost::filesystem;
using std::back_inserter;
using lyx::docstring;
+namespace Alert = lyx::frontend::Alert;
namespace os = lyx::support::os;
namespace fs = boost::filesystem;
bool searchAllowed(BufferView * bv, string const & str)
{
if (str.empty()) {
- Alert::error(_("Search error"), _("Search string is empty"));
+ lyx::frontend::Alert::error(_("Search error"),
+ _("Search string is empty"));
return false;
}
return bv->buffer();
using std::istringstream;
using std::ostringstream;
+namespace Alert = lyx::frontend::Alert;
namespace biblio = lyx::biblio;
namespace fs = boost::filesystem;
using std::string;
using std::pair;
+namespace Alert = lyx::frontend::Alert;
+
LyXVC::LyXVC()
{
docstring const file = makeDisplayPath(fname, 50);
docstring text = bformat(_("Could not open the specified "
"document\n%1$s."), file);
- Alert::error(_("Could not open file"), text);
+ lyx::frontend::Alert::error(_("Could not open file"), text);
return false;
}
return true;