]> git.lyx.org Git - lyx.git/blob - src/insets/insetfoot.C
lowercase style on reading .lyx
[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 using std::ostream;
28
29
30 InsetFoot::InsetFoot()
31         : InsetFootlike()
32 {
33         setLabel(_("foot"));
34         setInsetName("Foot");
35 }
36
37
38 InsetFoot::InsetFoot(InsetFoot const & in, bool same_id)
39         : InsetFootlike(in, same_id)
40 {
41         setLabel(_("foot"));
42         setInsetName("Foot");
43 }
44
45
46 Inset * InsetFoot::clone(Buffer const &, bool same_id) const
47 {
48         return new InsetFoot(*const_cast<InsetFoot *>(this), same_id);
49 }
50
51
52 string const InsetFoot::editMessage() const
53 {
54         return _("Opened Footnote Inset");
55 }
56
57
58 int InsetFoot::latex(Buffer const * buf,
59                      ostream & os, bool fragile, bool fp) const
60 {
61         os << "%\n\\footnote{";
62         
63         int const i = inset.latex(buf, os, fragile, fp);
64         os << "%\n}";
65         
66         return i + 2;
67 }