]> git.lyx.org Git - features.git/blobdiff - src/mathed/formula.C
Part of IU.
[features.git] / src / mathed / formula.C
index c80334a0567a390cb38ac229fac79a01571103b2..938990da2573a7fffffd898ebc23bca99f73c0ed 100644 (file)
@@ -42,13 +42,11 @@ using std::auto_ptr;
 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");
 }
 
 
@@ -61,14 +59,6 @@ InsetFormula::InsetFormula(InsetFormula const & other)
 }
 
 
-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)
@@ -178,8 +168,8 @@ namespace {
 
 bool editing_inset(InsetFormula const * inset)
 {
-       return mathcursor &&
-               (const_cast<InsetFormulaBase const *>(mathcursor->formula()) ==
+       return inMathed() &&
+               (const_cast<InsetFormulaBase const *>(mathcursor::formula()) ==
                 inset);
 }
 
@@ -214,7 +204,7 @@ void InsetFormula::draw(PainterInfo & pi, int x, int y) const
                        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);
                }