+ if (w < 10) {
+ w = 10;
+ }
+ return w;
+}
+
+
+LyXCursor const & Inset::cursor(BufferView * bv) const
+{
+ if (owner())
+ return owner()->getLyXText(bv, false)->cursor;
+ return bv->text->cursor;
+}
+
+
+WordLangTuple const
+UpdatableInset::selectNextWordToSpellcheck(BufferView *bv, float & value) const
+{
+ // we have to unlock ourself in this function by default!
+ bv->unlockInset(const_cast<UpdatableInset *>(this));
+ value = 0;
+ return WordLangTuple();
+}
+
+
+bool UpdatableInset::nextChange(BufferView * bv, lyx::pos_type &)
+{
+ // we have to unlock ourself in this function by default!
+ bv->unlockInset(const_cast<UpdatableInset *>(this));
+ return false;
+}
+
+
+bool UpdatableInset::searchForward(BufferView * bv, string const &,
+ bool, bool)
+{
+ // we have to unlock ourself in this function by default!
+ bv->unlockInset(const_cast<UpdatableInset *>(this));
+ return false;