// local global
-int sel_x;
-int sel_y;
int first_x;
int first_y;
}
-void InsetFormulaBase::edit(BufferView * bv, int x, int y, unsigned int button)
+void InsetFormulaBase::edit(BufferView * bv, int x, int /*y*/, unsigned int)
{
if (!bv->lockInset(this))
lyxerr[Debug::MATHED] << "Cannot lock inset!!!" << endl;
mathcursor->setPos(x + xo_, y + yo_);
string sel =
bv->getLyXText()->selectionAsString(bv->buffer(), false);
- //mathed_parse_cell(ar, sel);
+ mathed_parse_cell(ar, sel);
mathcursor->insert(ar);
}
break;
}
-bool MathRootInset::idxUp(int & idx, int & pos) const
+bool MathRootInset::idxUp(idx_type & idx, pos_type & pos) const
{
if (idx == 0)
return false;
}
-bool MathRootInset::idxDown(int & idx, int & pos) const
+bool MathRootInset::idxDown(idx_type & idx, pos_type & pos) const
{
if (idx == 1)
return false;
///
MathInset * clone() const;
///
- bool idxUp(int & idx, int & pos) const;
+ bool idxUp(idx_type & idx, pos_type & pos) const;
///
- bool idxDown(int & idx, int & pos) const;
+ bool idxDown(idx_type & idx, pos_type & pos) const;
///
void metrics(MathMetricsInfo const & st) const;
///
///
void write(WriteStream & os) const;
///
- int defaultColSpace(int) { return 0; }
+ int defaultColSpace(col_type) { return 0; }
///
- char defaultColAlign(int) { return 'l'; }
+ char defaultColAlign(col_type) { return 'l'; }
};
#endif