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"
25 class InsetOld : public InsetBase {
30 TEXT_TO_INSET_OFFSET = 2
43 void setInsetName(std::string const & s) { name_ = s; }
45 virtual std::string const & getInsetName() const { return name_; }
47 virtual void setBackgroundColor(LColor_color);
49 LColor_color backgroundColor() const;
50 /// set x/y drawing position cache
51 void setPosCache(PainterInfo const &, int, int) const;
55 InsetOld(InsetOld const & in);
57 mutable Dimension dim_;
60 InsetOld & operator=(InsetOld const &) const;
64 /** We store the LColor::color value as an int to get LColor.h out
67 int background_color_;
71 /** \c InsetBase_code is a wrapper for InsetBase::Code.
72 * It can be forward-declared and passed as a function argument without
73 * having to expose inset.h.
75 class InsetBase_code {
78 InsetBase_code(InsetBase::Code val) : val_(val) {}
79 operator InsetBase::Code() const { return val_; }