]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfootlike.C
insetcharstyle drawing cosmetics
[lyx.git] / src / insets / insetfootlike.C
index ecf1dc1bd4ee9cdbb7160b39ce037197480b40e5..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,17 +42,17 @@ 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);
 }
 
 
-bool InsetFootlike::insetAllowed(Inset::Code code) const
+bool InsetFootlike::insetAllowed(InsetOld::Code code) const
 {
-       if ((code == Inset::FOOT_CODE) || (code == Inset::MARGIN_CODE)
-           || (code == Inset::FLOAT_CODE))
+       if (code == InsetOld::FOOT_CODE || code == InsetOld::MARGIN_CODE
+           || code == InsetOld::FLOAT_CODE)
                return false;
        return InsetCollapsable::insetAllowed(code);
 }