-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright 1998 The LyX Team.
+/**
+ * \file insetnote.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * ======================================================
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
font.decSize();
font.setColor(LColor::note);
setLabelFont(font);
- setBackgroundColor(LColor::note);
+ setBackgroundColor(LColor::notebg);
setLabel(_("note"));
setInsetName("Note");
}
-InsetNote::InsetNote()
- : InsetCollapsable()
+InsetNote::InsetNote(BufferParams const & bp)
+ : InsetCollapsable(bp)
{
init();
}
// This constructor is used for reading old InsetInfo
-InsetNote::InsetNote(Buffer const * buf, string const & contents,
+InsetNote::InsetNote(Buffer const * buf, string const & contents,
bool collapsed)
- : InsetCollapsable(collapsed)
+ : InsetCollapsable(buf->params, collapsed)
{
init();
if (font.language()->RightToLeft())
font.setLanguage(default_language);
- lyx::pos_type pos;
- buf->insertStringAsLines(par, pos, font, strip(contents, '\n'));
+ lyx::pos_type pos = 0;
+ buf->insertStringAsLines(par, pos, font, rtrim(contents, "\n"));
}
-string const InsetNote::editMessage() const
+string const InsetNote::editMessage() const
{
return _("Opened Note Inset");
}