]> git.lyx.org Git - lyx.git/blob - src/insets/insetfoot.C
Added copy constructor to inset.h and used it in most insets which permit
[lyx.git] / src / insets / insetfoot.C
1 /* This file is part of
2  * ======================================================
3  * 
4  *           LyX, The Document Processor
5  *       
6  *          Copyright 1998 The LyX Team.
7  *
8  * ======================================================
9  */
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "insetfoot.h"
18 #include "gettext.h"
19 #include "lyxfont.h"
20 #include "BufferView.h"
21 #include "lyxtext.h"
22 #include "insets/insettext.h"
23 #include "support/LOstream.h"
24 #include "debug.h"
25
26
27 InsetFoot::InsetFoot()
28         : InsetFootlike()
29 {
30         setLabel(_("foot"));
31         setInsetName("Foot");
32 }
33
34
35 string const InsetFoot::editMessage() const
36 {
37         return _("Opened Footnote Inset");
38 }
39
40
41 int InsetFoot::latex(Buffer const * buf,
42                      std::ostream & os, bool fragile, bool fp) const
43 {
44         os << "%\n\\footnote{";
45         
46         int const i = inset.latex(buf, os, fragile, fp);
47         os << "%\n}";
48         
49         return i + 2;
50 }