]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfootlike.C
insetcharstyle drawing cosmetics
[lyx.git] / src / insets / insetfootlike.C
index 0605cfe34a18ba1999dc51be0167dfc109ba45fe..4ceb2efe41f22fa6e711370d67c0c0f65bfb0d2f 100644 (file)
@@ -5,17 +5,17 @@
  *
  * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
 #include "insetfootlike.h"
-#include "lyxfont.h"
-#include "buffer.h"
-#include "lyxtext.h"
-#include "support/LOstream.h"
 
+#include "buffer.h"
+#include "LColor.h"
+#include "metricsinfo.h"
+#include "paragraph.h"
 
 using std::ostream;
 
@@ -42,7 +42,7 @@ InsetFootlike::InsetFootlike(InsetFootlike const & in)
 }
 
 
-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);
@@ -51,8 +51,8 @@ void InsetFootlike::write(Buffer const * buf, ostream & os) const
 
 bool InsetFootlike::insetAllowed(InsetOld::Code code) const
 {
-       if ((code == InsetOld::FOOT_CODE) || (code == InsetOld::MARGIN_CODE)
-           || (code == InsetOld::FLOAT_CODE))
+       if (code == InsetOld::FOOT_CODE || code == InsetOld::MARGIN_CODE
+           || code == InsetOld::FLOAT_CODE)
                return false;
        return InsetCollapsable::insetAllowed(code);
 }