3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS
14 #include "insetnote.h"
19 #include "BufferView.h"
21 #include "insets/insettext.h"
22 #include "support/LOstream.h"
23 #include "support/lstrings.h"
29 void InsetNote::init()
31 LyXFont font(LyXFont::ALL_SANE);
34 font.setColor(LColor::note);
36 setBackgroundColor(LColor::notebg);
42 InsetNote::InsetNote(BufferParams const & bp)
43 : InsetCollapsable(bp)
49 InsetNote::InsetNote(InsetNote const & in)
50 : InsetCollapsable(in)
56 // InsetNote::InsetNote(InsetNote const & in, bool same_id)
57 // : InsetCollapsable(in, same_id)
63 Inset * InsetNote::clone(Buffer const &) const
65 return new InsetNote(*const_cast<InsetNote *>(this));
69 // Inset * InsetNote::clone(Buffer const &, bool same_id) const
71 // return new InsetNote(*const_cast<InsetNote *>(this), same_id);
75 string const InsetNote::editMessage() const
77 return _("Opened Note Inset");
81 void InsetNote::write(Buffer const * buf, ostream & os) const
83 os << getInsetName() << "\n";
84 InsetCollapsable::write(buf, os);