3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Alejandro Aguilar Sierra
8 * \author Lars Gullik Bjønnes
9 * \author Matthias Ettrich
11 * Full author contact details are available in file CREDITS.
17 #include "updatableinset.h"
19 #include "BufferView.h"
24 #include "metricsinfo.h"
25 #include "coordcache.h"
31 : //background_color_(LColor::inherit)
32 background_color_(LColor::background)
36 InsetOld::InsetOld(InsetOld const & in)
37 : InsetBase(in), name_(in.name_),
38 background_color_(in.background_color_)
42 void InsetOld::setBackgroundColor(LColor_color color)
44 background_color_ = color;
48 LColor_color InsetOld::backgroundColor() const
50 return LColor::color(background_color_);
54 int InsetOld::ascent() const
60 int InsetOld::descent() const
66 int InsetOld::width() const
72 void InsetOld::setPosCache(PainterInfo const &, int x, int y) const
74 //lyxerr << "InsetOld:: position cache to " << x << " " << y << std::endl;
75 theCoords.insets().add(this, x, y);