using std::endl;
-InsetFormula::InsetFormula(bool chemistry)
+InsetFormula::InsetFormula()
: par_(MathAtom(new MathHullInset)),
preview_(new RenderPreview)
{
preview_->connect(boost::bind(&InsetFormula::statusChanged, this));
- if (chemistry)
- mutate("chemistry");
}
}
-InsetFormula::InsetFormula(BufferView *)
- : par_(MathAtom(new MathHullInset)),
- preview_(new RenderPreview)
-{
- preview_->connect(boost::bind(&InsetFormula::statusChanged, this));
-}
-
-
InsetFormula::InsetFormula(string const & data)
: par_(MathAtom(new MathHullInset)),
preview_(new RenderPreview)
bool editing_inset(InsetFormula const * inset)
{
- return mathcursor &&
- (const_cast<InsetFormulaBase const *>(mathcursor->formula()) ==
+ return inMathed() &&
+ (const_cast<InsetFormulaBase const *>(mathcursor::formula()) ==
inset);
}
p.pain.fillRectangle(x, y - a, w, h, LColor::mathbg);
if (editing_inset(this)) {
- mathcursor->drawSelection(pi);
+ mathcursor::drawSelection(pi);
//p.pain.rectangle(x, y - a, w, h, LColor::mathframe);
}