3 * Copyright 2002 the LyX Team
4 * Read the file COPYING
6 * \author Martin Vermeer <martin.vermeer@hut.fi>
12 #pragma implementation
17 #include "insetoptarg.h"
18 #include "support/LOstream.h"
19 #include "frontends/Alert.h"
20 #include "support/lstrings.h" // frontStrip, strip
24 #include "BufferView.h"
25 #include "support/lstrings.h"
31 InsetOptArg::InsetOptArg(BufferParams const & ins)
32 : InsetCollapsable(ins, true)
34 LyXFont font(LyXFont::ALL_SANE);
35 font.setColor(LColor::collapsable);
41 InsetOptArg::InsetOptArg(InsetOptArg const & in, bool same_id)
42 : InsetCollapsable(in, same_id)
44 LyXFont font(LyXFont::ALL_SANE);
45 font.setColor(LColor::collapsable);
51 Inset * InsetOptArg::clone(Buffer const &, bool same_id) const
53 return new InsetOptArg(*this, same_id);
57 string const InsetOptArg::editMessage() const
59 return _("Opened Optional Argument Inset");
63 void InsetOptArg::write(Buffer const * buf, ostream & os) const
65 os << "OptArg" << "\n";
66 InsetCollapsable::write(buf, os);
70 int InsetOptArg::latex(Buffer const *, ostream &, bool, bool) const
76 int InsetOptArg::latexOptional(Buffer const * buf, ostream & os,
80 int const i = inset.latex(buf, os, false, fp);