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"
18 #include "paragraph.h"
26 InsetOptArg::InsetOptArg(BufferParams const & ins)
27 : InsetCollapsable(ins, Collapsed)
29 LyXFont font(LyXFont::ALL_SANE);
30 font.setColor(LColor::collapsable);
36 InsetOptArg::InsetOptArg(InsetOptArg const & in)
37 : InsetCollapsable(in)
39 LyXFont font(LyXFont::ALL_SANE);
40 font.setColor(LColor::collapsable);
46 auto_ptr<InsetBase> InsetOptArg::clone() const
48 return auto_ptr<InsetBase>(new InsetOptArg(*this));
52 string const InsetOptArg::editMessage() const
54 return _("Opened Optional Argument Inset");
58 void InsetOptArg::write(Buffer const & buf, ostream & os) const
60 os << "OptArg" << "\n";
61 InsetCollapsable::write(buf, os);
65 int InsetOptArg::latex(Buffer const &, ostream &,
66 OutputParams const &) const
72 int InsetOptArg::latexOptional(Buffer const & buf, ostream & os,
73 OutputParams const & runparams) const
76 int const i = InsetText::latex(buf, os, runparams);