3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS
15 #include "insetcommand.h"
17 #include "frontends/Painter.h"
25 InsetCommand::InsetCommand(InsetCommandParams const & p, bool)
26 : p_(p.getCmdName(), p.getContents(), p.getOptions())
30 void InsetCommand::setParams(InsetCommandParams const & p)
32 p_.setCmdName(p.getCmdName());
33 p_.setContents(p.getContents());
34 p_.setOptions(p.getOptions());
38 int InsetCommand::latex(Buffer const *, ostream & os,
39 bool /*fragile*/, bool/*fs*/) const
46 int InsetCommand::ascii(Buffer const *, ostream &, int) const
52 int InsetCommand::linuxdoc(Buffer const *, ostream &) const
58 int InsetCommand::docbook(Buffer const *, ostream &, bool) const
64 InsetCommandMailer::InsetCommandMailer(string const & name,
66 : name_(name), inset_(inset)
70 string const InsetCommandMailer::inset2string() const
72 return params2string(inset_.params());
76 void InsetCommandMailer::string2params(string const & in,
77 InsetCommandParams & params)
79 params.setCmdName(string());
80 params.setContents(string());
81 params.setOptions(string());
86 istringstream data(in);
95 InsetCommandMailer::params2string(InsetCommandParams const & params)
99 data << "\\end_inset\n";