3 * \file insetcommandparams.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
12 #ifndef INSETCOMMANDPARAMS_H
13 #define INSETCOMMANDPARAMS_H
22 class InsetCommandParams {
28 InsetCommandParams(string const & n,
29 string const & c = string(),
30 string const & o = string());
34 void scanCommand(string const &);
36 void write(std::ostream &) const;
37 /// Build the complete LaTeX command
38 string const getCommand() const;
40 string const & getCmdName() const { return cmdname; }
42 string const & getOptions() const { return options; }
44 string const & getContents() const { return contents; }
46 void setCmdName(string const & n) { cmdname = n; }
48 void setOptions(string const & o) { options = o; }
50 void setContents(string const & c) { contents = c; }
52 bool preview() const { return preview_; }
54 void preview(bool p) { preview_ = p; }
69 bool operator==(InsetCommandParams const &,
70 InsetCommandParams const &);
73 bool operator!=(InsetCommandParams const &,
74 InsetCommandParams const &);