]> git.lyx.org Git - lyx.git/blob - src/insets/insetfoot.C
This should clean up the language stuff a bit and a small new check for
[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 InsetFoot::InsetFoot(InsetFoot const & in, bool same_id)
36         : InsetFootlike(in, same_id)
37 {
38         setLabel(_("foot"));
39         setInsetName("Foot");
40 }
41
42
43 Inset * InsetFoot::clone(Buffer const &, bool same_id) const
44 {
45         return new InsetFoot(*const_cast<InsetFoot *>(this), same_id);
46 }
47
48
49 string const InsetFoot::editMessage() const
50 {
51         return _("Opened Footnote Inset");
52 }
53
54
55 int InsetFoot::latex(Buffer const * buf,
56                      std::ostream & os, bool fragile, bool fp) const
57 {
58         os << "%\n\\footnote{";
59         
60         int const i = inset.latex(buf, os, fragile, fp);
61         os << "%\n}";
62         
63         return i + 2;
64 }