3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Martin Vermeer
8 * Full author contact details are available in file CREDITS.
13 #include "insetoptarg.h"
17 #include "paragraph.h"
23 InsetOptArg::InsetOptArg(BufferParams const & ins)
24 : InsetCollapsable(ins, true)
26 LyXFont font(LyXFont::ALL_SANE);
27 font.setColor(LColor::collapsable);
33 InsetOptArg::InsetOptArg(InsetOptArg const & in)
34 : InsetCollapsable(in)
36 LyXFont font(LyXFont::ALL_SANE);
37 font.setColor(LColor::collapsable);
43 auto_ptr<InsetBase> InsetOptArg::clone() const
45 return auto_ptr<InsetBase>(new InsetOptArg(*this));
49 string const InsetOptArg::editMessage() const
51 return _("Opened Optional Argument Inset");
55 void InsetOptArg::write(Buffer const & buf, ostream & os) const
57 os << "OptArg" << "\n";
58 InsetCollapsable::write(buf, os);
62 int InsetOptArg::latex(Buffer const &, ostream &,
63 LatexRunParams const &) const
69 int InsetOptArg::latexOptional(Buffer const & buf, ostream & os,
70 LatexRunParams const & runparams) const
73 int const i = inset.latex(buf, os, runparams);