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
24 class InsetCommandParams {
30 InsetCommandParams(string const & n,
31 string const & c = string(),
32 string const & o = string());
36 void scanCommand(string const &);
38 void write(std::ostream &) const;
39 /// Build the complete LaTeX command
40 string const getCommand() const;
42 string const & getCmdName() const { return cmdname; }
44 string const & getOptions() const { return options; }
46 string const & getContents() const { return contents; }
48 void setCmdName(string const & n) { cmdname = n; }
50 void setOptions(string const & o) { options = o; }
52 void setContents(string const & c) { contents = c; }
54 string const getAsString() const;
56 void setFromString(string const &);
58 bool preview() const { return preview_; }
60 void preview(bool p) { preview_ = p; }
75 bool operator==(InsetCommandParams const &,
76 InsetCommandParams const &);
79 bool operator!=(InsetCommandParams const &,
80 InsetCommandParams const &);