1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 1998 The LyX Team.
8 * ======================================================
14 #pragma implementation
17 #include "insetmarginal.h"
20 #include "BufferView.h"
22 #include "insets/insettext.h"
23 #include "support/LOstream.h"
30 InsetMarginal::InsetMarginal(BufferParams const & bp)
33 setLabel(_("margin"));
34 setInsetName("Marginal");
38 InsetMarginal::InsetMarginal(InsetMarginal const & in, bool same_id)
39 : InsetFootlike(in, same_id)
41 setLabel(_("margin"));
42 setInsetName("Marginal");
46 Inset * InsetMarginal::clone(Buffer const &, bool same_id) const
48 return new InsetMarginal(*const_cast<InsetMarginal *>(this), same_id);
52 string const InsetMarginal::editMessage() const
54 return _("Opened Marginal Note Inset");
58 int InsetMarginal::latex(Buffer const * buf,
59 ostream & os, bool fragile, bool fp) const
61 os << "%\n\\marginpar{";
63 int const i = inset.latex(buf, os, fragile, fp);