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"
31 xo_(0), yo_(0), scx(0), owner_(0),
32 //background_color_(LColor::inherit)
33 background_color_(LColor::background)
37 InsetOld::InsetOld(InsetOld const & in)
39 xo_(0), yo_(0), scx(0), owner_(0), name_(in.name_),
40 background_color_(in.background_color_)
44 void InsetOld::setBackgroundColor(LColor_color color)
46 background_color_ = color;
50 LColor_color InsetOld::backgroundColor() const
52 return LColor::color(background_color_);
56 bool InsetOld::forceDefaultParagraphs(InsetBase const * inset) const
59 return owner()->forceDefaultParagraphs(inset);
64 int InsetOld::ascent() const
70 int InsetOld::descent() const
76 int InsetOld::width() const
82 int InsetOld::scroll(bool recursive) const
84 if (!recursive || !owner_)
90 void InsetOld::setPosCache(PainterInfo const &, int x, int y) const
92 lyxerr << "InsetOld:: position cache to " << x << " " << y << std::endl;