int first_y;
-void handleFont(BufferView * bv, string const & arg, MathTextCodes t)
-{
- if (mathcursor->selection())
- bv->lockedInsetStoreUndo(Undo::EDIT);
- mathcursor->handleFont(t);
- for (string::const_iterator it = arg.begin(); it != arg.end(); ++it)
- mathcursor->insert(*it);
-}
-
-
bool openNewInset(BufferView * bv, UpdatableInset * new_inset)
{
if (!bv->insertInset(new_inset)) {
}
+void InsetFormulaBase::handleFont
+ (BufferView * bv, string const & arg, MathTextCodes t)
+{
+ if (mathcursor->selection()) {
+ bv->lockedInsetStoreUndo(Undo::EDIT);
+ updateLocal(bv, true);
+ }
+ mathcursor->handleFont(t);
+ for (string::const_iterator it = arg.begin(); it != arg.end(); ++it)
+ mathcursor->insert(*it);
+ updateLocal(bv, false);
+}
+
+
void InsetFormulaBase::insetUnlock(BufferView * bv)
{
if (mathcursor) {
void metrics(BufferView * bv, LyXFont const & font) const;
///
void metrics(BufferView * bv = 0) const;
+ ///
+ void handleFont(BufferView * bv, string const & arg, MathTextCodes t);
///
mutable int xo_;