]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetnote.C
fix #832
[lyx.git] / src / insets / insetnote.C
index 1574c8fbc4834a85c405c160751dcadbc5624fd8..1a4253d5c846a07c07017019ee670c16469f89cd 100644 (file)
@@ -10,9 +10,6 @@
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "insetnote.h"
 #include "gettext.h"
@@ -62,33 +59,13 @@ 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,
-                    bool collapsed)
-       : InsetCollapsable(buf->params, collapsed)
-{
-       init();
-
-       Paragraph * par = inset.paragraph();
-       LyXFont font(LyXFont::ALL_INHERIT, buf->params.language);
-
-       // Since XForms doesn't support RTL, we can assume that old notes
-       // in RTL documents are written in English.
-       if (font.language()->RightToLeft())
-               font.setLanguage(default_language);
-
-       lyx::pos_type pos = 0;
-       buf->insertStringAsLines(par, pos, font, rtrim(contents, "\n"));
-}
-
-
 string const InsetNote::editMessage() const
 {
        return _("Opened Note Inset");
 }
 
 
-void InsetNote::write(Buffer const *buf, ostream & os) const
+void InsetNote::write(Buffer const * buf, ostream & os) const
 {
        os << getInsetName() << "\n";
        InsetCollapsable::write(buf, os);