]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfoot.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetfoot.h
index c3a8a7a721c98ce3308e5df371d252bb16521065..46caafc48683b3f8e3883e42f7ecf7cf2f33f61d 100644 (file)
@@ -1,50 +1,47 @@
 // -*- 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 "insetfootlike.h"
 
-#include "insetcollapsable.h"
 
-class Painter;
+namespace lyx {
 
 /** The footnote inset
-  
+
 */
-class InsetFoot : public InsetCollapsable {
+class InsetFoot : public InsetFootlike {
 public:
-    ///
-    InsetFoot(Buffer *);
-    ///
-    ~InsetFoot() {}
-    ///
-    Inset * Clone() const;
-    ///
-    Inset::Code LyxCode() const { return Inset::FOOT_CODE; }
-    ///
-    int Latex(std::ostream &, signed char, bool fp) const;
-    ///
-    void Write(std::ostream &) const;
-    ///
-    void Read(LyXLex &);
-    ///
-    const char * EditMessage() const;
-    ///
-    bool InsertInset(BufferView *, Inset * inset);
+       ///
+       InsetFoot(BufferParams const &);
+       ///
+       InsetBase::Code lyxCode() const { return InsetBase::FOOT_CODE; }
+       ///
+       int latex(Buffer const &, odocstream &,
+                 OutputParams const &) const;
+       ///
+       int docbook(Buffer const &, odocstream &,
+                   OutputParams const & runparams) const;
+       ///
+       virtual docstring const editMessage() const;
+protected:
+       InsetFoot(InsetFoot const &);
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
+
+} // namespace lyx
+
 #endif