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"
29 xo_(0), yo_(0), scx(0), owner_(0),
30 //background_color_(LColor::inherit)
31 background_color_(LColor::background)
35 InsetOld::InsetOld(InsetOld const & in)
37 xo_(0), yo_(0), scx(0), owner_(0), name_(in.name_),
38 background_color_(in.background_color_)
42 bool InsetOld::directWrite() const
48 InsetOld::EDITABLE InsetOld::editable() const
54 bool InsetOld::autoDelete() const
60 string const InsetOld::editMessage() const
62 return _("Opened inset");
66 void InsetOld::setBackgroundColor(LColor_color color)
68 background_color_ = color;
72 LColor_color InsetOld::backgroundColor() const
74 return LColor::color(background_color_);
78 bool InsetOld::forceDefaultParagraphs(InsetOld const * inset) const
81 return owner()->forceDefaultParagraphs(inset);
86 int InsetOld::ascent() const
92 int InsetOld::descent() const
98 int InsetOld::width() const
104 bool InsetOld::insetAllowed(InsetOld * in) const
106 return insetAllowed(in->lyxCode());
110 int InsetOld::scroll(bool recursive) const
112 if (!recursive || !owner_)
117 bool isEditableInset(InsetOld const * i)
119 return i && i->editable();
123 bool isHighlyEditableInset(InsetOld const * i)
125 return i && i->editable() == InsetOld::HIGHLY_EDITABLE;