+void UpdatableInset::ToggleInsetCursor(BufferView *)
+{
+}
+
+void UpdatableInset::ShowInsetCursor(BufferView *)
+{
+}
+
+void UpdatableInset::HideInsetCursor(BufferView *)
+{
+}
+
+
+void UpdatableInset::Edit(BufferView * bv, int, int, unsigned int)
+{
+ LyXFont font;
+
+ scx = 0;
+
+ mx_scx = abs((width(bv->painter(), font) - bv->paperWidth()) / 2);
+}
+
+
+void UpdatableInset::draw(Painter &, LyXFont const &,
+ int /* baseline */, float & x) const
+{
+ if (scx) x += float(scx);
+// ATTENTION: this is not good doing here
+// top_x = int(x);
+// top_baseline = baseline;
+}
+
+
+void UpdatableInset::SetFont(BufferView *, LyXFont const &, bool )
+{
+}
+
+
+/// An updatable inset could handle lyx editing commands
+#ifdef SCROLL_INSET
+UpdatableInset::RESULT
+UpdatableInset::LocalDispatch(BufferView *,
+ int action, string const & arg)
+#else
+UpdatableInset::RESULT
+UpdatableInset::LocalDispatch(BufferView *, int, string const &)
+#endif
+{
+#ifdef SCROLL_INSET
+ if (action==LFUN_SCROLL_INSET)
+ {
+ float xx;
+ sscanf(arg.c_str(), "%f", &xx);
+ scroll(xx);
+
+ return DISPATCHED;
+ }
+#endif
+ return UNDISPATCHED;
+}
+
+int UpdatableInset::getMaxWidth(Painter & pain, UpdatableInset const *inset) const