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
27 class InsetCommandParams {
33 InsetCommandParams(string const & n,
34 string const & c = string(),
35 string const & o = string());
39 void scanCommand(string const &);
41 void write(std::ostream &) const;
42 /// Build the complete LaTeX command
43 string const getCommand() const;
45 string const & getCmdName() const { return cmdname; }
47 string const & getOptions() const { return options; }
49 string const & getContents() const { return contents; }
51 void setCmdName(string const & n) { cmdname = n; }
53 void setOptions(string const & o) { options = o; }
55 void setContents(string const & c) { contents = c; }
57 string const getAsString() const;
59 void setFromString(string const &);
61 bool preview() const { return preview_; }
63 void preview(bool p) { preview_ = p; }
78 bool operator==(InsetCommandParams const &,
79 InsetCommandParams const &);
82 bool operator!=(InsetCommandParams const &,
83 InsetCommandParams const &);