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"
24 class InsetOld : public InsetBase {
29 TEXT_TO_INSET_OFFSET = 4
36 void setInsetName(docstring const & s) { name_ = s; }
38 virtual docstring const & getInsetName() const { return name_; }
39 /// set x/y drawing position cache
40 void setPosCache(PainterInfo const &, int, int) const;
44 InsetOld(InsetOld const & in);
47 InsetOld & operator=(InsetOld const &) const;
54 /** \c InsetBase_code is a wrapper for InsetBase::Code.
55 * It can be forward-declared and passed as a function argument without
56 * having to expose Inset.h.
58 class InsetBase_code {
61 InsetBase_code(InsetBase::Code val) : val_(val) {}
62 operator InsetBase::Code() const { return val_; }