1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 1998 The LyX Team.
8 * ======================================================
14 #pragma implementation
17 #include "insetnote.h"
20 #include "BufferView.h"
22 #include "insets/insettext.h"
23 #include "support/LOstream.h"
28 InsetNote::InsetNote()
31 LyXFont font(LyXFont::ALL_SANE);
34 font.setColor(LColor::note);
36 setAutoCollapse(true);
43 Inset * InsetNote::clone(Buffer const &, bool same_id) const
45 InsetNote * result = new InsetNote;
46 result->inset.init(&inset, same_id);
48 result->collapsed_ = collapsed_;
55 string const InsetNote::editMessage() const
57 return _("Opened Note Inset");
61 void InsetNote::write(Buffer const *buf, ostream & os) const
63 //os << getInsetName() << "\n";
65 InsetCollapsable::write(buf, os);