#include "MetricsInfo.h"
#include "frontends/Painter.h"
+#include "frontends/Application.h"
+#include "frontends/Gui.h"
#include "support/convert.h"
namespace lyx {
+extern bool quitting;
+
class InsetName {
public:
- InsetName(std::string const & n, InsetCode c)
- : name(n), code(c) {}
+ InsetName(std::string const & n, InsetCode c) : name(n), code(c) {}
std::string name;
InsetCode code;
};
mi.base.bv->coordCache().insets().add(this, dim);
}
+
+Buffer const * Inset::updateFrontend() const
+{
+ if (quitting)
+ return 0;
+ return theApp()->gui().updateInset(this);
+}
+
} // namespace lyx