-LColor::color Inset::backgroundColor() const
-{
- if (background_color_ == LColor::inherit) {
- if (owner())
- return owner()->backgroundColor();
- else
- return LColor::background;
- } else
- return background_color_;
-}
-
-
-int Inset::id() const
-{
- return id_;
-}
-
-void Inset::id(int id_arg)
-{
- id_ = id_arg;
-}
-
-void Inset::setFont(BufferView *, LyXFont const &, bool, bool )
-{}
-
-// some stuff for inset locking
-
-UpdatableInset::UpdatableInset()
- : Inset(), cursor_visible_(false), block_drawing_(false)
-{}
-
-
-UpdatableInset::UpdatableInset(UpdatableInset const & in, bool same_id)
- : Inset(in, same_id), cursor_visible_(false), block_drawing_(false)
-{}
-
-
-void UpdatableInset::insetButtonPress(BufferView *, int x, int y, int button)
-{
- lyxerr[Debug::INFO] << "Inset Button Press x=" << x
- << ", y=" << y << ", button=" << button << endl;
-}
-
-
-bool UpdatableInset::insetButtonRelease(BufferView *, int x, int y, int button)
-{
- lyxerr[Debug::INFO] << "Inset Button Release x=" << x
- << ", y=" << y << ", button=" << button << endl;
- return false;
-}
-
-
-void UpdatableInset::insetKeyPress(XKeyEvent *)
-{
- lyxerr[Debug::INFO] << "Inset Keypress" << endl;
-}
-
-
-void UpdatableInset::insetMotionNotify(BufferView *, int x, int y, int state)
-{
- lyxerr[Debug::INFO] << "Inset Motion Notify x=" << x
- << ", y=" << y << ", state=" << state << endl;
-}
-
-
-void UpdatableInset::insetUnlock(BufferView *)
-{
- lyxerr[Debug::INFO] << "Inset Unlock" << endl;
-}
-
-
-// An updatable inset is highly editable by definition
-Inset::EDITABLE UpdatableInset::editable() const
-{
- return HIGHLY_EDITABLE;
-}
-
-
-void UpdatableInset::toggleInsetCursor(BufferView *)
-{}
-
-
-void UpdatableInset::showInsetCursor(BufferView *, bool)
-{}
-
-
-void UpdatableInset::hideInsetCursor(BufferView *)
-{}
-
-
-void UpdatableInset::fitInsetCursor(BufferView *) const
-{}
-
-
-void UpdatableInset::edit(BufferView *, int, int, unsigned int)
-{}
-
-
-void UpdatableInset::edit(BufferView *, bool)
-{}
-
-
-void UpdatableInset::draw(BufferView *, LyXFont const &,
- int /* baseline */, float & x,
- bool/*cleared*/) const
-{
- x += float(scx);
- // ATTENTION: don't do the following here!!!
- // top_x = int(x);
- // top_baseline = baseline;
-}
-
-
-void UpdatableInset::scroll(BufferView * bv, float s) const