2 * \file InsetMarginal.cpp
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"
18 #include "OutputParams.h"
20 #include "support/std_ostream.h"
30 InsetMarginal::InsetMarginal(BufferParams const & bp)
37 InsetMarginal::InsetMarginal(InsetMarginal const & in)
42 auto_ptr<Inset> InsetMarginal::doClone() const
44 return auto_ptr<Inset>(new InsetMarginal(*this));
48 docstring const InsetMarginal::editMessage() const
50 return _("Opened Marginal Note Inset");
54 int InsetMarginal::latex(Buffer const & buf, odocstream & os,
55 OutputParams const & runparams) const
57 os << "%\n\\marginpar{";
58 int const i = InsetText::latex(buf, os, runparams);
64 int InsetMarginal::plaintext(Buffer const & buf, odocstream & os,
65 OutputParams const & runparams) const
67 os << '[' << buf.B_("margin") << ":\n";
68 InsetText::plaintext(buf, os, runparams);
71 return PLAINTEXT_NEWLINE + 1; // one char on a separate line
75 int InsetMarginal::docbook(Buffer const & buf, odocstream & os,
76 OutputParams const & runparams) const
78 os << "<note role=\"margin\">";
79 int const i = InsetText::docbook(buf, os, runparams);