]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfootlike.C
Clean up InsetGraphics::Cache and rename as GraphicsInset.
[lyx.git] / src / insets / insetfootlike.C
index fcbe711ba726fd024de2623296a59d577c1a6703..ecf1dc1bd4ee9cdbb7160b39ce037197480b40e5 100644 (file)
@@ -1,19 +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 "buffer.h"
@@ -24,8 +20,8 @@
 using std::ostream;
 
 
-InsetFootlike::InsetFootlike()
-       : InsetCollapsable()
+InsetFootlike::InsetFootlike(BufferParams const & bp)
+       : InsetCollapsable(bp)
 {
        LyXFont font(LyXFont::ALL_SANE);
        font.decSize();
@@ -35,8 +31,8 @@ InsetFootlike::InsetFootlike()
 }
 
 
-InsetFootlike::InsetFootlike(InsetFootlike const & in, bool same_id)
-       : InsetCollapsable(in, same_id)
+InsetFootlike::InsetFootlike(InsetFootlike const & in)
+       : InsetCollapsable(in)
 {
        LyXFont font(LyXFont::ALL_SANE);
        font.decSize();
@@ -46,7 +42,7 @@ InsetFootlike::InsetFootlike(InsetFootlike const & in, bool same_id)
 }
 
 
-void InsetFootlike::write(Buffer const * buf, ostream & os) const 
+void InsetFootlike::write(Buffer const * buf, ostream & os) const
 {
        os << getInsetName() << "\n";
        InsetCollapsable::write(buf, os);
@@ -56,7 +52,7 @@ void InsetFootlike::write(Buffer const * buf, 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);
 }