]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfootlike.C
fix #832
[lyx.git] / src / insets / insetfootlike.C
index e58ae00e72f8661edf52e04988e3171e4e48af43..8254da3008498ef59c304211b70a660fdd3a94bb 100644 (file)
@@ -1,18 +1,15 @@
-/* This file is part of
- * ======================================================
- * 
- *           LyX, The Document Processor
- *      
- *          Copyright 2000-2001 The LyX Team.
+/**
+ * \file insetfootlike.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * ======================================================
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "insetfootlike.h"
 #include "lyxfont.h"
 #include "support/LOstream.h"
 
 
-InsetFootlike::InsetFootlike()
-       : InsetCollapsable()
+using std::ostream;
+
+
+InsetFootlike::InsetFootlike(BufferParams const & bp)
+       : InsetCollapsable(bp)
+{
+       LyXFont font(LyXFont::ALL_SANE);
+       font.decSize();
+       font.decSize();
+       font.setColor(LColor::collapsable);
+       setLabelFont(font);
+}
+
+
+InsetFootlike::InsetFootlike(InsetFootlike const & in, bool same_id)
+       : InsetCollapsable(in, same_id)
 {
        LyXFont font(LyXFont::ALL_SANE);
        font.decSize();
        font.decSize();
        font.setColor(LColor::collapsable);
        setLabelFont(font);
-       setAutoCollapse(false);
 }
 
 
-void InsetFootlike::write(Buffer const * buf, std::ostream & os) const 
+void InsetFootlike::write(Buffer const * buf, ostream & os) const
 {
        os << getInsetName() << "\n";
        InsetCollapsable::write(buf, os);
@@ -43,7 +53,7 @@ void InsetFootlike::write(Buffer const * buf, std::ostream & os) const
 bool InsetFootlike::insetAllowed(Inset::Code code) const
 {
        if ((code == Inset::FOOT_CODE) || (code == Inset::MARGIN_CODE)
-           || (code ==Inset::FLOAT_CODE))
+           || (code == Inset::FLOAT_CODE))
                return false;
        return InsetCollapsable::insetAllowed(code);
 }