]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfoot.C
(Herbert): strip the extension from the graphics filename when exporting
[lyx.git] / src / insets / insetfoot.C
index a2297b6cd9133aee05ea456eb6f32c6a1dc16b6e..cf1576383bd8d020e090045980130f04f68d3743 100644 (file)
@@ -1,8 +1,8 @@
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
- *      
+ *
  *          Copyright 1998 The LyX Team.
  *
  * ======================================================
@@ -27,8 +27,8 @@
 using std::ostream;
 
 
-InsetFoot::InsetFoot()
-       : InsetFootlike()
+InsetFoot::InsetFoot(BufferParams const & bp)
+       : InsetFootlike(bp)
 {
        setLabel(_("foot"));
        setInsetName("Foot");
@@ -59,9 +59,19 @@ int InsetFoot::latex(Buffer const * buf,
                     ostream & os, bool fragile, bool fp) const
 {
        os << "%\n\\footnote{";
-       
+
        int const i = inset.latex(buf, os, fragile, fp);
        os << "%\n}";
-       
+
        return i + 2;
 }
+
+
+int InsetFoot::docbook(Buffer const * buf, ostream & os) const
+{
+       os << "<footnote>";
+       int const i = inset.docbook(buf, os);
+       os << "</footnote>";
+
+       return i;
+}