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
16 #include "insetoptarg.h"
17 #include "support/LOstream.h"
18 #include "frontends/Alert.h"
19 #include "support/lstrings.h" // frontStrip, strip
23 #include "BufferView.h"
24 #include "support/lstrings.h"
30 InsetOptArg::InsetOptArg(BufferParams const & ins)
31 : InsetCollapsable(ins, true)
33 LyXFont font(LyXFont::ALL_SANE);
34 font.setColor(LColor::collapsable);
40 InsetOptArg::InsetOptArg(InsetOptArg const & in, bool same_id)
41 : InsetCollapsable(in, same_id)
43 LyXFont font(LyXFont::ALL_SANE);
44 font.setColor(LColor::collapsable);
50 Inset * InsetOptArg::clone(Buffer const &, bool same_id) const
52 return new InsetOptArg(*this, same_id);
56 string const InsetOptArg::editMessage() const
58 return _("Opened Optional Argument Inset");
62 void InsetOptArg::write(Buffer const * buf, ostream & os) const
64 os << "OptArg" << "\n";
65 InsetCollapsable::write(buf, os);
69 int InsetOptArg::latex(Buffer const *, ostream &, bool, bool) const
75 int InsetOptArg::latexOptional(Buffer const * buf, ostream & os,
79 int const i = inset.latex(buf, os, false, fp);