#include <string>
#include <vector>
+using std::endl;
+using std::for_each;
+using std::map;
+using std::make_pair;
+using std::string;
+using std::vector;
+
+#ifndef CXX_GLOBAL_CSTD
+using std::exit;
+using std::signal;
+using std::system;
+#endif
+
+namespace fs = boost::filesystem;
namespace lyx {
using support::prependEnvPath;
using support::rtrim;
using support::Systemcall;
+using frontend::LyXView;
namespace Alert = frontend::Alert;
namespace os = support::os;
-namespace fs = boost::filesystem;
-using std::endl;
-using std::for_each;
-using std::map;
-using std::make_pair;
-using std::string;
-using std::vector;
-
-#ifndef CXX_GLOBAL_CSTD
-using std::exit;
-using std::signal;
-using std::system;
-#endif
/// are we using the GUI at all?
Buffer const * const LyX::updateInset(Inset const * inset) const
{
- if (!inset)
+ if (quitting || !inset)
return 0;
Buffer const * buffer_ptr = 0;
void LyX::hideDialogs(std::string const & name, Inset * inset) const
{
+ if (quitting || !use_gui)
+ return;
+
vector<int> const & view_ids = pimpl_->application_->gui().viewIds();
vector<int>::const_iterator it = view_ids.begin();
vector<int>::const_iterator const end = view_ids.end();
}
}
+ // Reinit the messages machinery in case package() knows
+ // something interesting about the locale directory.
+ Messages::init();
+
if (!use_gui) {
// FIXME: create a ConsoleApplication
int exit_status = init(argc, argv);