if (!front && cur.pos() == 0)
return false;
Inset * inset = front ? cur.nextInset() : cur.prevInset();
- if (!isHighlyEditableInset(inset))
+ if (!inset || inset->editable() != Inset::HIGHLY_EDITABLE)
return false;
/*
* Apparently, when entering an inset we are expected to be positioned
mi.base.bv->coordCache().insets().add(this, dim);
}
-
-
-/////////////////////////////////////////
-
-bool isEditableInset(Inset const * inset)
-{
- return inset && inset->editable();
-}
-
-
-bool isHighlyEditableInset(Inset const * inset)
-{
- return inset && inset->editable() == Inset::HIGHLY_EDITABLE;
-}
-
-
} // namespace lyx
virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
};
-
-/**
- * returns true if pointer argument is valid
- * and points to an editable inset
- */
-bool isEditableInset(Inset const * inset);
-
-
-/**
- * returns true if pointer argument is valid
- * and points to a highly editable inset
- */
-bool isHighlyEditableInset(Inset const * inset);
-
-
} // namespace lyx
#endif
}
bool const highly_editable_inset = par_.isInset(pos)
- && isHighlyEditableInset(par_.getInset(pos));
+ && par_.getInset(pos)->editable() == Inset::HIGHLY_EDITABLE;
// If we reach the end of a struck out range, paint it.
// We also don't paint across things like tables