// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
+/**
+ * \file insetfoot.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * Copyright 1998 The LyX Team.
+ * \author Jürgen Vigna
+ * \author Lars Gullik Bjønnes
*
- *======================================================
+ * Full author contact details are available in file CREDITS.
*/
-// The pristine updatable inset: Text
-
#ifndef INSETFOOT_H
#define INSETFOOT_H
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "insetcollapsable.h"
-
-class Painter;
+#include "insetfootlike.h"
/** The footnote inset
-
+
*/
-class InsetFoot : public InsetCollapsable {
+class InsetFoot : public InsetFootlike {
public:
- ///
- explicit
- InsetFoot();
- ///
- ~InsetFoot() {}
- ///
- Inset * Clone() const;
- ///
- Inset::Code LyxCode() const { return Inset::FOOT_CODE; }
- ///
- int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
- ///
- const char * EditMessage() const;
- ///
- bool InsertInset(BufferView *, Inset * inset);
- ///
- bool InsertInsetAllowed(Inset * inset) const;
- ///
- LyXFont GetDrawFont(BufferView *, LyXParagraph * par, int pos) const;
- ///
+ ///
+ InsetFoot(BufferParams const &);
+ ///
+ InsetFoot(InsetFoot const &);
+ ///
+ virtual std::auto_ptr<InsetBase> clone() const;
+ ///
+ InsetOld::Code lyxCode() const { return InsetOld::FOOT_CODE; }
+ ///
+ int latex(Buffer const &, std::ostream &,
+ LatexRunParams const &) const;
+ ///
+ int docbook(Buffer const &, std::ostream &, bool mixcont) const;
+ ///
+ std::string const editMessage() const;
};
#endif