]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetnote.C
Make it compile when USE_BOOST_FORMAT is unset
[lyx.git] / src / insets / insetnote.C
index da3c39bfd6449a9f938261ad331b4db4b86358aa..f81d9b64b78b07617ceb1084ae61a5a8d5f49f38 100644 (file)
@@ -1,11 +1,11 @@
-/* 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>
@@ -41,8 +41,8 @@ void InsetNote::init()
 }
 
 
-InsetNote::InsetNote()
-       : InsetCollapsable()
+InsetNote::InsetNote(BufferParams const & bp)
+       : InsetCollapsable(bp)
 {
        init();
 }
@@ -62,9 +62,9 @@ Inset * InsetNote::clone(Buffer const &, bool same_id) const
 
 
 // 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();
 
@@ -77,11 +77,11 @@ InsetNote::InsetNote(Buffer const * buf, string const & contents,
                font.setLanguage(default_language);
 
        lyx::pos_type pos = 0;
-       buf->insertStringAsLines(par, pos, font, strip(contents, '\n'));
+       buf->insertStringAsLines(par, pos, font, rtrim(contents, "\n"));
 }
 
 
-string const InsetNote::editMessage() const 
+string const InsetNote::editMessage() const
 {
        return _("Opened Note Inset");
 }