2 * \file insetmarginal.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS
15 #pragma implementation
18 #include "insetmarginal.h"
21 #include "BufferView.h"
23 #include "insets/insettext.h"
24 #include "support/LOstream.h"
31 InsetMarginal::InsetMarginal(BufferParams const & bp)
34 setLabel(_("margin"));
35 setInsetName("Marginal");
39 InsetMarginal::InsetMarginal(InsetMarginal const & in, bool same_id)
40 : InsetFootlike(in, same_id)
42 setLabel(_("margin"));
43 setInsetName("Marginal");
47 Inset * InsetMarginal::clone(Buffer const &, bool same_id) const
49 return new InsetMarginal(*const_cast<InsetMarginal *>(this), same_id);
53 string const InsetMarginal::editMessage() const
55 return _("Opened Marginal Note Inset");
59 int InsetMarginal::latex(Buffer const * buf,
60 ostream & os, bool fragile, bool fp) const
62 os << "%\n\\marginpar{";
64 int const i = inset.latex(buf, os, fragile, fp);