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 #include "insetmarginal.h"
18 #include "BufferView.h"
20 #include "insets/insettext.h"
21 #include "support/LOstream.h"
29 InsetMarginal::InsetMarginal(BufferParams const & bp)
32 setLabel(_("margin"));
33 setInsetName("Marginal");
37 InsetMarginal::InsetMarginal(InsetMarginal const & in)
40 setLabel(_("margin"));
41 setInsetName("Marginal");
45 auto_ptr<InsetBase> InsetMarginal::clone() const
47 return auto_ptr<InsetBase>(new InsetMarginal(*this));
51 string const InsetMarginal::editMessage() const
53 return _("Opened Marginal Note Inset");
57 int InsetMarginal::latex(Buffer const & buf, ostream & os,
58 LatexRunParams const & runparams) const
60 os << "%\n\\marginpar{";
62 int const i = inset.latex(buf, os, runparams);