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
14 #pragma implementation
19 #include "insetoptarg.h"
20 #include "support/LOstream.h"
21 #include "frontends/Alert.h"
22 #include "support/lstrings.h" // frontStrip, strip
26 #include "BufferView.h"
27 #include "support/lstrings.h"
33 InsetOptArg::InsetOptArg(BufferParams const & ins)
34 : InsetCollapsable(ins, true)
36 LyXFont font(LyXFont::ALL_SANE);
37 font.setColor(LColor::collapsable);
43 InsetOptArg::InsetOptArg(InsetOptArg const & in, bool same_id)
44 : InsetCollapsable(in, same_id)
46 LyXFont font(LyXFont::ALL_SANE);
47 font.setColor(LColor::collapsable);
53 Inset * InsetOptArg::clone(Buffer const &, bool same_id) const
55 return new InsetOptArg(*this, same_id);
59 string const InsetOptArg::editMessage() const
61 return _("Opened Optional Argument Inset");
65 void InsetOptArg::write(Buffer const * buf, ostream & os) const
67 os << "OptArg" << "\n";
68 InsetCollapsable::write(buf, os);
72 int InsetOptArg::latex(Buffer const *, ostream &, bool, bool) const
78 int InsetOptArg::latexOptional(Buffer const * buf, ostream & os,
82 int const i = inset.latex(buf, os, false, fp);