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"
27 InsetMarginal::InsetMarginal(BufferParams const & bp)
31 setLabel(lyx::to_utf8(_("margin")));
32 setInsetName("Marginal");
36 InsetMarginal::InsetMarginal(InsetMarginal const & in)
40 setLabel(lyx::to_utf8(_("margin")));
41 setInsetName("Marginal");
45 auto_ptr<InsetBase> InsetMarginal::doClone() const
47 return auto_ptr<InsetBase>(new InsetMarginal(*this));
51 string const InsetMarginal::editMessage() const
54 return lyx::to_utf8(_("Opened Marginal Note Inset"));
58 int InsetMarginal::latex(Buffer const & buf, ostream & os,
59 OutputParams const & runparams) const
61 os << "%\n\\marginpar{";
62 int const i = InsetText::latex(buf, os, runparams);
67 int InsetMarginal::docbook(Buffer const & buf, ostream & os,
68 OutputParams const & runparams) const
70 os << "<note role=\"margin\">";
71 int const i = InsetText::docbook(buf, os, runparams);