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);
33 font.setColor(LColor::note);
35 setAutoCollapse(true);
42 Inset * InsetNote::clone(Buffer const &, bool same_id) const
44 InsetNote * result = new InsetNote;
45 result->inset.init(&inset, same_id);
47 result->collapsed_ = collapsed_;
54 string const InsetNote::editMessage() const
56 return _("Opened Note Inset");
60 void InsetNote::write(Buffer const *buf, ostream & os) const
62 os << getInsetName() << "\n";
63 InsetCollapsable::write(buf, os);