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"
25 InsetOptArg::InsetOptArg(BufferParams const & ins)
26 : InsetCollapsable(ins, true)
28 LyXFont font(LyXFont::ALL_SANE);
29 font.setColor(LColor::collapsable);
35 InsetOptArg::InsetOptArg(InsetOptArg const & in)
36 : InsetCollapsable(in)
38 LyXFont font(LyXFont::ALL_SANE);
39 font.setColor(LColor::collapsable);
45 auto_ptr<InsetBase> InsetOptArg::clone() const
47 return auto_ptr<InsetBase>(new InsetOptArg(*this));
51 string const InsetOptArg::editMessage() const
53 return _("Opened Optional Argument Inset");
57 void InsetOptArg::write(Buffer const & buf, ostream & os) const
59 os << "OptArg" << "\n";
60 InsetCollapsable::write(buf, os);
64 int InsetOptArg::latex(Buffer const &, ostream &,
65 LatexRunParams const &) const
71 int InsetOptArg::latexOptional(Buffer const & buf, ostream & os,
72 LatexRunParams const & runparams) const
75 int const i = inset.latex(buf, os, runparams);