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.
14 #include "insetmarginal.h"
17 #include "paragraph.h"
19 #include "support/std_ostream.h"
25 InsetMarginal::InsetMarginal(BufferParams const & bp)
28 setLabel(_("margin"));
29 setInsetName("Marginal");
33 InsetMarginal::InsetMarginal(InsetMarginal const & in)
36 setLabel(_("margin"));
37 setInsetName("Marginal");
41 auto_ptr<InsetBase> InsetMarginal::clone() const
43 return auto_ptr<InsetBase>(new InsetMarginal(*this));
47 string const InsetMarginal::editMessage() const
49 return _("Opened Marginal Note Inset");
53 int InsetMarginal::latex(Buffer const & buf, ostream & os,
54 LatexRunParams const & runparams) const
56 os << "%\n\\marginpar{";
58 int const i = inset.latex(buf, os, runparams);