4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alejandro Aguilar Sierra
9 * \author Lars Gullik Bjønnes
10 * \author Matthias Ettrich
12 * Full author contact details are available in file CREDITS.
18 #include "insetbase.h"
19 #include "dimension.h"
28 class InsetOld : public InsetBase {
33 TEXT_TO_INSET_OFFSET = 2
46 void setInsetName(docstring const & s) { name_ = s; }
48 virtual docstring const & getInsetName() const { return name_; }
50 virtual void setBackgroundColor(LColor_color);
52 LColor_color backgroundColor() const;
53 /// set x/y drawing position cache
54 void setPosCache(PainterInfo const &, int, int) const;
58 InsetOld(InsetOld const & in);
60 mutable Dimension dim_;
63 InsetOld & operator=(InsetOld const &) const;
67 /** We store the LColor::color value as an int to get LColor.h out
70 int background_color_;
74 /** \c InsetBase_code is a wrapper for InsetBase::Code.
75 * It can be forward-declared and passed as a function argument without
76 * having to expose inset.h.
78 class InsetBase_code {
81 InsetBase_code(InsetBase::Code val) : val_(val) {}
82 operator InsetBase::Code() const { return val_; }